/* ═══════════════════════════════════════════
   Simmer — Shared Stylesheet
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:     #FDF6EC;
  --parchment: #F5E9D3;
  --rust:      #C0522B;
  --ember:     #E8783A;
  --sienna:    #8B3A1C;
  --charcoal:  #2C2018;
  --warm-mid:  #7A6352;
  --sage:      #6B7F62;
  --highlight: #FFF0DC;
  --white:     #FFFFFF;
  --border:    rgba(192,82,43,.15);
  --shadow:    0 4px 20px rgba(192,82,43,.1);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Grain overlay ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: .45;
}

/* ─── Nav ─── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(253,246,236,.88);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 200;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--rust); letter-spacing: -.02em; text-decoration: none;
}
.logo span { color: var(--ember); font-style: italic; }

nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
nav ul a {
  text-decoration: none; color: var(--warm-mid);
  font-size: .85rem; font-weight: 400;
  letter-spacing: .05em; text-transform: uppercase;
  transition: color .2s;
}
nav ul a:hover, nav ul a.active { color: var(--rust); }
nav ul a.active { font-weight: 500; }

.nav-btn {
  background: var(--rust); color: white !important;
  padding: .45rem 1.1rem; border-radius: 6px;
  font-weight: 500 !important; letter-spacing: .03em !important;
  transition: background .2s !important;
}
.nav-btn:hover { background: var(--sienna) !important; color: white !important; }

/* hamburger mobile */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--rust); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

/* ─── Hero ─── */
.hero {
  background: var(--parchment);
  padding: 5rem 3rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero-emoji {
  position: absolute; font-size: 14rem; opacity: .04;
  bottom: -3rem; right: -2rem; pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background: var(--rust); color: var(--cream);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 2px;
  margin-bottom: 1.5rem;
  animation: fadeUp .5s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.15;
  color: var(--charcoal);
  max-width: 660px; margin: 0 auto 1.25rem;
  animation: fadeUp .55s .08s ease both;
}
.hero h1 em { font-style: italic; color: var(--rust); }

.hero p {
  color: var(--warm-mid); font-size: 1rem;
  max-width: 500px; margin: 0 auto;
  line-height: 1.75;
  animation: fadeUp .55s .16s ease both;
}

/* ─── Quick links bar ─── */
.quick-links {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; padding: 2.5rem 3rem;
  border-bottom: 1px solid var(--border);
  animation: fadeUp .6s .22s ease both;
}

.ql-card {
  display: flex; align-items: center; gap: .75rem;
  background: white; border: 1px solid var(--border);
  border-radius: 10px; padding: .85rem 1.4rem;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  text-decoration: none; color: var(--charcoal);
}
.ql-card:hover {
  border-color: var(--ember);
  box-shadow: 0 4px 18px rgba(232,120,58,.14);
  transform: translateY(-2px);
}
.ql-card.active-cat { border-color: var(--rust); background: var(--highlight); }

.ql-icon { font-size: 1.35rem; line-height: 1; }
.ql-label { font-size: .88rem; font-weight: 500; }
.ql-sub   { font-size: .76rem; color: var(--warm-mid); }

/* ─── Section breadcrumb ─── */
.breadcrumb {
  padding: 1rem 3rem;
  font-size: .8rem; color: var(--warm-mid);
  border-bottom: 1px solid var(--border);
  display: flex; gap: .5rem; align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--rust); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .4; }

/* ─── Shared form styles ─── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }

label {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--warm-mid);
}
label .req { color: var(--rust); margin-left: 2px; }

input, select, textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 300;
  color: var(--charcoal); background: white;
  border: 1.5px solid rgba(192,82,43,.2);
  border-radius: 8px; padding: .75rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(232,120,58,.12);
}
textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C0522B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}

.attach-zone {
  border: 1.5px dashed rgba(192,82,43,.3); border-radius: 8px;
  padding: 1.25rem; text-align: center;
  color: var(--warm-mid); font-size: .875rem; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.attach-zone:hover { border-color: var(--ember); background: var(--highlight); }
.attach-zone .az-icon { display: block; font-size: 1.5rem; margin-bottom: .35rem; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block; padding: .85rem 2rem;
  background: var(--rust); color: white;
  border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 500;
  cursor: pointer; letter-spacing: .03em;
  text-decoration: none; text-align: center;
  transition: background .2s, transform .15s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,.14) 50%, transparent 100%);
  transform: translateX(-100%); transition: transform .4s ease;
}
.btn-primary:hover {
  background: var(--sienna);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(192,82,43,.3);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.full-width { width: 100%; }

.btn-secondary {
  display: inline-block; padding: .75rem 1.75rem;
  background: transparent; color: var(--rust);
  border: 1.5px solid var(--rust); border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 400;
  cursor: pointer; letter-spacing: .02em;
  text-decoration: none; text-align: center;
  transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--highlight); }

/* ─── Info card ─── */
.info-card {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
}
.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 1rem;
}

