/* Cunard Pharmacy — shared site stylesheet
   BRAND-VERSION: 2026-07-01 · builds ONLY on tokens.css custom properties (no raw hex*).
   DESIGN LANGUAGE SOURCE: the shipped, Joe-approved /weight-loss page (Claude Design) —
   its heading treatment (IvyPresto @ weight-medium), ivory-on-dark text, warm tinted photo
   hero, masked headline rise, gold pill with sheen, curtain closing CTA, revealRise system.
   Implements the AGENTS.md §3 class system. A page ships ZERO inline <style>.
   (*rgba()/color-mix used only for photo tints + glass effects, mirroring /weight-loss.) */

/* ---- Reset (minimal) ---- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface-page); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--color-gold); color: var(--color-black); }

/* ---- Layout ---- */
.page-wrapper  { min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip; }
.main-wrapper  { flex: 1 0 auto; }
.container     { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-lg); }
.container.is-narrow { max-width: 820px; }

.section { padding: var(--section-pad-y) 0; position: relative; }
.section.is-ivory { background: var(--surface-warm); }
.section.is-dark  { background: var(--surface-dark); color: var(--text-on-dark); }
.section.is-dark h1, .section.is-dark h2, .section.is-dark h3 { color: var(--text-on-dark); }
.section.is-dark .text-muted { color: var(--text-on-dark-muted); }
.section.is-dark .text-large.text-muted { color: var(--text-on-dark); } /* leads full-strength on dark too */
.section.is-dark .eyebrow { color: var(--accent); }
.section.is-dark h1 em, .section.is-dark h2 em,
.closing-cta h2 em { color: var(--accent); } /* gold ems: muted gold on dark (antique on light) */

/* Vertical rhythm contract: ONE gap inside a section's content column (design-system.md).
   Grids are top-aligned — cards must never stretch to phantom heights. */
.section-head { display: flex; flex-direction: column; gap: var(--space-md); max-width: 720px; margin-bottom: var(--space-2xl); }
.flow { display: flex; flex-direction: column; gap: var(--space-md); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-lg); align-items: start; align-content: start; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
/* Text + photo splits center against the taller media column — top-aligning left a dead
   band under short text columns (Joe annotation 2026-07-10). Card grids stay top-aligned. */
.grid-2:has(> .split-media) { align-items: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Type scale ---- */
.heading-xl { font-size: var(--heading-xl); }
.heading-l  { font-size: var(--heading-l); }
.heading-m  { font-size: var(--heading-m); }
.hero-h1    { font-size: clamp(3.25rem, 7vw, 6.5rem); margin-bottom: var(--space-sm); } /* homepage hero steps above --hero-h1; margin ≈ donor's 30px incl. flow gap */
h1[class*="hero"] { margin-bottom: var(--space-sm); }
.text-large { font-size: var(--text-large); line-height: var(--line-body); }
.text-muted { color: var(--text-muted); }
/* Lead paragraphs: donor .lede renders in warm slate (NOT the old washed #6f6f6f grey that
   prompted Joe's 2026-07-10 complaint — warm slate is the donor look he asked to match
   2026-07-18). Dark sections keep their on-dark override (declared above). */
.text-large.text-muted { color: var(--text-muted); }
.text-small { font-size: var(--text-small); }

/* ---- Buttons — SQUARE editorial rectangles (harvest A1; donor: Sol original experiment
   .action/.text-action. Joe 2026-07-17: "do the same button style… ours look tacky" —
   supersedes the 2026-07-01 flat-pill doctrine). Primary = black fill → gold sweep on
   hover; uppercase 13/800/.09em; ↗ glyph right-aligned; subtle 1px press. ---- */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 52px; min-width: 212px;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 800;
  line-height: 1.2; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0 18px; border: var(--hairline) solid var(--color-black); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap; text-align: left;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease),
    border-color var(--duration) var(--ease), transform 120ms var(--ease); }
.button::after { content: "\2197"; font-size: 18px; font-weight: 400; line-height: 1;
  transition: transform var(--duration) var(--ease); }
.button:hover::after { transform: translate(2px, -2px); }
.button:active { transform: translateY(1px); }
.button.is-gold, .button.is-primary {
  background: var(--color-black); border-color: var(--color-black); color: var(--color-ivory); }
.button.is-gold:hover, .button.is-primary:hover {
  background: var(--accent); border-color: var(--accent-hover); color: var(--color-black); }
