/* =========================================================
   Cedar Health — styles
   Palette rooted in eastern white cedar (arborvitae),
   native to the Niagara escarpment.
   ========================================================= */

:root {
  /* ---- Colour ---- */
  --ink:        #16241c;   /* body text — near-black, green undertone */
  --ink-soft:   #38473e;   /* secondary text on light */
  --cedar:      #1b3a2a;   /* deep evergreen — headings, dark sections */
  --cedar-deep: #10261b;   /* darkest — gradients, footer */
  --cedar-2:    #295040;   /* mid evergreen */
  --leaf:       #2f7d51;   /* living accent — CTAs, links */
  --leaf-bright:#43a96e;   /* brighter accent on dark */
  --leaf-soft:  #e7f0e8;   /* faint leaf tint — icon chips, pills */
  --leaf-line:  #cfe0d4;   /* tint border */
  --bark:       #9d6f49;   /* warm cedarwood — used sparingly */

  --paper:      #f6f7f2;   /* warm off-white page */
  --sage:       #eaf0e7;   /* section tint */
  --card:       #ffffff;
  --line:       #dce3d8;   /* hairline borders */
  --line-soft:  #e9eee4;
  --muted:      #55655b;

  /* ---- Type ---- */
  --display: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --util:    "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Scale / rhythm ---- */
  --maxw: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* ---- Depth ---- */
  --shadow-sm: 0 1px 2px rgba(16,38,27,.06), 0 2px 6px -2px rgba(16,38,27,.08);
  --shadow:    0 4px 14px -6px rgba(16,38,27,.14), 0 24px 48px -28px rgba(16,38,27,.30);
  --shadow-lg: 0 10px 30px -12px rgba(16,38,27,.22), 0 44px 80px -44px rgba(16,38,27,.45);
  --ring: 0 0 0 3px rgba(47,125,81,.20);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.965rem + 0.18vw, 1.07rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.021em; }
p { margin: 0; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--util);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--leaf);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .55;
}
.eyebrow.on-dark { color: #8fd0a4; }

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--leaf);
  --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--util); font-weight: 600; font-size: .97rem;
  padding: .82rem 1.45rem; border-radius: 999px;
  background: var(--_bg); color: var(--_fg);
  text-decoration: none; border: 1.5px solid transparent;
  box-shadow: 0 1px 2px rgba(16,38,27,.12), 0 10px 22px -14px rgba(31,80,52,.7);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); background: #276a45; box-shadow: 0 14px 30px -14px rgba(31,80,52,.7); }
