/* ============================================================
   Wald Behavioral Health Services — styles.css
   Aesthetic: warm Mediterranean daylight, calm, editorial.
   See DESIGN.md. Palette: eucalyptus / linen / cypress / blush.
   ============================================================ */

:root {
  /* Palette */
  --eucalyptus: #5E7C6B;        /* fresh brand green — decorative fills only */
  --eucalyptus-deep: #4A6354;   /* text-bearing green (AA on linen, 6.18) */
  --eucalyptus-deeper: #3C5244; /* button hover */
  --cypress: #2C3A33;
  --linen: #FBF8F2;
  --oat: #F2ECE0;
  --oat-deep: #EAE1D1;
  --blush: #D8A296;
  --sea-glass: #A9C3B6;
  --slate-bark: #43504A;
  --driftwood: #6F6A5C;         /* AA on linen, 5.09 (darkened from #8A8475) */

  --text: var(--slate-bark);
  --heading: var(--cypress);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape / depth */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px -18px rgba(44, 58, 51, 0.35);
  --shadow-lift: 0 18px 44px -22px rgba(44, 58, 51, 0.45);
  --ring: 0 0 0 3px rgba(94, 124, 107, 0.35);

  /* Spacing rhythm */
  --section-y: clamp(4rem, 9vw, 7rem);
  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--eucalyptus-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cypress); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Sticky header offset for in-page anchors */
section[id] { scroll-margin-top: 90px; }
/* High-contrast focus on the dark contact card */
.contact-card a:focus-visible,
.contact-card .btn:focus-visible { outline-color: var(--linen); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cypress);
  color: var(--linen);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: var(--linen); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--oat { background: var(--oat); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eucalyptus-deep);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
/* Signature eucalyptus-leaf mark — adopts the eyebrow's own colour via currentColor */
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 0.9rem;
  background: currentColor;
  -webkit-mask: url(../img/leaf.svg) left center / contain no-repeat;
  mask: url(../img/leaf.svg) left center / contain no-repeat;
  flex: 0 0 auto;
  opacity: 0.9;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { color: var(--text); font-size: 1.075rem; }
.lead { font-size: 1.18rem; color: var(--slate-bark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease, color .25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--eucalyptus-deep); color: var(--linen); box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--eucalyptus-deeper); color: var(--linen); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; color: var(--cypress); border-color: rgba(44,58,51,0.25); }
.btn--ghost:hover { border-color: var(--eucalyptus); color: var(--eucalyptus-deep); transform: translateY(-2px); }
.btn--light { background: var(--linen); color: var(--cypress); }
.btn--light:hover { background: #fff; color: var(--cypress); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--oat-deep);
  box-shadow: 0 6px 24px -20px rgba(44,58,51,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--cypress);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--cypress); }
.brand .mark { flex: 0 0 auto; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--driftwood);
  font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-bark);
  text-decoration: none;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--blush);
  transition: width .25s ease;
}
.nav a:hover { color: var(--cypress); }
.nav a:hover::after { width: 100%; }
.header-cta { display: inline-flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(44,58,51,0.2);
  border-radius: var(--radius-sm);
  width: 46px; height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--cypress);
  position: relative;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Key-word highlights ---------- */
/* Clean highlighter band — sits across the lower third of the glyphs.
   .mark (sea-glass) for structural heading words; .hl (blush) for human/
   condition keywords in body copy. box-decoration-break keeps it clean on wrap. */
