/* =============================================================
   عيادات سمايا — Samaya Clinics
   Design system + page styles. RTL-first (dir="rtl").
   Palette is sampled from the clinic's own artwork:
     teal   #4C9383 / #4D7A77   (service artwork background)
     navy   #0C1014            (logo backdrop)
   ============================================================= */

/* ---------- tokens ---------- */
:root {
  /* brand */
  --navy-900: #0a1720;
  --navy-800: #0f2733;
  --navy-700: #16394a;
  --navy-600: #1e4c60;

  --teal-700: #245c54;
  --teal-600: #2e6f66;   /* primary — 5.9:1 on white */
  --teal-500: #3d8a7e;
  --teal-400: #4c9383;   /* measured brand teal */
  --teal-200: #a9d3c9;
  --teal-100: #e2f0ec;
  --teal-50:  #f1f8f6;

  /* neutrals */
  --ink:      #14232b;
  --ink-soft: #3d5059;
  --muted:    #5a6b75;   /* 5.6:1 on white */
  --line:     #e6edec;
  --line-strong: #d3ddda;
  --surface:  #ffffff;
  --canvas:   #f4f8f6;   /* soft cool off-white, reference-style airy base */
  --canvas-2: #eef5f2;   /* second band for alternation */

  /* semantic */
  --primary: var(--teal-600);
  --on-primary: #ffffff;
  --bg: var(--canvas);
  --fg: var(--ink);
  --card: var(--surface);
  --border: var(--line);
  --ring: var(--teal-500);

  /* type — Tajawal for a premium, soft Arabic voice (matches the references) */
  --font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  --step--1: clamp(.84rem, .82rem + .12vw, .92rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.12rem + .38vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.34rem + .8vw, 2rem);
  --step-3:  clamp(2rem, 1.62rem + 1.7vw, 3.05rem);
  --step-4:  clamp(2.5rem, 1.85rem + 3.1vw, 4.6rem);

  /* rhythm — 4/8 scale, airier at the top end */
  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 3rem;   --s8: 4.5rem;
  --s9: 7rem;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --shadow-1: 0 2px 6px rgba(16,39,51,.05);
  --shadow-2: 0 10px 30px rgba(16,39,51,.07), 0 2px 6px rgba(16,39,51,.04);
  --shadow-3: 0 30px 70px rgba(16,39,51,.13), 0 8px 20px rgba(16,39,51,.06);

  --container: 1200px;
  --dur: 220ms;
  --ease: cubic-bezier(.32, .72, 0, 1);

  /* z scale */
  --z-header: 100;
  --z-overlay: 1000;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* safety net: clip (not hidden) so a stray wide child can never trigger
     sideways scroll, without turning body into a scroll container that would
     break the sticky header. */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  line-height: 1.3; margin: 0; font-weight: 800; letter-spacing: -.01em;
  overflow-wrap: break-word; word-break: break-word;
}
/* headings and rich text must wrap, never force the line wider than the screen */
.section__title, .hero__title, .slide__title, .why__title, .jstep__title, .faq__q { max-width: 100%; }
p { margin: 0; }
img, svg { max-width: 100%; display: block; }

/* Icons are outline symbols consumed via <use>. Presentation attributes on the
   sprite's wrapping <g> are NOT inherited across the <use> shadow boundary, so we
   set the (inherited) stroke/fill properties here where they DO cross into it. */
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--teal-200); color: var(--navy-900); }

/* ---------- helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 4rem, var(--container)); } }

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

.skip {
  position: absolute; inset-inline-start: 50%; top: -100px; translate: -50% 0;
  z-index: var(--z-overlay);
  background: var(--navy-900); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 12px 12px;
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--step--1); font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-100);
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

.section { padding-block: var(--s8); }
@media (min-width: 768px) { .section { padding-block: var(--s9); } }

.section__head { max-width: 62ch; margin-bottom: var(--s6); }
.section__title { font-size: var(--step-3); margin-block: var(--s3) var(--s3); }
.section__lead { color: var(--muted); font-size: var(--step-1); font-weight: 300; }

.en {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--step-0);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-2); }
.btn--primary:hover { background: var(--teal-700); }
.btn--primary:active { transform: scale(.97); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn--ghost:active { transform: scale(.97); }

.btn--outline { background: var(--surface); color: var(--navy-800); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--teal-500); color: var(--teal-700); }
.btn--outline:active { transform: scale(.97); }

/* =============================================================
   header
   ============================================================= */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(247,250,249,.82);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.header[data-stuck="true"] { border-bottom-color: var(--line); }