.button.is-secondary { background: transparent; color: inherit; border-color: currentColor; }
.button.is-secondary:hover { background: var(--color-black); border-color: var(--color-black);
  color: var(--color-ivory); }
.section.is-dark .button.is-gold, .closing-cta .button.is-gold,
.section.is-dark .button.is-primary, .closing-cta .button.is-primary {
  background: var(--accent); border-color: var(--accent); color: var(--color-black); }
.section.is-dark .button.is-gold:hover, .closing-cta .button.is-gold:hover,
.section.is-dark .button.is-primary:hover, .closing-cta .button.is-primary:hover {
  background: var(--color-ivory); border-color: var(--color-ivory); color: var(--color-black); }
.section.is-dark .button.is-secondary:hover, .closing-cta .button.is-secondary:hover {
  background: var(--color-ivory); border-color: var(--color-ivory); color: var(--color-black); }
.button.is-link { padding: 0; border: 0; background: none; min-height: 0; min-width: 0;
  color: var(--accent-hover); font-size: var(--eyebrow); text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); }
.button.is-link:hover { color: var(--color-black); }
/* Donor mobile: .actions becomes a tight grid; button AND text link go full-width so their
   edges + arrows align (Joe 2026-07-18: "buttons misaligned" — this was the miss). */
@media (max-width: 767px) {
  .btn-row { display: grid; gap: 9px; }
  .btn-row .button, .btn-row .link-cta { width: 100%; min-width: 0; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-sm); align-items: center; }

/* ---- Card — "Option D": radius 0, NO shadow, 2px gold top edge, hairline sides,
   12px tracked gold link bottom-aligned; hover = lift 2px + edge deepens ---- */
.card { background: var(--surface-card, var(--color-white)); border: var(--hairline) solid var(--border-hairline, var(--color-border));
  border-top: var(--card-edge) solid var(--accent); border-radius: var(--radius);
  padding: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md);
  transition: transform var(--duration) var(--ease), border-top-color var(--duration) var(--ease); }
.card:hover { transform: translateY(-2px); border-top-color: var(--accent-hover); }
.card.is-service h3 { font-size: var(--heading-m); }
.card.is-featured { background: var(--surface-dark); color: var(--text-on-dark); }
.card.is-featured h3 { color: var(--text-on-dark); }
.card-link { font-weight: var(--weight-semibold); font-size: var(--eyebrow); text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); text-decoration: none; color: var(--accent-hover);
  margin-top: auto; padding-top: var(--space-sm); transition: color var(--duration) var(--ease); }
.card-link:hover { color: var(--color-black); }
a.card-wrap { text-decoration: none; display: block; }

/* ---- Announcement micro-bar ---- */
.announce { background: var(--surface-dark); color: var(--text-on-dark-muted);
  font-size: var(--text-small); text-align: center; padding: 9px var(--space-lg);
  border-bottom: var(--hairline) solid rgba(241, 234, 217, 0.14);
  position: relative; z-index: 2; /* must beat the fixed curtain CTA (z 0) — without this
    the closing-cta paints straight over the announce bar at the top of the page */ }
.announce strong { color: var(--color-gold); font-weight: var(--weight-semibold); }

/* ---- Header / nav ---- */
.site-header { background: var(--surface-dark); color: var(--text-on-dark); position: sticky;
  top: 0; z-index: 50; border-bottom: var(--hairline) solid rgba(241, 234, 217, 0.14); }
.nav { min-height: var(--header-h); display: flex; align-items: center; gap: var(--space-xl); }
.nav-brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text-on-dark); }
.nav-name { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: 1.35rem; line-height: var(--line-tight); }
.nav-descriptor { font-size: 0.72rem; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--text-on-dark-muted); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); margin-left: auto; }
.nav-link { font-size: 0.95rem; text-decoration: none; color: var(--text-on-dark);
  opacity: .85; transition: color var(--duration) var(--ease), opacity var(--duration) var(--ease); }
