/* ==========================================================================
   Chiltern Health Centre — Stylesheet
   Editorial grid, hairline elevation, generous radii. Blues + white only.
   ========================================================================== */

/* ---------------------------------------------------------------- RESET -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--text-body);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--c-sky); color: var(--c-navy); }

:focus-visible {
  outline: 2px solid var(--c-azure);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------ TYPOGRAPHY - */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-subheading); }

p { text-wrap: pretty; }

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  font-weight: var(--fw-semibold);
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
  color: var(--text-muted);
}

.text-accent { color: var(--c-azure); }
.text-muted  { color: var(--text-muted); }

/* ----------------------------------------------------------- STRUCTURE --- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.wrap-narrow { max-width: 820px; }

section { position: relative; }

.section       { padding-block: var(--section-gap); }
.section-tight { padding-block: calc(var(--section-gap) * 0.65); }

.section-tint  { background: var(--bg-subtle); }
.section-white { background: var(--bg-card); }

/* Section heading block ---------------------------------------------------- */
.sec-head { max-width: 660px; margin-bottom: var(--sp-12); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: var(--sp-4); font-size: var(--fs-body-lg); color: var(--text-muted); }

/* Wider than the shared 650px cap (modern.css's .sec-head.center /
   #services .sec-head rule) — these two intros wrap their last word or
   two onto a second line at the default width. ID-scoped so only these
   sections are affected. `div.sec-head` (not just `.sec-head`) because
   modern.css's own #services rule is the same specificity and loads
   after this file — the extra element selector is what wins the tie. */
#services div.sec-head,
#process div.sec-head { max-width: 820px; }

/* Eyebrow — small caps label above a heading ------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
}
.eyebrow.on-dark { color: var(--c-sky); }
.center .eyebrow::before { display: none; }

/* ------------------------------------------------------------- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 22px;
  border-radius: var(--r-button);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-navy);
  color: var(--text-invert);
  box-shadow: var(--sh-cta);
}
.btn-primary:hover { background: var(--c-navy-600); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--c-navy);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--c-azure); color: var(--c-ocean); }

.btn-invert {
  background: var(--c-white);
  color: var(--c-navy);
}
.btn-invert:hover { background: var(--c-sky); }

.btn-outline-invert {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.34);
}
.btn-outline-invert:hover { border-color: var(--c-white); background: rgba(255,255,255,.08); }

.btn-lg { padding: 16px 28px; font-size: var(--fs-body-lg); }

/* Text link with arrow ----------------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--fw-medium);
  color: var(--c-ocean);
}
.link-arrow svg { transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-badge);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  border: 1px solid var(--border-hair);
  color: var(--text-body);
  background: var(--bg-card);
}
.badge-accent {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: var(--fw-semibold);
}
.badge-soft {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-strong);
}
.badge-invert {
  background: rgba(255,255,255,.1);
  border-color: var(--border-invert);
  color: var(--c-sky);
}

.badge-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --------------------------------------------------------------- CARDS --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-card);
  padding: var(--card-padding);
  box-shadow: var(--sh-card);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card-hover:hover {
  border-color: var(--c-sky);
  box-shadow: var(--sh-lift);
  transform: translateY(-3px);
}

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.announce {
  background: var(--c-abyss);
  color: var(--c-sky);
  font-size: var(--fs-small);
}
.announce .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding-block: 10px;
  text-align: center;
  flex-wrap: wrap;
}
.announce a {
  color: var(--c-white);
  font-weight: var(--fw-semibold);
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 1px;
}
.announce .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.announce a:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hair);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: 132px;
}
/* ---- Brand lockup --------------------------------------------------------
   The supplied logo is a single raster in which "HEALTH CENTRE" is only 49px
   of a 630px-tall file. Scaled to any sane header height that renders at ~4px
   — illegible. So the icon stays as artwork and the wordmark is set as live
   text: crisp at every size, selectable, and readable by screen readers.
   Colours sampled from the original artwork.
   -------------------------------------------------------------------------- */
.brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.brand-mark { height: 84px; width: auto; flex: none; }
/* Safety net: any image inside .brand is capped, so a page still carrying the
   old full-lockup markup can't render at its natural 1474px and break layout. */