.header__inner { display: flex; align-items: center; gap: var(--s4); min-height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-inline-end: auto; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--navy-900);
  padding: 3px;
  box-shadow: var(--shadow-1);
}
.brand__text { display: grid; line-height: 1.2; }
.brand__name { font-weight: 800; font-size: 1.05rem; color: var(--navy-900); }
.brand__tag { font-size: .68rem; color: var(--muted); letter-spacing: .16em; }

.nav { display: none; }
@media (min-width: 980px) {
  .nav { display: flex; align-items: center; gap: .25rem; }
}
.nav__link {
  position: relative;
  padding: .6rem .85rem; min-height: 44px;
  display: inline-flex; align-items: center;
  text-decoration: none; font-weight: 700; font-size: .95rem;
  color: var(--ink-soft);
  border-radius: 10px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--teal-700); background: var(--teal-50); }
.nav__link[aria-current="true"] { color: var(--teal-700); }
.nav__link[aria-current="true"]::after {
  content: ""; position: absolute; inset-inline: .85rem; bottom: .35rem;
  height: 2px; border-radius: 2px; background: var(--teal-500);
}

.header__cta { display: none; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.burger:hover { background: var(--teal-50); }
.burger svg { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }
@media (min-width: 980px) { .burger { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 74px 0 auto; z-index: calc(var(--z-header) - 1);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  padding: var(--s4) 0 var(--s5);
  display: grid; gap: .2rem;
  translate: 0 -8px; opacity: 0; visibility: hidden;
  transition: translate var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur);
}
.drawer[data-open="true"] { translate: 0 0; opacity: 1; visibility: visible; }
.drawer__link {
  display: flex; align-items: center; min-height: 52px;
  padding-inline: 1.25rem; text-decoration: none;
  font-weight: 700; color: var(--ink-soft);
  border-radius: 10px;
}
.drawer__link:hover { background: var(--teal-50); color: var(--teal-700); }
.drawer .btn { margin: var(--s3) 1.25rem 0; }
@media (min-width: 980px) { .drawer { display: none; } }

/* =============================================================
   hero
   ============================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  padding-block: var(--s8) var(--s9);
}
@media (min-width: 768px) { .hero { padding-block: var(--s9) calc(var(--s9) + 2rem); } }

/* brand-derived atmosphere — no stock photography */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 88% 8%,  rgba(76,147,131,.55) 0%, transparent 55%),
    radial-gradient(90% 80% at 8% 96%,  rgba(30,76,96,.75) 0%, transparent 60%),
    linear-gradient(180deg, #0a1720 0%, #0d222e 55%, #0a1720 100%);
}
/* fine diagonal weave, echoes the sweep in the clinic's own artwork */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 1px, transparent 1px 9px);
  mask-image: radial-gradient(130% 100% at 70% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(130% 100% at 70% 0%, #000 10%, transparent 78%);
}

.hero__grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: var(--s8); } }

.hero .eyebrow { background: rgba(169,211,201,.14); color: var(--teal-200); }

.hero__title {
  font-size: var(--step-4);
  margin-block: var(--s4) var(--s4);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__title span { color: var(--teal-200); }

.hero__lead {
  font-size: var(--step-1); font-weight: 300;
  color: rgba(255,255,255,.82);
  max-width: 46ch; margin-bottom: var(--s3);
  text-wrap: pretty;
}

.hero__en {
  font-size: clamp(1.05rem, .95rem + .5vw, 1.5rem);
  color: var(--teal-200);
  margin-bottom: var(--s6);
  opacity: .95;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  margin-top: var(--s6); padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--step--1); color: rgba(255,255,255,.72);
}
.hero__meta div { display: flex; align-items: center; gap: .5rem; }
.hero__meta svg { width: 17px; height: 17px; color: var(--teal-200); flex: none; }

