/* ==========================================================================
   Lucid Behavioral Health — Editorial redesign
   A warm, layered, boutique-hospitality visual system.
   Palette: ivory / sand / sage / forest / olive / clay / bronze / warm charcoal.
   Type: Fraunces (editorial serif display) + Hanken Grotesk (humanist sans).
   Note: original CSS variable *names* are retained so existing inline styles
   keep resolving; their values and every component below are redesigned.
   ========================================================================== */

:root {
  /* --- warm neutrals (layered, for depth) --- */
  --ivory:        #F7F4EE;   /* page */
  --cream:        #F7F4EE;   /* alias (header/hero washes) */
  --paper:        #FFFFFF;   /* raised surfaces */
  --white:        #FFFFFF;
  --sand:         #ECE5DA;   /* soft panels */
  --sand-deep:    #E2D9CB;

  /* --- greens --- */
  --sage:         #8C9A84;   /* muted sage */
  --sage-soft:    #E7ECE0;   /* pale sage wash */
  --sage-deep:    #2F4F46;   /* forest — used for links/hover/headings accents */
  --forest:       #263D35;   /* deepest green — footer, immersive blocks */
  --olive:        #43543F;   /* secondary green */

  /* --- warm accents (reserved for flourishes + hover) --- */
  --terracotta:      #B27D62; /* clay */
  --clay:            #B27D62;
  --terracotta-deep: #9A6449; /* clay, deep */
  --bronze:          #A8825A;

  /* --- ink --- */
  --ink:          #2A2824;   /* warm charcoal */
  --ink-soft:     #565349;   /* secondary text */
  --ink-mute:     #857F73;   /* tertiary / captions */

  /* --- lines + surfaces --- */
  --line:         #E4DBCC;   /* warm hairline */
  --line-strong:  #D5CAB6;

  --radius:       6px;
  --radius-sm:    4px;
  --radius-lg:    18px;
  --shadow:       0 30px 60px -32px rgba(38, 61, 53, 0.30);
  --shadow-sm:    0 16px 34px -22px rgba(38, 61, 53, 0.24);

  --maxw:         1180px;
  --measure:      68ch;
  --gutter:       clamp(20px, 5vw, 48px);
  --bay:          clamp(80px, 11vw, 156px);   /* vertical section rhythm */

  --font-head:    'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.75;
  font-size: 1.0625rem;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
::selection { background: var(--sage-deep); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 96px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 440;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); font-weight: 400; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.15rem); }
h3 { font-size: 1.32rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin-bottom: 1.1rem; max-width: var(--measure); text-wrap: pretty; }
.center p, .cta-banner p { margin-left: auto; margin-right: auto; }
.lead {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
a { color: var(--sage-deep); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--clay); }
strong { font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--bay) 0; position: relative; }
.section--soft { background: var(--sage-soft); }
.section--sand { background: var(--sand); }
/* hairline seams between same-colored stacked sections */
.section + .section:not(.section--soft):not(.section--sand)::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--line);
}
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.narrow p { margin-left: auto; margin-right: auto; }

/* ---------- Eyebrow (editorial kicker) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-body); font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.72rem;
  color: var(--terracotta-deep); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--forest); --btn-fg: var(--ivory); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.015em;
  padding: 15px 30px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { --btn-bg: var(--forest); --btn-fg: var(--ivory); }
.btn--primary:hover { --btn-bg: var(--olive); box-shadow: var(--shadow-sm); color: var(--ivory); }
.btn--green { --btn-bg: var(--olive); --btn-fg: var(--ivory); }
.btn--green:hover { --btn-bg: var(--forest); box-shadow: var(--shadow-sm); color: var(--ivory); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-fg: var(--forest); --btn-bd: var(--forest); background: rgba(38,61,53,.045); }
.btn--lg { padding: 18px 40px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand__logo { flex: none; line-height: 0; display: block; }
.brand__logo svg { display: block; width: 44px; height: 44px; border-radius: 12px; }
.brand__name { font-family: var(--font-head); font-weight: 500; font-size: 1.18rem; color: var(--ink); line-height: 1.05; letter-spacing: -0.01em; }
.brand__name small {
  display: block; font-family: var(--font-body); font-weight: 600; font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--terracotta-deep); margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__links a {
  position: relative; color: var(--ink); font-weight: 500; font-size: .93rem; letter-spacing: .01em;
  padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--clay); transition: right .35s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--forest); }
.nav__links a:hover::after, .nav__links a.active::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__phone { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav__phone:hover { color: var(--clay); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--ink); line-height: 1; }

@media (max-width: 940px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 24px; box-shadow: var(--shadow-sm);
  }
  .nav__links.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links.open a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(140,154,132,.22), transparent 62%),
    linear-gradient(180deg, var(--ivory) 12%, var(--sand));
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 128px);
}
.hero__grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero p.lead { max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__panel {
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 34px 30px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero__panel h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--forest); }
.hero__panel > p { font-size: .98rem; }
.hero__panel ul { list-style: none; margin-top: 18px; }
.hero__panel li { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; font-size: .98rem; line-height: 1.5; }
.hero__panel li:first-of-type { border-top: 0; padding-top: 4px; }
.check { color: var(--clay); flex: none; font-weight: 700; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero p.lead { max-width: var(--measure); } }

/* ---------- Cards / grids (flat editorial, no floaty SaaS boxes) ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 0; border-radius: 0; padding: clamp(28px, 3vw, 40px);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.card:hover { background: color-mix(in srgb, var(--sage-soft) 55%, var(--paper)); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; max-width: none; }
.card__icon {
  width: 46px; height: 46px; border-radius: 50%; background: transparent;
  border: 1px solid var(--line-strong); color: var(--clay);
  display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 22px; font-weight: 500;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.card:hover .card__icon { border-color: var(--clay); }

/* grids that carry their own light background (soft/sand sections) keep contrast */
.section--soft .grid, .section--sand .grid { background: var(--line); }
.section--soft .card, .section--sand .card { background: var(--paper); }