.brand img { max-height: 90px; width: auto; }

.brand-lockup { display: flex; flex-direction: column; gap: 6px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #073166;
  line-height: 1.15;
}

.brand-strap {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-style: italic;
  font-weight: 400;
  color: #4E6C8E;
  line-height: 1.25;
  letter-spacing: .005em;
}

/* Inverted lockup for the dark footer */
.brand--invert .brand-name  { color: #FFFFFF; }
.brand--invert .brand-strap { color: var(--c-sky); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: var(--sp-6); }
.site-nav a {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--text-body);
  padding-block: 6px;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--c-navy); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--c-navy); font-weight: var(--fw-semibold); }

/* "More" dropdown — folds secondary nav items so the header doesn't get
   overcrowded as it grows. Click/tap toggled (see initNavDropdowns), not
   hover-only, so it works the same on touch and pointer devices. */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding-block: 6px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--text-body);
  cursor: pointer;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle { color: var(--c-navy); }
.nav-dropdown-toggle svg { transition: transform var(--dur) var(--ease); }
.nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-toggle[aria-current="page"] { color: var(--c-navy); font-weight: var(--fw-semibold); }

/* Qualified with .site-nav so this beats .site-nav ul's `display:flex`
   (both are `ul` — specificity, not source order, decides the tie). */
.site-nav .nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 16px;
  min-width: 190px;
  padding: var(--sp-2);
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lift);
  z-index: 80;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: var(--r-button);
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] { background: var(--accent-soft); color: var(--c-navy); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-semibold);
  color: var(--c-navy);
  font-size: var(--fs-body);
}
.header-phone svg { color: var(--c-azure); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-button);
  background: var(--bg-card);
  cursor: pointer;
  color: var(--c-navy);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 88px 96px;
}
/* Soft blue aura echoing the logo's gradient sweep */
.hero::before {
  content: "";
  position: absolute;
  top: -280px; right: -180px;
  width: 780px; height: 780px;
  background: radial-gradient(circle at center,
              rgba(56,192,233,.20) 0%,
              rgba(27,143,212,.10) 42%,
              transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -340px; left: -220px;
  width: 640px; height: 640px;
  background: radial-gradient(circle at center,
              rgba(4,88,159,.10) 0%, transparent 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-16);
  align-items: center;
}

.hero h1 { margin-bottom: var(--sp-5); }

/* The motto is a long line — it needs its own scale so "Adding life to years"
   holds on one line inside the hero column instead of breaking mid-phrase. */
.motto {
  font-size: clamp(1.875rem, 4.2vw, 3.75rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero h1 .accent-word {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: var(--fs-body-lg); max-width: 52ch; color: var(--text-muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-hair);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.hero-trust-item svg { color: var(--c-azure); flex: none; }

/* Hero visual — the logo mark presented as artwork ------------------------- */
.hero-visual { position: relative; }
.hero-figure {
  position: relative;
  margin: 0;
  background: var(--grad-soft);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--sh-lift);
}
/* Photographic hero — fills the frame */
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Faint brand wash over the photo so it sits with the duotone headshots */
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
              rgba(7,48,100,.10) 0%,
              rgba(56,192,233,.05) 45%,
              rgba(7,48,100,.14) 100%);
  pointer-events: none;
}

/* Fallback presentation: logo mark instead of a photograph */
.hero-figure.is-mark {
  display: grid;
  place-items: center;
  padding: var(--sp-10);
  aspect-ratio: auto;
  min-height: 440px;
  box-shadow: none;
}
.hero-figure.is-mark::after {
  background:
    radial-gradient(circle at 30% 20%, rgba(159,224,247,.32), transparent 55%),
    radial-gradient(circle at 78% 82%, rgba(27,143,212,.14), transparent 58%);
}
.hero-figure.is-mark img {
  position: relative;
  z-index: 1;
  width: 62%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(7,48,100,.24));
}