/* hero emblem */
.emblem { position: relative; display: grid; place-items: center; min-height: 300px; }
@media (max-width: 939px) { .emblem { min-height: 240px; } }
.emblem__disc {
  width: min(300px, 68vw); aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), var(--shadow-3);
  backdrop-filter: blur(2px);
}
.emblem__disc img { width: 62%; height: auto; }
.emblem__badge {
  position: absolute; inset-block-end: 4%; inset-inline-start: -2%;
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface); color: var(--ink);
  padding: .7rem 1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-3);
}
.emblem__badge b {
  font-size: 1.9rem; font-weight: 900; color: var(--teal-600);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.emblem__badge span { font-size: .74rem; font-weight: 700; color: var(--muted); line-height: 1.35; }
.emblem__ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(169,211,201,.2);
  animation: breathe 7s var(--ease) infinite;
}
.emblem__ring--1 { width: min(380px, 84vw); aspect-ratio: 1; }
.emblem__ring--2 { width: min(460px, 100vw); aspect-ratio: 1; animation-delay: -3.5s; opacity: .6; }
@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.045); opacity: .22; }
}
@media (prefers-reduced-motion: reduce) { .emblem__ring { animation: none; } }

/* =============================================================
   stats
   ============================================================= */
.stats { background: var(--surface); border-block: 1px solid var(--line); }
.stats__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s5) var(--s4);
  padding-block: var(--s6);
}
@media (min-width: 760px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; position: relative; }
@media (min-width: 760px) {
  .stat + .stat::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 12%; bottom: 12%;
    width: 1px; background: var(--line);
  }
}
.stat__num {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem);
  font-weight: 800; color: var(--teal-600);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat__label { font-size: var(--step--1); color: var(--muted); font-weight: 700; margin-top: .35rem; }

/* centered section head variant (used by why / journey / faq) */
.section__head--center { max-width: 60ch; margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* =============================================================
   why choose
   ============================================================= */
.why { background: var(--canvas-2); }
.why__grid {
  display: grid; gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }

.why__card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s6) var(--s5);
  display: grid; gap: var(--s3); align-content: start;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--teal-200); }
@media (prefers-reduced-motion: reduce) { .why__card:hover { transform: none; } }
.why__card--lead {
  background: linear-gradient(160deg, var(--teal-600), var(--teal-700));
  border-color: transparent; color: #fff;
}
.why__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal-50), var(--teal-100));
  border: 1px solid var(--teal-200); color: var(--teal-700);
}
.why__card--lead .why__icon { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.why__icon svg { width: 30px; height: 30px; }
.why__title { font-size: var(--step-1); font-weight: 800; }
.why__text { color: var(--muted); font-weight: 400; line-height: 1.75; }
.why__card--lead .why__text { color: rgba(255,255,255,.85); }

/* =============================================================
   journey — 3 steps
   ============================================================= */
.journey__grid {
  display: grid; gap: var(--s5);
  grid-template-columns: 1fr;
  counter-reset: jstep;
}
@media (min-width: 820px) { .journey__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }

.jstep {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s6) var(--s5);
  display: grid; gap: var(--s3); align-content: start;
}
/* connector line between steps on wide screens */
@media (min-width: 820px) {
  .jstep::after {
    content: ""; position: absolute; top: 3.4rem; inset-inline-end: -1rem; width: 1rem; height: 2px;
    background: repeating-linear-gradient(to left, var(--teal-200) 0 6px, transparent 6px 12px);
  }
  .jstep:last-child::after { display: none; }
}
.jstep__num {
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem); font-weight: 900;
  line-height: 1; color: var(--teal-100); font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 1px var(--teal-200);
}
.jstep__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teal-600); color: #fff;
}
.jstep__icon svg { width: 26px; height: 26px; }
.jstep__title { font-size: var(--step-1); font-weight: 800; }
.jstep__text { color: var(--muted); font-weight: 400; line-height: 1.75; }

