/* =============================================================================
   Behavioral Health Services - main.css
   Shared design system + base for all pages. "Warm Sanctuary" direction.
   Page agents: append PAGE-SPECIFIC sections after the sentinel at the very
   bottom of this file, inside a `/* ---- page: <name> ---- *​/` block. Do NOT
   edit the shared blocks above the sentinel.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. TOKENS (design custom properties — from DESIGN.md)
   -------------------------------------------------------------------------- */
:root {
  /* palette */
  --linen:      #F4F0E6;   /* page background */
  --linen-2:    #EDE7D9;   /* alternate section band */
  --ivory:      #FBF8F1;   /* cards, form fields, text on sage */
  --ink:        #2E3A2E;   /* headlines, near-black green */
  --body:       #4C574B;   /* body text */
  --sage:       #8A9B7D;   /* mid sage: bands, icons */
  --sage-deep:  #66795A;   /* links, sage-deep type */
  /* Footer only. Ivory on #66795A is 4.45:1, under the AA 4.5 floor, and the
     .92-opacity nav links land at 3.92:1. This is 5.91:1 body / 5.20:1 links. */
  --footer-bg:  #55654B;
  /* Buttons only. #66795A with ivory label is 4.45:1, just under the AA 4.5
     floor for normal text. This is 4.59:1 and visually indistinguishable. */
  --sage-btn:   #647757;
  --sage-tint:  #E6E8D9;   /* pale sage section tint */
  --terracotta: #C0764F;   /* RARE accent only */
  --line:       #D9D2C0;   /* hairline rules */

  /* type families */
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* rhythm */
  --section-y: clamp(64px, 9vw, 120px);   /* vertical section padding */
  --gutter:    clamp(20px, 5vw, 64px);    /* horizontal page gutter */
  --maxw:      1200px;                    /* content max width */
  --maxw-narrow: 760px;                   /* prose / centered headers */
  --radius:    14px;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* fixed header height so heroes can fill the rest of the viewport */
  --header-h: 76px;
}
@media (max-width: 1024px) { :root { --header-h: 64px; } }

/* -----------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body {
  /* never allow horizontal scroll. clip (not hidden) so position:sticky
     still works: overflow-x hidden turns body into a scroll container and
     silently kills the sticky header on mobile */
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}
/* lock page scroll while the full-screen menu is open */
body.menu-open { overflow: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 500; }

/* -----------------------------------------------------------------------------
   3. BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: .002em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { color: var(--body); }
p + p { margin-top: 1.1em; }
.caption { font-size: .9375rem; }
strong { font-weight: 600; color: var(--ink); }

/* eyebrow kicker */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--sage-deep);
}

/* -----------------------------------------------------------------------------
   4. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.wrap {                                   /* standard content container */
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
/* Second half of a stacked pair: the section above already paid the gap, so a
   full --section-y here reads as a hole. Must stay after .section (same
   specificity, source order decides). */
.section-flush-top { padding-top: 0; }
.bleed { width: 100%; }                   /* full-bleed band */
/* Zero-size <svg> that exists only to host <defs>/<filter>; out of flow so it
   cannot contribute a stray line box to the first section. */
.svg-defs { position: absolute; }

/* Vertical-rhythm utilities. Every one of these was an inline
   style="margin-top:..." on the condition pages until the 2026-07-29 cleanup;
   the VALUES are unchanged, they only moved here so page HTML carries no style
   attributes (see the CSP note in .claude-site-map.md). Named for the job they
   do, not the number, so a new page picks the right one by role:
     .mt-grid  head -> .grid beneath it
     .mt-cols  head -> .divided-cols beneath it
     .mt-note  head -> a trailing note paragraph
     .mt-block head -> a smaller two-column block
     .mt-head  a second .section-head stacked inside ONE <section>
     .mt-cta   a button row at the foot of a panel
     .mt-prose an intro .prose block under a heading                          */
.mt-grid  { margin-top: clamp(36px, 5vw, 60px); }
.mt-cols  { margin-top: clamp(40px, 5vw, 64px); }
.mt-note  { margin-top: clamp(40px, 5vw, 56px); }
.mt-block { margin-top: clamp(32px, 4vw, 52px); }
.mt-head  { margin-top: clamp(64px, 8vw, 104px); }
.mt-cta   { margin-top: 28px; }
.mt-prose { margin-top: 22px; }

