/* Layout: calm two-column editorial pages with a "route" line motif that maps the care pathway. */
:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --ink: #1b2a2c;
  --muted: #55676a;
  --line: #d5dedc;
  --accent: #2c6a5e;      /* eucalyptus */
  --accent-ink: #ffffff;
  --accent-soft: #e2eeea;
  --marker: #c2933d;      /* road-marking ochre, used sparingly */
  --display: "Petrona", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a1b; --surface: #1a2526; --ink: #e6eeec; --muted: #9fb2b0;
    --line: #2c3b3c; --accent: #7cc3b2; --accent-ink: #0f1b1a; --accent-soft: #1f3431;
    --marker: #d9ad5c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121a1b; --surface: #1a2526; --ink: #e6eeec; --muted: #9fb2b0;
  --line: #2c3b3c; --accent: #7cc3b2; --accent-ink: #0f1b1a; --accent-soft: #1f3431;
  --marker: #d9ad5c; color-scheme: dark;
}

*, *::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(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.prose { display: grid; gap: 1rem; max-width: 40rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: .1rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.brand span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding-block: .25rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--marker); }
.nav .btn { padding: .45rem .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid var(--accent); transition: background .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink) !important; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; gap: 1.5rem; }
.hero .lede { margin-top: .25rem; }

/* Route (care pathway) */
.route { padding-block: 1rem 3.5rem; }
.route ol {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.route ol::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 0;
  border-top: 3px dashed var(--marker);
}
.route li { position: relative; padding-top: 2.25rem; min-width: 0; }
.route li::before {
  content: ""; position: absolute; top: 2px; left: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.route .stage { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.route h3 { font-size: 1.15rem; margin-block: .25rem .35rem; }
.route p { font-size: .97rem; color: var(--muted); }
@media (max-width: 760px) {
  .route ol { grid-template-columns: 1fr; gap: 1.5rem; padding-left: 2.25rem; }
  .route ol::before { left: 10px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px dashed var(--marker); }
  .route li { padding-top: 0; }
  .route li::before { left: -2.25rem; top: 4px; }
}

/* Sections */
.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; max-width: 42rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem; display: grid; gap: .55rem; align-content: start; min-width: 0;
}
.card p { color: var(--muted); font-size: .98rem; }
.card a.more { font-weight: 600; font-size: .95rem; text-decoration: none; margin-top: .25rem; }
.card a.more::after { content: " →"; }

/* Service detail blocks */
.service { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem 3rem; padding-block: 2.25rem; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h2 { font-size: 1.6rem; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

.facts { display: grid; gap: .1rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: .15rem; } }

.note {
  background: var(--accent-soft); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: .97rem;
}
.note strong { display: block; margin-bottom: .2rem; }

.creds { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.creds li { padding-block: .7rem; border-bottom: 1px solid var(--line); }
.creds li:first-child { border-top: 1px solid var(--line); }

.placeholder { background: color-mix(in srgb, var(--marker) 22%, transparent); padding: 0 .3em; border-radius: 3px; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band .wrap { padding-block: clamp(2.5rem, 6vw, 3.75rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { max-width: 30rem; }
.cta-band p { opacity: .88; margin-top: .4rem; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent) !important; border-color: var(--accent-ink); }
.cta-band .btn-ghost { color: var(--accent-ink); border-color: var(--accent-ink); }
.cta-band .btn-ghost:hover { background: color-mix(in srgb, var(--accent-ink) 14%, transparent); }

/* Footer */
.site-footer { padding-block: 2.5rem 3rem; font-size: .93rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.site-footer h3 { font-family: var(--body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.site-footer a { color: var(--muted); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: .85rem; }
.crisis { font-size: .9rem; }

/* Photos carried over from the original BodyChanges site */
.brand { align-items: center; }
.brand img { width: 36px; height: 36px; border-radius: 50%; margin-right: .55rem; object-fit: cover; }
.hero-photo { position: relative; isolation: isolate; color: #fff; background: #1b2a2c; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-img) center / cover no-repeat;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14,28,27,.88) 0%, rgba(14,28,27,.7) 45%, rgba(14,28,27,.25) 100%);
}
.hero-photo .lede { color: rgba(255,255,255,.88); }
.hero-photo .eyebrow { color: #e7c27a; }
.hero-photo .btn-primary { background: #fff; color: #1f4f46 !important; border-color: #fff; }
.hero-photo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.hero-photo .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-photo + .route { padding-top: 2.5rem; }
.portrait { margin: 0; display: grid; gap: .5rem; }
.portrait img { width: 100%; max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
.portrait figcaption { font-size: .88rem; color: var(--muted); }
.section > .wrap > .portrait { max-width: 46rem; }