/* =============================================================
   faq — accordion
   ============================================================= */
.faq__list { max-width: 820px; margin-inline: auto; display: grid; gap: var(--s3); }
.faq__item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--teal-200); box-shadow: var(--shadow-1); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s5); cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--step-1); color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--teal-700); }
.faq__mark { position: relative; width: 20px; height: 20px; flex: none; }
.faq__mark::before, .faq__mark::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 50%;
  top: 50%; width: 2.5px; height: 14px; margin-block: -7px 0; margin-inline-start: -1.25px;
  background: var(--teal-600); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark::after { transform: rotate(0); opacity: 0; }
.faq__a {
  padding: 0 var(--s5) var(--s5);
  color: var(--muted); font-weight: 400; line-height: 1.85;
}

/* =============================================================
   services — large one-at-a-time showcase (RTL scroll-snap carousel)
   ============================================================= */
.showcase { position: relative; }

.showcase__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius-lg);
  scrollbar-width: none;                 /* firefox */
}
.showcase__viewport::-webkit-scrollbar { display: none; }
.showcase__viewport:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .showcase__viewport { scroll-behavior: auto; } }

.slide {
  flex: 0 0 100%; min-width: 0;
  scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 860px) { .slide { grid-template-columns: 1.05fr 1fr; } }

/* media panel — brand-built visual; swap the .slide__media div for an <img> later */
.slide__media {
  position: relative; overflow: hidden;
  min-height: 240px;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 110% at 85% 12%, rgba(76,147,131,.42), transparent 58%),
    linear-gradient(155deg, var(--navy-700), var(--navy-900));
}
@media (min-width: 860px) { .slide__media { min-height: 420px; } }
.slide__media::after {                    /* concentric motif, echoes the hero emblem */
  content: ""; position: absolute; width: 128%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(169,211,201,.16);
  box-shadow: 0 0 0 26px rgba(169,211,201,.06), 0 0 0 62px rgba(169,211,201,.04);
}
.slide__art { position: relative; width: 108px; height: 108px; color: var(--teal-200); stroke-width: 1.2; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__count {
  position: absolute; inset-block-start: var(--s4); inset-inline-start: var(--s4);
  z-index: 1; color: rgba(255,255,255,.72); font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: var(--step--1);
}

.slide__body {
  padding: var(--s6) var(--s5);
  display: grid; gap: var(--s3); align-content: center;
}
@media (min-width: 860px) { .slide__body { padding: var(--s7); } }
.slide__kicker {
  justify-self: start; font-size: var(--step--1); font-weight: 800;
  color: var(--teal-600); background: var(--teal-100);
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
}
.slide__title { font-size: var(--step-3); }
.slide__text { color: var(--muted); font-size: var(--step-1); font-weight: 300; line-height: 1.75; }
.slide__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.slide__points li {
  position: relative; padding-inline-start: 1.75rem;
  color: var(--ink-soft); font-weight: 700; font-size: .96rem;
}
.slide__points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .38em;
  width: 18px; height: 10px; border-inline-start: 2.5px solid var(--teal-500);
  border-block-end: 2.5px solid var(--teal-500); rotate: -45deg; border-radius: 0 0 0 3px;
}
.slide__cta { justify-self: start; margin-top: var(--s2); }

/* nav row: prev arrow · dots · next button */
.showcase__nav {
  display: flex; align-items: center; gap: var(--s4);
  margin-top: var(--s5);
}
.showcase__arrow {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--navy-800);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.showcase__arrow:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-50); }
.showcase__arrow svg { width: 22px; height: 22px; }
/* dots sit centred between the two arrow buttons */
.showcase__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-inline: auto; }
.showcase__dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--line-strong); border: 0;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.showcase__dot[aria-selected="true"] { background: var(--teal-600); width: 26px; border-radius: 5px; }