/* responsive grid helpers */
.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   5. SECTION HEADER PATTERN (eyebrow -> serif title -> hairline/leaf divider)
   -------------------------------------------------------------------------- */
.section-head { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin-top: 18px; color: var(--body); }

/* hairline rule divider (44px) */
.rule { width: 44px; height: 2px; background: var(--sage); border: 0; margin: 20px auto 0; }
.rule-terra { background: var(--terracotta); }        /* rare accent variant */

/* small botanical leaf divider (svg baked as background) */
.leaf-divider {
  width: 40px; height: 22px; margin: 18px auto 0;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 26' fill='none' stroke='%238A9B7D' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M30 24V8'/%3E%3Cpath d='M30 13c-4-4-9-4-13-3 1 5 6 8 13 6z'/%3E%3Cpath d='M30 13c4-4 9-4 13-3-1 5-6 8-13 6z'/%3E%3Cpath d='M30 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6z' fill='%238A9B7D' stroke='none'/%3E%3C/svg%3E");
}
/* The sprig is baked in as a SAGE background-image, so on a sage band it has to
   be knocked back to white: brightness(0) flattens it to black, invert(1) turns
   that white, .7 stops it out-shouting the heading above it. Was an inline
   style="" on eleven pages before 2026-07-29. */
.on-sage .leaf-divider { filter: brightness(0) invert(1); opacity: .7; }

/* Left-aligned variant of either divider, for split headings that are not
   centered. Both .rule and .leaf-divider use a `margin: N auto 0` shorthand, so
   this MUST stay below both of them or the shorthand resets margin-left. */
.rule-left { margin-left: 0; }

/* -----------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  letter-spacing: .01em;
  color: var(--ivory);
  background: var(--sage-btn);
  padding: 14px 30px;
  border-radius: 6px;
  transition: background .25s var(--ease), transform .25s var(--ease);
  border: 1px solid transparent;
}
.btn:hover { background: #58694c; transform: translateY(-1px); }
.btn-ghost {
  color: var(--sage-deep);
  background: transparent;
  border: 1px solid var(--sage);
}
.btn-ghost:hover { background: rgba(138,155,125,.12); color: var(--ink); transform: translateY(-1px); }
/* ghost button on a sage band */
.on-sage .btn-ghost { color: var(--ivory); border-color: rgba(255,255,255,.5); }
.on-sage .btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--ivory); }
/* Solid button for use ON a sage band: sage-on-sage has no separation. */
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.text-link {                              /* underlined inline call/link */
  color: var(--sage-deep);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* -----------------------------------------------------------------------------
   6b. SKIP LINK (first focusable element in <body>, every page)
   Off-screen, never display:none / visibility:hidden, so it keeps its place in
   the tab order. position:fixed so body's overflow-x:clip cannot trap it and it
   adds no scroll area. z-index clears the sticky header (60) and the FAB (70).
   --sage-btn + --ivory is 4.58:1 (AA), and the pill is 4.27:1 on --linen.
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed; z-index: 100; left: 12px; top: -100px;
  font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .01em;
  color: var(--ivory); background: var(--sage-btn);
  padding: 12px 22px; border-radius: 6px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--ink); outline-offset: 2px; }
/* Motion off, affordance intact: the link still appears, it just does not slide. */
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

/* -----------------------------------------------------------------------------
   7. HEADER (sticky) + MOBILE FULL-SCREEN MENU
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244,240,230,.96);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(46,58,46,.05);      /* < 24px blur per contract */
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* brand mark */
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1; font-weight: 500; }
.brand-sub { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin-top: 3px; }

/* desktop nav */
.nav { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-family: var(--sans); font-size: 15px; color: var(--body);
  padding-bottom: 2px; position: relative;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
/* active nav item: 2px sage underline, offset 6px */
.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--sage);
  padding-bottom: 6px;
}
.nav .btn { padding: 10px 20px; font-size: .9rem; }