.nav-link:hover { color: var(--color-gold); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.nav-actions .button { padding: 10px 16px; font-size: 0.75rem; min-height: 0; min-width: 0;
  gap: 10px; }
.nav-actions .button::after { content: none; } /* no ↗ in the compact header */
.site-header .button.is-gold { background: var(--accent); border-color: var(--accent);
  color: var(--color-black); } /* header bar is black — primary stays gold there */
.site-header .button.is-gold:hover { background: var(--color-ivory); border-color: var(--color-ivory); }
.site-header .button.is-secondary { color: var(--color-ivory); }
.site-header .button.is-secondary:hover { background: var(--color-ivory);
  border-color: var(--color-ivory); color: var(--color-black); }
.nav-toggle { display: none; margin-left: auto; background: none;
  border: var(--hairline) solid rgba(241, 234, 217, 0.35); color: var(--text-on-dark);
  font: inherit; padding: 10px 14px; cursor: pointer; }
@media (max-width: 991px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-block; }
  .site-header.nav-open .nav { flex-wrap: wrap; padding: var(--space-md) 0; }
  .site-header.nav-open .nav-links { display: flex; flex-direction: column; align-items: flex-start;
    gap: var(--space-md); width: 100%; order: 3; padding-top: var(--space-md);
    border-top: var(--hairline) solid rgba(241, 234, 217, 0.14); }
  .site-header.nav-open .nav-actions { display: flex; width: 100%; order: 4; padding-top: var(--space-md); }
}

/* ---- HERO — warm tinted photograph (from /weight-loss), text lifted on a soft glow,
   masked headline lines rise, photo wipes in ---- */
.hero { position: relative; padding: calc(var(--section-pad-y) * 1.3) 0; min-height: 78svh;
  display: flex; align-items: center; overflow: hidden; background: var(--surface-warm); }
/* Inner-page TEXT heroes (section+hero, no photo) don't earn 78svh — that read as
   cavernous dead space above/below a two-line intro (Joe annotation 2026-07-10). */
.section.hero { min-height: 0; padding: calc(var(--section-pad-y) * 1.1) 0; }
.hero .text-large { font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.375rem); max-width: 56ch; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  background: var(--surface-warm); will-change: transform; }

/* ---- HERO COLLAGE (homepage) — the original Webflow collage structure (dominant photo
   cell + stacked editorial cells, 6px gaps, 86vh) carrying the /weight-loss motion kit:
   warm tint + masked headline rise in the dominant cell, side photos wipe in staggered.
   Mobile = dominant cell only (the original's move). ---- */
.hero-collage { display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 6px; width: 100%; height: 86vh; min-height: 580px; max-height: 900px;
  background: var(--surface-page); position: relative; }
.hc-cell { position: relative; overflow: hidden; }
.hc-cell img { width: 100%; height: 100%; object-fit: cover; }
.hc-dominant { grid-row: 1 / span 2; display: flex; align-items: center; }
.hc-dominant .hero-bg { pointer-events: none; }
.hc-side img { animation: heroImgIn 1.2s var(--ease) both; }
.hc-side:nth-of-type(2) img { animation-delay: .3s; }
.hc-side:nth-of-type(3) img { animation-delay: .45s; }
.hero-collage .hero-content { padding: var(--space-2xl) clamp(24px, 5vw, 72px); }
.hero-collage .hero-h1 { font-size: clamp(2.9rem, 5.5vw, 5rem); }
@media (max-width: 991px) { .hero-collage { grid-template-columns: 1.3fr 1fr; } }
@media (max-width: 767px) {
  .hero-collage { display: block; height: auto; min-height: 0; max-height: none; }
  .hc-cell:not(.hc-dominant) { display: none; }
  .hc-dominant { min-height: 82svh; display: flex; }
}
.hero-img { width: 100%; height: 100%; object-fit: cover;
  animation: heroImgIn 1.4s var(--ease) .15s both; will-change: transform, clip-path; }
.hero-tint { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(249, 244, 235, 0.97) 15%, rgba(249, 244, 235, 0.82) 37%,
    rgba(249, 244, 235, 0.46) 62%, rgba(249, 244, 235, 0.27) 100%); }
@media (max-width: 767px) { /* mobile: photo is full-width behind the copy — tint top-down instead */
  .hero-tint { background: linear-gradient(180deg, rgba(249, 244, 235, 0.96) 0%,
    rgba(249, 244, 235, 0.82) 55%, rgba(249, 244, 235, 0.3) 100%); } }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-content::before { content: ""; position: absolute; left: -9%; top: 50%; width: 98%; height: 96%;
  transform: translateY(-50%);
  background: radial-gradient(58% 60% at 42% 50%, rgba(251, 248, 241, 0.94),
    rgba(251, 248, 241, 0.5) 44%, rgba(251, 248, 241, 0) 74%);
  filter: blur(16px); z-index: 0; pointer-events: none; }