.mark {
  background: linear-gradient(180deg, transparent 58%, rgba(169, 195, 182, 0.55) 0);
  padding: 0 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl {
  font-weight: 600;
  color: var(--cypress);
  background: linear-gradient(180deg, transparent 62%, rgba(216, 162, 150, 0.42) 0);
  padding: 0 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Hero (full-bleed image, text overlay) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(90vh, 740px);
  padding-block: clamp(4rem, 10vh, 7rem);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 44rem; }

/* Background image + legibility scrim — shared by hero + page-hero overlays */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--cypress); }
/* darken + enrich the photo so light text stays legible over bright sky */
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: brightness(0.66) saturate(1.08); }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 28, 24, 0.92) 0%, rgba(20, 28, 24, 0.74) 48%, rgba(20, 28, 24, 0.52) 100%),
    linear-gradient(0deg, rgba(20, 28, 24, 0.6), rgba(20, 28, 24, 0) 60%);
}
/* home hero: sit the copy over the denser, darker fronds (not the bright sky) */
.hero .hero-bg img { object-position: 50% 70%; }

.hero-copy h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
  color: var(--linen);
}
.hero-copy h1 .accent { font-style: italic; color: var(--sea-glass); }
.hero-copy .lead { max-width: 36rem; margin-bottom: 1.75rem; color: rgba(251, 248, 242, 0.92); }
.hero .eyebrow { color: var(--sea-glass); }
.hero .eyebrow::before { background: var(--sea-glass); opacity: 0.75; }
/* highlight bands legible on the dark image */
.hero .mark { background: linear-gradient(180deg, transparent 58%, rgba(169, 195, 182, 0.45) 0); }
.hero .hl { color: var(--linen); background: linear-gradient(180deg, transparent 62%, rgba(216, 162, 150, 0.5) 0); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--linen);
  text-decoration: none;
  font-size: 1.05rem;
}
.hero-phone:hover { color: var(--sea-glass); }
.hero-phone svg { color: var(--sea-glass); }
.hero-reassure {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.92rem;
  color: rgba(251, 248, 242, 0.88);
}
.hero-reassure li { list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-reassure li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sea-glass); }

.calm-rings {
  position: absolute;
  inset: auto -10% -12% auto;
  width: 72%;
  z-index: 1;
  color: var(--sea-glass);
  opacity: 0.8;
  pointer-events: none;
}

/* ---------- Trust bar ---------- */
.trust {
  border-top: 1px solid var(--oat-deep);
  border-bottom: 1px solid var(--oat-deep);
  background: var(--linen);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  padding-block: 1.5rem;
  text-align: center;
}
.trust-item {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--slate-bark);
  text-transform: none;
}
.trust-item b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--cypress); font-weight: 500; letter-spacing: 0; }
.trust-sep { width: 1px; height: 32px; background: var(--oat-deep); }

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.card {
  background: var(--linen);
  border: 1px solid var(--oat-deep);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  height: 100%;
}
.section--oat .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--sea-glass); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transform: none; } }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--oat);
  display: grid; place-items: center;
  color: var(--eucalyptus-deep);
  margin-bottom: 1.1rem;
}
.section--oat .card-icon { background: var(--oat); }
.card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.card p { font-size: 0.98rem; margin-bottom: 0; color: var(--text); }
.card-list { margin-top: 0.9rem; }
.card-list li { list-style: none; font-size: 0.93rem; color: var(--slate-bark); padding-left: 1.4rem; position: relative; margin-bottom: 0.35rem; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--sea-glass); }

/* ---------- Conditions chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--linen);
  border: 1px solid var(--oat-deep);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.25rem;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--cypress);
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.section--oat .chip { background: #fff; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blush); }
.chip:hover { border-color: var(--eucalyptus); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .chip:hover { transform: none; } }

/* ---------- Image-topped cards ---------- */
.card.has-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--oat); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card.has-media:hover .card-media img { transform: scale(1.045); }
.card.has-media .card-icon { display: none; }   /* photo replaces the icon */
.card-body { padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; flex: 1 1 auto; }
.card-body h3 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .card.has-media:hover .card-media img { transform: none; } }

