/* ============================================================
   Saunders Physiotherapy — design system
   Deep navy + sky blue, red booking CTAs (red is used for booking only).
   Mobile-first; wide layouts from 900px.
   ============================================================ */

@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/sora-var.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0A1522;
  --navy: #0F2238;
  --navy-soft: #16304E;
  --paper: #F6F8FA;
  --white: #FFFFFF;
  --accent: #5AB4FF;       /* sky blue: accents on dark backgrounds */
  --accent-deep: #1557A8;  /* dark blue: links and accents on light backgrounds */
  --accent-ink: #0F4C9A;   /* deepest blue: eyebrow text and tags on light backgrounds */
  --blue: #2A72D4;         /* mid blue: filled buttons on dark backgrounds */
  --red: #D0212F;          /* red: booking buttons only, so "Book" is the one warm colour on the page */
  --red-deep: #B91C2A;
  --cta: var(--red);
  --cta-deep: var(--red-deep);
  --text: #24313F;
  --muted: #5C6C7C;
  --line: #E2E9EF;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 6px 24px -8px rgba(10, 21, 34, .18);
  --shadow-lg: 0 24px 60px -24px rgba(10, 21, 34, .38);
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --head-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Text for screen readers only (e.g. the new-tab note on booking links). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: .97rem;
  padding: .78em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 8px 22px -10px rgba(185, 28, 42, .7); }