.hero-content > * { position: relative; z-index: 1; }
.hero-content .flow { gap: var(--space-lg); }
.hero-content .text-large { max-width: 34em; } /* keep the sub inside the calm tint zone */
.hl-line { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.15em; }
/* ^ mask window widened 2026-07-14: at the ported 0.9 display leading, descenders need
   more room inside the overflow-hidden line mask (net rhythm unchanged: 0.18 - 0.15). */
.hl-line > span { display: block; animation: heroLineUp .85s var(--ease) both; will-change: transform; }
.hl-line:nth-child(2) > span { animation-delay: .08s; }
.hl-line:nth-child(3) > span { animation-delay: .16s; }
.hero-anim { opacity: 0; animation: heroRise .7s var(--ease) both; }
.hero-anim.d1 { animation-delay: .35s; } .hero-anim.d2 { animation-delay: .5s; }
.hero-anim.d3 { animation-delay: .65s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroLineUp { from { transform: translateY(122%); } to { transform: none; } }
@keyframes heroImgIn { from { transform: scale(1.12); clip-path: inset(0 0 100% 0); }
  to { transform: scale(1); clip-path: inset(0 0 0 0); } }

/* ---- HERO EDITORIAL (homepage) — overlapping polaroid collage, ported 2026-07-04 from
   experiments/codex-editorial-homepage (Majesty's Pleasure reference + Joe's image-split
   concept). Recomposed after Joe's "randomly placed" note: one dominant frame, a right
   column of two frames sharing its exact columns (aligned left/right edges), top frame
   rising one row above the dominant and the lower frame dropping one row below it —
   symmetric rag, single anchored gold echo rectangle. Owned photography only. ---- */
.hero-editorial { background: var(--surface-warm); position: relative; overflow: hidden; }
.ce-shell { max-width: 1390px; margin: 0 auto;
  padding: clamp(44px, 7vh, 82px) var(--space-lg) clamp(44px, 7vh, 86px);
  display: grid; grid-template-columns: minmax(0, .94fr) minmax(460px, .92fr);
  gap: clamp(48px, 7vw, 112px); align-items: center; min-height: min(82svh, 820px); }
.ce-copy { position: relative; z-index: 3; }
.ce-copy .flow { gap: var(--space-lg); }
.ce-h1 { font-size: clamp(3.5rem, 7.2vw, 7rem); line-height: 0.9; max-width: 8.6em; } /* donor .display 60→118/0.9 */
.ce-sub { font-size: var(--text-large); line-height: 1.58; color: var(--text-muted); max-width: 31em; } /* donor .lede: 18→21px slate */
.ce-copy .btn-row { margin-top: var(--space-md); gap: var(--space-lg); }
/* (ce-mark gold underline removed 2026-07-17 — Joe: clutter next to the gold ems;
   the donor heroes carry gold words with no underline device.) */
.ce-media { position: relative; display: grid; grid-template-columns: repeat(14, 1fr);
  grid-template-rows: repeat(12, 1fr); height: clamp(560px, 76vh, 700px);
  isolation: isolate; padding: 12px; }
.ce-media::before { content: ""; position: absolute; pointer-events: none; z-index: 0;
  border: var(--hairline) solid color-mix(in srgb, var(--accent) 74%, transparent);
  inset: 12% 40% 3% 3%; } /* single echo rectangle, anchored down-left of the dominant */
.ce-photo { margin: 0; overflow: hidden; position: relative; z-index: 3; background: var(--color-white);
  border: 10px solid var(--color-white); box-shadow: 0 18px 42px rgba(11, 11, 11, .12); }
.ce-photo::after { content: ""; position: absolute; inset: 10px;
  border: var(--hairline) solid rgba(241, 234, 217, .62); pointer-events: none; }
.ce-photo img { width: 100%; height: 100%; object-fit: cover; animation: heroImgIn 1.15s var(--ease) both; }
.ce-main    { grid-area: 2 / 2 / 12 / 10; z-index: 3; border-width: 12px; }
.ce-top     { grid-area: 1 / 8 / 6 / 14; z-index: 5; }
.ce-consult { grid-area: 7 / 8 / 13 / 14; z-index: 5; }
.ce-main img { object-position: 50% 32%; }
.ce-top img { object-position: 30% 45%; animation-delay: .12s; }
.ce-consult img { object-position: 40% 28%; animation-delay: .2s; }
@media (max-width: 991px) {
  .ce-shell { grid-template-columns: 1fr; min-height: 0; padding-top: var(--space-3xl); }
  .ce-h1 { max-width: 10em; }
  .ce-media { max-width: 800px; width: 100%; margin: 0 auto; height: clamp(540px, 80vw, 660px); }
}
@media (max-width: 767px) {
  .ce-shell { gap: var(--space-xl); padding-top: var(--space-2xl); }
  .ce-h1 { font-size: clamp(3.4rem, 14vw, 4.5rem); } /* donor mobile hero ≈57-60px */
  /* donor mobile: lede stays 18px (clamp floor); actions = tight grid, both full-width */
  .ce-copy .btn-row { display: grid; gap: 9px; }
  .ce-copy .button, .ce-copy .link-cta { width: 100%; }
  .ce-media { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none;
    gap: 10px; height: auto; min-height: 0; margin-top: var(--space-sm); padding: 0; }
  .ce-media::before { display: none; }
  .ce-photo { border-width: 7px; box-shadow: 0 14px 30px rgba(11, 11, 11, .1); }
  .ce-photo::after { inset: 7px; }
  .ce-main { grid-area: auto; grid-column: 1 / -1; aspect-ratio: 1.35; }
  .ce-top, .ce-consult { grid-area: auto; aspect-ratio: 1; }
}

/* ---- Tracked text CTA + animated hairline underline (from the reference site) ---- */
/* Text action (donor .text-action): ruled uppercase link with ↗, paired beside .button */
.link-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: 52px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.09em;
  line-height: 1.2; text-transform: uppercase; text-decoration: none; color: var(--text-heading);
  position: relative; border-bottom: var(--hairline) solid currentColor;
  transition: color var(--duration) var(--ease); }