/* ---------- Reusable wide feature image ---------- */
.feature-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 7;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-cap {
  position: absolute;
  left: clamp(1.1rem, 3vw, 2rem); bottom: clamp(1rem, 2.5vw, 1.5rem);
  z-index: 2;
  max-width: 28rem;
  color: var(--linen);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  text-shadow: 0 1px 16px rgba(20,28,24,0.5);
}
.feature-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,28,24,0.55), rgba(20,28,24,0) 55%);
}
@media (max-width: 640px) { .feature-img { aspect-ratio: 4 / 3; } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--eucalyptus) 0%, var(--eucalyptus-deep) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.about-portrait { margin: 0; max-width: 380px; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* soft scrim so the badge stays legible over the photo */
.about-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(44, 58, 51, 0.45));
  pointer-events: none;
}
.portrait-name {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 3;
  background: rgba(251, 248, 242, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cypress);
}
.portrait-name span { color: var(--driftwood); font-style: italic; }
.portrait-badge {
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.9rem;
  z-index: 3;
  background: rgba(251, 248, 242, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.8rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.portrait-badge .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--oat); display: grid; place-items: center; color: var(--eucalyptus-deep); flex: 0 0 auto; }
.portrait-badge strong { display: block; font-size: 0.92rem; color: var(--cypress); font-weight: 600; line-height: 1.2; }
.portrait-badge span { font-size: 0.78rem; color: var(--driftwood); }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.creds { margin-top: 1.75rem; display: grid; gap: 1.1rem; }
.cred {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.cred-dot { width: 38px; height: 38px; border-radius: 11px; background: var(--oat); color: var(--eucalyptus-deep); display: grid; place-items: center; flex: 0 0 auto; }
.cred b { color: var(--cypress); font-weight: 600; display: block; font-size: 0.98rem; }
.cred span { font-size: 0.92rem; color: var(--driftwood); }

/* ---------- Telehealth panel ---------- */
.telehealth-panel {
  position: relative;
  overflow: hidden;
  background: var(--linen);
  border: 1px solid var(--oat-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.telehealth-panel .calm-rings {
  inset: auto -16% -22% auto;
  width: 46%;
  opacity: 0.5;
  z-index: 0;
}
.telehealth-copy { position: relative; z-index: 1; }
.telehealth-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.telehealth-copy p { color: var(--text); }
.telehealth-stats { position: relative; z-index: 1; display: grid; gap: 1rem; }
.th-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  background: var(--oat);
  border: 1px solid var(--oat-deep);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.th-ic {
  grid-row: 1 / 3;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--linen);
  color: var(--eucalyptus-deep);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.th-stat b { font-family: var(--font-display); font-size: 1.6rem; color: var(--eucalyptus-deep); line-height: 1; align-self: end; }
.th-stat span { font-size: 0.86rem; color: var(--driftwood); align-self: start; }

/* ---------- Approach steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step .num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--linen);
  background: var(--eucalyptus-deep);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: 0.96rem; margin-bottom: 0; }

/* ---------- CTA / contact ---------- */
.contact-card {
  background: var(--cypress);
  color: var(--linen);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.contact-card .calm-rings { color: var(--eucalyptus); opacity: 0.4; inset: -20% -18% auto auto; width: 50%; }
.contact-card h2 { color: var(--linen); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.contact-card p { color: rgba(251,248,242,0.8); }
.contact-info { display: grid; gap: 1.1rem; margin-top: 1.5rem; position: relative; z-index: 2; }
.contact-info a { color: var(--linen); }
.contact-line { display: flex; align-items: center; gap: 0.85rem; font-size: 1rem; }
.contact-line .ci { width: 40px; height: 40px; border-radius: 11px; background: rgba(169,195,182,0.18); color: var(--sea-glass); display: grid; place-items: center; flex: 0 0 auto; }
.contact-line b { color: var(--linen); font-weight: 600; display: block; }
.contact-line span { color: rgba(251,248,242,0.7); font-size: 0.85rem; }

/* form */
.intake { position: relative; z-index: 2; background: var(--linen); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.intake h3 { font-size: 1.35rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--cypress); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem; /* >=16px: no iOS auto-zoom */
  color: var(--cypress);
  background: #fff;
  border: 1.5px solid var(--oat-deep);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--eucalyptus);
  box-shadow: var(--ring);
}
.field textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--driftwood); margin-top: 0.25rem; }
/* Beat `.contact-card p` (0,1,1) so notes on the white form stay readable. */
.intake .form-note { color: var(--driftwood); }
.intake .form-note strong { color: var(--cypress); }
.form-success {
  display: none;
  background: var(--oat);
  border: 1px solid var(--sea-glass);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: var(--cypress);
  font-size: 0.95rem;
}
.form-success.is-visible { display: block; }
.field .req { color: var(--blush); font-weight: 700; }
.field .opt { color: var(--driftwood); font-weight: 400; font-size: 0.8rem; }

/* No-JS safety: the JS-driven mailto form would otherwise GET-submit PHI to
   the page URL. Without JS, hide the form and show a call-only fallback. */
.intake-fallback { display: none; text-align: center; }
.intake-fallback h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.intake-fallback p { font-size: 0.96rem; margin-bottom: 1.25rem; }
html:not(.js) #intake-form { display: none; }
html:not(.js) .intake-fallback { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--oat); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--oat-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--driftwood); font-weight: 600; margin-bottom: 1rem; }
.footer-grid a { color: var(--slate-bark); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--cypress); }
.footer-grid ul li { list-style: none; margin-bottom: 0.6rem; }
.footer-about p { font-size: 0.95rem; color: var(--slate-bark); max-width: 26rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--oat-deep);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--driftwood);
}
.disclaimer { font-size: 0.8rem; color: var(--driftwood); max-width: 60rem; margin-top: 1rem; }