.btn-cta:hover { background: var(--cta-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-accent { background: var(--blue); color: #fff; }
.btn-accent:hover { background: var(--accent); color: var(--ink); }
.btn-lg { font-size: 1.05rem; padding: .9em 1.9em; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  color: #fff;
  transition: box-shadow .2s ease;
}
.site-head.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.head-row { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue) 100%);
  color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: .01em; }
.brand-text em { font-style: normal; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: .55em .8em; color: rgba(255,255,255,.85);
  font-family: var(--font-display); font-weight: 500; font-size: .93rem; border-radius: 8px;
  text-decoration: none !important;
}
.site-nav li a:hover { color: #fff; background: rgba(255,255,255,.08); }
/* "Our Team" drop-down: the link still opens /about/; the arrow button opens the list for touch and keyboard */
.has-sub { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: rgba(255,255,255,.85); cursor: pointer;
}
.sub-toggle svg { transition: transform .2s ease; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.site-nav .sub-menu { display: none; }
.site-nav .has-sub.open .sub-menu { display: flex; }
.nav-book { display: none; }
.head-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.site-nav + .head-actions { margin-left: 0; }
.head-phone { display: none; align-items: center; gap: .45em; color: #fff; font-weight: 600; font-size: .93rem; text-decoration: none !important; }
.head-phone:hover { color: var(--accent); }
.book-pop { position: relative; display: none; }
.book-pop-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 120;
}
.book-pop-menu a {
  display: block; padding: .7em .9em; border-radius: 9px; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-decoration: none !important;
}
.book-pop-menu a small { display: block; color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: .8rem; }
.book-pop-menu a:hover { background: var(--paper); }
.nav-burger {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav overlay */
@media (max-width: 899px) {
  .site-nav {
    position: fixed; inset: var(--head-h) 0 0 0; background: var(--navy);
    padding: 20px clamp(18px, 5vw, 32px) 40px; z-index: 90;
    display: none; flex-direction: column; gap: 16px; overflow: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { font-size: 1.25rem; padding: .7em .2em; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav-book { display: grid; gap: 10px; margin-top: 10px; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 52px; align-self: stretch; border-bottom: 1px solid rgba(255,255,255,.08); }
  .sub-toggle svg { width: 16px; height: 16px; }
  .site-nav .sub-menu { flex-basis: 100%; padding: 4px 0 8px 14px; }
  .site-nav .sub-menu a { font-size: 1.05rem; padding: .55em .2em; color: rgba(255,255,255,.75); border-bottom: 0; }
}
@media (min-width: 900px) {
  .nav-burger { display: none; }
  .head-phone { display: inline-flex; }
  .book-pop { display: block; }
  .has-sub { flex-wrap: nowrap; }
  .sub-toggle { width: 26px; height: 36px; margin-left: -8px; border-radius: 8px; }
  .sub-toggle:hover { color: #fff; background: rgba(255,255,255,.08); }
  .site-nav .sub-menu {
    position: absolute; left: 0; top: calc(100% + 10px); min-width: 230px; flex-direction: column; gap: 0;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 120;
  }
  /* invisible bridge so the pointer can cross the gap between the link and the list */
  .site-nav .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .site-nav .sub-menu a { padding: .6em .9em; color: var(--ink); font-weight: 600; white-space: nowrap; }
  .site-nav .sub-menu a:hover { color: var(--ink); background: var(--paper); }
  .site-nav .sub-menu a[aria-current="page"] { color: var(--accent-deep); }
  .site-nav .sub-menu .sub-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
  .site-nav .sub-menu .sub-all a { font-weight: 500; color: var(--accent-deep); }
}
@media (min-width: 900px) and (hover: hover) {
  .site-nav .has-sub:hover .sub-menu { display: flex; }
  .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }
}

/* ---------- sticky mobile book bar ---------- */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: grid; grid-template-columns: 110px 1fr; gap: 1px;
  background: var(--line);
  box-shadow: 0 -8px 30px -12px rgba(10,21,34,.35);
  padding-bottom: env(safe-area-inset-bottom);
}
.book-bar-call {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 600;
  padding: 15px 8px; text-decoration: none !important;
}
.book-bar-book {
  border: 0; background: var(--cta); color: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; padding: 15px 8px;
}
.book-bar-sheet {
  position: absolute; bottom: 100%; left: 0; right: 0;
  background: #fff; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); padding: 10px;
}
.book-bar-sheet a {
  display: block; padding: .95em 1em; border-radius: 10px; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; text-decoration: none !important;
}
.book-bar-sheet a:hover { background: var(--paper); }
body { padding-bottom: 62px; }
@media (min-width: 900px) {
  .book-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(90, 180, 255, .22), transparent 60%),
    radial-gradient(700px 480px at -10% 110%, rgba(18, 165, 232, .16), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 460px at 78% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(720px 460px at 78% 30%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 110px) clamp(44px, 7vw, 90px); }
.hero .kicker { color: var(--accent); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: rgba(255,255,255,.82); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; padding: 0; font-size: .92rem; color: rgba(255,255,255,.82); }
.hero-trust li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.hero-trust a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fee-ctas { margin: 22px 0 8px; }
.kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px;
}

/* stat band */
.stat-band { border-top: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.stat-band .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.stat {
  padding: 20px 12px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--accent); }
.stat span { font-size: .82rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }
@media (min-width: 700px) { .stat-band .wrap { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 699px) { .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); } }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-tint { background: var(--paper); }
.section-dark { background: linear-gradient(160deg, var(--ink), var(--navy)); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.82); }
.section-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: 1.12rem; color: var(--muted); }
.section-dark .lede { color: rgba(255,255,255,.8); }
.section-dark .kicker { color: var(--accent); }

/* ---------- card grids ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
a.card { text-decoration: none !important; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.card .card-go {
  margin-top: auto; padding-top: 14px; font-family: var(--font-display); font-weight: 600;
  font-size: .9rem; color: var(--accent-deep);
}
/* card with a photo: full-bleed thumbnail, padding moves to the inner body */
.card-media { padding: 0; overflow: hidden; }
.card-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card-media .card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-media .card-body .card-go { margin-top: auto; padding-top: 12px; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(90,180,255,.16), rgba(42,114,212,.14));
  color: var(--accent-deep);
}
.section-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: rgba(255,255,255,.72); }
.section-dark .card .card-go { color: var(--accent); }

