/* ---------------------------------------------------------------------------
   Dentix - The Dental Lounge : design system

   Palette is sampled from the Dentix brand assets and extended with the
   warm half of the brief:

     navy   #002366   wordmark, headlines, footer
     blue   #1264F2   logo mark, primary actions
     beige  #F5EEE3   the page ground - warm, not clinical white
     gold   #BE9442   hairlines, eyebrows, the one bright accent

   Two rules hold the whole thing together:

   1. The ground is warm beige and the cards are white. That inversion is
      what makes a page read as a lounge rather than a clinic - white on
      white needs borders everywhere, and borders everywhere look like a
      hospital intranet.

   2. Gold is a line weight, not a fill. It appears as 1px rules, small caps
      eyebrows and thin underlines. The moment gold becomes a background it
      stops reading as expensive.

   Components consume the tokens below and never hardcode a hex value.
--------------------------------------------------------------------------- */

:root {
  /* --- Brand blues --- */
  --navy-900: #00163f;
  --navy-800: #002366;
  --navy-700: #0a3182;
  --navy-600: #10409d;
  --blue-600: #0b52d4;
  --blue-500: #1264f2;
  --blue-300: #7fa9f8;
  --blue-100: #dce8fd;
  --blue-50:  #eff5fe;

  /* --- Beige ground --- */
  --beige-50:  #fcf9f4;
  --beige-100: #f5eee3;
  --beige-200: #ece0cf;
  --beige-300: #ddcbb1;

  /* --- Gold. Hairlines and eyebrows, never a fill. --- */
  --gold-700: #8a6a16;
  --gold-600: #a8822c;
  --gold-500: #be9442;
  --gold-400: #d4af59;
  --gold-300: #e8cb84;
  --gold-100: #f6ecd6;

  /* --- Surfaces --- */
  --canvas: var(--beige-100);
  --canvas-soft: var(--beige-50);
  --surface: #ffffff;
  --surface-tint: #f9fbff;
  --ink-surface: var(--navy-800);

  /* --- Text --- */
  --ink: #101a33;
  --ink-soft: #414c66;
  --muted: #6c7792;
  --faint: #99a3b8;
  --on-dark: #eef3fb;
  --on-dark-soft: #b9c7e0;

  /* --- Lines --- */
  --line: #e6dccd;
  --line-cool: #dfe7f4;
  --line-strong: #d3c4ad;

  /* --- Status --- */
  --success: #11795a;
  --success-soft: #e6f4ef;
  --warning: #9a6c08;
  --warning-soft: #fbf1dc;
  --danger: #b4332c;
  --danger-soft: #fbeceb;

  /* --- Radius --- */
  --r-xs: 0.375rem;
  --r-sm: 0.625rem;
  --r-md: 0.875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;
  --r-2xl: 2.25rem;
  --r-pill: 999px;

  /* --- Elevation. Tinted navy so a shadow sits in the beige rather than
         greying it. --- */
  --shadow-xs: 0 1px 2px rgb(16 26 51 / 0.05);
  --shadow-sm: 0 1px 3px rgb(16 26 51 / 0.06), 0 6px 16px -10px rgb(16 26 51 / 0.14);
  --shadow-md: 0 2px 6px rgb(16 26 51 / 0.05), 0 18px 40px -22px rgb(16 26 51 / 0.22);
  --shadow-lg: 0 4px 10px rgb(16 26 51 / 0.05), 0 36px 70px -34px rgb(16 26 51 / 0.3);
  --shadow-blue: 0 10px 26px -12px rgb(18 100 242 / 0.55);

  /* --- Type --- */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Rhythm --- */
  --shell: 1220px;
  --shell-narrow: 760px;
  --gutter: 1.25rem;
  --section-y: 4.5rem;
  --header-h: 76px;
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; --section-y: 6rem; }
}
@media (min-width: 1100px) {
  :root { --gutter: 2.5rem; --section-y: 7.5rem; --header-h: 92px; }
}