/* Desktop phone number (2026-07-29). Above 1180px the header showed a CTA pill
   and no number at all; for a healthcare practice the number is a trust signal,
   not just a conversion path. `.nav-tel` (the 42px icon) is the <=1180
   affordance and the two never render at the same time.
   THE 1320px GATE IS A MEASUREMENT, NOT A GUESS. Free space between the brand
   lockup and the nav, before this link existed: 49px at 1181, 102px at 1240,
   138px at 1280, 198px at 1366+ (the gutter stops growing at 1280 and
   .header-inner caps at 1340, so everything above 1366 is identical). The link
   costs 110px plus one 18px flex gap = 128px, so on paper it fits from ~1270.
   It does NOT, because that arithmetic assumes the webfonts loaded: with
   EB Garamond falling back to Georgia the brand lockup grows 265px -> 297px, and
   at 1280 that leaves -10px, i.e. the header surviving only by eating its own
   20px flex gap. Measured slack with fonts blocked: -10px at 1280, +10px at
   1300, +30px at 1320, +50px at 1366. 1320 is the first width with a real
   margin in the worst case, so that is the gate. Below it the link is
   display:none and the header is byte-identical to before this change, because a
   wrapped header is the exact failure section 9 of this file already exists to
   prevent. Do not lower this breakpoint without re-running the fallback-font
   measurement. */
.nav-tel-text {
  display: none;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  color: var(--ink);                    /* 10.5:1 on the header's linen; --sage-deep is 4.15:1 and fails AA */
  white-space: nowrap;
}
/* Colour cannot carry the hover state here (any lighter sage drops under AA),
   so it underlines, the same move the footer links make. */
.nav-tel-text:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1320px) { .nav-tel-text { display: inline-block; } }

/* hamburger (hidden on desktop) */
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease); position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

/* full-screen mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--linen);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 80px 24px 40px;
  overflow-y: auto; overscroll-behavior: contain;   /* no scroll bleed to the page */
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(1.6rem, 7vw, 2.1rem); color: var(--ink);
  padding: 10px 0; opacity: 0; transform: translateY(12px);
}
body.menu-open .mobile-menu a { animation: menuIn .5s var(--ease) forwards; }
.mobile-menu a[aria-current="page"] { color: var(--sage-deep); }
.mobile-menu a.btn {
  /* .mobile-menu a out-specifies .btn: restate the button look or it renders
     as dark serif text on the sage pill (Adam, 2026-07-13) */
  margin-top: 22px; opacity: 0; transform: translateY(12px);
  font-family: var(--sans); font-size: 1.05rem; font-weight: 500;
  color: var(--ivory); padding: 16px 38px;
}
body.menu-open .mobile-menu .btn { animation: menuIn .5s var(--ease) forwards; animation-delay: .34s; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu a, .mobile-menu .btn { animation: none !important; opacity: 1; transform: none; }
}

/* -----------------------------------------------------------------------------
   8. FOOTER (uniform, all pages)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: var(--ivory); }
.footer-top {
  max-width: var(--maxw); margin-inline: auto; padding: clamp(48px, 6vw, 72px) var(--gutter);
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px;
}
.site-footer a { color: var(--ivory); opacity: .92; transition: opacity .2s var(--ease); }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand .brand-name { color: var(--ivory); }
.footer-brand p { color: rgba(251,248,241,.82); font-size: .95rem; margin-top: 14px; max-width: 30ch; }
/* The footer sprig is 24px; the header's .brand svg is 26px. */
.footer-brand .brand svg { width: 24px; height: 24px; }
/* Column headings are <h3>, not <h4>: the footer follows the page's <h2>s, so an
   <h4> here skipped a level on all 23 pages (fixed 2026-07-29). This is the old
   `.footer-col h4` rule verbatim, with ONE deliberate difference and one
   restatement:
     - color is INHERITED (--ivory, 4.45:1 on --sage-deep) instead of the old
       rgba(251,248,241,.7), which measures 3.07:1. The footer's sitewide AA gap
       is a separate open item (see .claude-site-map.md); do not reintroduce the
       .7 alpha here, it makes the worse number worse.
     - line-height is stated at 1.7. <h4> inherited body's 1.7 for free; <h3> is
       in the `h1,h2,h3` serif rule at 1.12, so it has to be said out loud, as do
       the family, the weight and the letter-spacing.
   No <h4> remains anywhere on the site, so the old rule is deleted rather than
   left behind to be "unified" back in by a future pass. */
.footer-col h3 {
  font-family: var(--sans); font-size: 12px; line-height: 1.7;
  text-transform: uppercase; letter-spacing: .16em;
  color: inherit; font-weight: 600; margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; font-size: .95rem; color: rgba(251,248,241,.9); }
/* Conditions column (added 2026-07-29 with the nine condition pages). As an
   ordinary 5th child of a 4-column grid it wrapped to row two and stranded three
   empty cells, so it takes the whole row and flows its own internal columns.
   DELIBERATELY breakpoint-free: `1 / -1` re-resolves against whatever column
   count is current, so the 860px (2col) and 520px (1col) rules at the foot of
   this section keep working with no override, and column-width (not
   column-count) lets the list settle to 1 column on a phone by itself. */