/* Floating stat chips over the hero figure */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--sh-float);
  z-index: 2;
}
.hero-chip strong {
  font-family: var(--font-display);
  font-size: var(--fs-subheading);
  color: var(--c-navy);
  line-height: 1;
}
.hero-chip span { font-size: var(--fs-caption); color: var(--text-muted); line-height: 1.3; }
.hero-chip-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid; place-items: center;
  flex: none;
}
.hero-chip.pos-a { top: 34px; left: -26px; }
.hero-chip.pos-b { bottom: 44px; right: -22px; }

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats-strip {
  border-block: 1px solid var(--border-hair);
  background: var(--bg-card);
}
.stats-strip .grid-4 { gap: 0; }
.stat {
  padding: var(--sp-10) var(--sp-6);
  border-right: 1px solid var(--border-hair);
}
.stat:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: var(--fw-semibold);
  color: var(--c-navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.stat-label { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.45; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid; place-items: center;
  margin-bottom: var(--sp-6);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.card-hover:hover .service-icon { background: var(--grad-brand); color: var(--c-white); }
.service-card h3 { margin-bottom: var(--sp-3); font-size: var(--fs-subheading); }
.service-card p { font-size: var(--fs-body); margin-bottom: var(--sp-5); flex: 1; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-card { position: relative; overflow: hidden; }
.process-step {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-quiet);
  margin-bottom: var(--sp-5);
  transition: color var(--dur) var(--ease);
}
.card-hover:hover .process-step { color: var(--accent-strong); }
.process-card h3 { font-size: var(--fs-subheading); margin-bottom: var(--sp-3); }
.process-card p { font-size: var(--fs-body); color: var(--text-muted); }

/* ==========================================================================
   DIAGNOSTICS — dark feature block
   ========================================================================== */
.dark-block {
  background: var(--grad-sweep);
  border-radius: var(--r-card);
  padding: var(--sp-16) var(--sp-12);
  color: var(--text-invert);
  position: relative;
  overflow: hidden;
}
.dark-block::before {
  content: "";
  position: absolute;
  top: -160px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(56,192,233,.24), transparent 68%);
  pointer-events: none;
}
.dark-block > * { position: relative; }
.dark-block h2 { color: var(--text-invert); }
.dark-block p  { color: var(--text-invert-mu); }

.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.check-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-8); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-body-lg);
  color: var(--c-white);
  font-weight: var(--fw-medium);
}
.check-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  display: grid; place-items: center;
  flex: none;
  margin-top: 3px;
}

.dark-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-invert);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dark-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border-invert);
}
.dark-panel-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dark-panel-row:first-child { padding-top: 0; }
.dark-panel-row dt { color: var(--text-invert-mu); font-size: var(--fs-body); }
.dark-panel-row dd { color: var(--c-white); font-weight: var(--fw-semibold); text-align: right; }

/* ==========================================================================
   TEAM CARDS
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }

.pract-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-card);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.pract-card:hover {
  border-color: var(--accent-quiet);
  box-shadow: var(--sh-lift);
  transform: translateY(-4px);
}

.pract-photo {
  position: relative;
  aspect-ratio: 1;
  background: var(--grad-soft);
  overflow: hidden;
}
.pract-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.pract-card:hover .pract-photo img { transform: scale(1.04); }

/* Initials fallback when no photo is supplied */
.pract-initials {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.pract-role-tag {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--c-navy);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
}

.pract-body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.pract-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--c-navy);
  line-height: 1.3;
}
.pract-letters {
  font-size: var(--fs-caption);
  color: var(--c-ocean);
  font-weight: var(--fw-medium);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.pract-tagline {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: var(--sp-3);
  line-height: 1.5;
  flex: 1;
}
.pract-tags { margin-top: var(--sp-5); }
.pract-tags .badge { font-size: var(--fs-caption); padding: 4px 9px; }

/* --- Full profile row (practitioners page) -------------------------------- */
.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-10);
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-card);
  padding: var(--sp-8);
  box-shadow: var(--sh-card);
  scroll-margin-top: 110px;
}
.profile-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--grad-soft);
  align-self: start;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.profile h3 { font-size: var(--fs-h3); line-height: 1.25; }