/* ---------- team ---------- */
.team-card { text-align: left; overflow: hidden; padding: 0; }
.team-card .team-photo {
  aspect-ratio: 4 / 4.6; width: 100%; object-fit: cover;
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
}
.team-photo-fallback {
  aspect-ratio: 4 / 4.6; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  color: var(--accent); font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
}
.team-card .team-meta { padding: 18px 20px 22px; }
.team-card .team-meta h3 { margin-bottom: .15em; }
.team-card .team-meta p { font-size: .88rem; color: var(--muted); margin: 0; }
/* bio snippet box: slides up over the card on hover or keyboard focus; touch screens go straight to the bio */
.team-snippet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 100%; overflow: hidden;
  display: none; flex-direction: column; gap: 8px; padding: 20px 20px 22px;
  background: rgba(15, 34, 56, .95); color: rgba(255,255,255,.86);
  opacity: 0; transform: translateY(14px); transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.team-snippet strong { font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
.team-snippet-text {
  font-size: .88rem; line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden;
}
.team-card .team-snippet .card-go { margin-top: 0; padding-top: 4px; color: var(--accent); }
@media (hover: hover) {
  .team-snippet { display: flex; }
  .team-card:hover .team-snippet, .team-card:focus-visible .team-snippet { opacity: 1; transform: none; }
}
/* home page: all physios, two compact columns on phones */
@media (max-width: 639px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-grid .team-card .team-meta { padding: 12px 14px 16px; }
  .team-grid .team-card .team-meta h3 { font-size: 1rem; }
  .team-grid .team-card .team-meta p { font-size: .8rem; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(640px 320px at 90% 0%, rgba(90,180,255,.25), transparent 65%),
    linear-gradient(150deg, var(--ink), var(--navy-soft));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 60px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 50ch; }
.cta-band .hero-ctas { margin: 0; }

/* ---------- prose (blog/content) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.4em 0; padding: .2em 0 .2em 1.1em; color: var(--muted); }
.prose li { margin-bottom: .4em; }

/* page hero (interior pages) */
.page-hero { background: linear-gradient(160deg, var(--ink), var(--navy)); color: #fff; padding: clamp(40px, 7vw, 76px) 0; }
.page-hero h1 { color: #fff; }
.page-hero .lede { color: rgba(255,255,255,.8); }
.page-hero .kicker { color: var(--accent); }
.crumbs { font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs span[aria-current] { color: #fff; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(255,255,255,.78); margin-top: 0; font-size: .95rem; }
.foot-grid { display: grid; gap: 34px; padding-top: clamp(44px, 6vw, 70px); padding-bottom: 30px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot-brand { font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.foot-brand strong { font-weight: 700; }
.foot-col h3 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .55em; }
.site-foot a { color: rgba(255,255,255,.78); }
.site-foot a:hover { color: var(--accent); }
.foot-hours { font-size: .88rem; color: rgba(255,255,255,.6); }
.foot-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 26px; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .team-snippet, .sub-toggle svg { transition: none; }
}

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8em 1em; font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { font-size: .84rem; color: var(--muted); }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; }
.alert-ok { background: #E7F8F1; color: #14654B; }
.alert-err { background: #FDEEEA; color: #A03B22; }
.hp-field { position: absolute; left: -5000px; opacity: 0; pointer-events: none; }

/* ---------- content pages (prose + aside) ---------- */
.content-cols { display: grid; gap: 40px; }
@media (min-width: 980px) { .content-cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.content-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--head-h) + 20px); }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-card h3 { font-size: 1.05rem; margin-bottom: .7em; }
.aside-card .btn { width: 100%; margin-bottom: 10px; }
.aside-card-dark { background: linear-gradient(150deg, var(--ink), var(--navy-soft)); border-color: transparent; color: #fff; }
.aside-card-dark h3 { color: #fff; }
.aside-card-dark p { color: rgba(255,255,255,.8); font-size: .93rem; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { padding: .35em 0 .35em 1.7em; position: relative; font-size: .95rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); 
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="4" d="M4 12l5 5L20 6"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="4" d="M4 12l5 5L20 6"/></svg>') center / contain no-repeat;
}
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { margin-bottom: .5em; }
.plain-list a[aria-current] { font-weight: 700; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 0; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 46px 16px 20px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent-deep); transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.profile-portrait { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.team-card .team-photo { aspect-ratio: 4 / 4.6; width: 100%; object-fit: cover; object-position: top; }

/* ---------- blog cards ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-card-body .card-go { margin-top: auto; padding-top: 12px; }
.post-hero { width: 100%; border-radius: var(--radius-lg); margin-bottom: 1.6em; }

/* ---------- brand logo ---------- */
.brand-logo { height: 44px; width: auto; }
.foot-logo { height: 60px; width: auto; margin-bottom: 14px; }
@media (max-width: 480px) { .brand-logo { height: 38px; } }

.aside-photo { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 3 / 2; }

/* In-body photo pair (e.g. clinic wayfinding shots on a location page). */
.content-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin: 1.6em 0; }
.content-photos figure { margin: 0; max-width: 340px; }
.content-photos img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; }
.content-photos figcaption { font-size: .85rem; color: var(--muted); margin-top: .6em; line-height: 1.45; }
.content-video { max-width: 340px; margin: 1.6em auto; }

/* ---------- credential rail (homepage) ---------- */
.cred-rail { display: grid; gap: 0; counter-reset: cred; margin-top: clamp(24px, 4vw, 40px); }
.cred-step {
  position: relative; padding: 16px 0 16px 54px; text-decoration: none !important;
  border-left: 2px solid rgba(90, 180, 255, .35); margin-left: 17px;
}
.cred-step:last-child { border-left-color: transparent; }
.cred-step::before {
  counter-increment: cred; content: counter(cred);
  position: absolute; left: -18px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-soft); border: 2px solid var(--accent); color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.cred-step b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: #fff; letter-spacing: -.01em; }
.cred-step span { display: block; font-size: .9rem; color: rgba(255,255,255,.72); max-width: 46ch; }
a.cred-step:hover b { color: var(--accent); }
@media (min-width: 980px) {
  .cred-rail { grid-template-columns: repeat(6, 1fr); }
  .cred-step { border-left: 0; margin-left: 0; padding: 58px 18px 0 0; }
  .cred-step::before { left: 0; top: 0; }
  .cred-step::after {
    content: ""; position: absolute; left: 42px; right: 10px; top: 16px; height: 2px;
    background: linear-gradient(90deg, rgba(90,180,255,.45), rgba(90,180,255,.12));
  }
  .cred-step:last-child::after { display: none; }
}
.cred-proof { margin-top: clamp(22px, 3vw, 34px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cred-proof p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.65); }

/* ---------- care pathway (condition pages) ---------- */
.pathway { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 34px); margin-bottom: clamp(30px, 5vw, 48px); }
.pathway > h2 { font-size: 1.35rem; margin-bottom: 4px; }
.pathway-note { color: var(--muted); font-size: .93rem; margin-bottom: 20px; }
.pathway-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .pathway-grid { grid-template-columns: repeat(2, 1fr); } }
.pathway-cell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pathway-cell h3 {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .7em;
}
.pathway-cell p { font-size: .95rem; margin-bottom: 0; }
.pathway-cell ul { margin: 0; padding: 0; }
.pathway-cell .tick-list li { font-size: .93rem; }
.pathway-who { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.pathway-who a {
  display: inline-flex; align-items: center; gap: .4em;
  background: rgba(90, 180, 255, .12); border: 1px solid rgba(21, 87, 168, .3);
  color: var(--accent-ink); border-radius: 999px; padding: .3em .9em;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem; text-decoration: none !important;
}
.pathway-who a:hover { background: rgba(90, 180, 255, .26); }
.pathway-cell--wide { grid-column: 1 / -1; }

/* ---------- fees table ---------- */
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fee-table th, .fee-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table th { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table .fee-amount { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.fee-table td small { display: block; color: var(--muted); }
.fee-wrap { overflow-x: auto; }

/* ---------- evidence / reference lists (research page) ---------- */
.ref-list { list-style: none; margin: 0 0 1.4em; padding: 0; }
.ref-list li { padding: 14px 0 14px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.ref-list li:last-child { border-bottom: 0; }
.ref-list .ref-src { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }

/* ---------- hero slider ---------- */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease; will-change: opacity;
}
.hero-slide.is-on { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  /* Hold >=.84 ink under the text column (white text stays above 4.5:1 even over a
     blown-out window in the photo), then open up so the right half reads as a photo. */
  background:
    linear-gradient(100deg, rgba(10, 21, 34, .88) 0%, rgba(10, 21, 34, .84) 54%, rgba(15, 34, 56, .32) 76%, rgba(15, 34, 56, .24) 100%),
    linear-gradient(0deg, rgba(10, 21, 34, .5), rgba(10, 21, 34, .12) 42%);
}
/* Narrow screens: the text spans the full width, so the photo cannot be allowed through. */
@media (max-width: 1080px) {
  .hero-scrim { background: linear-gradient(0deg, rgba(10, 21, 34, .9), rgba(10, 21, 34, .82)); }
}
.hero-has-slides::after { z-index: 1; }
.hero-has-slides .hero-inner, .hero-has-slides .stat-band { position: relative; z-index: 2; }
.hero-has-slides .stat-band { background: rgba(10, 21, 34, .55); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ---------- page video ---------- */
.page-video {
  display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--ink);
}
/* Product photo above the EZR order cards: same width as the cards (their grid is max 760px). */
.product-photo {
  display: block; width: 100%; max-width: 760px; height: auto; margin: 0 0 24px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.prose figure video, .prose video {
  display: block; width: 100%; max-width: 100%; height: auto;
  border-radius: var(--radius-lg); background: var(--ink);
}
/* YouTube embeds in post bodies carry width="800" height="450": fit them to the column at 16:9,
   so they do not push the page wider than a phone screen. */
.prose iframe {
  display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 0; border-radius: var(--radius-lg); background: var(--ink);
}
.prose figure { margin: 0 0 1.6em; }
.prose figcaption { font-size: .88rem; color: var(--muted); padding-top: .6em; text-align: center; }