.link-cta::after { content: "\2197"; font-size: 18px; font-weight: 400; line-height: 1;
  transition: transform var(--duration) var(--ease); }
.link-cta:hover { color: var(--accent-hover); }
.link-cta:hover::after { transform: translate(2px, -2px); }
.eyebrow.has-rule { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow.has-rule::before { content: ""; width: 36px; height: var(--hairline);
  background: var(--accent); flex: none; }

/* ---- Photo strip — image-forward triptych, staggered rise, slow zoom on hover ---- */
.photo-strip { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: var(--space-lg); align-items: stretch; }
.photo-strip figure { overflow: hidden; margin: 0; }
.photo-strip img { width: 100%; height: 100%; min-height: 300px; max-height: 440px; object-fit: cover;
  transition: transform 1.2s var(--ease); }
.photo-strip figure:hover img { transform: scale(1.045); }
@media (max-width: 767px) { .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { min-height: 220px; max-height: 300px; } }

/* ---- Feature split (text + photo, top-aligned; media panel never balloons) ---- */
.split-media { overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media:hover img { transform: scale(1.03); }
@media (min-width: 768px) { .split-media { align-self: stretch; } .split-media img { min-height: 380px; max-height: 560px; } }
@media (max-width: 767px) { .split-media img { max-height: 420px; } }

/* ---- Steps (How it works) — boxless gold-numeral guidance columns ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.step { border-top: var(--card-edge) solid var(--accent); padding-top: var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-sm); }
.step-num { font-family: var(--font-display); font-weight: var(--weight-medium);
  font-size: var(--heading-l); color: var(--accent-hover); font-style: italic; line-height: 1; }
.step h3 { font-size: var(--heading-m); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: var(--space-lg); } }

/* ---- Triage / guidance rows — boxless hairline columns (brand: NOT cards) ---- */
.guide-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }
.guide-col { border-top: var(--hairline) solid var(--color-border); padding-top: var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-sm); }
.guide-col h3 { font-size: var(--text-large); }
.guide-col.is-accent { border-top: var(--card-edge) solid var(--accent); }
.section.is-dark .guide-col { border-top-color: rgba(241, 234, 217, 0.22); }
@media (max-width: 991px) { .guide-cols { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); } }
@media (max-width: 767px) { .guide-cols { grid-template-columns: 1fr; } }

/* ---- Visit band ---- */
.visit-info { display: flex; flex-direction: column; gap: var(--space-sm); }
.visit-info a { text-decoration: none; }
.visit-info a:hover { color: var(--accent-hover); }
.visit-line { display: flex; gap: var(--space-sm); align-items: baseline; }
.visit-line .eyebrow { min-width: 72px; }

