/* ==========================================================================
   Uzm. Dr. Mustafa Erim — clinic site
   Palette taken from the practice logo: teal #48a1be, deep plum #450c3c.
   ========================================================================== */

:root {
  color-scheme: light;
  --surface: #fff;
  --hero-surface: #f7f6f2;
  --hero-accent: #3d5c57;
  --hero-line: #d6d8d1;
  --credential-line: #ecdce8;
  --photo-caption: rgba(255,255,255,.94);
  --plum-fill: #450c3c;
  --step-fill: #28677d;
  --teal: #48a1be;
  --teal-dark: #28677d;  /* #34819a was 4.4:1 on white — below AA for body-size text */
  --teal-soft: #eaf4f8;
  --plum: #450c3c;
  --plum-deep: #2c0726;
  --plum-soft: #f7eef5;
  --ink: #1b1a1f;
  --body: #4a4a52;
  --muted: #6b6b76;      /* #7b7b86 was 4.2:1 on white, 3.9:1 on --bg-soft */
  --line: #e4e6ea;
  --bg: #ffffff;
  --bg-soft: #f5f6f3;
  --wa: #225d50;
  --wa-dark: #17473d;

  --maxw: 1140px;
  --header-h: 68px;      /* one source for the header row and the anchor offset */
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: none;
  --shadow: 0 4px 12px rgba(27, 26, 31, .06), 0 12px 32px rgba(27, 26, 31, .07);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 108px) + 12px); }

@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html, .system-text-measure { font: -apple-system-body; }
}
.system-text-measure {
  position: absolute; width: 0; height: 1em; overflow: hidden;
  visibility: hidden; pointer-events: none;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img, video { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; text-wrap: balance; }
h1 { font-size: 4rem; line-height: 1.08; letter-spacing: -.038em; }
h2 { font-size: 2.35rem; }
h3 { font-size: 1.16rem; }
@media (max-width: 1100px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
}
@media (max-width: 700px) {
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.65rem; }
}
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.narrow { max-width: 780px; }
section { padding: clamp(52px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-plum { background: var(--plum-deep); color: rgba(255, 255, 255, .82); }
.section-plum h2, .section-plum h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px;
}
.section-plum .eyebrow { color: var(--teal); }
.lead { font-size: 1.09rem; color: var(--body); max-width: 62ch; }
.section-plum .lead { color: rgba(255, 255, 255, .8); }

/* ---------- skip link / a11y ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--plum-fill); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 2px; border-radius: 4px; }
.section-plum :focus-visible, .site-footer :focus-visible { outline-color: var(--teal); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; visibility: hidden; }
.moving-logo {
  position: absolute; top: 0; left: 0; width: 100px; height: auto;
  transform-origin: top left; pointer-events: none;
}
.hero-logo.in-transit { visibility: hidden; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--ink); font-size: 1.0625rem; letter-spacing: -.01em; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

/* nowrap: a nav that does not fit must never drop a link onto a second row */
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: nowrap; }
.nav > a {
  font-size: .9rem; font-weight: 500; color: var(--body); padding: 8px 11px;
  border-radius: 8px; white-space: nowrap;
  text-decoration: underline solid transparent 2px; text-underline-offset: .28em;
}
.nav > a[aria-current="location"] { color: var(--teal-dark); text-decoration-color: currentColor; }
.nav > a:focus-visible { text-decoration-color: currentColor; outline-offset: -3px; }
@media (hover: hover) {
  .nav > a:hover { color: var(--plum); text-decoration-color: currentColor; }
}