.profile-letters { font-size: var(--fs-body); color: var(--c-ocean); font-weight: var(--fw-medium); margin-top: 4px; }
.profile-bio { font-size: var(--fs-body); line-height: var(--lh-loose); }

/* Therapy "Read more" panel (native <dialog>, built in render.js) */
button.service-link { width: 100%; padding: 0; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.service-link:hover { text-decoration: underline; }
.service-dialog {
  width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 860px); margin: auto; padding: 0;
  border: 0; border-radius: 22px; background: #fff; color: var(--text-body);
  box-shadow: 0 30px 80px rgba(7, 28, 59, .35); overflow: hidden;
}
.service-dialog[open] { display: flex; flex-direction: column; }
.service-dialog::backdrop { background: rgba(7, 28, 59, .55); }
.service-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-6) var(--sp-8) var(--sp-4); border-bottom: 1px solid #e6ebf0; }
.service-dialog-head h2 { font-size: var(--fs-h3); }
.service-dialog-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e6ebf0; background: #fff; font-size: 1.5rem; line-height: 1; color: var(--c-navy); cursor: pointer; }
.service-dialog-close:hover { background: var(--bg-subtle); }
.service-dialog-body { overflow-y: auto; padding: var(--sp-5) var(--sp-8) var(--sp-6); }
.service-dialog-body h3 { font-size: 1.2rem; margin-top: var(--sp-6); }
.service-dialog-body h3:first-child { margin-top: 0; }
.service-dialog-body h4 { font-size: 1rem; margin-top: var(--sp-5); font-family: var(--font-body); font-weight: 600; color: var(--c-navy); }
.service-dialog-body p { margin-top: var(--sp-3); line-height: var(--lh-loose); }
.service-dialog-body ul { margin: var(--sp-3) 0 0; padding-left: 1.2em; list-style: disc; line-height: var(--lh-loose); }
.service-dialog-foot { padding: var(--sp-4) var(--sp-8); border-top: 1px solid #e6ebf0; }
@media (max-width: 560px) {
  .service-dialog-head, .service-dialog-body, .service-dialog-foot { padding-inline: var(--sp-5); }
  .service-dialog-foot .btn { width: 100%; justify-content: center; }
}

/* Full biography from the clinic's own site, tucked behind a disclosure so
   ten long profiles don't turn the page into a wall of text. */
.profile-more { margin-top: var(--sp-4); }
.profile-more summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-small); color: var(--c-ocean);
}
.profile-more summary::-webkit-details-marker { display: none; }
.profile-more summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.profile-more[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.profile-more summary:hover { text-decoration: underline; }
.profile-more-body { margin-top: var(--sp-4); max-width: 68ch; }
.profile-more-body p { font-size: var(--fs-body); line-height: var(--lh-loose); }
.profile-more-body p + p { margin-top: var(--sp-4); }
.profile-more-body .profile-reg { font-size: var(--fs-small); color: var(--text-muted); }

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-hair);
}
.profile-meta-block { min-width: 180px; }
.profile-meta-label {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

/* --- Discipline filter ---------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-hair);
}
.filter-btn {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.filter-btn:hover { border-color: var(--c-azure); color: var(--c-ocean); }
.filter-btn.is-active {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}
.filter-btn .count { opacity: .6; margin-left: 5px; font-variant-numeric: tabular-nums; }

.discipline-group { margin-bottom: var(--sp-16); }
.discipline-group:last-child { margin-bottom: 0; }
.discipline-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.discipline-head h2 { font-size: var(--fs-h3); }
.discipline-head .rule { flex: 1; height: 1px; background: var(--border-hair); }

.profile-stack { display: grid; gap: var(--sp-5); }

/* ==========================================================================
   CONDITIONS
   ========================================================================== */
/* Wider than the shared .sec-head.center cap — at the default 650px
   "Common reasons people come to see us" wraps its last word ("us")
   onto its own line. */
#conditions .sec-head { max-width: 780px; }
.condition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.condition-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--text-body);
  transition: all var(--dur-fast) var(--ease);
}
.condition-pill:hover {
  border-color: var(--accent-strong);
  color: var(--c-navy);
  background: var(--accent-soft);
}
.condition-pill svg { color: var(--success); flex: none; }

