:root {
  --cream: #fbf6ef;
  --sand: #f1e4d3;
  --terracotta: #c65d3b;
  --terracotta-dark: #a4472a;
  --peach: #e48b63;
  --plum: #4a2545;
  --plum-deep: #2e1530;
  --sage: #8a9a7b;
  --sage-light: #dfe5d6;
  --ink: #2b1d24;
  --muted: #5e4d55;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(74, 37, 69, 0.25);
  --shadow-lg: 0 24px 50px -20px rgba(74, 37, 69, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, .h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; color: var(--plum-deep); }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: -0.02em; }
h1 em { font-style: italic; font-weight: 400; color: var(--terracotta); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--terracotta-dark); }
ul { padding: 0; }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--plum); color: var(--white); padding: .7rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--terracotta);
  background: var(--terracotta); color: var(--white); font: 700 1rem var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: var(--white); border-color: var(--plum); }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; }
.text-link { font-weight: 700; text-decoration: none; color: var(--terracotta-dark); }
.text-link:hover { text-decoration: underline; }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--terracotta-dark); margin-bottom: .8rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.page-hero .lead { max-width: 60ch; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--sand); box-shadow: 0 4px 20px -12px rgba(74,37,69,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--plum-deep); }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle .bar { width: 24px; height: 2px; background: var(--plum); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--sand); display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 1rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .7rem 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--terracotta-dark); }
.site-nav .btn { margin-top: .5rem; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; }
  .site-nav ul { flex-direction: row; align-items: center; padding: 0; gap: 1.75rem; }
  .site-nav a:not(.btn) { padding: .3rem 0; position: relative; }
  .site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
  .site-nav .btn { margin-top: 0; }
}

/* Hero */
.hero { padding: 3rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.hero-stats { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--plum); }
.hero-stats span { font-size: .9rem; color: var(--muted); }
.hero-svg { width: 100%; max-width: 440px; margin: 0 auto; }
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 8s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translate(8px, -6px); } }
@keyframes floatB { 50% { transform: translate(-8px, 6px); } }
@media (min-width: 860px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
}

.page-hero { padding: 4rem 0 2.5rem; background: radial-gradient(circle at 85% 20%, rgba(228,139,99,.22), transparent 45%), radial-gradient(circle at 10% 90%, rgba(138,154,123,.22), transparent 40%); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-tight { padding-top: 2rem; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--plum-deep); color: #f3e7ee; }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--peach); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--muted); }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.section-head.split h2 { margin-bottom: 0; }

/* Topics */
.topic-grid { list-style: none; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.topic { background: var(--white); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--sand); transition: transform .25s, box-shadow .25s, border-color .25s; }
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--peach); }
.topic-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sand); font-size: 1.5rem; margin-bottom: 1rem; }
.topic p { color: var(--muted); }
.topic a { font-weight: 700; text-decoration: none; }
.topic a:hover { text-decoration: underline; }

/* Card */
.card { background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); }
@media (min-width: 600px) { .card { padding: 2.5rem; } }