/* =============================================================
   team
   ============================================================= */
.team { background: var(--surface); }

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: var(--s6);
}
.filter {
  min-height: 44px; padding: .5rem 1.05rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink-soft);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  touch-action: manipulation;
}
.filter:hover { border-color: var(--teal-400); color: var(--teal-700); }
.filter[aria-pressed="true"] {
  background: var(--teal-600); color: #fff; border-color: var(--teal-600);
}
.filter__count { opacity: .65; font-variant-numeric: tabular-nums; }

.team__grid {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px)  { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team__grid { grid-template-columns: repeat(4, 1fr); } }

.doc {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--card);
  display: grid; grid-template-rows: auto 1fr;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.doc:hover { border-color: var(--teal-200); box-shadow: var(--shadow-2); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .doc:hover { transform: none; } }

.doc[hidden] { display: none; }

.doc__media {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
}
.doc__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: scale 400ms var(--ease);
}
.doc:hover .doc__media img { scale: 1.04; }
@media (prefers-reduced-motion: reduce) { .doc:hover .doc__media img { scale: 1; } }

/* fallback avatar for the one doctor with no supplied photograph */
.doc__initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 800; color: var(--teal-200);
  background:
    radial-gradient(80% 70% at 50% 25%, rgba(76,147,131,.4), transparent 70%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  letter-spacing: .04em;
}

.doc__rank {
  position: absolute; inset-block-start: .6rem; inset-inline-start: .6rem;
  background: rgba(10,23,32,.72);
  backdrop-filter: blur(6px);
  color: var(--teal-200);
  font-size: .68rem; font-weight: 800;
  padding: .25rem .6rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(169,211,201,.25);
}

.doc__body { padding: var(--s4) var(--s4) var(--s4); display: grid; gap: .3rem; align-content: start; }
.doc__name { font-size: 1rem; line-height: 1.45; }
.doc__role { font-size: .82rem; color: var(--muted); font-weight: 400; line-height: 1.6; }
.doc__ig {
  margin-top: .5rem; justify-self: start;
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 44px; padding-inline-end: .25rem;
  font-size: .78rem; font-weight: 700; color: var(--teal-700);
  text-decoration: none;
  direction: ltr;
}
.doc__ig svg { width: 16px; height: 16px; }
.doc__ig:hover { text-decoration: underline; }

.team__empty {
  padding: var(--s7) var(--s4); text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
}

/* =============================================================
   reviews
   ============================================================= */
.reviews { background: var(--surface); }

/* reviews carousel — one testimonial at a time, RTL scroll-snap (mirrors services) */
.rev__viewport {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.rev__viewport::-webkit-scrollbar { display: none; }
.rev__viewport:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; border-radius: var(--radius-lg); }
@media (prefers-reduced-motion: reduce) { .rev__viewport { scroll-behavior: auto; } }