/* --------------------------------------------------------------- resets -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* A phone must never scroll sideways, whatever a wide table does inside
     its own scroller. */
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--beige-200); }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.3rem + 4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 1.15rem + 2.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--gold-300); color: var(--navy-900); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm); transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- layout -- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section-y); }
.section-tight { padding-block: calc(var(--section-y) * 0.62); }
.section-white { background: var(--surface); }
.section-soft { background: var(--canvas-soft); }
.section-navy { background: var(--navy-800); color: var(--on-dark); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy p { color: var(--on-dark-soft); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.0625rem; }
.section-navy .section-head p { color: var(--on-dark-soft); }

/* The small-caps gold line that opens almost every section. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px; background: var(--gold-500);
}
.section-head.center .eyebrow::after {
  content: ""; width: 1.75rem; height: 1px; background: var(--gold-500);
}
.section-navy .eyebrow { color: var(--gold-300); }
.section-navy .eyebrow::before, .section-navy .eyebrow::after { background: var(--gold-400); }

.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-soft); }

.grid { display: grid; gap: clamp(1.25rem, 0.8rem + 1.4vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

/* Before-and-after cases sit in a fixed card grid: three across on a
 * desktop, two on a tablet, one on a phone. auto-fill (not auto-fit) keeps
 * the empty tracks, so one or two published cases stay card-sized instead
 * of stretching a small photograph across the whole page. */
.grid-2:has(> .case-item), .grid-2:has(> .card > .ba) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.case-item > .card, .grid-2 > .card:has(> .ba) { height: 100%; }
.case-item .card-body h3, .grid-2 > .card:has(> .ba) .card-body h3 { font-size: 1.125rem; }

.split {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split-wide-right { grid-template-columns: 0.85fr 1.15fr; }
  .split-reverse > :first-child { order: 2; }
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem; font-weight: 700; line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  /* 48px minimum so it is comfortably tappable on a phone. */
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { flex: none; }

.btn-primary { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }

.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }

/* Metallic gold: a polished gradient with a highlight band, a thin bright
 * edge, and a light sweep that crosses the button every few seconds. */
.btn-gold {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--navy-900);
  background: linear-gradient(135deg, #a8822c 0%, #d4af59 22%, #f7e3a3 42%, #fff6d2 50%, #e8cb84 58%, #c49a3f 78%, #9a7424 100%);
  background-size: 200% 200%; background-position: 0% 50%;
  border-color: rgb(255 240 200 / 0.55);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), inset 0 -2px 4px rgb(120 85 20 / 0.35), 0 6px 18px rgb(190 148 66 / 0.35);
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.35);
  transition: background-position 0.6s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-gold::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgb(255 255 255 / 0.75) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: gold-sheen 3.6s ease-in-out infinite;
}
.btn-gold:hover {
  color: var(--navy-900); background-position: 100% 50%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 -2px 4px rgb(120 85 20 / 0.3), 0 10px 26px rgb(190 148 66 / 0.5);
}
@keyframes gold-sheen {
  0%, 55% { left: -60%; }
  100%    { left: 130%; }
}
/* Gold lettering gets the same polished treatment. */
.gold-shine, .hero h1 em {
  background: linear-gradient(110deg, #c49a3f 0%, #f3d98f 30%, #fff4cc 45%, #e2bf6d 60%, #b8892f 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-300);
  animation: gold-text-shine 5s linear infinite;
}
@keyframes gold-text-shine { to { background-position: 220% center; } }
@media (prefers-reduced-motion: reduce) {
  .btn-gold::after { animation: none; display: none; }
  .gold-shine, .hero h1 em { animation: none; }
}

.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--surface); border-color: var(--navy-800); color: var(--navy-800); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.38); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.1); color: #fff; border-color: #fff; }

.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: var(--beige-50); color: var(--navy-800); }

.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.875rem; min-height: 40px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.btn-row.center { justify-content: center; }

/* The quiet "Learn more" link with a gold rule that extends on hover. */
.link-more {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--navy-800);
}
.link-more .icon { transition: transform 0.2s ease; }
.link-more:hover { color: var(--blue-600); }
.link-more:hover .icon { transform: translateX(4px); }

/* ---------------------------------------------------------------- cards -- */

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.card { color: inherit; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige-200); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.3,1); }
.card-hover:hover .card-media img { transform: scale(1.04); }
.card-media-tall { aspect-ratio: 3 / 4; }
.card-media-wide { aspect-ratio: 16 / 10; }

.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.25rem; }
.card-body p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
.card-body .link-more { margin-top: auto; padding-top: 0.5rem; }

.tag {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-700); background: var(--gold-100);
  padding: 0.3rem 0.65rem; border-radius: var(--r-xs);
}
.tag-blue { color: var(--navy-700); background: var(--blue-50); }

/* Feature card: no image, an outlined icon and a gold corner rule. */
.feature {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.feature h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.feature p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
.feature-icon {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-50); color: var(--blue-600);
  margin-bottom: 1.25rem;
}
.section-navy .feature {
  background: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.14);
  box-shadow: none;
}
.section-navy .feature:hover { border-color: var(--gold-400); background: rgb(255 255 255 / 0.08); }
.section-navy .feature p { color: var(--on-dark-soft); }
.section-navy .feature-icon { background: rgb(255 255 255 / 0.1); color: var(--gold-300); }