/* ---- FAQ — smooth grid-rows open (from /weight-loss), gold plus rotates ---- */
.faq-item { border-bottom: var(--hairline) solid var(--color-border); }
.faq-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-md); background: none; border: 0; font-family: var(--font-display);
  font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight);
  font-size: var(--heading-m); color: var(--text-heading); text-align: left;
  padding: var(--space-lg) 0; cursor: pointer; }
.faq-chev { flex: none; font-family: var(--font-body); color: var(--accent-hover); font-size: 1.5rem;
  line-height: 1; font-weight: 400; transition: transform .32s var(--ease); }
.faq-trigger[aria-expanded="true"] .faq-chev { transform: rotate(45deg); }
.faq-ans { display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .42s var(--ease), opacity .3s var(--ease); }
.faq-ans > div { overflow: hidden; }
.faq-ans > div > p { max-width: 720px; padding-bottom: var(--space-lg); }
.faq-ans[data-open] { grid-template-rows: 1fr; opacity: 1; }

/* ---- Curtain closing CTA (the /weight-loss signature) — page scrolls away to reveal a
   fixed full-viewport dark invitation. site.js adds .no-curtain when motion is reduced. ---- */
.curtain-spacer { height: 100svh; }
.closing-cta { position: fixed; left: 0; right: 0; bottom: 0; height: 100svh; z-index: 0;
  background: var(--surface-dark); color: var(--text-on-dark); display: flex; align-items: center; }
.closing-cta h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); color: var(--text-on-dark); }
.closing-cta .text-muted { color: var(--text-on-dark-muted); }
.page-above-curtain { position: relative; z-index: 1; background: var(--surface-page);
  box-shadow: 0 30px 60px -30px rgba(11, 11, 11, 0.55); }
.no-curtain .closing-cta { position: static; height: auto; padding: var(--section-pad-y) 0; }
.no-curtain .curtain-spacer { display: none; }

/* ---- Trust band — STRUCTURED chips (never floating thin text) ---- */
.trust-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--hairline) solid rgba(241, 234, 217, 0.22);
  border-bottom: var(--hairline) solid rgba(241, 234, 217, 0.22); margin-top: var(--space-2xl); }
.trust-band > div { padding: var(--space-lg) var(--space-md); text-align: center;
  font-size: var(--text-small); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--text-on-dark-muted); }
.trust-band > div + div { border-left: var(--hairline) solid rgba(241, 234, 217, 0.22); }
@media (max-width: 767px) { .trust-band { grid-template-columns: 1fr 1fr; }
  .trust-band > div:nth-child(n+3) { border-top: var(--hairline) solid rgba(241, 234, 217, 0.22); }
  .trust-band > div:nth-child(3) { border-left: 0; } }

/* ---- Footer ---- */
.footer { background: var(--surface-dark); color: var(--text-on-dark);
  padding: var(--space-3xl) 0 var(--space-lg); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--space-xl);
  align-items: start; padding-bottom: var(--space-xl); }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .nav-name { color: var(--text-on-dark); }
.footer p, .footer-col a { color: var(--text-on-dark-muted); }
.footer-h { font-family: var(--font-body); font-size: var(--eyebrow); text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); color: var(--accent); margin-bottom: var(--space-md); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a { text-decoration: none; transition: color var(--duration) var(--ease); }
.footer-col a:hover { color: var(--color-gold); }
.footer-disclaimer { font-size: var(--text-small); color: var(--text-on-dark-muted);
  border-top: var(--hairline) solid rgba(241, 234, 217, 0.14); padding-top: var(--space-lg); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-md); padding-top: var(--space-lg);
  font-size: var(--text-small); color: var(--text-on-dark-muted); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--color-gold); }

/* ---- Forms (compliance: contact fields only — never symptoms/PHI) ---- */
.form-block { display: flex; flex-direction: column; gap: var(--space-md); }
.form-block label { font-size: 0.9rem; font-weight: var(--weight-semibold); display: flex; flex-direction: column; gap: var(--space-xs); }
.form-block input, .form-block select {
  font: inherit; padding: 12px 14px; border: var(--hairline) solid var(--color-border);
  border-radius: var(--radius); background: var(--color-white); color: var(--text-body); }
