/* =========================================================
   Whole Hearts Therapy — Design System
   Vibe: compassionate, grounding, trustworthy, warm-yet-clinical
   ========================================================= */

:root {
  /* Color palette — warm sage + sand + soft terracotta */
  --sage-900: #2f3a2e;
  --sage-700: #455442;
  --sage-600: #5c6e58;
  --sage-500: #7a8c74;
  --sage-300: #aebca8;
  --sage-100: #dde4d9;
  --sage-50:  #eef1ea;

  --sand-50:  #fbf8f3;
  --sand-100: #f4ede2;
  --sand-200: #e9ddca;

  --clay-600: #b86b4b;
  --clay-500: #c97b5a;
  --clay-100: #f3ddd1;

  --ink:      #2c3029;
  --ink-soft: #515a4c;
  --muted:    #7c8475;
  --line:     #e3ddd0;
  --white:    #ffffff;

  --shadow-sm: 0 1px 3px rgba(47,58,46,.06), 0 1px 2px rgba(47,58,46,.04);
  --shadow-md: 0 6px 24px rgba(47,58,46,.08), 0 2px 6px rgba(47,58,46,.05);
  --shadow-lg: 0 18px 48px rgba(47,58,46,.12);

  --radius:   14px;
  --radius-lg:24px;
  --radius-pill: 999px;

  --maxw: 1140px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-50);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--clay-600); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--sage-900); line-height: 1.15; font-weight: 500; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
p { margin: 0 0 1.1em; color: var(--ink-soft); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--sand { background: var(--sand-100); }
.section--sage { background: var(--sage-50); }
.section--dark { background: var(--sage-900); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--sage-100); }
.center { text-align: center; }
.measure { max-width: 720px; }
.measure-narrow { max-width: 600px; }
.center.measure, .center .measure { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay-600);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--sage-300); }
.lead { font-size: 1.18rem; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
  text-align: center;
}
.btn-primary { background: var(--clay-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--sage-700); color: #fff; }
.btn-secondary:hover { background: var(--sage-900); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--sage-700); border-color: var(--sage-300); }
.btn-ghost:hover { background: var(--sage-50); color: var(--sage-900); border-color: var(--sage-500); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 1.3rem; color: var(--sage-900); font-weight: 600; white-space: nowrap; }
.brand:hover { color: var(--sage-900); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sage-500), var(--sage-700));
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
}
.brand-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-weight: 500; font-size: .96rem; color: var(--ink-soft);
  padding: 9px 12px; border-radius: var(--radius-pill); white-space: nowrap; display: block;
}
.nav-links a:hover, .nav-links a.active { color: var(--sage-900); background: var(--sage-50); }
.nav-cta { margin-left: 10px; }

/* Dropdown submenu */
.nav-links .has-sub { position: relative; }
.has-sub > a::after { content: "\25BE"; font-size: .95em; margin-left: 6px; opacity: .8; vertical-align: 1px; }
.subnav { list-style: none; margin: 0; padding: 12px 6px 6px; position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--sand-50); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease; z-index: 60; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav li { display: block; }
.subnav a { display: block; padding: 10px 14px; white-space: nowrap; border-radius: 9px; font-size: .96rem; color: var(--ink-soft); }
.subnav a:hover { background: var(--sage-50); color: var(--sage-900); }
@media (max-width: 900px) {
  .has-sub > a::after { display: none; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 2px 0 2px 14px; min-width: 0; }
  .subnav a { padding: 11px 14px; font-size: 1.02rem; }
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--sage-900);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--sand-50); border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .28s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--sage-50) 0%, var(--sand-100) 60%, var(--sand-200) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 96px 0; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-art {
  position: relative; border-radius: var(--radius-lg); min-height: 420px;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(201,123,90,.18), transparent 55%),
    radial-gradient(120% 100% at 90% 80%, rgba(122,140,116,.35), transparent 55%),
    linear-gradient(150deg, var(--sage-300), var(--sage-600));
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; place-items: center;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art-quote {
  font-family: var(--font-head); color: #fff; font-size: 1.5rem; line-height: 1.4;
  padding: 40px; text-align: center; text-shadow: 0 1px 16px rgba(47,58,46,.25);
}
.hero-art-quote span { display: block; font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 18px; opacity: .85; }