.btn:focus-visible { outline: none; box-shadow: var(--ring), 0 10px 22px -14px rgba(31,80,52,.7); }
.btn--ghost {
  --_bg: #fff; --_fg: var(--cedar);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { background: #fff; border-color: var(--cedar); color: var(--cedar); }
.btn--ondark { --_bg:#fff; --_fg: var(--cedar); }
.btn--ondark.btn--ghost { --_bg:transparent; --_fg:#fff; border-color: rgba(255,255,255,.4); box-shadow:none; }

/* ---------- status pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--util); font-weight: 600; font-size: .8rem;
  letter-spacing: .01em;
  padding: .42rem .85rem .42rem .7rem; border-radius: 999px;
  background: #fff; color: var(--cedar-2);
  border: 1px solid var(--leaf-line);
  box-shadow: var(--shadow-sm);
}
.pill .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--leaf); position: relative; flex: none;
}
.pill .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--leaf); opacity: .6;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .7; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pill .dot::after { animation: none; } }
.pill.on-dark { background: rgba(255,255,255,.1); color: #eaf3ec; border-color: rgba(255,255,255,.2); box-shadow:none; }
.pill.on-dark .dot, .pill.on-dark .dot::after { background: #86d29a; border-color: #86d29a; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,242,.8);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  border-color: var(--line);
  background: rgba(246,247,242,.92);
  box-shadow: 0 6px 24px -20px rgba(16,38,27,.6);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--cedar); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 1.24rem; letter-spacing: -.03em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  font-family: var(--util); font-weight: 500; font-size: .95rem;
  text-decoration: none; color: var(--ink-soft); position: relative;
  transition: color .16s ease;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--leaf); border-radius: 2px; transform: scaleX(0);
  transform-origin: left; transition: transform .2s ease;
}
.nav a:not(.btn):hover { color: var(--cedar); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding: .56rem 1.15rem; font-size: .9rem; color: #fff; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}

/* =========================================================
   Hero — full-width healthcare photo
   Image: images/hero.jpg  (swap this file to change the photo)
   A dark scrim keeps the copy legible; if the image is missing
   the layered fallback gradient renders a clean dark hero.
   ========================================================= */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(560px, 82vh, 800px);
  color: #fff;
  background-color: var(--cedar-deep);
  background-image:
    linear-gradient(90deg, rgba(8,22,15,.90) 0%, rgba(8,22,15,.66) 40%, rgba(8,22,15,.30) 72%, rgba(8,22,15,.10) 100%),
    linear-gradient(0deg,  rgba(8,22,15,.55) 0%, rgba(8,22,15,0) 45%),
    var(--hero-photo, url("/images/hero.jpg")),
    linear-gradient(165deg, #2b5240 0%, var(--cedar) 55%, var(--cedar-deep) 100%);
  background-repeat: no-repeat;
  background-position: center, center, center 28%, center;
  background-size: cover, cover, cover, cover;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(4rem, 10vw, 7rem); }
.hero__copy { max-width: 640px; }
.hero__copy > * + * { margin-top: 1.4rem; }

.hero .pill {
  background: rgba(255,255,255,.14); color: #eaf7ee; border-color: rgba(255,255,255,.28);
  box-shadow: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero .pill .dot, .hero .pill .dot::after { background: #86d29a; border-color: #86d29a; }
.hero .eyebrow { color: #9fe0b3; margin-top: 1.5rem; }
.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.35rem);
  font-weight: 800; letter-spacing: -0.032em;
  color: #fff; max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 em { font-style: normal; color: #8fe0a6; }
.hero__lede {
  font-size: clamp(1.12rem, 1rem + .42vw, 1.32rem);
  color: rgba(238,246,240,.92); max-width: 46ch;
  text-shadow: 0 1px 18px rgba(0,0,0,.30);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* trust row under the CTAs */
.hero__trust {
  list-style: none; margin: 1.7rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
}
.hero__trust li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--util); font-weight: 500; font-size: .92rem; color: rgba(238,246,240,.94);
}
.hero__trust li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(134,210,154,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238fe0a6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid rgba(134,210,154,.40);
}

/* On smaller screens the copy spans full width — weight the scrim to the bottom. */
@media (max-width: 720px) {
  .hero {
    min-height: clamp(500px, 76vh, 660px);
    background-image:
      linear-gradient(180deg, rgba(8,22,15,.42) 0%, rgba(8,22,15,.72) 52%, rgba(8,22,15,.92) 100%),
      var(--hero-photo, url("/images/hero.jpg")),
      linear-gradient(165deg, #2b5240 0%, var(--cedar-deep) 100%);
    background-position: center, center 22%, center;
    background-size: cover, cover, cover;
  }
  .hero .wrap { padding-block: clamp(3rem, 12vw, 4.5rem); }
}

/* =========================================================
   At-a-glance strip
   ========================================================= */
.strip { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.strip__grid li {
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1rem, 2vw, 1.6rem);
  border-left: 1px solid var(--line-soft);
}
.strip__grid li:first-child { border-left: 0; }
.strip__k { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); color: var(--cedar); letter-spacing: -.02em; }
.strip__v { display: block; margin-top: .3rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) {
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__grid li:nth-child(3) { border-left: 0; }
  .strip__grid li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 420px) {
  .strip__grid { grid-template-columns: 1fr; }
  .strip__grid li { border-left: 0; border-top: 1px solid var(--line-soft); }
  .strip__grid li:first-child { border-top: 0; }
}

/* =========================================================
   Generic section
   ========================================================= */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--tint { background: var(--sage); }
.section--cedar {
  color: #eaf3ec;
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(67,169,110,.18), transparent 55%),
    linear-gradient(165deg, var(--cedar) 0%, var(--cedar-deep) 100%);
}
.section__head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section__head > * + * { margin-top: 1rem; }
.section__head h2 { font-size: clamp(2rem, 1.45rem + 2vw, 3rem); color: var(--cedar); letter-spacing: -.028em; }
.section--cedar .section__head h2 { color: #fff; }
.section__head p { color: var(--muted); font-size: 1.12rem; max-width: 54ch; }
.section--cedar .section__head p { color: #bcd4c2; }

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.svc {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem 1.75rem;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 1.7rem; width: 3px; height: 0;
  background: var(--leaf); border-radius: 0 3px 3px 0;
  transition: height .25s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf-line); }
.svc:hover::before { height: 2.6rem; }
.svc__ic {
  width: 52px; height: 52px; padding: 13px; margin-bottom: 1.1rem;
  color: var(--leaf); background: var(--leaf-soft);
  border: 1px solid var(--leaf-line); border-radius: 15px;
}
.svc h3 { font-size: 1.24rem; color: var(--cedar); margin-bottom: .5rem; }
.svc p { color: var(--muted); font-size: .99rem; }

/* =========================================================
   Doctors
   ========================================================= */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.doc {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 200px 1fr;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.doc__photo { position: relative; background: var(--sage); }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.03) contrast(1.02); }
.doc__photo::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset -1px 0 0 rgba(16,38,27,.06);
  pointer-events: none;
}
.doc__body { padding: 1.7rem 1.7rem 1.75rem; align-self: center; }
.doc__body .role {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--util); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--leaf); font-weight: 700;
}
.doc__body .role::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--leaf); }
.doc__body h3 { font-size: 1.5rem; color: var(--cedar); margin: .45rem 0 .65rem; }
.doc__body p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .docs { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .doc { grid-template-columns: 1fr; } .doc__photo { aspect-ratio: 16/11; } }