.rev__slide {
  flex: 0 0 100%; min-width: 0;
  scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; padding-block: var(--s2);
}
.rev__card {
  position: relative; overflow: hidden;
  max-width: 760px; margin-inline: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  padding: var(--s7) var(--s6);
  display: grid; gap: var(--s4); justify-items: center; text-align: center;
}
@media (min-width: 720px) { .rev__card { padding: var(--s8) var(--s7); } }
.rev__quote {
  position: absolute; inset-block-start: -.4rem; inset-inline-end: 1.2rem;
  color: var(--teal-100);
}
.rev__quote svg { width: 84px; height: 84px; fill: currentColor; stroke: none; }
.rev__stars { position: relative; display: inline-flex; gap: .2rem; color: #f5a623; }
.rev__stars svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.rev__text {
  position: relative; color: var(--ink); font-size: var(--step-1); font-weight: 500;
  line-height: 1.9; max-width: 60ch;
}
.rev__text[dir="ltr"] { unicode-bidi: isolate; }
.rev__author { display: flex; align-items: center; gap: .8rem; margin-top: var(--s2); }
.rev__avatar {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(145deg, var(--teal-100), var(--teal-200)); color: var(--teal-700);
}
.rev__author > span:last-child { display: grid; text-align: start; }
.rev__name { font-size: 1rem; font-weight: 800; color: var(--ink); }
.rev__src { font-size: .8rem; color: var(--muted); font-weight: 400; }

.rev .showcase__nav { margin-top: var(--s5); }

/* social-proof stat bar under the reviews */
.proof {
  margin-top: var(--s6);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s5) var(--s4);
  padding: var(--s6) var(--s5);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
}
@media (min-width: 760px) { .proof { grid-template-columns: repeat(4, 1fr); padding: var(--s6); } }
.proof__item { text-align: center; position: relative; display: grid; gap: .3rem; }
@media (min-width: 760px) {
  .proof__item + .proof__item::before {
    content: ""; position: absolute; inset-inline-start: calc(var(--s4) * -0.5);
    top: 14%; bottom: 14%; width: 1px; background: var(--line);
  }
}
.proof__num {
  font-size: clamp(1.9rem, 1.5rem + 1.7vw, 2.8rem);
  font-weight: 800; color: var(--teal-600); line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.proof__label { color: var(--muted); font-weight: 700; font-size: var(--step--1); }

.reviews__cta { margin-top: var(--s6); display: flex; justify-content: center; }

/* =============================================================
   contact / booking form
   ============================================================= */
.contact { background: var(--surface); }
.contact__grid {
  display: grid; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-2);
}
@media (min-width: 900px) { .contact__grid { grid-template-columns: .82fr 1.18fr; } }