.form-block input:focus, .form-block select:focus { outline: 2px solid var(--color-gold); outline-offset: 1px; }
.form-note { font-size: var(--text-small); color: var(--text-muted); }
.form-check { flex-direction: row !important; align-items: flex-start; gap: var(--space-sm) !important;
  font-weight: var(--weight-body) !important; font-size: 0.9rem; }
.form-check input { width: auto; margin-top: 3px; }

/* ---- Scroll reveal (from /weight-loss: revealRise; site.js flips .is-in; stagger via --d) ---- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(22px); will-change: opacity, transform; }
  [data-reveal].is-in { animation: revealRise .8s var(--ease) both; animation-delay: var(--d, 0s); }
}
@keyframes revealRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-img, .hl-line > span, .hero-anim, .ce-photo img {
    animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---- Care index (design-harvest C3/M1/M4 — F2 donor) ----
   Ruled accordion register: gold italic numeral · display-serif name · plus icon.
   One panel open per index (site.js). Type sizes scoped here until harvest C1 ships. */
.care-index { border-bottom: 1px solid var(--color-border); }
.ci-row { border-top: 1px solid var(--color-border); }
.ci-btn { width: 100%; display: grid; grid-template-columns: 48px 1fr 22px; align-items: center;
  gap: var(--space-md); padding: 22px 0; background: none; border: 0; text-align: left;
  cursor: pointer; color: inherit; }
.ci-btn b { font-family: var(--font-display); font-style: italic; font-weight: var(--weight-body);
  font-size: 1rem; color: var(--accent); }
.ci-btn > span { font-family: var(--font-display); font-weight: var(--weight-medium);
  font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2rem); line-height: 1.05;
  letter-spacing: var(--tracking-tight); color: var(--text-heading);
  transition: color var(--duration) var(--ease); }
.ci-btn i { position: relative; width: 18px; height: 18px; justify-self: end; }
.ci-btn i::before, .ci-btn i::after { content: ""; position: absolute; left: 0; top: 8px;
  width: 18px; height: 1px; background: currentColor;
  transition: transform var(--duration) var(--ease); }
.ci-btn i::after { transform: rotate(90deg); }
.ci-btn[aria-expanded="true"] i::after { transform: none; }
.ci-btn:hover > span, .ci-btn:focus-visible > span { color: var(--accent-hover); }
.ci-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ci-panel { padding: 0 0 26px 48px; max-width: 640px; display: flex; flex-direction: column;
  gap: var(--space-sm); align-items: flex-start; }
.ci-panel[hidden] { display: none; } /* author display beats the [hidden] UA rule otherwise */
.ci-panel p { color: var(--text-muted); }
.ci-panel a { font-size: var(--text-small); font-weight: var(--weight-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-eyebrow);
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  display: inline-flex; align-items: center; gap: 10px; }
.ci-panel a::after { content: "\2197"; transition: transform var(--duration) var(--ease); }
.ci-panel a:hover::after, .ci-panel a:focus-visible::after { transform: translate(3px, -3px); }
@media (prefers-reduced-motion: no-preference) {
  .ci-panel:not([hidden]) { animation: ciPanel .5s cubic-bezier(.16, 1, .3, 1); }
}
@keyframes ciPanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .ci-btn { grid-template-columns: 36px 1fr 20px; padding: 18px 0; }
  .ci-panel { padding-left: 36px; }
}

/* ---- Ruled service register (design-harvest C2 — variant A donor) ---- */
.svc-register { border-bottom: 1px solid var(--color-border); }
.sr-row { display: grid; grid-template-columns: 48px minmax(220px, .55fr) 1fr;
  gap: var(--space-sm) var(--space-md); align-items: baseline; padding: 18px 0;
  border-top: 1px solid var(--color-border); }
.sr-row b { font-family: var(--font-display); font-style: italic; font-weight: var(--weight-body);
  font-size: 1rem; color: var(--accent); }
.sr-row > span { font-family: var(--font-display); font-weight: var(--weight-medium);
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.625rem); letter-spacing: var(--tracking-tight);
  color: var(--text-heading); }
.sr-row p { margin: 0; color: var(--text-muted); font-size: var(--text-base); }
.svc-register + .btn-row { margin-top: var(--space-lg); }
@media (max-width: 767px) {
  .sr-row { grid-template-columns: 36px 1fr; }
  .sr-row p { grid-column: 2; }
}

/* ---- Utility ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gold-rule { width: 64px; border: 0; border-top: var(--card-edge) solid var(--accent); margin: 0; }