/* 4-up collapses to 2 (stays full); 3-up collapses straight to 1 to avoid an
   empty divider cell for 3-item grids at the tablet width. */
@media (max-width: 940px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid--4 { grid-template-columns: 1fr; } }

/* audience cards keep an action */
.audience { display: flex; flex-direction: column; }
.audience .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Split feature (asymmetric editorial) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.split--reverse .split__media, .split--reverse > .imgph { order: 2; }
.split > div h2 { margin-bottom: 18px; }
.split__media {
  border-radius: var(--radius); min-height: 340px; box-shadow: var(--shadow); overflow: hidden;
  background: linear-gradient(150deg, var(--olive), var(--forest));
  display: grid; place-items: center; color: var(--ivory); text-align: center; padding: 40px;
  position: relative;
}
.split__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 15% 10%, rgba(140,154,132,.35), transparent 55%);
}
.split__media .ph-label { position: relative; font-family: var(--font-head); font-weight: 360; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; opacity: .96; max-width: 22ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media, .split--reverse > .imgph { order: 0; } }

/* ---------- Imagery ---------- */
.media-img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-cover { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* refined placeholder (clearly a placeholder, but elegant) */
.imgph {
  border-radius: var(--radius); background:
    repeating-linear-gradient(135deg, transparent, transparent 22px, rgba(140,154,132,.05) 22px, rgba(140,154,132,.05) 44px),
    linear-gradient(150deg, var(--sage-soft), var(--sand));
  border: 1px solid var(--line-strong); color: var(--sage-deep); min-height: 300px;
  display: grid; place-items: center; text-align: center; padding: 28px;
  font-family: var(--font-head); font-weight: 380; font-size: 1.12rem; line-height: 1.4;
}
.imgph small { font-family: var(--font-body); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step__num {
  counter-increment: step; flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); color: var(--forest);
  font-family: var(--font-head); font-weight: 400; font-size: 1.5rem;
  display: grid; place-items: center;
}
.steps { counter-reset: step; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stats > div { background: var(--ivory); padding: 14px clamp(12px, 2vw, 28px); text-align: center; }
.section--sand .stats > div { background: var(--sand); }
.section--soft .stats > div { background: var(--sage-soft); }
.stat__num { font-family: var(--font-head); font-weight: 380; font-size: clamp(2.6rem, 4.6vw, 3.6rem); color: var(--forest); line-height: 1; letter-spacing: -.02em; }
.stat__label { color: var(--ink-soft); font-size: .9rem; margin-top: 10px; letter-spacing: .01em; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Immersive CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(140,154,132,.24), transparent 55%),
    linear-gradient(135deg, var(--forest), var(--olive));
  color: var(--ivory); border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 72px);
  text-align: center; box-shadow: var(--shadow);
}
.cta-banner h2 { color: var(--ivory); font-weight: 380; max-width: 20ch; margin: 0 auto; }
.cta-banner p { color: rgba(247,244,238,.82); max-width: 56ch; margin: 18px auto 30px; }
.cta-banner .btn--primary { --btn-bg: var(--clay); --btn-fg: #241a12; }
.cta-banner .btn--primary:hover { --btn-bg: #c7906f; color: #241a12; }
.cta-banner .btn--ghost { --btn-fg: var(--ivory); --btn-bd: rgba(247,244,238,.42); }
.cta-banner .btn--ghost:hover { background: rgba(247,244,238,.12); --btn-fg: var(--ivory); --btn-bd: rgba(247,244,238,.7); }

/* ---------- Forms ---------- */
.form {
  display: grid; gap: 20px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 2px; border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0;
  font-family: inherit; font-size: 1.02rem; background: transparent; color: var(--ink);
  transition: border-color .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--clay); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: right 6px top 20px, right 1px top 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 22px; }
.form .btn { justify-self: start; }

/* ---------- Accordion (services) ---------- */
.acc { display: grid; gap: 0; border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); background: transparent; overflow: hidden; }
.acc__head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 20px; padding: 26px 8px; font-family: inherit;
  transition: color .3s var(--ease);
}
.acc__head:hover { color: var(--clay); }
.acc__head:hover .acc__title { color: var(--clay); }
.acc__plus {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: transparent;
  border: 1px solid var(--line-strong); color: var(--forest); font-size: 1.2rem; font-weight: 300;
  display: grid; place-items: center; line-height: 1; margin-left: auto;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.acc__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink); letter-spacing: -.01em; transition: color .3s var(--ease); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc__body p { padding: 0 8px 26px 50px; color: var(--ink-soft); margin: 0; max-width: 68ch; }
