/* ==========================================================================
   Central Clinic — site styles (mobile first)
   Sections: tokens · base · layout · components · page sections · utilities
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin + Latin Extended for Romanian) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --sand: #f1ebe1;
  --ink: #14201a;
  --ink-2: #47534c;
  --line: #e3dcd0;
  --brand: #186a3b;
  --brand-strong: #0f4d2a;
  --brand-soft: #e4efe7;
  --bronze: #9a6b41;
  --dark: #0d1e15;
  --dark-2: #13281d;
  --on-dark: #f3efe8;
  --on-dark-2: #c3cbc5;
  --danger: #a3261b;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgb(20 32 26 / 0.05), 0 8px 24px rgb(20 32 26 / 0.06);
  --shadow-lift: 0 2px 4px rgb(20 32 26 / 0.06), 0 18px 40px rgb(20 32 26 / 0.12);

  --gutter: 16px;
  --header-h: 64px;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 6.5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); }
ul { padding-left: 1.2rem; }
strong, b { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: #9fdcb5; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.075rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-2); }

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

.grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 1.25rem; } }
@media (min-width: 600px) and (max-width: 767px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; box-shadow: 0 8px 20px rgb(24 106 59 / 0.25); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand-strong); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-ghost-light { border-color: rgb(255 255 255 / 0.6); color: #fff; background: rgb(255 255 255 / 0.04); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.14); border-color: #fff; color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile menu and clip it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(250 247 242 / 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.nav-open .site-header::before { background: var(--bg); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgb(20 32 26 / 0.05); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
}
.brand-mark .icon { width: 22px; height: 22px; fill: #fff; stroke: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

.site-nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.nav-list a[aria-current="page"] { color: var(--brand); }
.nav-cta { display: grid; gap: 0.6rem; }

/* Mobile/tablet menu panel */
@media (max-width: 1023px) {
  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--bg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { min-height: 56px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
  .nav-open { overflow: hidden; }
  /* No-JS fallback: menu shown inline below the header */
  html:not(.js) .site-nav { display: block; padding: 0 var(--gutter) 1rem; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.75rem; }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-list a {
    position: relative;
    padding: 0 0.7rem;
    font-size: 0.95rem;
    color: var(--ink-2);
  }
  .nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0.7rem; right: 0.7rem; bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
  }
  .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-cta { display: flex; gap: 0.5rem; }
  .nav-cta .btn { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.92rem; }
  .nav-cta .nav-phone { display: none; }
}
@media (min-width: 1200px) { .nav-cta .nav-phone { display: inline-flex; } }

/* ---------- Home hero ---------- */
/* Phones/tablets: photo on top (face kept clear of text), copy on a dark panel below.
   Desktop (>=960px): two columns, portrait framed on the right. */