/* ---------- Scroll reveal (progressive enhancement) ----------
   Only hidden when JS is active (html.js). No-JS users see everything. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Mobile horizontal scrollers ---------- */
/* A subtle swipe cue under section heads, mobile-only */
.scroll-cue {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--eucalyptus-deep);
  margin: 0.75rem 0 0;
}
@media (max-width: 640px) {
  .scroll-cue { display: block; }

  /* Plain (non-carousel) card/step grids go single-column on phones —
     fixes the cramped, overflowing 2-up grid on services.html & telehealth.html. */
  .grid-3:not(.scroller),
  .steps:not(.scroller) { grid-template-columns: 1fr; }

  .portrait-badge { left: 1rem; right: 1rem; bottom: 1rem; }

  /* Turn the card grids + steps into edge-bleeding scroll-snap rows */
  .grid-3.scroller,
  .steps.scroller {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;        /* lock out vertical drift inside the carousel */
    touch-action: pan-x;       /* horizontal swipe = carousel, vertical = page */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.5rem var(--gutter) 0.75rem;
    scroll-padding-left: var(--gutter);
  }
  .grid-3.scroller::-webkit-scrollbar,
  .steps.scroller::-webkit-scrollbar,
  .chips.scroller::-webkit-scrollbar { display: none; }

  /* height:auto lets flex align-items:stretch equalize the cards. (.card has
     height:100% for the desktop grid, which can't resolve in the flex row and
     would otherwise leave the cards uneven.) */
  .grid-3.scroller > .card { flex: 0 0 82%; scroll-snap-align: start; height: auto; align-self: stretch; }
  .steps.scroller > .step  { flex: 0 0 76%; scroll-snap-align: start; }

  /* Conditions: single-row chip scroller */
  .chips.scroller {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 0.5rem;
  }
  .chips.scroller .chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }

  /* Focusable scrollers get the standard focus ring */
  .scroller:focus-visible { outline: 2px solid var(--eucalyptus); outline-offset: 4px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .telehealth-panel, .contact-card { grid-template-columns: 1fr; }
  .about-portrait { max-width: 340px; margin-inline: auto; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* Slightly taller scrim weighting + min-height tuning for overlay heroes on phones */
  .hero { min-height: 78vh; }
}
@media (max-width: 780px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .trust-sep { display: none; }
  .portrait-badge { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
}

/* ---------- Footer: stack cleanly on small screens ---------- */
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
  .footer-about { grid-column: 1 / -1; }       /* brand block spans full width */
  .footer-about p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.6rem; text-align: left; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Mobile nav drawer ----------
   Body-level sibling (not inside the backdrop-filter header, which would
   become the containing block for position:fixed). Shown on mobile, hidden
   on desktop via min-width (order-independent). visibility:hidden keeps the
   closed links out of the tab order. */
.mobile-nav {
  display: block;
  position: fixed;
  inset: 0;                                   /* full-screen overlay */
  background: var(--linen);
  padding: calc(72px + 1.75rem) var(--gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  z-index: 95;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
@media (min-width: 781px) { .mobile-nav { display: none; } }
.mobile-nav a {
  display: block;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cypress);
  text-decoration: none;
  border-bottom: 1px solid var(--oat-deep);
}
.mobile-nav a.btn {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--linen);
  border-bottom: none;
  width: 100%;
  margin-top: 1.75rem;
  text-align: center;
}
body.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mobile-nav { transition: opacity .15s ease; transform: none; } }

/* ============================================================
   Multipage additions — active nav, page heroes, CTA band,
   home preview helpers. Self-contained / responsive via clamp.
   ============================================================ */

/* ---------- Active nav state ---------- */
.nav a[aria-current="page"] { color: var(--cypress); }
.nav a[aria-current="page"]::after { width: 100%; }
.mobile-nav a[aria-current="page"] { color: var(--eucalyptus-deep); }

/* ---------- Interior page hero (full-bleed image, text overlay) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(240px, 38vh, 380px);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; max-width: 18ch; color: var(--linen); }
.page-hero .lead { max-width: 42rem; margin-bottom: 0; color: rgba(251, 248, 242, 0.92); }
.page-hero .eyebrow { color: var(--sea-glass); }
.page-hero .eyebrow::before { background: var(--sea-glass); opacity: 0.75; }
.page-hero .accent { font-style: italic; color: var(--sea-glass); }
.page-hero .mark { background: linear-gradient(180deg, transparent 58%, rgba(169, 195, 182, 0.45) 0); }
/* heavier scrim on interior banners so the short copy stays crisp */
.page-hero .hero-bg::after {
  background: linear-gradient(90deg, rgba(26, 36, 31, 0.9) 0%, rgba(26, 36, 31, 0.72) 50%, rgba(26, 36, 31, 0.52) 100%);
}

/* ---------- Section "view all" link ---------- */
.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--eucalyptus-deep);
  text-decoration: none;
}
.preview-link::after { content: "\2192"; transition: transform .25s ease; }
.preview-link:hover { color: var(--cypress); }
.preview-link:hover::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .preview-link:hover::after { transform: none; } }