/* An equipment card with a photograph: the picture runs edge to edge across
 * the top of the card in place of the small icon. */
.feature.has-photo { overflow: hidden; padding-top: 0; }
.feature-photo {
  margin: 0 -1.75rem 1.4rem; aspect-ratio: 4 / 3; overflow: hidden;
  background: rgb(255 255 255 / 0.06);
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.feature.has-photo:hover .feature-photo img { transform: scale(1.04); }

/* -------------------------------------------------------------- header --- */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgb(252 249 244 / 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-stuck {
  background: rgb(252 249 244 / 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgb(16 26 51 / 0.5);
}

/* The thin navy strip above the nav: address on the left, call on the right. */
.topbar {
  background: var(--navy-800); color: var(--on-dark-soft);
  font-size: 0.8125rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 40px; padding-block: 0.35rem;
}
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: var(--gold-300); }
.topbar-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-item .icon { color: var(--gold-400); flex: none; }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; }
@media (max-width: 860px) { .topbar { display: none; } }

.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 42px; background: none; }
@media (min-width: 1100px) { .brand img { height: 50px; } }

.nav { display: none; }
@media (min-width: 1040px) {
  .nav { display: flex; align-items: center; gap: 0.25rem; margin-inline: auto; }
}

.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--navy-800);
  border-radius: var(--r-sm);
  position: relative;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue-600); background: var(--blue-50); }
.nav-link[aria-current="page"] { color: var(--blue-600); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.3rem;
  height: 2px; background: var(--gold-500); border-radius: 2px;
}
.nav-link .icon { transition: transform 0.2s ease; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.header-actions .btn { padding-inline: 1.15rem; }
@media (max-width: 1039px) { .header-actions .btn-book { display: none; } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--navy-800); cursor: pointer;
}
.icon-btn:hover { border-color: var(--navy-800); }
.icon-btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.icon-btn-wa:hover { background: #1eb858; border-color: #1eb858; color: #fff; }
@media (min-width: 1040px) { .nav-toggle { display: none; } }

/* ----------------------------------------------------------- mega menu --- */

/* A compact dropdown that opens under the Treatments link, not across the page. */
.has-mega { position: relative; }

.mega {
  position: absolute; left: 50%; top: 100%;
  width: 21rem; max-width: calc(100vw - 2rem);
  padding-top: 0.75rem;
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 80;
  pointer-events: none;
}
.has-mega:hover > .mega,
.has-mega:focus-within > .mega,
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.has-mega:hover > .nav-link .icon { transform: rotate(180deg); }

.mega-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}
/* Small pointer up to the Treatments link. */
.mega-panel::before {
  content: ""; position: absolute; top: -7px; left: 50%;
  width: 12px; height: 12px; margin-left: -6px;
  background: var(--surface);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.mega-group + .mega-group { margin-top: 0.25rem; padding-top: 0.25rem; border-top: 1px solid var(--line); }
.mega-group .mega-title {
  font-family: var(--font-sans);
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-600);
  margin: 0; padding: 0.6rem 0.75rem 0.35rem;
}
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list li { margin: 0; }
.mega-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  border-radius: var(--r-sm);
  color: var(--navy-800);
  font-size: 0.9375rem; font-weight: 600;
  transition: background-color 0.15s ease;
}
.mega-item:hover, .mega-item:focus-visible, .mega-item[aria-current="page"] {
  background: var(--canvas-soft); color: var(--navy-800);
}
.mega-thumb {
  flex: none; width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-xs); overflow: hidden;
  background: var(--beige-100);
}
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-name { flex: 1; min-width: 0; line-height: 1.3; }
.mega-go {
  flex: none; color: var(--gold-600);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.mega-item:hover .mega-go, .mega-item:focus-visible .mega-go { opacity: 1; transform: translateX(0); }

.mega-foot {
  margin-top: 0.375rem; padding: 0.7rem 0.75rem 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .mega, .mega-item, .mega-go { transition: none; }
}

/* ---------------------------------------------------------- mobile nav --- */

.drawer {
  position: fixed; inset: 0; z-index: 120;
  visibility: hidden;
}
.drawer.is-open { visibility: visible; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgb(0 22 63 / 0.45);
  opacity: 0; transition: opacity 0.3s ease;
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; inset-block: 0; right: 0;
  width: min(380px, 88vw);
  background: var(--canvas-soft);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--canvas-soft); z-index: 2;
}
.drawer-head img { height: 36px; width: auto; background: none; }
.drawer-nav { padding: 0.5rem 0.75rem 1.5rem; }
.drawer-nav a {
  display: block; padding: 0.85rem 0.75rem;
  font-size: 1.0625rem; font-weight: 600; color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}