.footer-conditions { grid-column: 1 / -1; }
.footer-conditions ul { column-width: 160px; column-gap: 32px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.18);
}
.footer-legal-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  font-size: .85rem; color: rgba(251,248,241,.8);
}
.footer-legal-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
/* Sitewide emergency line. Deliberately quiet, but it sits on an 8% darker strip
   for one reason: plain ivory on --sage-deep is 4.45:1, just under the AA 4.5
   floor, and the .8 opacity used by the legal line below is 3.50:1. This is the
   one line on the site where legibility is not negotiable, so it gets 5.11:1.
   The tonal shift is close to imperceptible, so it still reads as part of the
   footer rather than as an alert. See CHANGELOG 2026-07-29 for the footer-wide
   contrast finding this does NOT fix. */
.footer-crisis {
  margin: 0;
  padding: 12px var(--gutter);
  background: rgba(0,0,0,.08);
  font-size: .8125rem;
  line-height: 1.6;
  text-align: center;
  color: var(--ivory);
}
.footer-crisis a { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  /* Keep conditions in two columns even on phone — 10 items single-column is too long */
  .footer-conditions ul { column-width: 140px; column-count: 2; }
  /* Clear the floating call FAB so it doesn't cover legal links */
  .footer-legal-inner { padding-bottom: 68px; }
}

/* -----------------------------------------------------------------------------
   9. SAGE FULL-BLEED BAND + WHITE VERTICAL DIVIDERS
   -------------------------------------------------------------------------- */
.band-sage { background: var(--sage); color: var(--ivory); }
.band-sage h2, .band-sage h3 { color: var(--ivory); }
.band-sage p { color: rgba(251,248,241,.9); }
.band-sage .eyebrow { color: rgba(251,248,241,.85); }
.band-sage .rule { background: rgba(255,255,255,.55); }
.band-tint { background: var(--sage-tint); }
.band-linen2 { background: var(--linen-2); }

/* columns divided by faint white vertical rules */
.divided-cols { display: grid; }
.divided-cols > * { padding-inline: clamp(16px, 2.5vw, 30px); }
.divided-cols.cols-4 { grid-template-columns: repeat(4, 1fr); }
.divided-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.divided-cols > * + * { border-left: 1px solid rgba(255,255,255,.28); }
/* on light tint bands use a warm hairline instead of white */
.band-tint .divided-cols > * + * { border-left-color: var(--line); }
@media (max-width: 860px) {
  .divided-cols.cols-4, .divided-cols.cols-3 { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .divided-cols.cols-4 > *, .divided-cols.cols-3 > * { padding-block: 8px; }
  .divided-cols > *:nth-child(odd) { border-left: 0; }
}
@media (max-width: 520px) {
  .divided-cols.cols-4, .divided-cols.cols-3 { grid-template-columns: 1fr; }
  .divided-cols > * { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.24); padding-block: 26px; }
  .band-tint .divided-cols > * { border-top-color: var(--line); }
  .divided-cols > *:first-child { border-top: 0; }
}

/* -----------------------------------------------------------------------------
   10. BOTANICAL ICON + NUMBERED STEP CIRCLES
   -------------------------------------------------------------------------- */
.botanical { width: 40px; height: 40px; margin: 0 auto 14px; }
.botanical svg { width: 100%; height: 100%; stroke: var(--sage); stroke-width: 1.5; fill: none; }
.band-sage .botanical svg { stroke: var(--ivory); }