.info-row {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .65rem 0; border-bottom: 1px solid rgba(192,82,43,.08);
  font-size: .9rem;
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row .ico { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.info-row strong { display: block; font-weight: 500; color: var(--charcoal); font-size: .85rem; }
.info-row span { color: var(--warm-mid); font-size: .82rem; line-height: 1.5; }

.status-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #EDF7EC; color: var(--sage);
  font-size: .76rem; font-weight: 500;
  padding: .28rem .7rem; border-radius: 20px; margin-top: .4rem;
}
.status-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); animation: pulse 2s infinite;
}

/* ─── FAQ accordion ─── */
.faq-item {
  padding: .75rem 0; border-bottom: 1px solid rgba(192,82,43,.08); cursor: pointer;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: .9rem; font-weight: 500; color: var(--charcoal);
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  user-select: none;
}
.faq-q::after { content: '+'; color: var(--rust); font-size: 1.1rem; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: .83rem; color: var(--warm-mid); line-height: 1.65;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .2s;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: .55rem; }

/* ─── Article card ─── */
.article-card {
  background: white; border: 1px solid var(--border);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  text-decoration: none; color: var(--charcoal);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.article-card:hover {
  border-color: var(--ember);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.article-card .ac-ico { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.article-card .ac-title { font-size: .92rem; font-weight: 500; margin-bottom: .25rem; }
.article-card .ac-meta  { font-size: .78rem; color: var(--warm-mid); }
.article-card .ac-arrow { margin-left: auto; color: var(--rust); font-size: 1rem; opacity: 0; transition: opacity .2s, transform .2s; }
.article-card:hover .ac-arrow { opacity: 1; transform: translateX(3px); }

/* ─── Search bar ─── */
.search-wrap {
  position: relative; max-width: 560px; margin: 0 auto 2rem;
}
.search-wrap input {
  padding-left: 3rem; font-size: 1rem; border-radius: 50px;
  border: 1.5px solid var(--border);
}
.search-wrap::before {
  content: '🔍'; position: absolute; left: 1.1rem;
  top: 50%; transform: translateY(-50%); font-size: .9rem; pointer-events: none;
}

/* ─── Page sections ─── */
.page-section {
  max-width: 1100px; margin: 0 auto; padding: 3.5rem 3rem;
}
.page-section.narrow { max-width: 760px; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: .4rem;
}
.section-sub { color: var(--warm-mid); font-size: .92rem; margin-bottom: 2rem; line-height: 1.6; }

/* ─── Two-col layout ─── */
.two-col {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 3rem; align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* ─── Success state ─── */
.success-msg { display: none; text-align: center; padding: 3rem 2rem; animation: fadeUp .4s ease both; }
.success-msg .s-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-msg h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--charcoal); margin-bottom: .5rem; }
.success-msg p { color: var(--warm-mid); font-size: .95rem; line-height: 1.65; }

/* ─── Footer ─── */
footer {
  text-align: center; padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--warm-mid); font-size: .8rem;
}
footer a { color: var(--rust); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .35; }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}
.anim-1 { animation: fadeUp .5s .05s ease both; }
.anim-2 { animation: fadeUp .5s .12s ease both; }
.anim-3 { animation: fadeUp .5s .19s ease both; }
.anim-4 { animation: fadeUp .5s .26s ease both; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  nav { padding: 1.1rem 1.5rem; }
  nav ul { display: none; }
  nav ul.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--border); gap: 1rem; }
  .nav-hamburger { display: flex; }
  .quick-links { padding: 1.75rem 1.25rem; gap: .6rem; }
  .ql-card { padding: .7rem 1rem; }
  .hero { padding: 3.5rem 1.5rem 2.75rem; }
  .two-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-section { padding: 2.5rem 1.5rem; }
  .breadcrumb { padding: .8rem 1.5rem; }
}

/* ─── Utility ─── */
.note { font-size: .8rem; color: var(--warm-mid); text-align: center; margin-top: .65rem; }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 500;
  padding: .2rem .65rem; border-radius: 20px; letter-spacing: .04em;
}
.pill-green { background: #EDF7EC; color: var(--sage); }
.pill-orange { background: #FFF0DC; color: var(--ember); }
.pill-red { background: #FDECEA; color: #C0392B; }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