.drawer-nav a:hover { color: var(--blue-600); }
.drawer-group > button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 0.85rem 0.75rem; background: none; border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit; font-size: 1.0625rem; font-weight: 600; color: var(--navy-800);
  cursor: pointer; text-align: left;
}
.drawer-group > button .icon { transition: transform 0.2s ease; }
.drawer-group.is-open > button .icon { transform: rotate(180deg); }
.drawer-sub { display: none; padding-left: 0.75rem; }
.drawer-group.is-open .drawer-sub { display: block; }
.drawer-sub a { font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); padding-block: 0.6rem; }
.drawer-sub .drawer-cat {
  margin: 0.9rem 0 0.1rem; font-family: var(--font-sans);
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600);
}
.drawer-foot { margin-top: auto; padding: 1.25rem; display: grid; gap: 0.75rem; border-top: 1px solid var(--line); }

body.no-scroll { overflow: hidden; }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  background: var(--navy-800);
  color: var(--on-dark);
  overflow: hidden;
}
.hero::after {
  /* A soft gold bloom from the lower right, so the navy is not flat. */
  content: ""; position: absolute; right: -10%; bottom: -30%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(212 175 89 / 0.22), transparent 68%);
  pointer-events: none;
}

/* --------------------------------------------------- hero background video --
 * Optional, from Admin > Hero video. Without it none of this applies and the
 * hero is the flat navy it has always been.
 *
 * The poster is painted as the section's own background-image, so it covers
 * three cases with one declaration: before the first frame decodes, when
 * autoplay is refused, and when the video is hidden for reduced motion.
 */
.hero.has-video { background-size: cover; background-position: center; }

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  /* It is decoration. A click belongs to whatever is above it. */
  pointer-events: none;
}

/* Without this the white headline sits on whatever the footage happens to be
 * doing, which is not a contrast ratio anyone can promise. Neutral black, not
 * navy: the clinic wants the footage in its own colours, so only the side
 * the headline sits on is darkened and the right of the video stays clear. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.62) 0%, rgb(0 0 0 / 0.4) 40%, rgb(0 0 0 / 0.08) 75%, rgb(0 0 0 / 0) 100%),
    linear-gradient(to bottom, rgb(0 0 0 / 0) 55%, rgb(0 0 0 / 0.35) 100%);
}
/* The navy panel colour is only for the moment before the first frame. */
.hero.has-video { background-color: #000; }
.hero.has-video h1, .hero.has-video .hero-text { text-shadow: 0 2px 18px rgb(0 0 0 / 0.45); }

/* The gold bloom is drawn for a flat navy panel. Over footage it reads as a
 * smudge, so it goes when there is a video. */
.hero.has-video::after { display: none; }

/* With the photograph hidden, the headline would otherwise keep the narrow
 * left column of a two-column grid and leave half the video bare. */
@media (min-width: 950px) {
  .hero.hero-solo .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
}
.hero.hero-solo .hero-text { max-width: 62ch; }

/* Reduced motion is a request not to animate, and a looping background is
 * animation. The poster background-image above is what remains. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4rem);
  padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  align-items: center;
}
@media (min-width: 950px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 {
  color: #fff; margin-bottom: 1.25rem;
  /* Smaller than the global h1 clamp: the hero headline is a three-sentence
     statement rather than a short phrase, so it needs to fit one sentence to
     a line instead of filling the column. */
  font-size: clamp(2rem, 1.35rem + 2.2vw, 2.8rem);
  line-height: 1.2;
}
.hero h1 em {
  font-style: italic; color: var(--gold-300);
}
.hero-text {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  color: var(--on-dark-soft);
  max-width: 34rem; margin-bottom: 2rem;
}
.hero .eyebrow { color: var(--gold-300); }
.hero .eyebrow::before { background: var(--gold-400); }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: var(--r-2xl);
  aspect-ratio: 4 / 5; object-fit: cover;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 949px) { .hero-figure img { aspect-ratio: 4 / 3; } }

