/* =========================================================
   Dr. Alaa El Mosallamy | SMC Specialized Medical Center
   One stylesheet, mobile first, RTL safe (logical properties only).
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6faf9;
  --surface: #ffffff;
  --surface-2: #eaf4f2;
  --surface-warm: #fcefeb;
  --ink: #15313a;
  --ink-2: #3b5960;
  --line: #d2e3e0;
  --line-strong: #a9c9c4;
  --teal: #1f6f6b;          /* links, primary buttons (6.1:1 on white) */
  --teal-hover: #175955;
  --teal-brand: #2f9490;    /* logo teal, decorative */
  --teal-soft: #d5ece9;
  --coral: #f0857a;         /* logo coral, decorative */
  --raspberry: #b23f51;     /* logo raspberry, small accents */
  --wa: #157347;            /* WhatsApp button, 5.9:1 with white */
  --wa-hover: #10603a;
  --on-primary: #ffffff;
  --ph-bg: #fff2b3;
  --ph-ink: #5a4500;
  --warn-bg: #fdecee;
  --warn-line: #e7b3bb;
  --shadow: 0 1px 2px rgb(21 49 58 / .06), 0 8px 24px -12px rgb(21 49 58 / .18);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --focus: #b23f51;
  --container: 74rem;
  --prose: 44rem;
  --header-h: 4.5rem;
  --dir: 1;                 /* flips slide directions in RTL */
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

:root[lang='ar'] {
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --dir: -1;
}