/* Quiz */
.quiz fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
.quiz legend { font-weight: 700; margin-bottom: .7rem; color: var(--plum-deep); }
.scale { display: flex; flex-wrap: wrap; gap: .5rem; }
.scale label { position: relative; cursor: pointer; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale label { padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid var(--sand); background: var(--cream); font-weight: 500; transition: all .2s; }
.scale label:hover { border-color: var(--peach); }
.scale label:has(input:checked) { background: var(--plum); color: var(--white); border-color: var(--plum); }
.scale label:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.quiz-result { margin-top: 1.5rem; }
.quiz-result:not(:empty) { padding: 1.5rem; border-radius: var(--radius); background: var(--sage-light); border-left: 5px solid var(--sage); animation: fadeUp .5s ease; }
.quiz-result h3 { margin-bottom: .4rem; }
.form-error, .field-error { color: #a3261b; font-size: .92rem; font-weight: 500; margin: .35rem 0 0; min-height: 0; }
.form-error:empty, .field-error:empty { display: none; }

/* Articles */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.article-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sand); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; scroll-margin-top: 100px; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card[hidden] { display: none; }
.art { height: 150px; position: relative; overflow: hidden; }
.art::before, .art::after { content: ""; position: absolute; border-radius: 50%; transition: transform .6s ease; }
.article-card:hover .art::before { transform: scale(1.12); }
.article-card:hover .art::after { transform: translateX(10px); }
.art-1 { background: linear-gradient(135deg, #f6c8ae, #e48b63); }
.art-1::before { width: 140px; height: 140px; background: var(--terracotta); left: 20%; top: 30px; opacity: .85; }
.art-1::after { width: 90px; height: 90px; background: var(--plum); right: 18%; top: 20px; opacity: .7; }
.art-2 { background: linear-gradient(135deg, var(--sage-light), var(--sage)); }
.art-2::before { width: 120px; height: 80px; border-radius: 40px; background: var(--cream); left: 15%; top: 30px; }
.art-2::after { width: 110px; height: 70px; border-radius: 35px; background: var(--plum); right: 15%; top: 60px; opacity: .85; }
.art-3 { background: linear-gradient(135deg, #e8d3e4, #7a4370); }
.art-3::before { width: 100px; height: 100px; background: var(--peach); left: 30%; top: 25px; }
.art-3::after { width: 100px; height: 100px; background: var(--cream); left: 48%; top: 25px; opacity: .6; }
.art-4 { background: linear-gradient(135deg, #fbe2cf, #c65d3b); }
.art-4::before { width: 180px; height: 180px; background: rgba(255,255,255,.35); left: -40px; top: -40px; }
.art-4::after { width: 70px; height: 70px; background: var(--plum-deep); right: 20%; bottom: 20px; }
.art-5 { background: linear-gradient(135deg, #d6e1ec, #4a2545); }
.art-5::before { width: 50px; height: 50px; background: var(--peach); left: 15%; top: 50px; }
.art-5::after { width: 50px; height: 50px; background: var(--sage-light); right: 15%; top: 50px; }
.art-6 { background: linear-gradient(135deg, var(--sand), var(--sage)); }
.art-6::before { width: 130px; height: 130px; background: var(--white); left: 35%; top: 10px; opacity: .7; }
.art-6::after { width: 40px; height: 40px; background: var(--terracotta); right: 25%; top: 30px; }
.article-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-body > p:not(.meta) { color: var(--muted); }
.article-body .text-link { margin-top: auto; }
.meta { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tag { background: var(--sand); color: var(--plum); padding: .2rem .7rem; border-radius: 999px; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
details summary { cursor: pointer; font-weight: 700; color: var(--terracotta-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
.article-body details { margin-top: auto; border-top: 1px solid var(--sand); padding-top: 1rem; }
.article-body details ul { margin: .8rem 0 0; padding-left: 1.2rem; color: var(--ink); font-size: .97rem; }
.article-body details li { margin-bottom: .5rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { font: 500 .95rem var(--font-body); padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--sand); background: var(--white); color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--peach); }
.chip.is-active { background: var(--plum); border-color: var(--plum); color: var(--white); }
.filter-count { color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }

.ask-column { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 6px solid var(--terracotta); }
@media (min-width: 600px) { .ask-column { padding: 3rem; } }
.ask-q { color: var(--muted); }

/* Testimonials */
.testimonials { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote { margin: 0; padding: 2rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); position: relative; }
.quote::before { content: "“"; position: absolute; top: -.2rem; left: 1.2rem; font-family: var(--font-display); font-size: 5rem; color: var(--peach); opacity: .5; line-height: 1; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; padding-top: 1rem; }
.quote figcaption { color: var(--peach); font-weight: 700; font-size: .92rem; }

/* CTA band */
.cta-band { display: grid; gap: 1.5rem; align-items: center; padding: 2.5rem 1.75rem; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--terracotta), #9e3f5b 60%, var(--plum)); color: var(--white); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #fbe9e0; margin-bottom: 0; }
.cta-band .btn { background: var(--white); color: var(--plum); border-color: var(--white); justify-self: start; }
.cta-band .btn:hover { background: var(--cream); }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.3fr 1fr; padding: 3.5rem; } .cta-band > .btn { justify-self: end; } }
.newsletter { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter input { flex: 1 1 200px; min-width: 0; padding: .85rem 1.2rem; border-radius: 999px; border: 2px solid transparent; font: 1rem var(--font-body); }
.newsletter input:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.form-msg { flex-basis: 100%; margin: .2rem 0 0 .5rem; font-weight: 700; color: var(--white); min-height: 1.4em; }

/* Pricing */
.pricing { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.price-card { background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; position: relative; transition: transform .25s, box-shadow .25s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--terracotta); box-shadow: var(--shadow); }
.badge { position: absolute; top: -14px; left: 2rem; background: var(--terracotta); color: var(--white); padding: .25rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; margin: 0; }
.price { color: var(--muted); }
.price span { font-family: var(--font-display); font-size: 2.6rem; color: var(--plum-deep); font-weight: 600; }
.checklist { list-style: none; margin: 0 0 1.75rem; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .55rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: .6rem; border-left: 3px solid var(--sage); border-bottom: 3px solid var(--sage); transform: rotate(-45deg); }
.price-card .btn { margin-top: auto; }

.steps { list-style: none; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--white); padding: 1.75rem; border-radius: var(--radius); }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--plum); color: var(--white); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1rem; }

.faq details { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin-bottom: .8rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--peach); }
.faq summary { color: var(--plum-deep); font-size: 1.05rem; }
.faq details p { margin: .9rem 0 0; color: var(--muted); }

/* About */
.story-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .story-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.values { list-style: none; margin: 0; display: grid; gap: 1rem; }
.values li { padding: 1.25rem 1.5rem; border-left: 4px solid var(--terracotta); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.values h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.values p { margin: 0; color: var(--muted); }
.team { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.person { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; text-align: center; transition: transform .25s; }
.person:hover { transform: translateY(-4px); }
.avatar { width: 120px; height: 120px; margin: 0 auto 1.25rem; border-radius: 50%; }
.role { color: var(--terracotta-dark); font-weight: 700; font-size: .92rem; }
.person p:last-child { color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--plum-deep); }
.optional, .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.hint { margin: .35rem 0 0; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--sand); border-radius: 12px; font: 1rem var(--font-body); color: var(--ink); background: var(--cream); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); background: var(--white); outline: none; box-shadow: 0 0 0 3px rgba(74,37,69,.15); }
.field [aria-invalid="true"] { border-color: #a3261b; }
.field.check { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; }
.field.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--plum); flex-shrink: 0; }
.field.check label { font-weight: 500; margin: 0; color: var(--ink); }
.contact-form .btn { margin-top: 1rem; }
.form-success { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--sage-light); border-left: 5px solid var(--sage); font-weight: 500; }
.form-success:focus { outline: none; }
.contact-aside { display: grid; gap: 1.5rem; }
.info-list { list-style: none; margin: 0; }
.info-list li { padding: .8rem 0; border-bottom: 1px solid var(--sand); }
.info-list li:last-child { border: 0; }
.info-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.crisis-card { background: var(--plum-deep); color: #f3e7ee; }
.crisis-card h2 { color: var(--white); }
.crisis-card ul { padding-left: 1.2rem; margin: 0; }
.crisis-card li { margin-bottom: .5rem; }

/* Footer */
.site-footer { background: var(--plum-deep); color: #d9c7d3; padding: 4rem 0 1.5rem; }
.site-footer .logo { color: var(--white); margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.footer-title { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--peach); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #f3e7ee; text-decoration: none; }
.site-footer a:hover { color: var(--peach); text-decoration: underline; }
.site-footer strong { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