/* The floating proof chip over the hero image. */
.hero-chip {
  position: absolute; left: -0.75rem; bottom: 1.75rem;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.875rem;
  max-width: 17rem;
}
.hero-chip .icon { color: var(--gold-600); flex: none; }
.hero-chip strong { display: block; font-size: 0.9375rem; color: var(--navy-800); }
.hero-chip span { font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 560px) { .hero-chip { left: 0.5rem; right: 0.5rem; max-width: none; bottom: -1.5rem; } }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem 2.75rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}
.hero-stats div strong {
  display: block; font-family: var(--font-display);
  font-size: 1.875rem; color: #fff; line-height: 1;
}
.hero-stats div span {
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-soft);
}

/* The five promises that close the hero. Numbered rather than iconed - the
   promise is the sentence, and five icons in a row would compete with the
   gold hairlines everywhere else. */
.promise-band {
  position: relative; z-index: 2;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem);
}
.promise-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2rem 2.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px)  { .promise-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 840px)  { .promise-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1120px) { .promise-list { grid-template-columns: repeat(5, 1fr); } }

.promise-num {
  display: block; font-family: var(--font-display);
  font-size: 0.875rem; letter-spacing: 0.14em; color: var(--gold-300);
}
.promise-num::after {
  content: ""; display: block; width: 1.75rem; height: 1px;
  background: var(--gold-400); opacity: 0.7; margin-top: 0.55rem;
}
.promise strong {
  display: block; margin: 0.85rem 0 0.45rem;
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
}
.promise p { margin: 0; font-size: 0.9375rem; color: var(--on-dark-soft); }

/* On a phone the five promises are stacked, so the number moves up beside
   the title rather than taking a line of its own - five spare lines is most
   of a screen. */
@media (max-width: 559px) {
  .promise-list { gap: 1.5rem; }
  .promise {
    display: grid; grid-template-columns: auto 1fr;
    column-gap: 0.75rem; align-items: baseline;
  }
  .promise-num::after { display: none; }
  .promise strong { grid-column: 2; margin: 0 0 0.3rem; }
  .promise p { grid-column: 2; }
}

.promise-close {
  margin: clamp(2rem, 1.25rem + 2vw, 2.75rem) 0 0;
  padding-top: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  text-align: center;
}
.promise-close strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  font-weight: 500; color: var(--gold-300);
}
.promise-close span {
  display: block; margin-top: 0.5rem;
  font-size: 0.9375rem; color: var(--on-dark-soft);
}

/* Inner-page hero: shorter, image on the right, breadcrumb above. */
.page-hero { background: var(--navy-800); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -14%; top: -40%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(212 175 89 / 0.18), transparent 70%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center;
}
@media (min-width: 950px) { .page-hero-inner.with-figure { grid-template-columns: 1.1fr 0.9fr; } }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--on-dark-soft); max-width: 40rem; font-size: 1.0625rem; }
.page-hero-figure img {
  border-radius: var(--r-xl); aspect-ratio: 5 / 4; object-fit: cover; width: 100%;
  box-shadow: var(--shadow-lg);
}

/* A designed treatment banner: shown whole, full width, at its own shape -
 * never cropped, because it usually carries its own lettering. */
.page-hero-figure.is-banner img {
  aspect-ratio: auto; height: auto; width: 100%;
  object-fit: contain; display: block;
}
.page-hero.has-banner .page-hero-inner { gap: clamp(1.75rem, 1rem + 2.5vw, 2.75rem); }
/* A photo the clinic uploaded beside a banner heading: shown whole, at its
 * own shape, rather than cropped to the 5:4 box the built-in photo uses. */
.page-hero-figure.is-upload img { aspect-ratio: auto; height: auto; max-height: 34rem; object-fit: contain; }

/* The treatment's own photograph at the top of the page body. */
.treatment-photo { margin: 0 0 2.75rem; }
.treatment-photo img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
}

/* Breadcrumbs are no longer shown on the banners (clinic request, Nov 2026).
 * The BreadcrumbList in each page's structured data still tells search
 * engines where the page sits, so only the visible trail goes. */
nav.crumbs { display: none !important; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; color: var(--on-dark-soft);
  margin-bottom: 1.1rem;
}
.crumbs a { color: var(--on-dark-soft); }
.crumbs a:hover { color: var(--gold-300); }
.crumbs .sep { color: rgb(255 255 255 / 0.35); }
.crumbs [aria-current] { color: var(--gold-300); }

/* -------------------------------------------------------------- figures -- */

.figure-stack { position: relative; }
.figure-stack img {
  width: 100%; border-radius: var(--r-xl); object-fit: cover;
  box-shadow: var(--shadow-md);
}
/* The thin gold frame offset behind an editorial image. */
.figure-framed { position: relative; }
.figure-framed::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--gold-400); border-radius: var(--r-xl);
  z-index: 0;
}
.figure-framed img { position: relative; z-index: 1; }
@media (max-width: 640px) { .figure-framed::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; } }