/* ==========================================================================
   TESTIMONIALS — staggered carousel
   Real, named patients (see data/site-data.js) fanned as a shallow stack;
   the front card reads in full, the rest peek from behind at a gentle tilt.
   Click a side card, or the prev/next controls, to bring it to the front.
   ========================================================================== */
.quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: .55;
  height: 30px;
  color: var(--accent-quiet);
  margin-bottom: var(--sp-4);
  -webkit-user-select: none;
  user-select: none;
}
.quote-attr {
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-hair);
}
.quote-name { font-weight: var(--fw-semibold); color: var(--c-navy); font-size: var(--fs-body); }
.quote-detail { font-size: var(--fs-small); color: var(--text-muted); margin-top: 2px; }

.stagger-stage {
  position: relative;
  height: 480px;
  margin-top: var(--sp-10);
  overflow: hidden;
}
.stagger-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  cursor: pointer;
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.stagger-card:hover { border-color: var(--c-sky); }
.stagger-card blockquote {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stagger-card.is-center {
  z-index: 5;
  cursor: default;
  background: var(--bg-subtle);
  border-color: var(--c-sky);
  box-shadow: var(--sh-float);
}
.stagger-card.is-center .quote-mark { color: var(--accent-strong); }
.stagger-card.is-center blockquote {
  color: var(--c-navy);
  -webkit-line-clamp: unset;
  overflow: visible;
}
.stagger-controls { display: flex; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.stagger-nav {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--bg-card);
  color: var(--c-navy);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.stagger-nav:hover { border-color: var(--c-azure); color: var(--c-ocean); }

@media (max-width: 700px) {
  .stagger-stage { height: 440px; }
  .stagger-card { min-height: 220px; }
}

/* ==========================================================================
   ACCREDITATION
   ========================================================================== */
.accred-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.accred-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.accred-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--success-soft);
  color: var(--success);
  display: grid; place-items: center;
  flex: none;
}
.accred-title { font-weight: var(--fw-semibold); color: var(--c-navy); font-size: var(--fs-body); }
.accred-detail { font-size: var(--fs-small); color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.accred-insurers {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-hair);
}

/* ==========================================================================
   MAP
   ========================================================================== */
/* One column per clinic. A third location just wraps onto a new row. */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}

.location-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-card);
  scroll-margin-top: 110px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.location-card:hover { border-color: var(--accent-quiet); box-shadow: var(--sh-lift); }

.location-body { padding: var(--card-padding); display: flex; flex-direction: column; flex: 1; }
.location-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}
.location-head h3 { font-size: var(--fs-h3); }
.location-note { font-size: var(--fs-body); color: var(--text-muted); }
.location-transport { font-size: var(--fs-small); color: var(--text-muted); margin-top: 4px; }
.location-body .hours-row { padding-block: 10px; font-size: var(--fs-small); }
.location-body .hours-table { margin-top: var(--sp-6); margin-bottom: var(--sp-6); }
/* auto keeps the buttons bottom-aligned when one clinic lists more days */
.location-body .btn { margin-top: auto; }

.map-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border-hair);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Nudge Google's default map palette toward the brand blues */
  filter: saturate(0.82) hue-rotate(-8deg) contrast(1.02);
}
.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hair);
  border-radius: var(--r-card);
  padding: var(--card-padding);
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
}
.map-card h3 { font-size: var(--fs-h3); }
.map-text { font-size: var(--fs-body); color: var(--text-muted); margin-top: var(--sp-3); }
.map-card .hours-row { padding-block: 10px; font-size: var(--fs-small); }

/* ==========================================================================
   FEATURES (why choose us)
   ========================================================================== */
.feature-row {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border-hair);
}
.feature-row:last-child { border-bottom: 0; }
.feature-num {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--accent-strong);
  padding-top: 5px;
  flex: none;
  width: 28px;
  letter-spacing: 0.04em;
}
.feature-row h4 { font-size: var(--fs-body-lg); margin-bottom: 5px; }
.feature-row p { font-size: var(--fs-body); color: var(--text-muted); }