.header-shortcuts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.header-shortcuts .btn { min-height: 44px; }
.reading-settings { display: contents; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch { white-space: nowrap; }
.lang-switch .ls-short { display: none; }
.lang-switch:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: .95rem; font-weight: 600; line-height: 1.3;
  padding: 14px 22px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .16s, box-shadow .16s, background .16s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff;  }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-sm { padding: 10px 17px; font-size: .88rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; cursor: pointer; margin-left: auto;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

/* ---------- hero ---------- */
.hero {
  padding: 0; background: var(--hero-surface); border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 80px); row-gap: 32px; align-items: center;
  padding-block: clamp(32px, 5vw, 64px) 28px;
}
.hero .eyebrow { color: var(--hero-accent); }
.hero-logo { display: block; width: clamp(68px, 7vw, 100px); height: auto; margin-bottom: 16px; }
.hero h1 { max-width: 20ch; }
.hero .lead { font-size: 1.1875rem; max-width: 56ch; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.hero-media { margin: 0; min-width: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: 50% 87%;
  border-radius: var(--radius-lg);
}
.hero-media figcaption { display: grid; gap: 2px; padding-top: 12px; line-height: 1.4; }
.hero-media figcaption strong { color: var(--ink); font-size: 1.06rem; }
.hero-media figcaption span { font-size: .94rem; color: var(--body); }
.stats {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hero-line); padding-top: 24px;
}
.stat { min-width: 0; padding-inline: clamp(12px, 3.5vw, 52px); }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--hero-line); }
.stat-num { color: var(--plum); font-family: Georgia, serif; font-size: 2.4rem; line-height: 1.1; }
.stat-num { font-variant-numeric: tabular-nums; }
.stat-plus { display: inline-block; font-size: .73em; vertical-align: .12em; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes stat-settle {
    from { transform: translateY(.15em); opacity: .65; }
    to { transform: none; opacity: 1; }
  }
  .count-complete .stat-plus { animation: stat-settle 180ms ease-out both; }
}
.stat-label { color: var(--body); font-size: .95rem; line-height: 1.4; margin-top: 6px; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft);
  color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- TMS ----------
   Photo of the real equipment on the left; it stretches to whatever height the
   benefit cards + regulatory card need, so neither column is ever hollow. */
.tms-layout {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.55fr);
  gap: 22px; margin-top: 34px; align-items: stretch;
}
.tms-photo {
  margin: 0; position: relative; min-height: 360px; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--line); box-shadow: var(--shadow-sm);
}
.tms-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.tms-photo figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--photo-caption); border-radius: 10px; padding: 9px 13px;
  font-size: .82rem; line-height: 1.4; color: var(--ink);
}
.tms-side { display: flex; flex-direction: column; gap: 18px; }
.benefit-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.benefit {
  margin: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.benefit .bi {
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft);
  color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 12px;
}
.benefit .bi svg { width: 15px; height: 15px; }
.benefit strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.benefit > span:last-child { display: block; font-size: 1.0625rem; }
.evidence { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; }
.evidence .card-icon { margin: 0; flex-shrink: 0; }
.evidence p { margin: 0; font-size: 1.0625rem; }

.conditions { margin-top: 46px; }
.conditions > p { max-width: 62ch; font-size: 1.0625rem; margin-bottom: 0; }
.condition-grid {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.condition {
  flex: 1 1 14.5rem; min-inline-size: 0; overflow-wrap: anywhere;
  display: flex; gap: 13px; align-items: flex-start; margin: 0; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.condition .ci {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--teal-soft);
  color: var(--teal-dark); display: grid; place-items: center;
}
.condition .ci svg { width: 17px; height: 17px; }
.condition strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; }
.condition strong + span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ---------- services ----------
   The closing note is the card's footer, not a separate box: a free-standing
   .note under a 22px-radius card read as misaligned. */