.hero { position: relative; background: var(--dark); color: #fff; }
.hero-inner { display: flex; flex-direction: column; padding-bottom: 2.25rem; }
.hero-media { position: relative; margin: 0 calc(var(--gutter) * -1); }
.hero-frame { position: relative; height: clamp(340px, 58svh, 125vw); overflow: hidden; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgb(13 30 21 / 0), var(--dark));
  pointer-events: none;
}
.hero-copy { position: relative; max-width: 36rem; margin-top: -1.5rem; }
.hero .eyebrow { color: #b9e5c8; }
.hero h1 { color: #fff; margin-bottom: 0.9rem; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: rgb(255 255 255 / 0.9); margin-bottom: 1.5rem; max-width: 30rem; }
.hero-caption {
  display: none;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.hero-caption strong { display: block; color: var(--ink); font-size: 0.98rem; }
@media (min-width: 600px) and (max-width: 959px) {
  .hero-frame { height: clamp(380px, 56svh, 640px); }
  .hero-media img { object-position: 50% 28%; }
}

@media (min-width: 960px) {
  .hero { background: var(--bg); color: var(--ink); }
  .hero .eyebrow { color: var(--brand); }
  .hero h1 { color: var(--ink); }
  .hero-sub { color: var(--ink-2); }
  .hero :focus-visible { outline-color: var(--brand); }
  .hero .btn-ghost-light { border-color: var(--ink); color: var(--ink); background: transparent; }
  .hero .btn-ghost-light:hover { background: var(--ink); color: #fff; }
  .hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
  }
  .hero-media { order: 2; margin: 0; }
  .hero-frame::after { display: none; }
  .hero-copy { margin-top: 0; }
  .hero-frame {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: min(78vh, 760px);
    margin-left: auto;
    overflow: hidden;
    border-radius: var(--radius-l);
    background: var(--sand);
    box-shadow: var(--shadow-lift);
  }
  .hero-media img { object-position: 50% 30%; }
  .hero-caption {
    position: absolute;
    left: 1rem; bottom: 1rem;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-s);
    background: rgb(255 255 255 / 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
  }
}

.hero-facts {
  display: grid;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.hero-facts li { display: flex; align-items: center; gap: 0.6rem; }
.hero-facts a { color: inherit; font-weight: 700; text-decoration: none; }
.hero-facts .icon { color: #b9e5c8; }
@media (min-width: 600px) { .hero-facts { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; } }
@media (min-width: 960px) { .hero-facts .icon { color: var(--brand); } .hero-facts { color: var(--ink-2); } .hero-facts a { color: var(--ink); } }

/* Hero entrance (motion-safe only) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgb(24 106 59 / 0.09), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 40rem; margin-bottom: 0; }
.breadcrumb { margin-bottom: 1rem; font-size: 0.9rem; color: var(--ink-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.breadcrumb a { color: var(--ink-2); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-2); }
.card > :last-child { margin-bottom: 0; }
.card--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.card--brand h2, .card--brand h3, .card--brand p, .card--brand dt, .card--brand dd { color: #fff; }
.card--dark { background: var(--dark-2); border-color: var(--dark-2); color: var(--on-dark); }
.card--dark h2, .card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark-2); }
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}
.card--brand .card-icon, .card--dark .card-icon { background: rgb(255 255 255 / 0.12); color: #fff; }
.card .btn { margin-top: 1rem; }

.hours { margin: 0 0 0.5rem; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.18);
}
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.card--dark .big-phone { color: #fff; }

/* Overlap the info cards onto the hero on large screens */
.info-strip { position: relative; padding-top: 1.5rem; }
@media (min-width: 960px) { .info-strip { padding-top: 0; } }

/* ---------- Media ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--sand);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1; }
.media-frame--wide { aspect-ratio: 16 / 10; }
@media (min-width: 768px) { .media-frame--wide { aspect-ratio: 21 / 9; } }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--dark);
  box-shadow: var(--shadow-lift);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Lists ---------- */
.checklist { display: grid; gap: 0.75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .checklist--2 { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 600; }
.checklist .icon { margin-top: 0.15em; color: var(--brand); }

/* ---------- Imaging section ---------- */
.imaging { background: var(--dark); color: var(--on-dark); }
.imaging h2 { color: #fff; }
.imaging .eyebrow { color: #9fdcb5; }
.imaging p { color: var(--on-dark-2); }
.imaging-list { display: grid; gap: 0.75rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
@media (min-width: 600px) { .imaging-list { grid-template-columns: 1fr 1fr; } }
.imaging-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-s);
  background: rgb(255 255 255 / 0.04);
  color: #fff;
  font-weight: 600;
}
.imaging-list .icon { color: #9fdcb5; }
.imaging-figure { margin: 0; }
.imaging-figure .media-frame { aspect-ratio: auto; border: 1px solid rgb(255 255 255 / 0.12); }
.imaging-figure figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--on-dark-2);
}
.imaging-figure figcaption .icon { color: #9fdcb5; }

/* ---------- Services (home) ---------- */
.service-cards { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 600px) { .service-cards { grid-template-columns: 1fr 1fr; } }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
.service-card h3 { margin: 0.25rem 0; }
.service-card p { margin: 0; color: var(--ink-2); }
.service-card .link-arrow { margin-top: auto; padding-top: 0.75rem; color: var(--brand); }
.service-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .service-links { grid-template-columns: repeat(3, 1fr); } }
.service-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.service-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.service-links .icon { width: 1rem; height: 1rem; }

/* ---------- Features ---------- */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .card-icon { margin: 0; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.feature p { margin: 0; color: var(--ink-2); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(88%, 34rem);
  gap: 1rem;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.25rem var(--gutter) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
@media (min-width: 960px) {
  .testimonials { grid-auto-flow: row; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; overflow: visible; }
}
.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-snap-align: start;
}
.quote .icon { width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--brand); fill: var(--brand-soft); }
.quote blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.7; }
.quote figcaption { margin-top: auto; font-weight: 700; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1200px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 0.6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-info { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; padding: 0.9rem 0.9rem 1rem; }
.team-info h3 { margin: 0; font-size: clamp(1rem, 2.6vw, 1.15rem); }
.team-info p { margin: 0; font-size: 0.86rem; color: var(--ink-2); line-height: 1.4; }
.team-social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
@media (min-width: 768px) { .team-info { padding: 1.1rem 1.2rem 1.2rem; } }

.team-group { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 5vw, 3.25rem);
  border-radius: var(--radius-l);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(255 255 255 / 0.12), transparent 60%),
    var(--brand);
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: rgb(255 255 255 / 0.88); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-main { display: grid; gap: 2.25rem; padding-block: clamp(3rem, 7vw, 5rem); }
@media (min-width: 640px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer h2 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.footer-list { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.footer-list a, .footer-contact a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-contact { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-contact .icon { margin-top: 0.6em; color: #9fdcb5; width: 1.05rem; height: 1.05rem; }
.footer-contact li > span { padding-block: 0.45rem; }
.footer-legal p { margin: 0 0 0.3rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem calc(1.25rem + 76px);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
@media (min-width: 1024px) { .footer-bottom { padding-bottom: 1.25rem; } }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

/* ---------- Mobile sticky actions ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgb(250 247 242 / 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { min-height: 50px; padding-inline: 0.75rem; }
.sticky-cta .btn-dark { background: var(--ink); color: #fff; }
.sticky-cta .btn-dark:hover { background: #000; color: #fff; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

.back-to-top {
  position: fixed;
  right: var(--gutter);
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
.back-to-top:hover { color: var(--brand); }
@media (min-width: 1024px) { .back-to-top { bottom: 24px; } }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid #cfc6b8;
  border-radius: var(--radius-s);
  background: #fff;
  font-size: 1rem; /* prevents iOS zoom on focus */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(24 106 59 / 0.15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.req { color: var(--danger); }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-s); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { background: var(--brand-soft); color: var(--brand-strong); }
.form-status.is-error { background: #fbe9e7; color: var(--danger); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.form-note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ink-2); }

.aside-stack { display: grid; gap: 1rem; align-content: start; }
.meta-list { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.meta-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-2); }
.meta-list .icon { margin-top: 0.2em; color: var(--brand); }
.meta-list a { color: var(--ink); font-weight: 600; }

.layout-aside { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .layout-aside { grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; } }

/* ---------- Prices / tabs ---------- */
.tabs-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.75rem var(--gutter);
  background: rgb(250 247 242 / 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.tab-list {
  position: relative;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.tab-list::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .tab-list { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; } }
.tab {
  flex: none;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { border-color: var(--brand); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel { padding-top: 1.25rem; scroll-margin-top: calc(var(--header-h) + 80px); }
.tab-panel h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.js .tab-panel[hidden] { display: none; }

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.price-table th, .price-table td { padding: 0.95rem 1rem; text-align: left; vertical-align: top; }
.price-table thead th {
  background: var(--sand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.price-table tbody tr + tr td { border-top: 1px solid var(--line); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand-strong); }
.price-table tbody tr:hover td { background: #fcfaf6; }
@media (min-width: 768px) { .price-table th, .price-table td { padding: 1rem 1.5rem; } }
.prices-note { margin: 1.5rem 0 0; font-size: 0.92rem; color: var(--ink-2); }

/* ---------- Cases ---------- */
.case-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1024px) { .case-list { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.case-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--sand);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.case-shot img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease); }
.case-shot:hover img { transform: scale(1.03); }
.case-tag {
  position: absolute;
  left: 0.5rem; top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.case-tag--after { background: var(--brand); color: #fff; }
.case-zoom {
  position: absolute;
  right: 0.5rem; bottom: 0.5rem;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.94);
  color: var(--ink);
}
.case-zoom .icon { width: 16px; height: 16px; }
.case-card figcaption { padding: 1rem 0.5rem 0.5rem; color: var(--ink-2); font-size: 0.97rem; }

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(8 16 12 / 0.95);
  color: #fff;
}
.lightbox::backdrop { background: rgb(8 16 12 / 0.7); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem var(--gutter); }
.lightbox-title { margin: 0; font-weight: 700; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-s); }
.lightbox-nav { display: flex; justify-content: center; gap: 1rem; padding: 0.75rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  color: #fff;
  cursor: pointer;
}
.icon-btn:hover { background: rgb(255 255 255 / 0.16); }
.lightbox :focus-visible { outline-color: #9fdcb5; }

/* ---------- Conditions ---------- */
.symptom-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.symptom-panel fieldset { margin: 0 0 1.25rem; padding: 0; border: 0; }
.symptom-panel legend { margin-bottom: 0.9rem; font-weight: 700; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
}
.chip label .icon { width: 1rem; height: 1rem; display: none; }
.chip input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:checked + label .icon { display: block; }
.chip input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 3px; }
.symptom-result { margin-top: 1.25rem; }
.symptom-result:empty { display: none; }
.result-card { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--brand-soft); }
.result-card h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; }
.result-card ul { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.result-card li { display: flex; gap: 0.6rem; }
.result-card li .icon { margin-top: 0.2em; color: var(--brand); }
.result-card strong { color: var(--brand-strong); }
.result-alert { display: flex; align-items: center; gap: 0.6rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--sand); }

.condition-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 480px) { .condition-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .condition-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.condition-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  min-height: 84px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.condition-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: transparent; }
.condition-card img { width: 52px; height: 52px; flex: none; }
.condition-card strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.condition-card span { font-size: 0.86rem; color: var(--brand); font-weight: 700; }
@media (min-width: 1024px) {
  .condition-card { flex-direction: column; align-items: flex-start; padding: 1.4rem; }
  .condition-card img { width: 60px; height: 60px; }
}

.condition-detail { padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.condition-detail h2 { outline: none; }
.condition-detail img { width: 100%; max-height: 420px; object-fit: cover; margin: 0 0 1.5rem; border-radius: var(--radius); }
.condition-desc { font-size: 1.05rem; color: var(--ink-2); }
.detail-blocks { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .detail-blocks { grid-template-columns: 1fr 1fr; } }
.detail-block { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--bg); }
.detail-block h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--brand-strong); }
.detail-block ul { margin: 0; padding-left: 1.1rem; }
.detail-block li { margin-bottom: 0.45rem; color: var(--ink-2); }
.detail-block li::marker { color: var(--brand); }

/* ---------- Contact ---------- */
.contact-card { display: flex; flex-direction: column; }
.contact-card a { font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.map-frame { overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--sand); aspect-ratio: 4 / 3; }
@media (min-width: 960px) { .map-frame { aspect-ratio: auto; height: 100%; min-height: 420px; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.siteseal { display: flex; justify-content: center; margin-top: 2rem; min-height: 1px; }

/* ---------- Reveal on scroll (only when JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--ink-2); }
.text-center { text-align: center; }
.center-row { display: flex; justify-content: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Small layout helpers used on the home page ---------- */
.media-frame--photo { aspect-ratio: 3 / 2; }
.team-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); align-items: end; gap: 1.25rem; }
@media (min-width: 960px) { .team-head > :last-child { justify-self: end; } }
.card-title { font-size: 1.25rem; }
.card-title--lg { font-size: 1.5rem; }
.section--flush-top { padding-top: 0; }
.split--stretch { align-items: stretch; }

/* ---------- Comfortable tap areas for standalone links ---------- */
.breadcrumb a, .hero-facts a, .contact-card a, .meta-list a, .footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.breadcrumb { margin-bottom: 0.5rem; }
.breadcrumb li { display: flex; align-items: center; }
.hero-facts li { min-height: 44px; }

/* ==========================================================================
   v2 — team spotlight, compact cards, motion
   ========================================================================== */

/* Buttons size to their label; only the form button is full width */
.btn { width: auto; }
.btn-row { align-items: center; }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { left: 120%; }

/* ---------- Scroll progress bar (scroll-driven, progressive enhancement) ---------- */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      display: block;
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 120;
      height: 3px;
      background: linear-gradient(90deg, var(--brand), #4fb57a);
      transform-origin: 0 50%;
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Services ticker ---------- */
.ticker {
  overflow: hidden;
  padding-block: 0.95rem;
  background: var(--brand);
  color: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 2.5rem; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  white-space: nowrap;
}
.ticker span::after { content: "✦"; font-size: 0.75rem; color: #9fdcb5; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 38s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(calc(-50% - 1.25rem)); } }

/* ---------- Quick info cards (compact, single row of content) ---------- */
.quick-grid { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.quick-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.quick-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
.quick-card .card-icon { margin: 0; width: 46px; height: 46px; flex: none; }
.quick-card > span:nth-child(2) { flex: 1; min-width: 0; }
.quick-card strong { display: block; font-size: 1.02rem; line-height: 1.3; }
.quick-card > span > span { display: block; font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }
.quick-card > .icon { color: var(--brand); transition: transform 0.25s var(--ease); }
.quick-card:hover > .icon { transform: translateX(4px); }
.quick-card--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.quick-card--dark { background: var(--dark-2); border-color: var(--dark-2); color: #fff; }
.quick-card--brand:hover, .quick-card--dark:hover { color: #fff; }
.quick-card--brand > span > span, .quick-card--dark > span > span { color: rgb(255 255 255 / 0.78); }
.quick-card--brand .card-icon, .quick-card--dark .card-icon { background: rgb(255 255 255 / 0.14); color: #fff; }
.quick-card--brand > .icon, .quick-card--dark > .icon { color: #fff; }
.quick-card--brand strong { font-variant-numeric: tabular-nums; }
.card-icon .icon { width: 22px; height: 22px; }

/* ---------- Lead doctor spotlight ---------- */
.lead-doctor {
  display: grid;
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius-l);
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 860px) { .lead-doctor { grid-template-columns: 0.9fr 1.1fr; } }
.lead-photo { position: relative; aspect-ratio: 4 / 5; max-height: 620px; overflow: hidden; }
@media (min-width: 860px) { .lead-photo { aspect-ratio: auto; max-height: none; min-height: 100%; } }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.lead-doctor:hover .lead-photo img { transform: scale(1.03); }
.lead-badge {
  position: absolute;
  left: 1rem; top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.lead-badge .icon { width: 1rem; height: 1rem; fill: #e2b04a; stroke: #e2b04a; }
.lead-body { padding: clamp(1.75rem, 5vw, 3.5rem); align-self: center; }
.lead-body .eyebrow { color: #9fdcb5; }
.lead-body h3 { margin-bottom: 0.35rem; font-size: clamp(1.9rem, 4.5vw, 3rem); color: #fff; }
.lead-role { margin-bottom: 1.25rem; font-weight: 700; color: #9fdcb5; }
.lead-body > p:not(.eyebrow):not(.lead-role) { color: var(--on-dark-2); font-size: 1.05rem; }
.lead-quote {
  margin: 1.5rem 0 1.75rem;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--brand);
}
.lead-quote p { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.4; color: #fff; }
.lead-quote cite { font-style: normal; font-size: 0.88rem; color: var(--on-dark-2); }
.lead-doctor .btn-outline { border-color: rgb(255 255 255 / 0.55); color: #fff; }
.lead-doctor .btn-outline:hover { background: #fff; color: var(--ink); }
.lead-doctor :focus-visible { outline-color: #9fdcb5; }

/* ---------- Doctors grid ---------- */
.team-subtitle { margin-bottom: 1.25rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.doctor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; margin: 0 0 clamp(2.5rem, 6vw, 4rem); padding: 0; list-style: none; }
@media (min-width: 768px) { .doctor-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.doctor-card { position: relative; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.doctor-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 0.8s var(--ease); }
.doctor-card:hover .doctor-photo img { transform: scale(1.05); }
.doctor-info { position: relative; padding: 0.85rem 0.9rem 1rem; }
.doctor-info h4 { margin: 0.45rem 0 0.15rem; font-size: clamp(1rem, 2.6vw, 1.2rem); }
.doctor-info p { margin: 0; font-size: 0.85rem; line-height: 1.4; color: var(--ink-2); padding-right: 2.25rem; }
.chip-tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; }
.doctor-info .team-social {
  position: absolute;
  right: 0.5rem; bottom: 0.5rem;
  justify-content: center;
  width: 44px; height: 44px;
  margin: 0; padding: 0;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.doctor-info .team-social:hover { background: var(--brand-soft); color: var(--brand); }
@media (min-width: 768px) { .doctor-info { padding: 1.1rem 1.2rem 1.25rem; } }

/* ---------- Support staff (compact) ---------- */
.support-team { margin-bottom: 0; }
.support-head p { color: var(--ink-2); margin-top: -0.6rem; }
.staff-list { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .staff-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .staff-list { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; } }
.staff {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.9rem 0.6rem 0.6rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.staff:hover { border-color: var(--brand); transform: translateX(3px); }
.staff img { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.staff span { font-size: 0.86rem; color: var(--ink-2); line-height: 1.35; }
.staff strong { display: block; font-size: 0.98rem; color: var(--ink); }
.team-group { position: relative; margin: 0; }
.group-caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Service cards (horizontal) ---------- */
.service-card { flex-direction: row; align-items: center; gap: 0.9rem; padding: 1.1rem 1.2rem; min-height: 0; }
.service-card .card-icon { margin: 0; flex: none; }
.service-text { flex: 1; min-width: 0; }
.service-text strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.service-text span { display: block; font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; }
.service-card > .icon { color: var(--brand); transition: transform 0.25s var(--ease); }
.service-card:hover > .icon { transform: translateX(4px); }
.service-links a .icon { transition: transform 0.25s var(--ease); }
.service-links a:hover .icon { transform: translateX(3px); }

.checklist--4 { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.checklist--4 li { padding: 0.55rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; }

/* ---------- Closing CTA with photo ---------- */
.cta-band--photo { position: relative; overflow: hidden; isolation: isolate; min-height: 320px; align-content: end; background: var(--dark); }
.cta-band--photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(13 30 21 / 0.1), rgb(13 30 21 / 0.85)); }
@media (min-width: 900px) { .cta-band--photo { min-height: 420px; align-items: end; } }

/* Imaging scan line */
.imaging-figure .media-frame { position: relative; }
.scan-line { position: absolute; inset: 0 auto 0 0; width: 18%; background: linear-gradient(90deg, transparent, rgb(159 220 181 / 0.35), transparent); pointer-events: none; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .scan-line { opacity: 1; animation: scan 4.5s var(--ease) infinite; }
}
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(560%); } }

/* ---------- Motion layer ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Staggered children: JS sets --i on each .reveal inside a .stagger container */
  .js .stagger > .reveal, .js .stagger > li.reveal { transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal--zoom { transform: scale(0.94); }
  .js .reveal--zoom.is-visible { transform: none; }
  .js .reveal .eyebrow::before, .js .reveal.eyebrow::before { width: 0; transition: width 0.8s var(--ease) 0.2s; }
  .js .reveal.is-visible .eyebrow::before { width: 1.5rem; }

  /* Hero image: soft settle-in; caption pops in after */
  .hero-media img { animation: hero-img 1.6s var(--ease) both; }
  .hero-caption { animation: pop 0.7s var(--ease) 0.9s both; }
  .lead-badge { animation: bob 4s ease-in-out infinite; }

  /* Tab panels fade in on switch */
  .tab-panel:not([hidden]) { animation: rise 0.45s var(--ease) both; }

  .case-card { transition: transform 0.35s var(--ease), box-shadow 0.35s; }
  .case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .card { transition: transform 0.35s var(--ease), box-shadow 0.35s; }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .feature .card-icon { transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s; }
  .feature:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: #fff; }
}
@keyframes hero-img { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* v2 tweaks */
.hero-facts { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-top: 1.25rem; }
.hero-facts li { min-height: 44px; }
.doctor-info p { padding-right: 0; }
.doctor-info .team-social {
  top: -54px; right: 0.6rem; bottom: auto;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.doctor-info .team-social:hover { background: #fff; color: var(--brand); }
.staff .avatar { display: block; width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: 50%; background: var(--sand); }
.staff .avatar img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: 50% 30%; transform: scale(1.85); transform-origin: 52% 36%; transition: transform 0.5s var(--ease); }
.staff:hover .avatar img { transform: scale(2.05); }

/* ---------- Reviews (v3) ---------- */
.reviews { position: relative; overflow: hidden; }
.reviews::before {
  content: "";
  position: absolute;
  right: -12rem; top: -10rem;
  width: 32rem; height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(24 106 59 / 0.12), transparent 70%);
  pointer-events: none;
}
.reviews-head { display: grid; gap: 0.5rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.reviews-head h2 { margin-bottom: 0; }
.reviews-intro { margin: 0; max-width: 26rem; color: var(--ink-2); font-size: 1.05rem; }
@media (min-width: 860px) { .reviews-head { grid-template-columns: 1fr auto; align-items: end; } }

.review-grid { position: relative; display: grid; gap: 1rem; }
@media (min-width: 860px) {
  .review-grid { grid-template-columns: 1.25fr 1fr; grid-auto-flow: dense; gap: 1.25rem; }
  .review--featured { grid-row: span 2; }
}
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.review > .icon { width: 2.25rem; height: 2.25rem; margin-bottom: 1rem; color: var(--brand); fill: var(--brand-soft); }
.review blockquote { flex: 1; margin: 0 0 1.5rem; }
.review blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.review--featured {
  background:
    radial-gradient(30rem 20rem at 0% 0%, rgb(255 255 255 / 0.08), transparent 60%),
    var(--dark);
  border-color: var(--dark);
  color: var(--on-dark);
  box-shadow: var(--shadow-lift);
}
.review--featured > .icon { width: 3rem; height: 3rem; color: #9fdcb5; fill: rgb(159 220 181 / 0.15); }
.review--featured blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #fff;
}
.review-author { display: flex; align-items: center; gap: 0.85rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.review--featured .review-author { border-top-color: rgb(255 255 255 / 0.14); }
.review-author strong { display: block; font-size: 1rem; color: var(--ink); }
.review-author span span, .review-author > span:last-child { font-size: 0.86rem; color: var(--ink-2); line-height: 1.35; }
.review--featured .review-author strong { color: #fff; }
.review--featured .review-author > span:last-child { color: var(--on-dark-2); }
.review-avatar {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.review-avatar--2 { background: var(--bronze); }
.review-avatar--3 { background: #2f6f8f; }
.review-avatar--4 { background: #7a4e7e; }
.review--featured .review-avatar { background: #9fdcb5; color: var(--dark); }

.review-cta {
  display: grid;
  gap: 1rem;
  align-content: center;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius-l);
  background: var(--brand);
  color: #fff;
}
.review-cta .card-icon { margin: 0; background: rgb(255 255 255 / 0.14); color: #fff; }
.review-cta p { margin: 0; color: rgb(255 255 255 / 0.88); }
.review-cta strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #fff; }
.review-cta .btn-primary { justify-self: start; background: #fff; color: var(--brand-strong); }
.review-cta .btn-primary:hover { background: var(--brand-soft); color: var(--brand-strong); }
@media (min-width: 600px) and (max-width: 859px) {
  .review-cta { grid-template-columns: auto 1fr auto; align-items: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .review { transition: transform 0.35s var(--ease), box-shadow 0.35s; }
  .review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .review--featured > .icon { animation: bob 5s ease-in-out infinite; }
}