/* numbered process step */
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.4rem; color: var(--sage-deep);
  border: 1px solid var(--sage); margin: 0 auto 18px;
}
.step-num.solid { background: var(--sage); border-color: var(--sage); color: var(--ivory); }
.band-sage .step-num { border-color: rgba(255,255,255,.6); color: var(--ivory); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
/* big serif ordinal (01 / 02 / 03) variant */
.ordinal { font-family: var(--serif); font-size: 2.6rem; color: var(--sage); line-height: 1; }

/* -----------------------------------------------------------------------------
   11. QUOTE INTERLUDE
   -------------------------------------------------------------------------- */
.quote { text-align: center; max-width: 820px; margin-inline: auto; position: relative; }
.quote .mark {
  font-family: var(--serif); font-size: 4rem; line-height: .5; color: var(--terracotta);
  display: block; margin-bottom: 10px; height: 34px;
}
.quote blockquote {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.35; color: var(--ink);
  font-style: italic;
}
.quote cite { display: block; margin-top: 22px; font-family: var(--sans); font-style: normal; font-size: .9rem; letter-spacing: .04em; color: var(--sage-deep); }

/* -----------------------------------------------------------------------------
   12. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink);
}
.faq-q .plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--sage-deep);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-q .plus::before { width: 22px; height: 1.5px; }
.faq-q .plus::after  { width: 1.5px; height: 22px; }
.faq-item.open .faq-q .plus::before { transform: rotate(45deg); }
.faq-item.open .faq-q .plus::after  { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--body); max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }

/* -----------------------------------------------------------------------------
   13. PHOTO FRAME UTILITIES + PENDING PLACEHOLDER
   -------------------------------------------------------------------------- */
.photo-warm { filter: sepia(.08) saturate(.92); }          /* warm a cool photo */
.photo-warm-2 { filter: sepia(.18) saturate(.85) brightness(1.06) contrast(.95); } /* rescue a cool/dark photo */
.frame-arch {                                              /* arched top corners */
  border-radius: 50% 50% 8px 8px / 22% 22% 4px 4px;
  overflow: hidden;
}
.frame-mat {                                               /* editorial ivory mat + hairline */
  background: var(--ivory);
  padding: 14px; border: 1px solid var(--line); border-radius: 4px;
}
.frame-mat img { border-radius: 2px; }
.frame-soft { border-radius: var(--radius); overflow: hidden; }
figure.photo { margin: 0; }
figure.photo figcaption { font-size: .85rem; color: var(--sage-deep); margin-top: 10px; }

/* image not yet in manifest: solid sage-tint placeholder (contract rule 7) */
.img-pending {
  background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  min-height: 220px;
}
.img-pending::after { content: "photo"; opacity: .5; }

/* aspect helpers for image slots */
.ar-16-7 { aspect-ratio: 16 / 7; }
.ar-21-9 { aspect-ratio: 21 / 9; }
.ar-3-4  { aspect-ratio: 3 / 4; }
.ar-4-3  { aspect-ratio: 4 / 3; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* -----------------------------------------------------------------------------
   14. REVEAL-ON-SCROLL
   -------------------------------------------------------------------------- */
/* content is visible by default (no-JS / crawlers); .js arms the hidden state */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -----------------------------------------------------------------------------
   15. FORMS (shared; used by contact.html)
   -------------------------------------------------------------------------- */
.field { display: block; margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: var(--ink); margin-bottom: 7px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; font-size: 16px;               /* 16px+ prevents iOS auto-zoom */
  background: var(--ivory); border: 1px solid var(--line); border-radius: 6px;
  padding: 13px 14px; color: var(--ink); font-family: var(--sans);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
/* WCAG 2.1 SC 1.4.11: --sage on the ivory field measured 2.80:1, under the 3:1
   non-text floor. --sage-deep is 4.45:1 on --ivory and 4.72:1 on the white
   .intake-card fields. The halo is the same token at 30% alpha, prominence only. */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(102,121,90,.30);
}
.form-note { font-size: .85rem; color: var(--sage-deep); font-style: italic; }

/* -----------------------------------------------------------------------------
   16. FLOATING CALL BUTTON (mobile/tablet, where the header CTA is hidden)
   -------------------------------------------------------------------------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-deep); color: var(--ivory);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(46, 58, 46, .28);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.fab:hover { background: #58694c; transform: translateY(-2px); }
.fab svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; fill: none; }
@media (max-width: 1024px) { .fab { display: flex; } }
body.menu-open .fab { display: none; }

/* -----------------------------------------------------------------------------
   17. MAP EMBED (contact)
   -------------------------------------------------------------------------- */
.map-embed {
  position: relative; min-height: 340px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.map-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: sepia(.14) saturate(.85);          /* sit the map in the warm palette */
}
/* brand pin overlaid at the iframe center: the embed always centers its query,
   so this marks the office unmistakably regardless of Google's own marker */
.map-embed .map-pin {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 42px; height: 58px; transform: translate(-50%, -94%);
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(46, 58, 46, .35));
}
.map-embed .map-pin svg { width: 100%; height: 100%; }

/* home: full-bleed map band with a floating visit card */
.visit-map { position: relative; }
.visit-map .map-embed { min-height: clamp(380px, 44vw, 520px); border: 0; border-radius: 0; }
.visit-card {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  left: clamp(20px, 7vw, 110px);
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px); max-width: 360px;
  box-shadow: 0 8px 24px rgba(46, 58, 46, .14);
}
.visit-card h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 10px 0 10px; }
.visit-card p { font-size: .98rem; }
.visit-card .text-link { display: inline-block; margin-top: 16px; }
@media (max-width: 720px) {
  .visit-map .map-embed { min-height: 64vw; }
  .visit-card {
    position: relative; top: auto; left: auto; transform: none;
    margin: -52px var(--gutter) 28px; max-width: none;
  }
}