.acc__item.open .acc__plus { transform: rotate(135deg); background: var(--forest); border-color: var(--forest); color: var(--ivory); }
.acc__item.open .acc__body { max-height: 340px; }
@media (max-width: 560px){ .acc__body p { padding-left: 8px; } }

/* ---------- Interior page hero ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(140,154,132,.20), transparent 60%),
    linear-gradient(180deg, var(--sage-soft), var(--ivory));
  padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 7vw, 84px); border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 6px 0 20px; }
.page-hero .crumbs { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; }
.page-hero .crumbs a { color: var(--ink-mute); }
.page-hero .crumbs a:hover { color: var(--clay); }
.page-hero p.lead { max-width: 44ch; }

/* ---------- Info list + pills ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); }
.checklist li::before { content: ""; flex: none; margin-top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.pill {
  display: inline-block; background: transparent; color: var(--forest); border: 1px solid var(--line-strong);
  font-weight: 600; font-size: .78rem; letter-spacing: .02em; padding: 8px 16px; border-radius: 50px; margin: 5px 6px 5px 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #c7cdc2; padding: clamp(64px, 8vw, 96px) 0 32px; }
.site-footer a { color: #c7cdc2; }
.site-footer a:hover { color: var(--clay); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__grid h4 { color: var(--ivory); font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.footer__grid ul { list-style: none; display: grid; gap: 12px; font-size: .96rem; }
.footer__brand .brand__logo svg { width: 40px; height: 40px; }
.footer__brand .brand__name { color: var(--ivory); }
.footer__brand p { color: #9aa397; font-size: .95rem; margin-top: 16px; max-width: 34ch; }
.footer__bottom {
  border-top: 1px solid rgba(247,244,238,.12); margin-top: 48px; padding-top: 26px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: #8b9488;
}
.footer__legal a { color: #8b9488; }
.footer__legal a:hover { color: var(--clay); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Crisis bar (calm, not alarming) ---------- */
.crisis-bar {
  background: var(--forest); color: var(--ivory); text-align: center; font-size: .86rem;
  padding: 11px 18px; font-weight: 400; letter-spacing: .01em;
}
.crisis-bar strong { color: #e8c9b4; font-weight: 700; }
.crisis-bar a { color: var(--ivory); text-decoration: underline; text-underline-offset: 2px; }
.crisis-bar a:hover { color: #e8c9b4; }

/* ---------- Placeholder highlight (fill-ins on legal templates) ---------- */
.ph { background: #F3E4CE; color: #7a5a2f; padding: 0 5px; border-radius: 3px; font-weight: 600; }

/* ==========================================================================
   Motion — subtle, slow, respectful of reduced-motion preferences
   ========================================================================== */
@keyframes revealUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* hero entrance on load */
  .hero .eyebrow, .hero h1, .hero .lead, .hero__actions, .hero__panel { animation: revealUp 1s var(--ease) both; }
  .hero h1 { animation-delay: .04s; }
  .hero .lead { animation-delay: .12s; }
  .hero__actions { animation-delay: .2s; }
  .hero__panel { animation-delay: .16s; }

  /* scroll-driven reveals (progressive enhancement; no JS, no markup changes) */
  @supports (animation-timeline: view()) {
    .section .card,
    .split > div, .split > .imgph, .split__media,
    .stats > div, .cta-banner, .acc__item, .media-img,
    .steps .step,
    .page-hero .eyebrow, .page-hero h1, .page-hero .lead,
    .section > .container > .center,
    .section > .container > .narrow {
      animation: revealUp .9s var(--ease) both;
      animation-timeline: view();
      animation-range: entry 2% cover 20%;
    }
    /* gentle stagger across grid/stat children */
    .grid > *:nth-child(2), .stats > div:nth-child(2) { animation-delay: .04s; }
    .grid > *:nth-child(3), .stats > div:nth-child(3) { animation-delay: .08s; }
    .grid > *:nth-child(4), .stats > div:nth-child(4) { animation-delay: .12s; }
  }

  .media-img, .split__media { transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
  .media-img:hover, .split__media:hover { box-shadow: 0 40px 70px -34px rgba(38,61,53,.42); transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