/* =========================================================
   Benefits (on cedar)
   ========================================================= */
.benefits { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.benefit {
  display: flex; gap: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.35rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.benefit:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); transform: translateY(-3px); }
.benefit__ic {
  flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px;
  color: #8fe0a6; background: rgba(134,210,154,.13); border: 1px solid rgba(134,210,154,.2);
}
.benefit h3 { font-size: 1.08rem; color: #fff; margin-bottom: .3rem; }
.benefit p { color: #bcd4c2; font-size: .95rem; line-height: 1.55; }

/* =========================================================
   Steps / what to expect
   ========================================================= */
.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); position: relative; }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.6rem 1.7rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step__n {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--util); font-weight: 800; font-size: 1rem;
  color: var(--leaf); background: var(--leaf-soft); border: 1px solid var(--leaf-line);
  margin-bottom: 1rem; letter-spacing: 0;
}
.step h3 { font-size: 1.2rem; color: var(--cedar); margin: 0 0 .5rem; }
.step p { color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { padding-top: 0; }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 11px;
  color: var(--leaf); background: var(--leaf-soft); border: 1px solid var(--leaf-line);
}
.info-list .k { font-family: var(--util); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-list .v { font-size: 1.06rem; color: var(--ink); margin-top: .15rem; }
.tbc { color: var(--bark); font-style: italic; }

.hours { margin-top: 1.6rem; background: var(--leaf-soft); border: 1px solid var(--leaf-line); border-radius: var(--radius-sm); padding: 1.2rem 1.35rem; }
.hours h3 { font-family: var(--util); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cedar-2); margin-bottom: .7rem; }
.hours table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours td { padding: .32rem 0; color: var(--ink); }
.hours tr + tr td { border-top: 1px solid var(--leaf-line); }
.hours td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* form */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form h3 { font-size: 1.45rem; color: var(--cedar); margin-bottom: .35rem; }
.form .sub { color: var(--muted); font-size: .98rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-family: var(--util); font-weight: 600; font-size: .83rem; color: var(--cedar-2); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .78rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfdfb; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--leaf); background: #fff; box-shadow: var(--ring); }
.form .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.form .note { font-size: .82rem; color: var(--muted); margin-top: .9rem; text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  color: #cdd9cf; padding-block: clamp(2.8rem, 5vw, 3.8rem);
  background: linear-gradient(180deg, var(--cedar) 0%, var(--cedar-deep) 100%);
}
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { font-weight: 800; }
.site-footer .brand svg { color: #86d29a; }
.foot-tag { margin-top: 1rem; max-width: 36ch; color: #a9bfae; font-size: .96rem; line-height: 1.6; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: flex-end; }
.foot-nav a { text-decoration: none; color: #cdd9cf; font-family: var(--util); font-size: .95rem; opacity: .85; transition: opacity .15s ease, color .15s ease; }
.foot-nav a:hover { opacity: 1; color: #fff; }
.foot-base {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: space-between;
  font-size: .85rem; color: #97ac9c; font-family: var(--util);
}
@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* skip link */
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: #fff; color: var(--cedar); padding: .6rem 1rem; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { left: 1rem; }

/* =========================================================
   Brand logo image (when a logo is uploaded via the CMS)
   ========================================================= */
.brand__logo { height: 42px; width: auto; display: block; border-radius: 9px; }
.site-footer .brand__logo { height: 46px; }
@media (max-width: 520px) { .brand__logo { height: 36px; } }

/* =========================================================
   Patient intake page
   ========================================================= */
.intake-hero {
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(67,169,110,.10), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--sage));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.intake-hero .eyebrow { margin-bottom: .8rem; }
.intake-hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--cedar); letter-spacing: -.028em; max-width: 20ch; }
.intake-hero__lede { margin-top: 1rem; font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.intake-hero__lede .req, .req { color: #b4472f; font-weight: 700; }
.intake-emergency {
  margin-top: 1.4rem; display: inline-block;
  background: #fff5ef; border: 1px solid #f2c9b6; color: #7a3d27;
  padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .95rem;
}
.intake-emergency strong { color: #b4472f; }

.intake-body { padding-top: clamp(2rem, 4vw, 3rem); }
.intake-form { max-width: 820px; }
.intake-section {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.intake-section > legend {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--cedar);
  padding: 0 .5rem; margin-left: -.5rem; letter-spacing: -.02em;
}
.intake-section__intro { color: var(--muted); font-size: .97rem; margin: .2rem 0 1.1rem; max-width: 62ch; }

.intake-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem 1.1rem; margin-top: 1rem; }
.field--col3 { grid-column: span 3; }
.field--col4 { grid-column: span 4; }
.field--col5 { grid-column: span 5; }
.field--col6 { grid-column: span 6; }
.field--col8 { grid-column: span 8; }
.field--col12 { grid-column: span 12; }
@media (max-width: 640px) {
  .intake-grid > * { grid-column: 1 / -1 !important; }
}

.intake-form label { display: block; font-family: var(--util); font-weight: 600; font-size: .85rem; color: var(--cedar-2); margin-bottom: .35rem; }
.intake-form input:not([type=checkbox]),
.intake-form select,
.intake-form textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .68rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfdfb; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.intake-form textarea { min-height: 90px; resize: vertical; }
.intake-form input:focus, .intake-form select:focus, .intake-form textarea:focus {
  outline: none; border-color: var(--leaf); background: #fff; box-shadow: var(--ring);
}

/* checkbox groups */
.checks { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks > legend { font-family: var(--util); font-weight: 600; font-size: .85rem; color: var(--cedar-2); margin-bottom: .5rem; padding: 0; }
.checks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem .9rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; color: var(--ink); font-size: .96rem; cursor: pointer; }
.check input { margin-top: .2rem; width: 17px; height: 17px; accent-color: var(--leaf); flex: none; }

/* consent rows */
.consent-row { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; }
.consent-row input { margin-top: .25rem; width: 19px; height: 19px; accent-color: var(--leaf); flex: none; }
.consent-row label { margin: 0; font-weight: 500; color: var(--ink); font-size: .98rem; line-height: 1.5; }
.consent-row--plain label { font-weight: 400; color: var(--muted); }

.privacy-notice {
  background: var(--leaf-soft); border: 1px solid var(--leaf-line);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin-bottom: 1.2rem;
}
.privacy-notice strong { display: block; font-family: var(--util); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--cedar-2); margin-bottom: .5rem; }
.privacy-notice p { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }

.intake-actions { margin-top: .4rem; }
.intake-actions .btn { font-size: 1.05rem; padding: .95rem 1.8rem; }
.intake-actions .note { color: var(--muted); font-size: .86rem; margin-top: .7rem; }
.intake-error {
  margin-top: 1rem; background: #fdece7; border: 1px solid #f2c0ae; color: #9a3620;
  padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .95rem;
}

.intake-done { max-width: 620px; margin: 2rem auto; }
.intake-done__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; box-shadow: var(--shadow); }
.intake-done__card svg { width: 56px; height: 56px; color: var(--leaf); margin: 0 auto 1rem; }
.intake-done__card h2 { font-size: 1.6rem; color: var(--cedar); margin-bottom: .7rem; }
.intake-done__card p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.5rem; }