/* -----------------------------------------------------------------------------
   18. CREDENTIALS TRUST STRIP (home)
   -------------------------------------------------------------------------- */
.trust { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.trust .wrap { position: relative; z-index: 1; }
/* background growing branches curving out toward the screen edges */
.trust .trust-sprig {
  position: absolute; z-index: 0; bottom: -14px;
  width: min(250px, 24vw); opacity: .5; pointer-events: none;
}
.trust .trust-sprig svg { width: 100%; height: auto; }
.trust .trust-sprig-l { left: clamp(-40px, -2vw, 0px); transform: scaleX(-1); }
.trust .trust-sprig-r { right: clamp(-40px, -2vw, 0px); }
@media (max-width: 720px) { .trust .trust-sprig { opacity: .28; width: 30vw; } }
.trust .eyebrow { display: block; text-align: center; margin-bottom: 22px; }
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 44px; max-width: 980px; margin-inline: auto;
}
.trust-row span {
  font-family: var(--serif); font-size: clamp(.95rem, 1.4vw, 1.15rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink); opacity: .62; text-align: center;
}
/* Trust strip logos (2026-08-04): the four institution names became tinted
   monochrome logos (assets/img/logos/, pre-tinted to sage, transparent bg).
   Flex-wrap means a fifth logo (UMBC is pending) drops in with no relayout.
   The JHM height differs on purpose: it is a wide one-line lockup whose text
   carries less vertical mass than the stacked lockups, so equal heights read
   mismatched; 8px shorter optically matches. PSYPACT stays a text span. */
.trust-row img { width: auto; height: clamp(40px, 4.6vw, 52px); opacity: .92; }
.trust-row img[alt="Johns Hopkins Medicine"] { height: clamp(34px, 3.9vw, 44px); }
.trust-row img[alt="Kennedy Krieger Institute"] { height: clamp(52px, 6vw, 68px); }
@media (max-width: 720px) { .trust-row { gap: 16px 28px; } .trust-row img { height: 38px; } .trust-row img[alt="Johns Hopkins Medicine"] { height: 33px; } .trust-row img[alt="Kennedy Krieger Institute"] { height: 50px; } }

/* -----------------------------------------------------------------------------
   19. GROWING BRANCH (scroll-driven; JS sets stroke-dashoffset + .leaf-in)
   -------------------------------------------------------------------------- */
.grow-wrap { padding-block: clamp(16px, 3vw, 40px); }
.grow-sprig { display: flex; justify-content: center; pointer-events: none; }
.grow-sprig svg { width: min(150px, 34vw); height: auto; overflow: visible; }
.grow-sprig .leaf { transform-box: view-box; }
.grow-sprig .stem {
  stroke-dasharray: 1; stroke-dashoffset: 1;   /* pathLength=1 on the path */
}
.grow-sprig .leaf {
  opacity: 0; transform: scale(.2);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.grow-sprig .leaf.leaf-in { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .grow-sprig .stem { stroke-dashoffset: 0 !important; }
  .grow-sprig .leaf { opacity: 1 !important; transform: none !important; transition: none; }
}

/* =============================================================================
   ===================  PAGE-SPECIFIC SECTIONS BELOW  ==========================
   Page agents append their `/* ---- page: <name> ---- *​/` block after this
   sentinel. Do not edit anything above it.
   ========================================================================== */

/* ---- page: home ---- */
/* Hero: centered wordmark over office photo with a soft curved bottom edge.
   Fills the first viewport (minus the header) so the arc lands exactly at the
   bottom of the user's screen on load. */
/* ===== HERO: Sam's card-based split — Cormorant Garamond, botanical sprig ===== */
.wald-hero {
  padding: clamp(18px, 3vw, 48px);
}

.wald-hero__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  min-height: min(790px, calc(100svh - 82px));
  max-width: 1540px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--ivory, #fbf9f3);
  border: 1px solid rgba(54, 77, 64, 0.08);
  border-radius: clamp(24px, 2vw, 34px);
  box-shadow: 0 26px 70px rgba(52, 58, 45, 0.12);
  isolation: isolate;
}