/* Hero animated affirmation */
.hero-affirm { text-align: center; padding: 40px 32px; color: #fff; width: 100%; }
.hero-affirm-top, .hero-affirm-bottom { display: block; font-family: var(--font-body); font-size: 1.15rem; font-weight: 500; opacity: .92; text-shadow: 0 1px 12px rgba(47,58,46,.25); }
.hero-affirm-word {
  display: block; font-family: var(--font-head); font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.1; margin: 14px 0;
  color: #fff; text-shadow: 0 2px 18px rgba(47,58,46,.3);
  transition: opacity .6s ease, transform .6s ease; min-height: 1.2em;
}
.hero-affirm-word.is-out { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .hero-affirm-word { transition: none; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
  .hero-art { min-height: 300px; order: -1; }
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner { background: linear-gradient(160deg, var(--sage-50), var(--sand-100)); padding: 72px 0 60px; border-bottom: 1px solid var(--line); }
.page-banner .eyebrow { margin-bottom: 12px; }
.page-banner h1 { margin-bottom: 14px; text-wrap: balance; }
.page-banner p { max-width: 600px; font-size: 1.15rem; text-wrap: pretty; }
.banner-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.banner-grid .banner-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 11; }
.banner-grid .banner-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .banner-grid { grid-template-columns: 1fr; gap: 28px; } .banner-grid .banner-art { display: none; } }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 22px 0; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500; color: var(--sage-700); }
.trust-item svg { width: 20px; height: 20px; color: var(--clay-500); flex: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; margin-bottom: 16px; }
.card .card-link { margin-top: auto; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sage-50);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--sage-700);
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg); min-height: 360px;
  background: linear-gradient(150deg, var(--sage-300), var(--sage-600));
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff; padding: 32px; text-align: center;
}
.split-media.alt { background: linear-gradient(150deg, var(--clay-100), var(--clay-500)); }
.split-media .glyph { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.45; text-shadow: 0 1px 14px rgba(47,58,46,.2); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: -1; }
  .split-media { min-height: 240px; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.step-num {
  counter-increment: step; width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-700); color: #fff; font-family: var(--font-head);
  font-size: 1.4rem; display: grid; place-items: center;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 0; }

/* ---------- Team ---------- */
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.team-photo { aspect-ratio: 4 / 5; background: linear-gradient(150deg, var(--sage-300), var(--sage-600)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 3rem; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.team-body { padding: 28px 30px 32px; }
.team-body h3 { margin-bottom: 2px; }
.team-role { color: var(--clay-600); font-weight: 600; font-size: .92rem; letter-spacing: .04em; margin-bottom: 16px; }
.badge {
  display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  color: var(--sage-700); background: var(--sage-50); border: 1px solid var(--sage-100);
  padding: 4px 12px; border-radius: var(--radius-pill); margin: 0 6px 8px 0;
}
.badge--clay { color: var(--clay-600); background: var(--clay-100); border-color: var(--clay-100); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 760px){ .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.2rem; margin: 0 0 6px; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.price-grid--badged .price-card { padding-top: 44px; }
.price { font-family: var(--font-head); font-size: 2.6rem; color: var(--sage-900); margin: 8px 0 2px; }
.price small { display:block; font-family: var(--font-body); font-size: .85rem; color: var(--muted); font-weight:500; }

/* ---------- Insurance logos ---------- */
.ins-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ins-chip { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 28px; font-weight: 600; color: var(--sage-700); box-shadow: var(--shadow-sm); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; padding: 4px 8px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-size: 1.12rem; color: var(--sage-900); padding: 18px 16px; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--clay-500); font-family: var(--font-body); transition: transform .2s; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 16px 18px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--sage-700), var(--sage-900)); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: var(--sage-100); max-width: 560px; margin: 0 auto 26px; }
@media (max-width: 600px){ .cta-band { padding: 40px 24px; } }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px){ .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--sage-900); margin-bottom: 7px; }
.field .req { color: var(--clay-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-family: var(--font-body); font-size: 1rem;
  color: var(--ink); background: var(--sand-50); border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 3px var(--sage-50); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-help { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 4px; }
.form-success { display: none; background: var(--sage-50); border: 1px solid var(--sage-100); color: var(--sage-900); border-radius: var(--radius); padding: 28px; text-align: center; }
.form-success.show { display: block; }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sage-50); color: var(--sage-700); display: grid; place-items: center; flex: none; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--sage-900); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }

/* ---------- Inclusivity band ---------- */
.pride-band { position: relative; background: var(--sage-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.pride-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, #e0584f 0%, #e8924f 18%, #e8c64f 36%, #5fa86a 54%, #4f8fd0 72%, #7a5fb0 90%); }
.pride-band .container { padding-top: 64px; padding-bottom: 64px; text-align: center; }
.pride-flag-lg { font-size: 4rem; line-height: 1; display: block; margin-bottom: 16px; }
.pride-flag-svg { width: 104px; height: auto; display: block; margin: 0 auto 18px; border-radius: 6px; box-shadow: var(--shadow-sm); }
.pride-band h2 { margin-bottom: 14px; }
.pride-band p { max-width: 680px; margin: 0 auto; }
.pride-chips { margin-top: 22px; }

/* ---------- Notice banner ---------- */
.notice { background: var(--clay-100); color: var(--clay-600); text-align: center; font-weight: 600; font-size: .92rem; padding: 10px 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-900); color: var(--sage-100); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: var(--sage-100); display: block; margin-bottom: 10px; font-size: .96rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 1.25rem; color: #fff; margin-bottom: 14px; }
.footer-brand .brand-mark { box-shadow: inset 0 0 0 3px rgba(255,255,255,.2); }
.footer-about p { color: var(--sage-300); font-size: .94rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; color: var(--sage-300); }
.footer-bottom a { display: inline; color: var(--sage-300); }
.pride { font-size: .85rem; }
.pride-flag-inline { width: 24px; height: auto; display: inline-block; vertical-align: -5px; border-radius: 2px; margin-right: 7px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.pill-tag { display:inline-block; background: var(--sage-50); color: var(--sage-700); border:1px solid var(--sage-100); padding:6px 14px; border-radius: var(--radius-pill); font-size:.85rem; font-weight:600; margin:0 6px 8px 0; }
.divider { height:1px; background: var(--line); border:0; margin: 0; }
.anchor-offset { scroll-margin-top: 96px; }