/* ---------- Reusable CTA band (interior pages + home) ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--cypress);
  color: var(--linen);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.cta-band .calm-rings { color: var(--eucalyptus); opacity: 0.4; inset: -25% -15% auto auto; width: 46%; }
.cta-band-copy { position: relative; z-index: 2; max-width: 34rem; }
.cta-band h2 { color: var(--linen); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(251,248,242,0.82); margin-bottom: 0; }
.cta-band-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta-band .hero-phone { color: var(--linen); }
.cta-band .hero-phone:hover { color: var(--sea-glass); }
.cta-band .hero-phone svg { color: var(--sea-glass); }

/* ---------- Home: about preview ---------- */
.about-preview { align-items: center; }
.about-preview .about-copy p { margin-bottom: 0; }

/* ---------- Phone-under-button alignment on phones ----------
   Placed last so it beats the .cta-band-actions base (same specificity).
   When the phone link drops beneath the pill button, stack them left-aligned and
   indent the phone so its icon lines up under the button LABEL, not the pill edge. */
@media (max-width: 460px) {
  .hero-actions,
  .cta-band-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-actions .hero-phone,
  .cta-band-actions .hero-phone { padding-left: 1.6rem; }   /* = .btn horizontal padding */
}

/* ============================================================
   EDITORIAL BOTANICAL LAYER
   Signature, hand-crafted details that lift the site beyond a
   generic template: paper grain, eucalyptus-sprig motif, an
   editorial statement moment, drop cap, and leaf dividers.
   ============================================================ */