.wald-hero__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.94), transparent 33rem),
    linear-gradient(120deg, rgba(255,255,255,.35), transparent 58%);
  pointer-events: none;
}

.wald-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(56px, 7vw, 118px) clamp(42px, 6vw, 106px);
  padding-right: clamp(32px, 4.8vw, 82px);
  z-index: 2;
}

.wald-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(22px, 2vw, 34px);
  color: var(--sage-deep, #718564);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.wald-hero__eyebrow svg,
.wald-hero__cta svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  flex: 0 0 auto;
}

.wald-hero__title {
  max-width: 760px;
  margin: 0;
  color: var(--ink, #253b31);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4rem, 6vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .84;
  text-wrap: balance;
}

.wald-hero__rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: clamp(24px, 2.6vw, 38px) 0 clamp(22px, 2.2vw, 32px);
  border-radius: 999px;
  background: var(--gold, #c7a66e);
}

.wald-hero__lede {
  max-width: 610px;
  margin: 0;
  color: #31473b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.48rem, 1.85vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.wald-hero__body {
  max-width: 615px;
  margin: clamp(20px, 2vw, 30px) 0 0;
  color: var(--body, #4f5d55);
  font-size: clamp(.98rem, 1.05vw, 1.12rem);
  line-height: 1.72;
}

.wald-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 66px;
  margin-top: clamp(30px, 3vw, 44px);
  padding: 18px 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: var(--sage-deep, #718564);
  box-shadow: 0 14px 30px rgba(74, 96, 65, .22);
  color: #fff;
  font-size: clamp(.94rem, 1vw, 1.05rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.wald-hero__cta:hover {
  transform: translateY(-2px);
  background: var(--sage-deep, #607654);
  box-shadow: 0 18px 36px rgba(74, 96, 65, .28);
}

.wald-hero__cta:focus-visible {
  outline: 3px solid rgba(113, 133, 100, .35);
  outline-offset: 4px;
}

.wald-hero__visual {
  position: relative;
  min-width: 0;
  margin: clamp(28px, 2.9vw, 48px) clamp(28px, 2.9vw, 48px) clamp(28px, 2.9vw, 48px) 0;
  overflow: hidden;
  border-radius: clamp(22px, 1.8vw, 30px);
  background: #d8d3bd;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.wald-hero__visual picture,
.wald-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.wald-hero__visual img {
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.015);
}

.wald-hero__image-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(240,229,198,.16), transparent 25%),
    linear-gradient(180deg, transparent 68%, rgba(44,58,46,.13));
  pointer-events: none;
}

.wald-hero__botanical {
  position: absolute;
  left: -8px;
  bottom: -16px;
  z-index: 1;
  width: clamp(160px, 17vw, 270px);
  color: rgba(103, 122, 90, .44);
  transform: rotate(-8deg);
  pointer-events: none;
}

@media (max-width: 1100px) {
  .wald-hero__shell {
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
  }
  .wald-hero__content {
    padding-left: clamp(38px, 5vw, 62px);
    padding-right: clamp(30px, 3.8vw, 50px);
  }
  .wald-hero__title { font-size: clamp(3.8rem, 6.5vw, 5.5rem); }
  .wald-hero__visual { margin-left: 0; }
}

@media (max-width: 820px) {
  .wald-hero { padding: 14px; }
  .wald-hero__shell {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 24px;
  }
  .wald-hero__content {
    padding: 52px 28px 36px;
  }
  .wald-hero__title {
    font-size: clamp(3.6rem, 14vw, 5.15rem);
    line-height: .88;
  }
  .wald-hero__lede { font-size: clamp(1.35rem, 5vw, 1.7rem); }
  .wald-hero__body { line-height: 1.62; }
  .wald-hero__cta {
    width: 100%;
    min-height: 62px;
    padding-inline: 20px;
  }
  .wald-hero__visual {
    order: 2;
    min-height: 450px;
    margin: 0 18px 18px;
    border-radius: 20px;
  }
  .wald-hero__visual img { object-position: 60% center; }
  .wald-hero__botanical {
    width: 150px;
    opacity: .7;
  }
}

@media (max-width: 520px) {
  .wald-hero__content { padding: 42px 22px 30px; }
  .wald-hero__eyebrow {
    margin-bottom: 20px;
    font-size: .7rem;
    letter-spacing: .17em;
  }
  .wald-hero__title { font-size: clamp(3.25rem, 16vw, 4.4rem); }
  .wald-hero__visual { min-height: 340px; }
  .wald-hero__visual img { object-position: 61% center; }
  .wald-hero__botanical { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wald-hero__cta { transition: none; }
}

/* Meet Dr. Wald split */
.meet-photo { max-width: 460px; }
.meet-text h2 { margin-bottom: 4px; }
.meet-text .rule { margin: 16px 0 24px; }        /* left aligned rule */

/* Thoughtful support band (icon columns on sage-tint) */
.support-col { text-align: center; }
.support-col h3 { font-size: 1.3rem; margin-bottom: 10px; }
.support-col p { font-size: .95rem; }

/* Full-bleed office band */
.office-band img { width: 100%; height: clamp(240px, 34vw, 460px); object-fit: cover; }

/* Support for every part of the journey: white panel + sage panel */
.journey { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.journey .panel-white { background: var(--ivory); padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px); }
.journey .panel-white h2 { margin-bottom: 22px; }
.journey .panel-sage { background: var(--sage); padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 34px; }
.journey .jrow { display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.journey .jrow .botanical { margin: 0; width: 34px; height: 34px; }
.journey .jrow .botanical svg { stroke: var(--ivory); }
.journey .jrow h3 { font-size: 1.35rem; color: var(--ivory); margin-bottom: 8px; }
.journey .jrow p { font-size: .95rem; color: rgba(251,248,241,.9); }
@media (max-width: 860px) { .journey { grid-template-columns: 1fr; } }

/* Closing CTA band with palm-frond decoration */
.home-cta { position: relative; background: var(--linen-2); text-align: center; overflow: hidden; }
.home-cta .cta-inner { position: relative; z-index: 2; }
.home-cta h2 { margin-bottom: 16px; }
.home-cta .loc { display: inline-flex; align-items: center; gap: 7px; color: var(--sage-deep); font-size: .95rem; margin-bottom: 20px; }
.home-cta .sprig { position: absolute; z-index: 1; pointer-events: none; opacity: .55; }
.home-cta .sprig-tr { right: 0; top: 0; width: min(260px, 34vw); transform: scaleX(1); }
@media (max-width: 620px) { .home-cta .sprig-tr { width: 150px; opacity: .4; } }

/* -----------------------------------------------------------------------------
   9. HEADER FIT (2026-07-29, BHS copy revision)
   The practice name went from the old two-word lockup to "Behavioral Health Services",
   which is ~105px wider at 22px EB Garamond. In the fixed 76px bar that pushed
   the brand, the nav links and the CTA pill each onto two lines at every
   viewport >= 1025px, on every page. Nothing here changes the design; it only
   buys the lockup the room the longer name needs.
   -------------------------------------------------------------------------- */
.nav-links a, .nav .btn, .mobile-menu .btn { white-space: nowrap; }
/* Desktop only: the lockup must not shrink or wrap next to the full nav. */
@media (min-width: 1181px) {
  .brand { flex: none; }
  .brand-name, .brand-sub { white-space: nowrap; }
}
/* Mobile/tablet: the brand MUST be allowed to shrink, or a long practice name
   pushes the hamburger off-screen and the site loses its navigation entirely.
   That shipped briefly on 2026-07-29 and was invisible to overflow checks
   because html/body use overflow-x: clip. Always measure the toggle's right
   edge against clientWidth, not just whether text wrapped. */
@media (max-width: 1180px) {
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-name { white-space: normal; font-size: clamp(15px, 4vw, 20px); line-height: 1.15; }
  .brand-sub { white-space: nowrap; }
  .nav-toggle { flex: none; margin-left: auto; }
}

@media (min-width: 1181px) {
  .header-inner { max-width: min(1340px, 100%); gap: 20px; }
  .nav { gap: 18px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14.5px; }
  .nav .btn { padding: 10px 16px; font-size: .85rem; }
}
/* Collapse to the hamburger earlier: below 1181px the full nav plus the longer
   name no longer share one line. The overlay menu itself is unchanged. */
@media (max-width: 1180px) {
  :root { --header-h: 64px; }
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: flex; }
}