/* --- Location rows (two-clinics card) ------------------------------------- */
.loc-row {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border-hair);
}
.loc-row:first-of-type { padding-top: 0; }
.loc-row:last-of-type { border-bottom: 0; }
.loc-name { font-weight: var(--fw-semibold); color: var(--c-navy); font-size: var(--fs-body-lg); }
.loc-detail { font-size: var(--fs-small); color: var(--text-muted); margin-top: 3px; line-height: 1.5; }

/* ==========================================================================
   CONTACT / BOOKING
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: var(--sp-16);
  align-items: start;
}

.info-list { display: grid; gap: var(--sp-5); margin-top: var(--sp-8); }
.info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid; place-items: center;
  flex: none;
}
.info-label {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  margin-bottom: 3px;
}
.info-value {
  font-size: var(--fs-body-lg);
  color: var(--c-navy);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  /* Long unbroken strings (the email, postcodes) must wrap on narrow phones */
  overflow-wrap: anywhere;
}
.info-value a { color: inherit; }
.info-value a:hover { color: var(--c-ocean); }

.hours-table { margin-top: var(--sp-8); border-top: 1px solid var(--border-hair); }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: 13px;
  border-bottom: 1px solid var(--border-hair);
  font-size: var(--fs-body);
}
.hours-row dt { color: var(--text-body); }
.hours-row dd { font-weight: var(--fw-semibold); color: var(--c-navy); font-variant-numeric: tabular-nums; }
.hours-row.is-closed dt,
.hours-row.is-closed dd { color: var(--c-slate-400); font-weight: var(--fw-regular); }

/* Highlighted summary for clinics with limited opening hours */
.hours-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 13px;
  margin-bottom: var(--sp-3);
  background: var(--accent-soft);
  border-radius: var(--r-badge);
  font-size: var(--fs-small);
  color: var(--accent-strong);
  line-height: 1.35;
}
.hours-note svg { flex: none; }
.hours-note strong { font-weight: var(--fw-semibold); }

/* Booking form ------------------------------------------------------------- */
.form-card { padding: var(--sp-10); }
.field { margin-bottom: var(--sp-5); }
.field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  background: var(--bg-card);
  font-size: var(--fs-body);
  color: var(--text-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-slate-400); }
.field-hint { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--sp-2); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-azure);
  box-shadow: 0 0 0 3px rgba(27,143,212,.13);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-note { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--sp-4); text-align: center; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background: var(--grad-sweep);
  border-radius: var(--r-card);
  padding: var(--sp-16) var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(56,192,233,.26), transparent 62%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--text-invert); margin-bottom: var(--sp-4); }
.cta-band p { color: var(--text-invert-mu); font-size: var(--fs-body-lg); max-width: 54ch; margin-inline: auto; }
.cta-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-8); }

/* ==========================================================================
   PAGE HEADER (inner pages)
   ========================================================================== */
.page-head {
  padding-block: var(--sp-16) var(--sp-12);
  border-bottom: 1px solid var(--border-hair);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  top: -220px; right: -140px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(56,192,233,.14), transparent 68%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--c-ocean); }

/* ==========================================================================
   LEGAL COPY — privacy/cancellation/disclaimer pages: plain long-form prose
   ========================================================================== */
.legal-copy h2 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
}
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { margin-top: var(--sp-4); }
.legal-copy p:first-child { margin-top: 0; }
.legal-copy ul {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}
.legal-copy li {
  padding-left: var(--sp-5);
  position: relative;
}
.legal-copy li::before {
  content: "";
  position: absolute;
  left: 6px; top: 0.65em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-azure);
}
.legal-copy a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.legal-copy a:hover { color: var(--c-navy); }
.legal-updated {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-hair);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-abyss);
  color: var(--text-invert-mu);
  padding-block: var(--sp-16) var(--sp-8);
  margin-top: var(--section-gap);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--border-invert);
}
.footer-brand .brand { margin-bottom: var(--sp-6); }
.footer-brand p { font-size: var(--fs-body); max-width: 34ch; }
.footer-col h3 {
  color: var(--c-white);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-5);
  letter-spacing: 0;
}
.footer-col ul { display: grid; gap: var(--sp-3); }
.footer-col a { color: var(--text-invert-mu); font-size: var(--fs-body); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-5);
  padding-top: var(--sp-8);
  font-size: var(--fs-small);
  flex-wrap: wrap;
}
.footer-bottom nav { display: flex; gap: var(--sp-6); }
.footer-bottom nav a { color: var(--text-invert-mu); }
.footer-bottom nav a:hover { color: var(--accent); }