.services {
  margin-top: 30px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.service-list { list-style: none; padding: 0; margin: 0; }
.service {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 6px 28px;
  margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.service-name strong { display: block; color: var(--ink); font-weight: 600; }
.service-tag {
  display: inline-block; margin-top: 7px; font-style: normal; font-size: .68rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--plum);
  background: var(--plum-soft); padding: 3px 9px; border-radius: 999px;
}
.service p { margin: 0; font-size: 1.0625rem; }
.services-note {
  margin: 0; padding: 16px 24px; background: var(--teal-soft);
  font-size: .94rem; color: var(--ink);
}

.note {
  background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 10px;
  padding: 16px 20px; font-size: .94rem; color: var(--ink); margin: 26px 0 0;
}
.note strong { font-weight: 600; }
.section-plum .note { background: rgba(72, 161, 190, .14); color: rgba(255, 255, 255, .92); border-left-color: var(--teal); }

/* ---------- doctor ---------- */
.doctor-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 60px); align-items: start; }
.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 0;
  border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink);
}
.cred-list li:last-child { border-bottom: 0; }
.cred-list svg { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.cred-card { background: var(--plum-soft); border: 1px solid var(--credential-line); border-radius: var(--radius-lg); padding: 28px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery a:focus-visible { outline-offset: -4px; }

.gallery a.lb-open { display: block; width: 100%; height: 100%; cursor: zoom-in; }

/* ---------- lightbox (clinic photos + videos) ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid;
  grid-template-rows: minmax(0, 1fr) auto; background: rgba(20, 6, 18, .94);
  color: #fff; outline: none;
}
html.lb-open, html.lb-open body { overflow: hidden; }
.lb-stage {
  grid-row: 1; min-width: 0; min-height: 0; display: flex; align-items: center;
  justify-content: center; padding: 56px 72px 8px;
}
.lb-stage img {
  display: block; max-width: 100%; max-height: 86vh; width: auto; height: auto;
  object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
/* Vertical 9:16 videos fill the viewport height; site.js swaps in the real
   ratio once the metadata is known. */
.lb-stage video {
  display: block; height: 86vh; height: 86dvh; width: auto; max-width: 100%;
  aspect-ratio: 9 / 16; background: #000; border-radius: 8px;
}
.lb-stage video.landscape { width: 100%; height: auto; max-height: 100%; }
.lb-caption {
  grid-row: 2; margin: 0; padding: 6px 72px 16px; text-align: center;
  font-size: .9rem; color: rgba(255, 255, 255, .82); min-height: 1.6em;
}
.lb-count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .62); margin-right: 6px; }
.lb-close, .lb-nav {
  position: absolute; z-index: 1; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .45); color: #fff;
  border-radius: 50%; font: inherit; line-height: 1; padding: 0;
}
.lb-close { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 1.7rem; }
.lb-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 2.2rem; }
.lb-nav span { margin-top: -4px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-close:hover, .lb-nav:hover { background: rgba(0, 0, 0, .7); border-color: rgba(255, 255, 255, .5); }
.lb-nav:disabled { opacity: .25; cursor: default; }
.lightbox :focus-visible { outline-color: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) { animation: lb-in .18s ease-out; }
  @keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 43.75em) {
  .lb-stage { padding: 60px 0 6px; }
  .lb-caption { padding: 6px 16px 14px; }
  .lb-nav { width: 44px; height: 44px; margin-top: -22px; font-size: 1.9rem; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-stage video { height: 78vh; height: 78dvh; }
}

/* ---------- videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.video-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.video-card:focus-within { border-color: var(--teal-dark); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.play-btn {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0;
  background: transparent; padding: 12px;
  cursor: pointer; display: grid; place-items: end start;
}
.play-btn .ring {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .94);
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0, 0, 0, .32);
  transition: transform .18s;
}
.play-btn:hover .ring { transform: scale(1.08); }
.play-btn .ring svg { width: 24px; height: 24px; color: #450c3c; margin-left: 3px; }
.topic-tag { font-size: .9rem; color: var(--teal-dark); font-weight: 600; }
.video-body { padding: 18px 20px; }
.play-btn:focus-visible { outline-offset: -4px; outline-color: white; }
.video-body h3 { font-size: 1.02rem; margin: 7px 0 0; }
.video-body .dur { font-size: .82rem; color: var(--muted); margin-top: 8px; }

@media (min-width: 56.3125em) {
  .video-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: stretch; }
  .video-frame { align-self: stretch; aspect-ratio: auto; min-height: 132px; }
  .video-frame img { position: absolute; inset: 0; }
}
#visit .wrap { max-width: 900px; }
.visit-choice { min-width: 0; border: 0; padding: 0; margin: 0; }
.visit-choice label {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  max-width: 100%; padding: .5rem .85rem; margin-block: .25rem;
  border: 1px solid currentColor; border-radius: 8px; cursor: pointer;
  transition: background-color .18s ease-out, color .18s ease-out;
}
.visit-choice label::before {
  content: ""; flex: none; width: .85em; height: .85em;
  border: 1px solid currentColor; border-radius: 50%; box-sizing: border-box;
}
.visit-choice input:checked + label { background: #fff; color: var(--plum-deep); font-weight: 600; }
.visit-choice input:checked + label::before { border-width: .28em; }
.visit-choice input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 3px; }
#visit-office:checked ~ #online-steps, #visit-online:checked ~ #office-steps { display: none; }
.visit-choice .steps { margin-block-start: 1.5rem; }
.visit-action { margin-block-start: .75rem; }
.visit-call { color: white; border-color: currentColor; }
.visit-travel { border-block-start: 1px solid currentColor; }
.visit-travel summary { cursor: pointer; padding-block: .75rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .visit-choice label { transition: none; } }
/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px;
  padding-bottom: 34px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  grid-column: 1; grid-row: 1;
  width: 46px; height: 46px; border-radius: 50%; background: var(--step-fill); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; z-index: 1;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--teal) 0%, var(--line) 100%);
}
.step-body { grid-column: 2; grid-row: 1; }
.step-body h3 { margin-bottom: .3em; }
.step-body p { margin-bottom: 0; font-size: 1.0625rem; }
.section-plum .step::before { background: var(--step-fill); }
.section-plum .step:not(:last-child)::after { background: linear-gradient(180deg, var(--teal) 0%, rgba(255,255,255,.12) 100%); }

/* ---------- testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); position: relative; margin: 0;
}
.quote::before {
  content: "\201C"; position: absolute; top: 6px; left: 20px;
  font-size: 4.6rem; line-height: 1; color: var(--teal-soft); font-family: Georgia, serif;
}
.quote blockquote { margin: 14px 0 16px; font-size: 1.0625rem; position: relative; }
.quote figcaption { font-size: .86rem; font-weight: 600; color: var(--plum); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 2rem; margin-top: 2rem; }
.faq-group { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.faq-group h3 { margin: 0 0 .85rem; }
@media (min-width: 52em) {
  .faq-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 2rem; }
}
.faq-source { margin: 1.5rem 0 0; font-size: 1rem; }
.faq-source a { text-decoration: underline; text-underline-offset: .17em; }
.faq .faq-body { max-width: 72ch; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 11px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 19px 54px 19px 22px; font-weight: 600; color: var(--ink);
  font-size: 1rem; position: relative; list-style: none;
}
.faq summary:focus-visible { outline-offset: -4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { color: var(--teal-dark); }
.faq .faq-body { padding: 0 22px 20px; font-size: 1.0625rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-item {
  display: flex; gap: 15px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.contact-item .ci-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center;
}
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item .ci-label, .contact-item .ci-value, .contact-item .ci-sub { display: block; }
.contact-item .ci-label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item .ci-value { font-weight: 600; color: var(--ink); word-break: break-word; }
a.contact-item:hover { text-decoration: none; }
a.contact-item:hover .ci-value { color: var(--teal-dark); }
.contact-item .ci-sub { font-size: .84rem; color: var(--muted); }

.arrival { margin-top: 2.5rem; border-block-start: 1px solid var(--line); padding-block-start: 1.5rem; }
.arrival h3 { margin-bottom: .6rem; }
.arrival address { font-style: normal; color: var(--ink); }
.arrival-apps, .number-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.arrival-apps { margin-block: 1rem .25rem; }
.arrival-apps .btn { padding: .5rem .85rem; min-height: 44px; }
.copy-address, .number-actions a { display: inline-flex; align-items: center; min-height: 44px;
  color: var(--teal-dark); text-decoration: underline; text-underline-offset: .2em; }
.copy-address { cursor: pointer; border: 0; background: none; font: inherit; padding: 0; }
.copy-address[hidden] { display: none; }
.copy-status { font-size: .9rem; }
.copy-status:not(:empty) { display: block; }
.shared-number > div { min-width: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--plum-deep); color: rgba(255, 255, 255, .62); padding: 52px 0 34px; font-size: .89rem; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: underline; text-underline-offset: .16em; }
.site-footer .footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.site-footer .footer-brand img { height: 40px; width: auto; }
.site-footer .footer-brand strong { color: #fff; display: block; font-size: 1rem; }
.site-footer .footer-brand span { font-size: .8rem; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 26px; padding-top: 22px;
  max-width: 74ch; line-height: 1.6;
}
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; margin-top: 22px; font-size: .82rem; }

html.large-text { font-size: calc(1.25 * var(--system-font-size, 100%)); }
.theme-control, .text-size, .nav-toggle {
  min-width: 44px; min-height: 44px; color: var(--ink); border: 1px solid var(--line);
  background: var(--surface); border-radius: 8px; cursor: pointer;
}
.text-size { font: 600 1rem var(--font); padding: 6px; }
.text-size:not([hidden]) { display: inline-flex; gap: .45em; align-items: center; justify-content: center; }
.text-size-label { display: none; }
@media (min-width: 56.3125em) {
  .text-size { padding-inline: 12px; }
  .text-size-label { display: inline; font-size: .88em; }
}
.text-size[aria-pressed="true"] { background: var(--plum-fill); border-color: var(--plum); color: #fff; }
.header-actions { margin-left: auto; }
.header-inner { padding-block: 8px; }
.nav-toggle, .text-size, .lang-switch { touch-action: manipulation; }
.site-header { --header-h: 56px; container: clinic-header / inline-size; }

@media (min-width: 56.3125em) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-bottom: 0; }
  .nav { order: 2; width: 100%; margin-top: 8px; border-top: 1px solid var(--line);
         justify-content: space-between; flex-wrap: wrap; }
  .nav > a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 56.25em) {
  html { --header-height: 72px; }
  .js .nav-toggle { display: block; order: 2; margin-left: 0; }
  .nav { flex-direction: column; align-items: stretch; width: 100%; order: 3; margin: 0; }
  .js .nav { display: none; }
  .site-header.open .nav { display: flex; max-height: min(62dvh, var(--menu-space, 62vh)); overflow-y: auto; overscroll-behavior: contain; }
  .nav > a { padding-block: 12px; white-space: normal; }
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .header-actions { order: 1; }
  html:not(.js) .site-header { position: static; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes panel-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .language-picker[open] .language-options, .site-header.open .nav,
  .faq details[open] .faq-body { animation: panel-in 180ms ease-out; }
  .nav-toggle span, .language-picker summary::after { transition: transform 180ms ease-out, opacity 150ms; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .btn:active, .play-btn:active .ring { transform: scale(.97); }
  .lb-stage > img, .lb-stage > video { animation: lb-in 200ms ease-out; }
  .nav > a { transition: color 160ms ease-out, text-decoration-color 160ms ease-out; }
  .text-size, .lang-switch, .faq details, .video-card {
    transition: background-color 180ms ease-out, border-color 180ms ease-out;
  }
}
.faq details[open] { border-color: var(--teal-dark); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery img { transition: transform 220ms ease-out; }
  .gallery a:is(:hover, :focus-visible) img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .play-btn:hover .ring { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 43.8125em) and (max-width: 56.25em) {
  .contact-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 56.3125em) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 62.5em) {
  .doctor-grid { grid-template-columns: 1fr; }
  .tms-layout { grid-template-columns: 1fr; }
  .tms-photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 43.75em) {
  body { font-size: 1.0625rem; }
  .step { grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
  .step::before { width: 38px; height: 38px; font-size: .95rem; }
  .step:not(:last-child)::after { left: 18px; top: 44px; }
  /* header: the brand, a compact TR/EN switch and the menu button share one row */
  .header-inner { gap: 10px; }
  /* basis 0: flex-wrap decides line breaks on unshrunk widths, so a brand at its
     full width pushed the menu button onto a second line at 320px */
  .brand { gap: 8px; flex: 1 1 0; }
  .brand-text { min-width: 0; }
  .brand img { height: 34px; }
  .brand-name { font-size: .9rem; }
  .lang-switch { padding: 8px 11px; }
  .lang-switch .ls-full { display: none; }
  .lang-switch .ls-short { display: inline; }
  .video-grid { grid-template-columns: 1fr; }
  .contact-grid, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px; }
  .hero-media { grid-row: 1; display: flex; gap: 16px; align-items: center; }
  .hero-media img { width: 88px; height: 88px; flex-shrink: 0; border-radius: 50%; }
  .hero-media figcaption { padding: 0; }
  .hero .lead { font-size: 1.08rem; }
  .hero-actions .btn { max-width: 100%; }
  .hero-actions .btn span { min-width: 0; overflow-wrap: anywhere; }
  .hero .eyebrow { margin-bottom: 8px; }
  .stats { padding-top: 18px; }
  .stat-label { font-size: .875rem; hyphens: auto; }
  .stat-num { font-size: 1.5rem; }
  .header-actions { gap: 5px; }
  .card, .quote { padding: 22px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 12px; }
  .benefit { padding: 18px; }
  .evidence { padding: 20px; }
  .service { grid-template-columns: 1fr; padding: 16px 18px; }
  .services-note { padding: 14px 18px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .video-body { padding: 14px 16px 16px; }
}
@media (max-width: 359px) {
  .brand-tag { display: none; }
  .header-inner { gap: 4px; }
}