/* ------------------------------------------------------------ prose ------ */

.prose { font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
/* Inside body copy an h2 is a sub-section, not a page banner, so it is sized
   against the paragraph it introduces rather than against the global scale. */
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); color: var(--navy-800); }
.prose h3 { margin-top: 2.25rem; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem); color: var(--navy-800); }
.prose h4 { margin-top: 1.75rem; color: var(--navy-800); font-family: var(--font-sans); font-weight: 700; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--gold-400);
}
.prose ol { padding-left: 1.3rem; }
.prose ol li::marker { color: var(--gold-600); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 2rem 0; padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold-400);
  background: var(--beige-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.0625rem; color: var(--navy-800);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--navy-800); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------- steps / journey -- */

.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.step {
  position: relative; padding-top: 2.75rem;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--gold-500);
}
.step::after {
  content: ""; position: absolute; top: 1.9rem; left: 2.75rem; right: -1.5rem;
  height: 1px; background: var(--line-strong);
}
@media (max-width: 759px) { .step::after { display: none; } }
.steps .step:last-child::after { display: none; }
.step h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }
.section-navy .step::after { background: rgb(255 255 255 / 0.2); }
.section-navy .step::before { color: var(--gold-300); }

/* ----------------------------------------------------- before/after slider */

.ba {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--beige-200);
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.ba img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgb(0 22 63 / 0.18);
  pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--navy-800);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.ba-knob::before {
  content: "‹ ›"; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em;
}
.ba-label {
  position: absolute; bottom: 0.875rem; z-index: 3;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgb(0 22 63 / 0.72); color: #fff;
  padding: 0.35rem 0.7rem; border-radius: var(--r-xs);
  backdrop-filter: blur(4px);
}
.ba-label-before { left: 0.875rem; }
.ba-label-after { right: 0.875rem; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; cursor: ew-resize;
}
.ba-range:focus-visible + .ba-handle { box-shadow: 0 0 0 3px var(--blue-500); }

/* ----------------------------------------------------------- filter bar -- */

.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.25rem;
}
.filters.center { justify-content: center; }
.filter {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: transparent;
  font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; white-space: nowrap;
  transition: all 0.18s ease;
}
.filter:hover { border-color: var(--navy-800); color: var(--navy-800); }
.filter.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.filter span { font-size: 0.75rem; opacity: 0.7; }

/* ---------------------------------------------------------- testimonials -- */

.quote-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 2rem 1.75rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.1rem; height: 100%;
  border: 1px solid var(--line);
}
.quote-card .stars { display: flex; gap: 0.15rem; color: var(--gold-400); }
.quote-card blockquote {
  margin: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--ink);
  font-family: var(--font-display); font-style: italic;
}
.quote-person { display: flex; align-items: center; gap: 0.875rem; margin-top: auto; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em;
}
.quote-person strong { display: block; font-size: 0.9375rem; color: var(--navy-800); }
.quote-person span { font-size: 0.8125rem; color: var(--muted); }

/* Horizontal snap rail, used by testimonials and the treatment strip. */
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(min(84vw, 21rem), 1fr);
  gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
@media (min-width: 900px) {
  .rail { grid-auto-columns: minmax(23rem, 1fr); }
}

.rail-nav { display: flex; gap: 0.5rem; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--navy-800); cursor: pointer;
  display: grid; place-items: center;
}
.rail-btn:hover:not(:disabled) { border-color: var(--navy-800); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }

.rail-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.rail-head .section-head { margin-bottom: 0; }

/* ------------------------------------------------------------- doctors --- */

.doctor-card { text-align: left; }
.doctor-card .card-media { aspect-ratio: 3 / 4; }
.doctor-card .meta { font-size: 0.8125rem; color: var(--gold-700); font-weight: 700; letter-spacing: 0.06em; }
.doctor-card h3 { font-size: 1.3125rem; margin: 0.15rem 0 0.25rem; }
.doctor-card .qual { font-size: 0.875rem; color: var(--muted); }

/* --------------------------------------------------------------- forms --- */

.form-card {
  background: var(--surface); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--navy-800);
}
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem;
  background: var(--surface-tint);
  border: 1px solid var(--line-cool); border-radius: var(--r-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  /* 16px avoids the zoom-on-focus iOS applies to smaller inputs. */
  min-height: 50px;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236c7792' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
  padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgb(18 100 242 / 0.14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--danger); background: var(--danger-soft);
}
.field .error { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: var(--danger); font-weight: 600; }
.field .hint { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: var(--muted); }