/* ==========================================================================
   MOBILE ACTION BAR — sticky call/book, phones only
   ========================================================================== */
.action-bar { display: none; }

@media (max-width: 1180px) {
  .action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    padding: var(--sp-3) var(--page-gutter);
    padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-hair);
  }
  .action-bar .btn { width: 100%; padding-block: 15px; }
  /* Keep the footer clear of the fixed bar */
  body { padding-bottom: 78px; }
}

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .team-grid      { grid-template-columns: repeat(3, 1fr); }
  .condition-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
}

@media (max-width: 1180px) {
  .site-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { margin-left: 0; }

  /* Mobile drawer */
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-hair);
    box-shadow: var(--sh-float);
    padding: var(--sp-5) var(--page-gutter) var(--sp-8);
  }
  .site-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open li  { border-bottom: 1px solid var(--border-hair); }
  .site-nav.is-open li:last-child { border-bottom: 0; }
  .site-nav.is-open a   { display: block; padding: 15px 0; font-size: var(--fs-body-lg); }
  .site-nav.is-open a::after { display: none; }

  /* Drawer has room to spare, so the "More" group is always expanded
     inline here rather than needing a second tap. */
  .site-nav.is-open .nav-dropdown-toggle {
    width: 100%;
    padding: 15px 0 5px;
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    pointer-events: none;
  }
  .site-nav.is-open .nav-dropdown-toggle svg { display: none; }
  .site-nav.is-open .nav-dropdown-menu {
    display: flex;
    position: static;
    transform: none;
    margin: 0 0 0 var(--sp-5);
    padding: 0;
    min-width: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .site-nav.is-open .nav-dropdown-menu a { padding-block: 13px; }

  .hero-grid    { grid-template-columns: 1fr; gap: var(--sp-12); }
  .hero-visual  { order: -1; }
  .hero-figure  { min-height: 320px; padding: var(--sp-8); }
  .hero-chip.pos-a { left: 8px; top: 16px; }
  .hero-chip.pos-b { right: 8px; bottom: 16px; }

  .dark-grid    { grid-template-columns: 1fr; gap: var(--sp-10); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .grid-3       { grid-template-columns: repeat(2, 1fr); }
  .grid-4       { grid-template-columns: repeat(2, 1fr); }

  .stat { border-right: 0; border-bottom: 1px solid var(--border-hair); padding: var(--sp-8) var(--sp-5); }
  .stats-strip .grid-4 > .stat:nth-child(odd) { border-right: 1px solid var(--border-hair); }

  .profile { grid-template-columns: 1fr; gap: var(--sp-6); }
  .profile-photo { max-width: 180px; }

  .dark-block, .cta-band { padding: var(--sp-12) var(--sp-6); }
  .form-card { padding: var(--sp-7); }

  .map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .team-grid, .grid-2, .grid-3, .grid-4,
  .condition-grid, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats-strip .grid-4 > .stat:nth-child(odd) { border-right: 0; }
  .hero-chip { display: none; }
  .brand-mark  { height: 56px; }
  .brand-name  { font-size: 19px; }
  .brand-strap { font-size: 11px; }
  .header-inner { gap: var(--sp-4); min-height: 96px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .profile-photo { max-width: 140px; }
}

/* Very narrow phones — drop the phone number text, keep the icon as the link */
@media (max-width: 400px) {
  .header-phone span { display: none; }
  .brand-mark { height: 48px; }
  .brand-name { font-size: 16.5px; }
  .brand-strap { font-size: 10px; }
  .brand { gap: 10px; }
}