@container clinic-header (max-width: 18em) {
  .header-inner { gap: 6px; }
  .brand { flex-basis: 100%; }
  .header-actions { margin-left: 0; }
  .js .nav-toggle { margin-left: auto; }
  .header-actions .language-picker { position: static; }
  .language-picker .language-options { top: 100%; right: 16px; left: 16px; width: auto; }
}
@media (max-width: 22em) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(min(6em, 100%), 1fr)); gap: 12px; }
  .stat, .stat + .stat { border: 0; padding: 0; }
}
@media (max-width: 43.75em) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .header-inner .brand { grid-area: 1 / 1; }
  .header-inner .nav-toggle { grid-area: 1 / 2; }
  .header-inner .header-actions { grid-area: 2 / 1 / 3 / -1; width: 100%; margin: 0; flex-wrap: wrap; }
  .header-actions .language-picker { position: static; }
  .header-actions .language-picker .language-options {
    inset-inline: 16px; top: 100%; width: auto;
  }
  .header-actions .language-picker[open] .language-options {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
  }
  .header-shortcuts { flex: 1 1 auto; }
  .header-shortcuts .btn { padding: 6px 10px; }
  .header-inner .nav { grid-area: 3 / 1 / 4 / -1; }
}
@media (max-width: 43.75em) {
  .js .header-inner {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 4px; padding-block: 5px;
  }
  .js .header-inner .header-actions { grid-area: 1 / 2; width: auto; }
  .js .header-inner .nav-toggle { grid-area: 1 / 3; width: 44px; margin: 0; }
  .js .brand-tag { display: none; }
  .js .brand { gap: 6px; }
  .js .brand img { height: 28px; }
  .js .header-shortcuts { flex-wrap: nowrap; gap: 4px; }
  .js .header-shortcuts .btn { width: 44px; height: 44px; padding: 0; }
  .js .header-shortcuts svg { width: 21px; height: 21px; }
  .js .header-shortcuts .btn span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .js .site-header.open .nav {
    position: absolute; inset: 100% 0 auto; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr));
    gap: 2px 6px; padding: 8px max(16px, calc((100% - 680px) / 2)) 12px;
    background: var(--surface); border-block: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .nav > a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; }
  .nav .reading-settings {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px;
    grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  }
  .reading-settings .text-size-label, .reading-settings .ls-full { display: inline; }
  .reading-settings .ls-short { display: none; }
  .nav .language-picker[open] { flex-basis: 100%; }
  .nav .language-options { position: static; width: 100%; max-width: 100%; max-height: none; box-shadow: none; }
  .nav .language-picker[open] .language-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8rem,100%),1fr)); }
  .nav .language-options a { overflow-wrap: anywhere; min-height: 44px; }
}
[dir="rtl"] .skip { left: auto; inset-inline-start: -9999px; }
[dir="rtl"] .skip:focus { inset-inline-start: 0; }
[dir="rtl"] .language-options { right: auto; left: 0; }
[dir="rtl"] .faq summary { padding-inline: 22px 54px; }
[dir="rtl"] .faq summary::after { right: auto; left: 22px; }
[dir="rtl"] .step:not(:last-child)::after { left: auto; inset-inline-start: 26px; }
[dir="rtl"] .brand-name, [dir="rtl"] .eyebrow, [dir="rtl"] .ci-label { letter-spacing: normal; }
[dir="rtl"] .nav, [dir="rtl"] .header-actions { margin-left: 0; margin-inline-start: auto; }
.short-reading-area .site-header { position: relative; }
html.short-reading-area { scroll-padding-block: 12px; }
/* ---------- print ---------- */
@media print {
  .site-header, .play-btn { display: none; }
  .hero-logo.in-transit { visibility: visible; }
  body { font-size: 12pt; color: #000; }
  section { padding: 18px 0; page-break-inside: avoid; }
  .section-plum { background: #fff; color: #000; }
  .section-plum h2, .section-plum h3 { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.language-picker abbr, .native-language abbr { text-decoration: none; }
.language-picker { position: relative; }
.language-picker summary {
  display: flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after, .native-language::after {
  content: "";
  width: .43em;
  height: .43em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.1em) rotate(45deg);
}
.language-picker[open] summary::after { transform: translateY(.1em) rotate(225deg); }
.language-options {
  position: absolute;
  z-index: 3;
  top: calc(100% + 5px);
  right: 0;
  width: max-content; min-width: min(9rem, 85vw); max-width: calc(100vw - 32px);
  max-height: min(60dvh, var(--menu-space, 60vh)); overflow-y: auto; overscroll-behavior: contain;
  padding: .25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px #28182714;
}
.language-flag {
  flex: none; width: 1.25rem; height: auto; aspect-ratio: 4 / 3;
  border-radius: 2px; outline: 1px solid rgba(0, 0, 0, .14); outline-offset: -1px;
}
.language-options a {
  display: flex; align-items: center; gap: .55rem; min-height: 44px;
  padding: .45rem .8rem; color: var(--ink); white-space: normal;
}
.language-options a[aria-current] { font-weight: 700; text-decoration: underline; }
.language-options a:hover, .language-options a:focus-visible { background: var(--plum-soft); }

.theme-control {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  gap: .45rem; position: relative; font-size: .9rem; font-weight: 600;
}
.theme-control[hidden], .theme-control span { display: none; }
.native-language { position: relative; gap: .45em; min-height: 44px; }
.native-language select, .theme-control select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
  font: inherit; font-size: max(1rem, 16px);
}
.native-language:focus-within, .theme-control:focus-within { outline: 3px solid var(--teal-dark); outline-offset: 2px; }
@media (hover: hover) { .theme-control:hover { border-color: var(--teal); } }
@media (max-width: 43.75em) {
  .nav .reading-settings { align-items: center; }
  .theme-control { padding-inline: .65rem; }
  .theme-control span { display: inline; }
  .nav .language-options { overflow-y: visible; }
  .hero-actions .btn { flex: 1 1 12rem; }
  .video-card { display: grid; grid-template-columns: minmax(6rem, 32%) minmax(0, 1fr); align-items: start; }
  .video-frame { margin: .75rem 0; margin-inline-start: .75rem; border-radius: 6px; overflow: hidden; min-height: 48px; }
  .video-body { padding: .75rem; }
  .video-body h3 { margin-top: .25rem; }
  .play-btn { padding: 4px; place-items: center; }
  .play-btn .ring { width: 32px; height: 32px; }
}

.video-note { margin: .5rem 0 0; font-size: .9rem; }
.video-card:target { border-color: var(--teal-dark); }
.video-body .dur a { text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes trace-pulse { from { stroke-dashoffset: .9; } to { stroke-dashoffset: 0; } }
  .trace-pulse path { stroke-dasharray: 1; animation: trace-pulse .62s ease-out both; }
  .play-btn .ring svg { transition: transform 180ms ease-out; }
  .play-btn:is(:focus-visible, :active) .ring svg { transform: translateX(2px); }
}

/* ---------- 404 ---------- */
/* Same type and colour as the pages; the footer stays at the bottom on short screens. */
.not-found-page { display: flex; flex-direction: column; min-height: 100svh; }
.not-found-page .brand img { visibility: visible; }  /* no site.js here to hand the logo over */
.not-found { flex: 1; padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 88px); }
.not-found h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); max-width: 16ch; }
.not-found .lead { margin-bottom: 32px; }
.not-found-home { margin: 0 0 20px; }
.not-found-home .btn { min-height: 48px; }
.not-found-ask { font-size: 1rem; color: var(--muted); margin: 0; }
.not-found-ask a { font-weight: 600; white-space: nowrap; }
.not-found-languages { margin-top: clamp(48px, 7vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.not-found-languages h2 { font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.not-found-languages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.not-found-languages a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  margin-inline-start: -10px; border-radius: 8px; color: var(--ink); font-size: .95rem; }
.not-found-languages a:hover { text-decoration: none; background: var(--bg-soft); color: var(--teal-dark); }