/* ---- Subtle paper grain (warmth; kills the flat 'AI' look) ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.27 0 0 0 0 0.31 0 0 0 0 0.27 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* keep header/menu/drawer above the grain */
.site-header, .mobile-nav { z-index: 100; }

/* ---- Signature sprig watermark (masked, recolourable, faint) ---- */
.sprig-mark {
  position: absolute;
  background: currentColor;
  -webkit-mask: url(../img/sprig.svg) center / contain no-repeat;
  mask: url(../img/sprig.svg) center / contain no-repeat;
  pointer-events: none;
}

/* ---- Leaf divider: hairline — leaf — hairline ---- */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  color: var(--eucalyptus);
}
.leaf-divider::before,
.leaf-divider::after {
  content: "";
  height: 1px;
  width: min(34vw, 220px);
  background: linear-gradient(90deg, transparent, var(--oat-deep));
}
.leaf-divider::after { background: linear-gradient(90deg, var(--oat-deep), transparent); }
.leaf-divider i {
  width: 1.9rem; height: 1.1rem;
  background: currentColor;
  -webkit-mask: url(../img/leaf.svg) center / contain no-repeat;
  mask: url(../img/leaf.svg) center / contain no-repeat;
  opacity: 0.85;
}

/* ---- Editorial statement moment (large Fraunces italic) ---- */
.statement {
  position: relative;
  overflow: hidden;
  background: var(--cypress);
  color: var(--linen);
}
.statement .container { position: relative; z-index: 2; }
.statement .sprig-mark { color: var(--sea-glass); opacity: 0.14; width: 230px; height: 600px; right: -3%; top: -16%; transform: rotate(8deg); }
.statement .eyebrow { color: var(--sea-glass); }
.statement-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0;
  color: var(--linen);
  text-wrap: balance;
}
.statement-quote .accent { color: var(--sea-glass); }
.statement-byline {
  margin-top: 1.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.7);
}

/* ---- Drop cap (editorial opening paragraph) ---- */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.6em;
  line-height: 0.82;
  float: left;
  margin: 0.06em 0.12em 0 0;
  color: var(--eucalyptus-deep);
}

/* ---- Section eyebrow index (quiet magazine numbering) ---- */
.eyebrow .idx {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05em;
  letter-spacing: 0;
  text-transform: none;
  margin-right: 0.1em;
}

/* ---- Contact card: faint sprig watermark in the corner ---- */
.contact-card .sprig-mark { color: var(--sea-glass); opacity: 0.12; width: 180px; height: 470px; left: -2%; bottom: -14%; transform: rotate(-10deg); }

/* ---- Hero vertical side-label + scroll cue (desktop) ---- */
.hero-aside {
  position: absolute;
  right: clamp(1rem, 3vw, 2.2rem);
  top: 50%;
  z-index: 1;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.62);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.hero-aside::after { content: ""; height: 56px; width: 1px; background: rgba(169,195,182,0.5); }
@media (max-width: 900px) { .hero-aside { display: none; } }

/* leaf divider sits a touch tighter on phones */
@media (max-width: 640px) {
  .leaf-divider::before, .leaf-divider::after { width: 22vw; }
  .statement-quote { max-width: none; }
}