.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* A honeypot: a real person never fills this, a naive bot fills everything. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-radius: var(--r-md); padding: 1rem 1.25rem;
  font-size: 0.9375rem; margin-bottom: 1.5rem;
  border: 1px solid transparent;
}
.notice-ok { background: var(--success-soft); color: var(--success); border-color: rgb(17 121 90 / 0.25); }
.notice-warn { background: var(--warning-soft); color: var(--warning); border-color: rgb(154 108 8 / 0.25); }
.notice-error { background: var(--danger-soft); color: var(--danger); border-color: rgb(180 51 44 / 0.25); }
.notice-info { background: var(--blue-50); color: var(--navy-700); border-color: var(--blue-100); }
.notice strong { display: block; margin-bottom: 0.2rem; }

/* ------------------------------------------------------------- accordion -- */

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.0625rem; color: var(--navy-800);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .icon { flex: none; color: var(--gold-600); transition: transform 0.25s ease; margin-top: 0.15rem; }
.acc-item[open] summary .icon { transform: rotate(180deg); }
.acc-body { padding-bottom: 1.5rem; color: var(--ink-soft); font-size: 1rem; }
.acc-body > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- facts --- */

.facts {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.fact { background: var(--surface); padding: 1.25rem 1.35rem; }
.fact dt {
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 0.3rem;
}
.fact dd { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--navy-800); }

/* ------------------------------------------------------------- sidebar --- */

.with-aside { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .with-aside { grid-template-columns: minmax(0, 1fr) 20.5rem; } }

.aside-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line); padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.aside-card h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 1.25rem); }

/* ------------------------------------------------------ gold card glow --- */
/*
 * Every card gets the same gold finish: on hover a band of gold light runs
 * round the border and a soft sheen sweeps across the face. Touch screens,
 * which have no hover, get the sweep once as each card scrolls into view.
 */
@property --gold-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.card, .feature, .quote-card, .aside-card { position: relative; isolation: isolate; }

.card::before, .feature::before, .quote-card::before, .aside-card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--gold-angle),
    transparent 0deg, transparent 200deg,
    #b8892f 250deg, #f3d98f 300deg, #fff4cc 320deg, #e2bf6d 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.35s ease;
  animation: gold-orbit 2.8s linear infinite;
  animation-play-state: paused;
}
.card::after, .feature::after, .quote-card::after, .aside-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgb(255 236 180 / 0.38) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0;
}
.card:hover, .feature:hover, .quote-card:hover, .aside-card:hover {
  box-shadow: var(--shadow-md), 0 14px 34px -18px rgb(190 148 66 / 0.55);
}
.card:hover::before, .feature:hover::before, .quote-card:hover::before, .aside-card:hover::before,
.card:focus-within::before, .feature:focus-within::before {
  opacity: 1; animation-play-state: running;
}
.card:hover::after, .feature:hover::after, .quote-card:hover::after, .aside-card:hover::after {
  background-position: -40% 0; transition: background-position 1.1s ease;
}
@keyframes gold-orbit { to { --gold-angle: 360deg; } }

@keyframes gold-sweep-once { from { background-position: 140% 0; } to { background-position: -40% 0; } }
@media (hover: none) {
  .reveal.is-in.card::after, .reveal.is-in.feature::after,
  .reveal.is-in.quote-card::after, .reveal.is-in .card::after {
    animation: gold-sweep-once 1.4s ease 0.3s 1 both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card::before, .feature::before, .quote-card::before, .aside-card::before { animation: none; }
  .card::after, .feature::after, .quote-card::after, .aside-card::after { display: none; }
}

/* ---------------------------------------------------------------- misc --- */

.stat-row {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  text-align: center;
}
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); color: var(--navy-800); line-height: 1;
}
.stat span { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
.check-list .icon { flex: none; color: var(--gold-600); margin-top: 0.2rem; }
.section-navy .check-list li { color: var(--on-dark-soft); }
.section-navy .check-list .icon { color: var(--gold-300); }

/* Full-bleed CTA band. */
.cta-band {
  background: var(--navy-800); color: var(--on-dark);
  border-radius: var(--r-2xl);
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; left: 50%; top: -60%;
  width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgb(212 175 89 / 0.2), transparent 68%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-soft); max-width: 36rem; margin-inline: auto; }

.empty-state {
  text-align: center; padding: 3.5rem 1.5rem;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  color: var(--muted); background: var(--surface);
}
.empty-state h3 { color: var(--navy-800); margin-bottom: 0.4rem; }

.pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span {
  min-width: 44px; min-height: 44px; padding: 0 0.85rem;
  display: inline-grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--navy-800); color: var(--navy-800); }
.pagination .is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* Sticky mobile action bar. The single most used control on a phone is
   "call them", so it is never more than a thumb away. */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 85;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -18px rgb(16 26 51 / 0.5);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  padding: 0.7rem 0.25rem; min-height: 60px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--navy-800);
}
.mobile-bar a + a { border-left: 1px solid var(--line); }
.mobile-bar .icon { color: var(--blue-500); }
.mobile-bar .wa .icon { color: #25d366; }
@media (min-width: 1040px) { .mobile-bar { display: none; } }
@media (max-width: 1039px) { body { padding-bottom: 60px; } }

/* The desktop WhatsApp bubble. */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 84;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: none; place-items: center;
  box-shadow: 0 12px 28px -12px rgb(37 211 102 / 0.8);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
@media (min-width: 1040px) { .wa-float { display: grid; } }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--navy-900); color: var(--on-dark-soft);
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  padding-bottom: 3rem;
}
.footer-brand { grid-column: 1 / -1; max-width: 24rem; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 46px; width: auto; background: none; margin-bottom: 1.25rem; }
.site-footer h2 {
  font-family: var(--font-sans); color: #fff;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: var(--gold-300); }

.footer-contact li { display: flex; gap: 0.65rem; align-items: flex-start; }
.footer-contact .icon { flex: none; color: var(--gold-400); margin-top: 0.2rem; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.2);
  display: grid; place-items: center; color: var(--on-dark);
}
.socials a:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-900); }

.footer-map {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  margin-bottom: 2.5rem;
}
.footer-map iframe { display: block; width: 100%; height: 260px; border: 0; filter: grayscale(0.2); }

.footer-base {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.8125rem; color: rgb(185 199 224 / 0.8);
}
.footer-base nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------------------------------------------------- scroll reveal ------ */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
/* Without JS - or with reduced motion - everything is simply visible, so a
   failed script never leaves the page blank. */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- lightbox -------- */

.lightbox {
  position: fixed; inset: 0; z-index: 140;
  background: rgb(0 10 30 / 0.92);
  display: none; place-items: center; padding: 1.5rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; width: auto; border-radius: var(--r-md); background: none; }
.lightbox figcaption { color: var(--on-dark-soft); text-align: center; margin-top: 1rem; font-size: 0.9375rem; }

/* With a description, the photograph and its text sit side by side: the
 * picture on the left, the story on the right, instead of a line of small
 * text under the image and an empty half-screen beside it. */
.lightbox-body { width: 100%; display: grid; place-items: center; }
.lightbox.has-text .lightbox-body {
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  align-items: center;
}
.lightbox.has-text img { max-width: 100%; max-height: 84vh; justify-self: end; box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); }
.lightbox.has-text figcaption {
  text-align: left; margin: 0; max-width: 32rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem) clamp(1.25rem, 1rem + 1vw, 2.25rem);
  border-left: 2px solid var(--gold-400);
}
.lightbox-kicker {
  display: block; margin-bottom: 0.85rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-300);
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.15; font-weight: 600;
  color: #fff; margin: 0 0 1rem;
}
.lightbox-text {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.7;
  color: rgb(255 255 255 / 0.86); margin: 0;
}
.lightbox-text:empty, .lightbox-title:empty, .lightbox-kicker:empty { display: none; }
@media (max-width: 860px) {
  .lightbox.has-text { overflow-y: auto; place-items: start center; }
  .lightbox.has-text .lightbox-body { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .lightbox.has-text img { justify-self: center; max-height: 55vh; }
  .lightbox.has-text figcaption { border-left: 0; border-top: 2px solid var(--gold-400); max-width: none; padding-inline: 0.25rem; }
}
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgb(255 255 255 / 0.12); border: 0; color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.lightbox-close:hover { background: rgb(255 255 255 / 0.22); }

.gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.gallery-item {
  border: 0; padding: 0; background: none; cursor: zoom-in;
  border-radius: var(--r-md); overflow: hidden; position: relative;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* --------------------------------------------------- staff-only markers -- */

/* Shown only when ?preview=1 is on the URL and a staff session exists, so
   the clinic can see at a glance which images are still placeholders. */
.ph-flag {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 4;
  background: var(--warning); color: #fff;
  font-size: 0.625rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.5rem; border-radius: var(--r-xs);
}

/* -------------------------------------------------------------- print ---- */

@media print {
  .site-header, .mobile-bar, .wa-float, .site-footer, .btn, .rail-nav { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1rem; }
}