:root[data-theme='dark'] {
  --bg: #0c1e23;
  --surface: #122a31;
  --surface-2: #16353d;
  --surface-warm: #2c2427;
  --ink: #e6f1ef;
  --ink-2: #a8c2bf;
  --line: #234149;
  --line-strong: #35606a;
  --teal: #74cfc7;
  --teal-hover: #93ddd6;
  --teal-brand: #3fa9a3;
  --teal-soft: #1b3f45;
  --coral: #f39a8f;
  --raspberry: #f08b9b;
  --wa: #2fa866;
  --wa-hover: #3dbb76;
  --on-primary: #062420;
  --ph-bg: #4a3d0a;
  --ph-ink: #ffe9a3;
  --warn-bg: #3a1f26;
  --warn-line: #6e3542;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
  --focus: #f6b4bf;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 112.5%; /* 18px body text */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-tap-highlight-color: rgb(47 148 144 / .2);
}
@media (max-width: 899px) { html { scroll-padding-bottom: 5.5rem; } }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }
@media (min-width: 1100px) { html { font-size: 115%; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  font-feature-settings: 'kern';
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: break-word;
}
:root[lang='ar'] body { line-height: 1.85; }

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 650;
  letter-spacing: -.01em;
  text-wrap: balance;
}
:root[lang='ar'] h1, :root[lang='ar'] h2, :root[lang='ar'] h3 { line-height: 1.45; letter-spacing: 0; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
li { margin-block: .3em; }
strong { font-weight: 650; }

a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
[dir='rtl'] .icon-dir { transform: scaleX(-1); }

/* Placeholders that still need real data */
mark.ph {
  background: var(--ph-bg); color: var(--ph-ink);
  padding: .05em .35em; border-radius: 6px; font-size: .86em; font-weight: 500;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  direction: ltr; unicode-bidi: isolate;
}

/* ---------- Layout ---------- */
.container {
  width: min(100%, var(--container) + 2.5rem); margin-inline: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
.prose-width { max-width: var(--prose); }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-block-end: 2rem; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.section-foot { margin-block-start: 2rem; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.muted { color: var(--ink-2); }
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal); --btn-ink: var(--on-primary); --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 3rem; padding: .7rem 1.35rem;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 1.5px solid var(--btn-line); border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease);
  position: relative; isolation: isolate;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .2s var(--ease); pointer-events: none;
}
.btn:hover { color: var(--btn-ink); text-decoration: none; background: var(--btn-bg-hover, var(--teal-hover)); transform: translateY(-1px); }
.btn:hover::after { opacity: 1; }
.btn:disabled { cursor: progress; opacity: .85; transform: none; }
.btn.is-loading .icon { display: none; }
.btn.is-loading::before {
  content: ''; width: 1.1em; height: 1.1em; border-radius: 50%;
  border: 2px solid currentColor; border-inline-end-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn:active { transform: translateY(0); }
.btn-wa { --btn-bg: var(--wa); --btn-bg-hover: var(--wa-hover); --btn-ink: #fff; }
:root[data-theme='dark'] .btn-wa { --btn-ink: #04180d; }
.btn-ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line-strong); --btn-bg-hover: var(--surface-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-small { min-height: 2.6rem; padding: .5rem 1rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(calc(var(--dir) * 3px)); }
[dir='rtl'] .text-link:hover .icon-dir { transform: scaleX(-1) translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.02rem; }
.brand-sub { font-size: .76rem; color: var(--ink-2); }

/* Header items never wrap: if they don't fit, the hamburger menu takes over (see breakpoint below) */
.main-nav a, .header-tools .btn, .tool-btn { white-space: nowrap; }
.header-tools { flex: none; }
.brand { min-width: 0; }
@media (min-width: 1280px) { .brand { flex: none; } .brand-name, .brand-sub { white-space: nowrap; } }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.main-nav a {
  display: block; padding: .5rem .55rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.main-nav a:hover { background: var(--surface-2); }
.main-nav a[aria-current='page'] { background: var(--teal-soft); color: var(--ink); font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: .35rem; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 .65rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.tool-btn:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
.lang-switch span { font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif; }
.theme-toggle .i-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: block; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: none; }
.header-book { display: none; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-close { display: block; }
.menu-open .menu-toggle .i-menu { display: none; }

@media (max-width: 1279px) {
  .main-nav {
    display: block; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .menu-open .main-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: .15rem; }
  .main-nav a { font-size: 1.08rem; padding: .8rem 1rem; border-radius: var(--radius-s); }
  .menu-open { overflow: hidden; }
}
@media (min-width: 1280px) and (max-width: 1439px) { .main-nav .nav-extra { display: none; } }
@media (min-width: 1280px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-book { display: inline-flex; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand img { width: 38px; height: 38px; }
  .lang-switch .lang-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: 1.1rem 0; font-size: .9rem; color: var(--ink-2); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: .3rem; }
.breadcrumbs li + li::before { content: '/'; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem); position: relative; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--raspberry); font-weight: 600; font-size: 1rem; margin-block-end: 1rem; }
.hero-kicker::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: var(--coral); }
.hero h1 { font-size: clamp(2.15rem, 1.3rem + 3.4vw, 3.6rem); margin-block-end: 1.1rem; }
.hero .lead { max-width: 36rem; margin-block-end: 1.75rem; }
.hero-creds { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-creds li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.hero-creds .icon { color: var(--teal-brand); }

/* The cradle: two arcs from the SMC logo holding the doctor's photo */
.cradle { position: relative; width: min(100%, 26rem); margin-inline: auto; aspect-ratio: 1; }
.cradle-disc { position: absolute; inset: 9%; border-radius: 50%; background: var(--surface-warm); }
.cradle img { position: absolute; inset: 11%; width: 78%; height: 78%; object-fit: cover; border-radius: 50%; }
.cradle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cradle .arc { fill: none; stroke-width: 7; stroke-linecap: round; }
.cradle .arc-teal { stroke: var(--teal-brand); }
.cradle .arc-rasp { stroke: var(--raspberry); }
[dir='rtl'] .cradle svg { transform: scaleX(-1); }
.cradle-badge {
  position: absolute; inset-block-end: 4%; inset-inline-start: -2%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: .7rem 1rem; box-shadow: var(--shadow); font-size: .88rem; line-height: 1.35; max-width: 15rem;
}
.cradle-badge strong { display: block; font-size: .98rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: 1.5rem clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-hero h1 { max-width: 48rem; }
.page-hero .lead { max-width: 44rem; }
.page-hero-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .page-hero-split { grid-template-columns: 1.3fr .7fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.stat { padding: 1.25rem 1.4rem; border-inline-start: 3px solid var(--teal-brand); background: var(--surface); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
[dir='rtl'] .stat { border-radius: var(--radius-m) 0 0 var(--radius-m); }
.stat-num { display: block; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); font-weight: 700; line-height: 1.1; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat-num mark.ph { font-size: .9rem; vertical-align: middle; }
.stat-num.stat-words { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); padding-block: .2em; }
.stat-label { color: var(--ink-2); font-size: .95rem; }

/* ---------- Service cards ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: transform .25s var(--ease);
}
.service-card::before, .article-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .25s var(--ease); pointer-events: none;
}
.service-card:hover::before, .article-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-3px); border-color: var(--teal-brand); }
.service-card :is(h2, h3) { margin: .5rem 0 .2rem; font-size: 1.2rem; }
.service-card :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.service-card :is(h2, h3) a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.service-card p { color: var(--ink-2); margin: 0 0 .8rem; font-size: .98rem; }
.service-card .text-link { margin-block-start: auto; }
.service-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.service-icon .icon { width: 1.6rem; height: 1.6rem; }
.service-card:nth-child(2) .service-icon { background: var(--surface-warm); color: var(--raspberry); }
.service-card:nth-child(4) .service-icon { background: var(--surface-warm); color: var(--raspberry); }

/* ---------- Reasons list ---------- */
.reasons { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .reasons { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.reasons-photo { border-radius: var(--radius-l); overflow: hidden; background: var(--surface-warm); }
.reasons-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.reason-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.reason-list li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.reason-list .icon-wrap { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--teal); }
.reason-list h3 { font-size: 1.12rem; margin: 0 0 .25rem; }
.reason-list p { margin: 0; color: var(--ink-2); }

/* ---------- Media list ---------- */
.media-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 800px) { .media-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.media-list li { margin: 0; }
.media-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface);
  color: var(--ink); text-decoration: none;
}
.media-item:hover { border-color: var(--teal-brand); color: var(--ink); background: var(--surface-2); }
.media-item .icon { width: 2rem; height: 2rem; color: var(--raspberry); }
.media-channel { display: block; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.media-title { font-weight: 550; line-height: 1.4; }

/* ---------- Video cards (Facebook player loads on click) ---------- */
.video-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0c1e23; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer; color: #1f6f6b;
  background: linear-gradient(to top, rgb(12 30 35 / .5), rgb(12 30 35 / 0) 60%);
}
.video-play .icon {
  width: 4.2rem; height: 4.2rem; padding: 1.05rem 1rem 1.05rem 1.2rem; border-radius: 50%;
  background: rgb(255 255 255 / .94); box-shadow: 0 6px 20px -6px rgb(0 0 0 / .5);
  transition: transform .2s var(--ease);
}
.video-play:hover .icon { transform: scale(1.08); }
.video-play:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; border-radius: 0; }
.video-duration {
  position: absolute; bottom: .6rem; inset-inline-end: .6rem; padding: .1rem .5rem; border-radius: 6px;
  background: rgb(0 0 0 / .75); color: #fff; font-size: .8rem; font-variant-numeric: tabular-nums; pointer-events: none;
}
.video-card.is-playing .video-duration { display: none; }
.video-body { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem 1.15rem; }
.video-title { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.video-body .meta-row { margin-top: auto; padding-top: .35rem; justify-content: space-between; }
.video-featured { margin-bottom: 1.25rem; }
@media (min-width: 900px) {
  .video-featured .video-card { flex-direction: row; }
  .video-featured .video-frame { flex: 1.7 1 0; }
  .video-featured .video-body { flex: 1 1 0; justify-content: center; padding: 2rem; }
  .video-featured .video-title { font-size: 1.5rem; }
  .video-featured .meta-row { margin-top: .75rem; justify-content: flex-start; }
}

/* ---------- Branch cards ---------- */
.branch-card { padding: 1.6rem; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .9rem; }
.branch-card :is(h2, h3) { margin: 0; font-size: 1.25rem; }
.branch-card :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.branch-card :is(h2, h3) a:hover { color: var(--teal); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.info-list li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.info-list .icon { color: var(--teal-brand); margin-block-start: .3em; }
.info-list a { font-weight: 600; }
.phone-num { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: .45rem 0; border-bottom: 1px solid var(--line); text-align: start; font-weight: 400; }
.hours-table th { color: var(--ink-2); }
.hours-table td { font-variant-numeric: tabular-nums; }

/* Map facade */
.map-box {
  position: relative; border-radius: var(--radius-m); overflow: hidden; min-height: 18rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 40%, var(--teal-soft) 0 2px, transparent 3px) 0 0 / 28px 28px,
    var(--surface-2);
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box p { font-size: .88rem; color: var(--ink-2); margin: .75rem 0 0; }
.map-pin { color: var(--raspberry); width: 2.4rem; height: 2.4rem; margin: 0 auto .75rem; }

/* ---------- Article & prose ---------- */
.prose { max-width: var(--prose); font-size: 1.04rem; }
.prose h2 { margin-block-start: 2.2rem; }
.prose h3 { margin-block-start: 1.6rem; }
.prose ul li::marker { color: var(--teal-brand); }
.prose a { font-weight: 500; }
.article-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; } }
.article-aside { display: grid; gap: 1.25rem; align-content: start; }
@media (min-width: 1000px) { .article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-box { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.aside-box h2 { font-size: 1.02rem; margin-block-end: .75rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.aside-box li { margin: 0; font-size: .95rem; }

.byline { display: flex; align-items: center; gap: .9rem; margin-block: 1.25rem .5rem; flex-wrap: wrap; }
.byline img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }
.byline-text { font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.byline-text a { font-weight: 600; }
.meta-row { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .9rem; color: var(--ink-2); }
.meta-row span { display: inline-flex; align-items: center; gap: .35rem; }

.reviewed-box {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; margin-block: 2.5rem 1rem;
  background: var(--surface-2); border-radius: var(--radius-m);
}
.reviewed-box img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.reviewed-box p { margin: 0; font-size: .95rem; }
.disclaimer-note { font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }

.warning-box {
  padding: 1.25rem 1.4rem; border-radius: var(--radius-m); background: var(--warn-bg);
  border: 1px solid var(--warn-line); margin-block: 2rem;
}
.warning-box h2, .warning-box h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.12rem; color: var(--raspberry); margin-block: 0 .6rem; }
.warning-box ul { margin-block-end: .25rem; }
.warning-box p:last-child { margin-bottom: 0; }

/* ---------- Article cards ---------- */
.article-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); position: relative; transition: transform .25s var(--ease); }
.article-card:hover { border-color: var(--teal-brand); transform: translateY(-3px); }
.article-card :is(h2, h3) { font-size: 1.15rem; margin: 0; }
.article-card :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.article-card :is(h2, h3) a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.article-card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.article-card .meta-row { margin-block-start: auto; padding-block-start: .5rem; }
.tag { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--teal-soft); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; max-width: 50rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.05rem 1.3rem; font-weight: 600; font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal); background: var(--surface-2); border-radius: var(--radius-m); }
.faq-item summary .icon { transition: transform .25s var(--ease); color: var(--teal); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item[open] { border-color: var(--line-strong); }
.faq-answer { padding: 0 1.3rem 1.15rem; color: var(--ink-2); }
.faq-answer p:last-child { margin: 0; }
.faq-group + .faq-group { margin-block-start: 2.5rem; }

/* ---------- Doctor card / about ---------- */
.doctor-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .doctor-split { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.doctor-photo { border-radius: var(--radius-l); overflow: hidden; background: var(--surface-warm); }
.doctor-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cred-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.cred-list li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .65rem; }
.cred-list .icon { color: var(--teal-brand); margin-block-start: .3em; }
.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; padding-inline-start: 1.5rem; margin: 0 0 1.4rem; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -.45rem; top: .55em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--teal-brand); }
.timeline h3 { font-size: 1.08rem; margin: 0 0 .2rem; }
.timeline p { margin: 0; color: var(--ink-2); }

/* ---------- Reviews ---------- */
.review-card { padding: 1.5rem; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.review-card blockquote { margin: 0 0 1rem; font-size: 1.04rem; }
.stars { color: #c98a00; display: flex; gap: .1rem; margin-block-end: .6rem; }
:root[data-theme='dark'] .stars { color: #f3c04f; }
.stars .icon { width: 1.1rem; height: 1.1rem; fill: currentColor; stroke: none; }
.empty-note { padding: 2rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-m); background: var(--surface); max-width: 46rem; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; align-content: start; }
.field label { font-weight: 600; font-size: .97rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
  padding: .75rem .9rem; min-height: 3rem;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
.field input[type='tel'] { direction: ltr; }
[dir='rtl'] .field input[type='tel'] { text-align: end; }
.field .hint { font-size: .86rem; color: var(--ink-2); }
.field .error { font-size: .88rem; color: var(--raspberry); font-weight: 600; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--raspberry); }
.field.invalid .error { display: block; }
.consent { font-size: .9rem; color: var(--ink-2); margin: 1rem 0 0; display: flex; gap: .5rem; align-items: flex-start; }
.consent .icon { color: var(--teal-brand); margin-block-start: .25em; }
.form-status { margin-block-start: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-s); background: var(--teal-soft); display: none; }
.form-status.show { display: block; }
.form-status.err { background: var(--warn-bg); }

/* ---------- Booking options ---------- */
.book-options { display: grid; gap: 1rem; }
@media (min-width: 800px) { .book-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.book-option { padding: 1.5rem; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .75rem; }
.book-option h2 { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.book-option h2 .icon { color: var(--teal-brand); width: 1.5rem; height: 1.5rem; }
.book-option p { margin: 0; color: var(--ink-2); }
.book-option .btn { margin-block-start: auto; align-self: flex-start; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: clamp(1.75rem, 1.25rem + 3vw, 3.25rem); background: var(--teal); color: var(--on-primary); }
.cta-band h2 { color: inherit; max-width: 34rem; }
.cta-band p { max-width: 38rem; opacity: .92; }
.cta-band .btn { --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-bg-hover: var(--bg); }
.cta-band .btn:hover { color: var(--ink); }
.cta-band .btn-wa { --btn-bg: var(--wa); --btn-ink: #fff; --btn-bg-hover: var(--wa-hover); }
:root[data-theme='dark'] .cta-band .btn-wa { --btn-ink: #04180d; }
.cta-band .btn-outline { --btn-bg: transparent; --btn-ink: var(--on-primary); --btn-line: currentColor; --btn-bg-hover: rgb(255 255 255 / .12); }
.cta-band .btn-outline:hover { color: var(--on-primary); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band::after {
  content: ''; position: absolute; inset-inline-end: -4.5rem; inset-block-end: -7rem; width: 15rem; height: 15rem;
  border-radius: 50%; border: 10px solid var(--coral); opacity: .5; pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer { margin-block-start: clamp(3rem, 2rem + 4vw, 5rem); background: var(--surface); border-top: 1px solid var(--line); padding-block: 3rem 6.5rem; font-size: .95rem; }
@media (min-width: 900px) { .site-footer { padding-block-end: 2rem; } }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1.2fr 1fr; } }
.footer-brand img { width: 56px; height: 56px; margin-block-end: .75rem; }
.footer-brand p { color: var(--ink-2); max-width: 22rem; }
.site-footer h2 { font-size: 1rem; margin-block-end: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.footer-links li { margin: 0; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--teal); text-decoration: underline; }
.footer-branch + .footer-branch { margin-block-start: 1.1rem; }
.footer-branch strong { display: block; }
.footer-branch p { margin: 0; color: var(--ink-2); }
.social { display: flex; gap: .5rem; margin-block-start: .5rem; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.social a:hover { background: var(--surface-2); color: var(--teal); }
.footer-bottom { margin-block-start: 2.5rem; padding-block-start: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; color: var(--ink-2); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: var(--ink-2); }
.credit a { font-weight: 600; color: var(--teal); }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .5rem;
  padding: .6rem max(.75rem, env(safe-area-inset-right)) calc(.6rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { min-height: 3rem; padding: .5rem .6rem; font-size: .95rem; gap: .4rem; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Two-column page body ---------- */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 950px) { .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3.5rem; } }
.stack > * + * { margin-block-start: 1.25rem; }

.legal h2 { font-size: 1.35rem; margin-block-start: 2rem; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .28s var(--ease) both; }

  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal-side { transform: translateX(calc(var(--dir) * -22px)); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .hero-text > * { animation: rise .8s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-text > :nth-child(5) { animation-delay: .32s; }
  .cradle img, .cradle-disc { animation: settle 1s var(--ease) .1s both; }
  .cradle .arc { stroke-dasharray: var(--len) 1000; animation: draw 1.4s var(--ease) .25s both; }
  .cradle .arc-rasp { animation-delay: .5s; }
  .cradle-badge { animation: rise .8s var(--ease) .9s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dasharray: 0 1000; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-bar, .site-footer, .cta-band, .btn, .map-box { display: none !important; }
  body { background: #fff; color: #000; }
}