.contact__aside {
  position: relative; overflow: hidden;
  padding: var(--s7) var(--s6);
  display: grid; gap: var(--s4); align-content: center;
  color: #fff;
  background:
    radial-gradient(120% 120% at 85% 10%, rgba(76,147,131,.34), transparent 58%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.contact__aside::after {
  content: ""; position: absolute; inset-block-start: -30%; inset-inline-end: -18%;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(169,211,201,.14);
  box-shadow: 0 0 0 30px rgba(169,211,201,.05);
}
.eyebrow--on-dark { background: rgba(169,211,201,.14); color: var(--teal-200); border: 1px solid rgba(169,211,201,.24); }
.contact__title { position: relative; font-size: var(--step-3); color: #fff; }
.contact__lead { position: relative; color: rgba(255,255,255,.82); font-weight: 300; line-height: 1.8; }
.contact__hints { position: relative; display: grid; gap: var(--s3); margin-top: var(--s2); }
.contact__hint { display: flex; align-items: center; gap: .8rem; }
.contact__hint .vcard__icon { background: rgba(169,211,201,.14); border-color: rgba(169,211,201,.28); color: var(--teal-200); }
.contact__hint b { display: block; font-size: .82rem; color: rgba(255,255,255,.6); font-weight: 700; }
.contact__hint a, .contact__hint span { color: #fff; font-weight: 700; text-decoration: none; }

.contact__form {
  background: var(--card);
  padding: var(--s7) var(--s6);
  display: grid; gap: var(--s4); align-content: start;
}
@media (min-width: 900px) { .contact__form { padding: var(--s7); } }
.contact__formtitle { font-size: var(--step-2); }
.field-row { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.field__opt { color: var(--muted); font-weight: 400; font-size: .82rem; }
.field input, .field textarea {
  width: 100%; box-sizing: border-box;
  font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: .8rem 1rem; min-height: 48px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--destructive); }
.check {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; color: var(--ink-soft); cursor: pointer;
}
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--teal-600); margin-top: .1rem; }
.contact__submit { justify-content: center; margin-top: var(--s2); }
.contact__note { min-height: 1.2em; font-size: .9rem; font-weight: 700; text-align: center; }
.contact__note.is-ok { color: var(--teal-700); }
.contact__note.is-err { color: var(--destructive); }

/* =============================================================
   visit / location
   ============================================================= */
.visit-cards {
  display: grid; gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .visit-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .visit-cards { grid-template-columns: repeat(3, 1fr); } }

.vcard {
  min-width: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  display: grid; gap: var(--s3); align-content: start;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.vcard:hover { border-color: var(--teal-200); box-shadow: var(--shadow-2); }

/* the location card leads the section: full width, brand-dark, prominent */
.vcard--location {
  grid-column: 1 / -1;
  background:
    radial-gradient(120% 130% at 92% 0%, rgba(76,147,131,.28), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-color: transparent; color: #fff;
}
.vcard--location:hover { border-color: transparent; box-shadow: var(--shadow-3); }
@media (min-width: 620px) { .vcard--location { align-content: center; } }

.vcard__icon {
  width: 48px; height: 48px; flex: none; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--teal-50); border: 1px solid var(--teal-200);
  color: var(--teal-700);
}
.vcard--location .vcard__icon {
  background: rgba(169,211,201,.14); border-color: rgba(169,211,201,.28); color: var(--teal-200);
}
.vcard__icon svg { width: 23px; height: 23px; }
.vcard__title { font-size: var(--step-1); }
.vcard__text { color: var(--muted); font-weight: 700; line-height: 1.8; }
.vcard--location .vcard__text { color: rgba(255,255,255,.82); font-weight: 400; font-size: var(--step-1); }
.vcard__text a { text-decoration: none; color: inherit; }
.vcard__text a:hover { color: var(--teal-700); text-decoration: underline; }
.vcard__btn { justify-self: start; margin-top: var(--s2); }
.tel { direction: ltr; unicode-bidi: embed; font-variant-numeric: tabular-nums; display: inline-block; }

.hours { display: grid; gap: .4rem; }
.hours__row {
  display: flex; justify-content: space-between; gap: var(--s3);
  padding: .55rem .8rem; border-radius: 10px;
  background: var(--teal-50);
  font-weight: 700; color: var(--ink);
}
.hours__row--off { background: var(--canvas); color: var(--muted); }
.hours__day { font-weight: 700; }
.hours__val { color: var(--teal-700); font-variant-numeric: tabular-nums; }
.hours__row--off .hours__val { color: var(--muted); }

/* =============================================================
   footer
   ============================================================= */
.footer {
  background: var(--navy-900); color: rgba(255,255,255,.72);
  padding-block: var(--s7) var(--s5);
  margin-top: var(--s8);
}
.footer__grid { display: grid; gap: var(--s6); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s7); } }

.footer .brand__name { color: #fff; }
.footer .brand__tag { color: rgba(255,255,255,.5); }
.footer__about { margin-top: var(--s4); max-width: 42ch; font-weight: 300; font-size: .95rem; }
.footer__title { color: #fff; font-size: .95rem; margin-bottom: var(--s3); }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.footer__list a {
  text-decoration: none; font-size: .92rem; font-weight: 300;
  display: inline-flex; align-items: center; min-height: 40px;
  transition: color var(--dur) var(--ease);
}
.footer__list a:hover { color: var(--teal-200); }

.social { display: flex; gap: .5rem; margin-top: var(--s4); }
.social a {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { background: rgba(255,255,255,.1); border-color: var(--teal-200); }
.social svg { width: 20px; height: 20px; }

.footer__bar {
  margin-top: var(--s7); padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.5);
}

/* sticky call bar — phone only.
   No opaque tray: the transparent bar lets content scroll under it while a
   single floating button carries the action. pointer-events pass through the
   empty area so the bar never blocks scrolling. */
.callbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-header);
  display: flex; padding: .75rem;
  padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
  background: transparent;
  pointer-events: none;
}
.callbar .btn {
  flex: 1; pointer-events: auto; min-height: 54px;
  box-shadow: 0 10px 26px rgba(10,23,32,.32), 0 3px 10px rgba(10,23,32,.22);
}
@media (min-width: 640px) { .callbar { display: none; } }
@media (max-width: 639px) { body { padding-bottom: 84px; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
