/* =================================================================
   Prof. Dr. Waleed Wahdan: site styles
   Colors come from the doctor's own cover photo: deep navy + leaf green.
   Layout uses logical properties (inline-start / inline-end), so the
   Arabic pages mirror automatically under dir="rtl".
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0b2547;
  --navy-800: #0f2e5c;
  --blue-700: #1a4f94;
  --blue-600: #1f5fae;
  --green-700: #2c6e30;
  --green-500: #4f9a49;

  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #edf2f8;
  --surface-3: #e2eaf4;
  --text: #13233a;
  --text-muted: #46566c;
  --line: #d3deea;
  --primary: #1f5fae;
  --primary-hover: #1a4f94;
  --on-primary: #ffffff;
  --ink: #0f2e5c;
  --accent: #2c6e30;
  --accent-soft: #e4f1e1;
  --wa: #1c7a42;
  --wa-hover: #16653a;
  --b1: #1f5fae;
  --b2: #3f8a3a;
  --mark-bg: #fff2b8;
  --mark-text: #5a4300;
  --arch: #e3ecf7;
  --shadow-sm: 0 1px 2px rgba(15, 46, 92, .06), 0 1px 1px rgba(15, 46, 92, .04);
  --shadow-md: 0 10px 28px -12px rgba(15, 46, 92, .28);
  --focus: #1f5fae;

  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
  --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; }

/* Dark: follows the system unless the visitor picked a theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1729;
    --surface: #0f2038;
    --surface-2: #132845;
    --surface-3: #183154;
    --text: #e8eef6;
    --text-muted: #a9b9cf;
    --line: #243c5e;
    --primary: #8cb6f2;
    --primary-hover: #a9c9f6;
    --on-primary: #08182c;
    --ink: #d6e4f7;
    --accent: #8fd18a;
    --accent-soft: #15301d;
    --wa: #1f8a4a;
    --wa-hover: #24a056;
    --b1: #8cb6f2;
    --b2: #8fd18a;
    --mark-bg: #4a3d0c;
    --mark-text: #ffe9a3;
    --arch: #dbe6f3;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 14px 30px -14px rgba(0, 0, 0, .6);
    --focus: #8cb6f2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1729;
  --surface: #0f2038;
  --surface-2: #132845;
  --surface-3: #183154;
  --text: #e8eef6;
  --text-muted: #a9b9cf;
  --line: #243c5e;
  --primary: #8cb6f2;
  --primary-hover: #a9c9f6;
  --on-primary: #08182c;
  --ink: #d6e4f7;
  --accent: #8fd18a;
  --accent-soft: #15301d;
  --wa: #1f8a4a;
  --wa-hover: #24a056;
  --b1: #8cb6f2;
  --b2: #8fd18a;
  --mark-bg: #4a3d0c;
  --mark-text: #ffe9a3;
  --arch: #dbe6f3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 14px 30px -14px rgba(0, 0, 0, .6);
  --focus: #8cb6f2;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;          /* 18px body text */
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:root[lang^="ar"] body { line-height: 1.85; font-size: 1.1875rem; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.25em; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem); letter-spacing: -.012em; }
h3 { font-size: 1.28rem; font-weight: 600; }
:root[lang^="ar"] h1, :root[lang^="ar"] h2, :root[lang^="ar"] h3 { letter-spacing: 0; line-height: 1.35; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-muted); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }

/* Placeholders to fill in: easy to spot */
mark.ph {
  background: var(--mark-bg);
  color: var(--mark-text);
  font-family: ui-monospace, Consolas, monospace;
  font-size: .82em;
  padding: .1em .4em;
  border-radius: 4px;
  unicode-bidi: isolate;
}
.ph-note { margin: .75rem 0 0; font-size: .95rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .7em 1.35em;
  font: inherit; font-size: 1.05rem; font-weight: 600; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.text-link { font-weight: 600; }

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile menu inside the header box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); max-width: 1320px; }
.brand-name, .btn, .lang-switch { white-space: nowrap; }
@media (max-width: 1400px) and (min-width: 1181px) { .site-header .brand-role { display: none; } }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: var(--navy-800); color: #fff;
  font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  box-shadow: inset 0 -4px 0 var(--green-500);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-role { font-size: .85rem; color: var(--text-muted); }

.main-nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
  display: block; padding: .5rem .6rem; border-radius: var(--radius-s);
  color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500; white-space: nowrap;
}
.main-nav a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.nav-book-item { display: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 .9rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.lang-switch[lang="ar"] { font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; }
.lang-switch[lang="en"] { font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.lang-switch:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.header-book { min-height: 46px; padding-block: .5em; font-size: 1rem; }
.menu-toggle { display: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme-effective="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme-effective="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-grid; }
  .header-book { display: none; }
  .main-nav {
    position: fixed; inset-block: var(--header-h) 0; inset-inline-end: 0;
    width: min(360px, 88vw); padding: 1rem 1rem 6rem;
    background: var(--surface); border-inline-start: 1px solid var(--line);
    box-shadow: var(--shadow-md); overflow-y: auto;
    transform: translateX(105%); visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s linear .3s;
  }
  [dir="rtl"] .main-nav { transform: translateX(-105%); }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .main-nav a:not(.btn) { padding: .85rem 1rem; font-size: 1.1rem; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--primary); background: var(--surface-2); border-radius: var(--radius-s); }
  [dir="rtl"] .main-nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--primary); }
  .nav-book-item { display: block; margin-top: .75rem; }
  .nav-book-item .btn { width: 100%; }
  .nav-scrim { position: fixed; inset: var(--header-h) 0 0; background: rgba(5, 15, 30, .45); z-index: 40; }
}
@media (max-width: 560px) {
  .brand-role { display: none; }
  .brand-name { font-size: .98rem; }
  .brand-mark { width: 40px; height: 40px; }
  .header-actions { gap: .35rem; }
  .lang-switch { padding: 0 .7rem; }
  .icon-btn { width: 44px; height: 44px; }
}
@media (max-width: 400px) {
  .brand-text { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-cred {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
  padding: .4rem .9rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: .98rem;
}
.hero-title { margin-bottom: 1rem; }
.hero-name { display: block; font-size: clamp(2.5rem, 1.6rem + 4vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; }
:root[lang^="ar"] .hero-name { line-height: 1.2; letter-spacing: 0; }
.hero-sub { display: block; margin-top: .6rem; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); font-weight: 500; color: var(--text-muted); letter-spacing: -.01em; line-height: 1.35; }
.hero-lead { font-size: 1.2rem; max-width: 36em; color: var(--text); }
:root[lang^="ar"] .hero-lead { font-size: 1.22rem; }
.hero-media { position: relative; justify-self: center; width: min(100%, 430px); }
.arch {
  position: relative; aspect-ratio: 420 / 520;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
  background: radial-gradient(120% 80% at 50% 20%, #f2f7fd 0%, var(--arch) 70%);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15, 46, 92, .45);
}
.arch::after { /* thin brand line at the base */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 8px;
  background: linear-gradient(90deg, var(--navy-800) 0 70%, var(--green-500) 70%);
}
[dir="rtl"] .arch::after { background: linear-gradient(-90deg, var(--navy-800) 0 70%, var(--green-500) 70%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; mix-blend-mode: multiply; }

/* Clinic days strip: the hero's signature element */
.week {
  margin-top: 1.75rem; padding: 1.1rem 1.25rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  max-width: 560px;
}
.week-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-weight: 600; color: var(--ink); font-size: 1rem; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; list-style: none; margin: 0 0 .9rem; padding: 0; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .55rem .15rem .5rem; border-radius: var(--radius-s);
  background: var(--surface-2); color: var(--text-muted); font-size: .9rem; font-weight: 500;
  position: relative;
}
.day.is-open { background: var(--surface-3); color: var(--ink); font-weight: 700; }
.day.is-today { box-shadow: inset 0 0 0 2px var(--primary); }
.dots { display: flex; gap: 4px; min-height: 9px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.b1 { background: var(--b1); }
.dot.b2 { background: var(--b2); }
.week-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .98rem; }
.week-legend li { display: flex; align-items: baseline; gap: .55rem; }
.week-legend .dot { transform: translateY(-1px); }
.legend-time { color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-flush { padding-top: 0; }
.section-tint { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--text-muted); font-size: 1.15rem; }
.section-link { margin: 2rem 0 0; font-weight: 600; }

/* Stats */
.stats { border-block: 1px solid var(--line); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.stat { padding: 1.75rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat-num { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num mark.ph { font-size: .9rem; }
.stat-label { color: var(--text-muted); font-size: 1rem; line-height: 1.4; }

/* Where he has worked */
.worked { padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.worked-title { font-size: 1rem; font-weight: 600; color: var(--text-muted); margin: 0 0 .9rem; letter-spacing: 0; }
.worked-list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.worked-list li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 1rem;
}
.worked-list .icon { color: var(--accent); }

/* Career timeline (a real sequence, so it is numbered by year) */
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; position: relative; display: grid; gap: 1rem; max-width: 820px; }
.timeline::before { content: ""; position: absolute; inset-block: .6rem .6rem; inset-inline-start: 2.6rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 1rem; align-items: start; position: relative; }
.tl-year {
  display: inline-grid; place-items: center; min-height: 2.2rem; padding: 0 .6rem; border-radius: 999px;
  background: var(--navy-800); color: #fff; font-weight: 700; font-size: .98rem; position: relative; z-index: 1;
}
.timeline li:last-child .tl-year { background: var(--green-500); }
.timeline p { margin: .2rem 0 0; }
.cred-grid-after { padding-top: 3rem; }
.review-src-label { font-size: .8rem; font-weight: 700; color: #0070cd; border: 1px solid currentColor; border-radius: 4px; padding: 0 .35rem; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
/* Five services: three across, then two wider cards */
@media (min-width: 1001px) {
  .svc-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .svc-grid:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
  .svc-grid:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
}
.svc-card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.6rem 1.5rem 1.4rem; border-radius: var(--radius-m);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.svc-card h3 { margin: 1rem 0 .5rem; }
.svc-card h3 a { color: var(--ink); text-decoration: none; }
.svc-card p { color: var(--text-muted); margin-bottom: 1.25rem; }
.svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; color: var(--primary); font-weight: 600; font-size: 1rem; }
.svc-card:hover .svc-more .icon { transform: translateX(3px); }
[dir="rtl"] .svc-card:hover .svc-more .icon { transform: scaleX(-1) translateX(3px); }
.svc-more .icon { transition: transform .25s var(--ease); width: 1.1em; height: 1.1em; }
.svc-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.svc-icon .icon { width: 30px; height: 30px; }
.svc-icon-lg { width: 76px; height: 76px; border-radius: 22px; }
.svc-icon-lg .icon { width: 40px; height: 40px; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-m); }

/* Why */
.why-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.why-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.why-list h3 { margin: .2rem 0 .35rem; font-size: 1.2rem; }
.why-list p { margin: 0; color: var(--text-muted); }
.why-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--primary); border: 1px solid var(--line); }
.why-icon .icon { width: 26px; height: 26px; }
.pull-quote { margin: 0; padding: 2rem 1.75rem; border-radius: var(--radius-l); background: var(--navy-800); color: #eaf1fb; position: relative; }
.pull-quote::before { content: "\201C"; position: absolute; top: -.2em; inset-inline-start: .35em; font-size: 6rem; line-height: 1; color: var(--green-500); font-family: Georgia, serif; }
[dir="rtl"] .pull-quote::before { content: "\201D"; }
.pull-quote blockquote { margin: 0; }
.pull-quote p { font-size: 1.4rem; line-height: 1.5; font-weight: 500; margin: 0 0 1rem; }
.pull-quote figcaption { color: #b9cbe3; font-size: 1rem; }

/* Meet */
.meet { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 900px; }
.meet-photo img { border-radius: var(--radius-l); background: var(--arch); mix-blend-mode: multiply; }
.meet-photo { background: var(--arch); border-radius: var(--radius-l); overflow: hidden; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; align-items: start; }
.review { margin: 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.review blockquote { margin: 0 0 1rem; }
.review blockquote p { margin: 0; font-size: 1.1rem; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; font-size: .98rem; color: var(--text-muted); }
.review-name { font-weight: 700; color: var(--ink); }
.review-meta { display: inline-flex; align-items: center; gap: .4rem; }
.review-src { width: 1rem; height: 1rem; color: #1877f2; }
.review-svc { flex-basis: 100%; }
.review-original { margin: 0 0 1rem; font-size: .98rem; color: var(--text-muted); }
.review-original summary { cursor: pointer; color: var(--primary); }
.review-original p { margin: .5rem 0 0; font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; }
.rev-summary { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 1.75rem; margin-bottom: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); max-width: 760px; }
.rev-big { margin: 0; font-size: 3.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.rev-summary p { margin: 0 0 .25rem; }
.rev-src { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.rev-src .icon { color: #1877f2; }

/* Branches */
.branch-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.branch-mini { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.branch-mini h3 { margin: .35rem 0 .75rem; }
.branch-tag { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--text-muted); font-size: .98rem; font-weight: 500; }
.branch-addr { display: flex; gap: .55rem; align-items: flex-start; margin: 0 0 .55rem; }
.branch-addr .icon { margin-top: .25em; color: var(--primary); }
.phone-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.branch-list { display: grid; gap: 1.5rem; margin-block: 2rem 3rem; }
.branch {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.branch h2 { margin: .35rem 0 .9rem; }
.branch-hours { list-style: none; padding: 0; margin: 0 0 .75rem; }
.branch-hours li { display: flex; gap: .55rem; align-items: flex-start; }
.branch-hours .icon { margin-top: .25em; color: var(--primary); }
.branch-note { color: var(--text-muted); }
.map-facade { position: relative; min-height: 320px; border-radius: var(--radius-m); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; padding: 1.5rem; text-align: center;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; }
.map-pin { width: 40px; height: 40px; color: var(--primary); }
.map-note { margin: 0; font-size: .92rem; color: var(--text-muted); max-width: 26em; }

/* Page head */
.page-head { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { margin-top: 1rem; max-width: 22em; }
.page-head .lead { font-size: 1.2rem; color: var(--text-muted); max-width: 42em; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; color: var(--text-muted); font-size: .98rem; margin-top: .5rem; }
.page-meta .icon { color: var(--accent); }
.page-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--text-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .25rem; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.crumb-sep { width: 1em; height: 1em; opacity: .6; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }
.svc-head-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.svc-head-grid h1 { margin-top: 0; }

/* Content with sidebar */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-bottom: 3rem; }
.sidebar {
  position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1.25rem;
  max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; scrollbar-width: thin;
  padding-bottom: .25rem;
}
.side-card { padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.side-card .btn-row { flex-direction: column; margin: .75rem 0 0; }
.side-card .btn { width: 100%; }
.side-card .week { margin-top: 1.25rem; padding: 1rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.side-card .week-days { gap: .2rem; }
.side-card .day { font-size: .78rem; }
.side-title { font-weight: 700; color: var(--ink); font-size: 1.15rem; margin: 0; }
.toc { padding: 1.25rem 1.4rem; border-radius: var(--radius-m); background: var(--surface-2); }
.toc-title { font-weight: 700; color: var(--ink); margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-inline-start: 1.2em; font-size: 1rem; }
.toc li { margin-block: .3rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose li { margin-block: .35rem; }
.prose-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose-section:first-child h2 { margin-top: 0; }
.prose ul li::marker { color: var(--accent); }

/* FAQ */
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { transform: rotate(90deg); transition: transform .25s var(--ease); color: var(--primary); }
.faq-item[open] .faq-chev { transform: rotate(-90deg); }
.faq-a { padding: 0 1.25rem 1.1rem; }
.faq-a > :last-child { margin-bottom: 0; }
.faq-item[open] .faq-a { animation: faqIn .3s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-groups { display: grid; gap: 2.5rem; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Doctor box, CTA */
.doc-box { display: grid; grid-template-columns: 88px 1fr; gap: 1.25rem; align-items: start; margin-top: 2.5rem; padding: 1.5rem; background: var(--surface-2); border-radius: var(--radius-m); }
.doc-avatar img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.doc-box-label { margin: 0; font-size: .95rem; color: var(--text-muted); }
.doc-box-name { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.doc-box-title { margin: .15rem 0 .5rem; color: var(--text-muted); font-size: 1rem; }
.cta-band { background: var(--navy-800); color: #e9f0fa; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c8d7ec; max-width: 40em; margin: 0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--navy-800); }
.cta-band .btn-primary:hover { background: #e6eef8; color: var(--navy-800); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .btn-ghost:hover { color: #fff; border-color: #fff; }
.note-box { margin-top: 2.5rem; padding: 1.75rem; border-radius: var(--radius-l); background: var(--surface-2); border: 1px dashed var(--line); max-width: 760px; }
.fine-print { font-size: .95rem; color: var(--text-muted); padding-block: 1.5rem 2rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: 2rem; }
.about-photo { background: var(--arch); border-radius: 999px 999px var(--radius-l) var(--radius-l); overflow: hidden; }
.about-photo img { mix-blend-mode: multiply; width: 100%; }
.about-aside { position: sticky; top: calc(var(--header-h) + 1.25rem); }
.aside-card .btn-row { flex-direction: column; }
.aside-card .btn { width: 100%; }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; padding-bottom: 1rem; }
.cred { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.cred h2 { font-size: 1.3rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--accent); margin-top: .25em; }

/* Booking */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.way { display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.way h3 { margin: 1rem 0 .4rem; }
.way p { color: var(--text-muted); }
.way .btn { margin-top: auto; }
.way-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); color: var(--primary); }
.way-icon-wa { color: var(--wa); }
.way-phones { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: .75rem; width: 100%; }
.way-phones li { display: grid; gap: .3rem; }
.way-phones span:first-child { font-size: .95rem; color: var(--text-muted); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-bottom: 4rem; }
.book-side { display: grid; gap: 2rem; }
.book-side h2 { font-size: 1.45rem; }
.book-side .week { margin-top: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: .75rem; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 1rem; }
:root[lang^="ar"] .steps li::before { content: counter(s, arabic-indic); }
.fee-list { margin: 0; display: grid; gap: .75rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-m); background: var(--surface-2); }
.fee-list div { display: grid; gap: .1rem; }
.fee-list dt { font-weight: 700; color: var(--ink); }
.fee-list dd { margin: 0; }

/* Forms */
.form-card { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-sm); }
.form-card > p { color: var(--text-muted); }
.booking-form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .7rem .9rem;
  font: inherit; font-size: 1.08rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  transition: border-color .2s, box-shadow .2s;
}
.field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field-hint { margin: 0; font-size: .95rem; color: var(--text-muted); }
.field-error { margin: 0; font-size: .95rem; color: #b42318; font-weight: 600; }
:root[data-theme="dark"] .field-error { color: #ff9b8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field-error { color: #ff9b8f; } }
.consent { display: flex; gap: .55rem; align-items: flex-start; margin: 0; font-size: .95rem; color: var(--text-muted); }
.consent .icon { color: var(--accent); margin-top: .2em; }
.form-status { margin: 0; font-weight: 600; color: var(--accent); }
.form-status:empty { display: none; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: start; }
.contact-list .icon { color: var(--primary); width: 24px; height: 24px; margin-top: .2em; }
.contact-list div { display: grid; }
.contact-list a { font-weight: 600; font-size: 1.1rem; justify-self: start; }
.contact-list .muted { font-size: .95rem; }

/* Blog & articles */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.post-card { position: relative; display: flex; flex-direction: column; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 { margin: .5rem 0; }
.post-card p { color: var(--text-muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .92rem; color: var(--text-muted); margin: 0; }
.post-by { margin: auto 0 0; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .95rem; }
.post-grid-lg { padding-bottom: 3rem; }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.byline { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.byline-avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.byline p { margin: 0; }
.byline-title { color: var(--text-muted); font-size: .98rem; }
.byline-dates { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; color: var(--text-muted); font-size: .92rem; margin-top: .25rem !important; }
.article-body { max-width: none; padding-bottom: 3rem; }
.article-intro p:first-child { font-size: 1.22rem; }
.in-short { margin: 2rem 0; padding: 1.4rem 1.6rem; border-inline-start: 4px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-s); }
.in-short h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.in-short ul { margin: 0; }
.article-body .toc { margin-bottom: 2rem; }
.article-cta { margin-top: 3rem; padding: 1.75rem; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.article-cta h2 { margin-top: 0; font-size: 1.5rem; }
.article-cta .btn-row { margin-bottom: 0; }
.rel-links { margin-top: 2rem; }
.rel-links h2 { font-size: 1.3rem; }
.article-disclaimer { display: flex; gap: .6rem; margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-s); background: var(--surface-2); font-size: .98rem; color: var(--text-muted); }
.article-disclaimer .icon { color: var(--accent); margin-top: .2em; }

.not-found { padding-block: 5rem; }

/* Videos */
.vid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.vid-head .section-head { margin-bottom: 1.5rem; }
.vid-nav { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex: none; }
.icon-back { transform: rotate(180deg); }
[dir="rtl"] .icon-back.icon-flip { transform: scaleX(-1) rotate(180deg); }
.vid-strip {
  --vid-h: 440px;
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: 1rem; scrollbar-width: thin; scroll-padding-inline: 2px;
}
.vid-strip:focus-visible { outline-offset: 6px; }
.vid-strip > .vid { flex: none; scroll-snap-align: start; }
.vid-strip .vid-frame { height: var(--vid-h); width: auto; }
.vid-strip .vid figcaption { max-width: calc(var(--vid-h) * .5625); }
.vid-strip .vid[data-orient="landscape"] figcaption { max-width: calc(var(--vid-h) * 1.77); }
.vid { margin: 0; }
.vid-frame { position: relative; border-radius: var(--radius-m); overflow: hidden; background: #0b1726; box-shadow: var(--shadow-sm); }
.vid-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b1726; }
.vid figcaption { padding-top: .75rem; }
.vid-title { font-size: 1.08rem; margin: 0 0 .25rem; line-height: 1.35; }
.vid-desc { margin: 0 0 .35rem; color: var(--text-muted); font-size: .98rem; line-height: 1.5; }
.vid-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; font-size: .92rem; color: var(--text-muted); }
.vid-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.vid-meta .icon { width: 1.05em; height: 1.05em; color: var(--accent); }
.vid-note { padding-top: .5rem; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2rem 1.25rem; grid-auto-flow: dense; align-items: start; }
.vid-grid .vid[data-orient="landscape"] { grid-column: span 2; }
.vid-cat { padding-block: 1rem 2.5rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.vid-cat h2 { margin-bottom: .35rem; }
.vid-cat > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.vid-cat .section-link { margin-top: 1.5rem; }
.vid-jump { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.vid-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.vid-jump a:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 600px) {
  .vid-strip { --vid-h: 380px; }
  .vid-nav { display: none; }
  .vid-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem .75rem; }
  .vid-grid .vid[data-orient="landscape"] { grid-column: 1 / -1; }
  .vid-title { font-size: 1rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c9d6e8; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 1rem; }
:root[data-theme="dark"] .site-footer { background: #061020; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #061020; } }
.site-footer a { color: #e6eef9; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-role { color: #a9bbd4; }
.f-title { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.f-links a { text-decoration: none; }
.f-links a:hover { text-decoration: underline; }
.f-branches { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.f-branch { display: grid; gap: .2rem; }
.f-branch strong { color: #fff; }
.f-hours, .f-phone { display: flex; gap: .45rem; align-items: flex-start; }
.f-hours .icon, .f-phone .icon { margin-top: .25em; width: 1.1em; height: 1.1em; color: #8fd18a; }
.f-phone { font-weight: 600; text-decoration: none; }
.f-wa { margin-top: 1.25rem; }
.f-social-title { margin: 1.25rem 0 .5rem; color: #fff; font-weight: 600; }
.social { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); transition: background-color .2s, border-color .2s; }
.social a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.social .icon { width: 22px; height: 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; }
.footer-bottom p { margin: 0; }
.f-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.f-credit a { font-weight: 600; }

/* Mobile sticky bar */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: .5rem;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
    padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(15, 46, 92, .3);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 50px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 1rem;
    color: var(--ink); background: var(--surface-2);
  }
  .mobile-bar .mb-wa { background: var(--wa); color: #fff; }
  .mobile-bar .mb-book { background: var(--primary); color: var(--on-primary); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid, .about-grid { grid-template-columns: 1fr; }
  .sidebar, .about-aside { position: static; }
  .about-aside { max-width: 420px; }
  .why-grid { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .branch { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { width: min(78%, 360px); order: 2; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 1.125rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  .meet { grid-template-columns: 1fr; }
  .meet-photo { max-width: 200px; }
  .svc-head-grid { grid-template-columns: 1fr; gap: 1rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .week { padding: .9rem; }
  .day { font-size: .78rem; }
  .doc-box { grid-template-columns: 64px 1fr; }
  .doc-avatar img { width: 64px; height: 64px; }
  .rev-summary { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion ---------- */
/* Scroll reveal: only when JS is running, so content is never hidden without it */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Gentle hero entrance */
.js .hero-text > * { animation: rise .8s var(--ease) both; }
.js .hero-text > :nth-child(2) { animation-delay: .08s; }
.js .hero-text > :nth-child(3) { animation-delay: .16s; }
.js .hero-text > :nth-child(4) { animation-delay: .24s; }
.js .hero-text > :nth-child(5) { animation-delay: .34s; }
.js .hero-media { animation: settle 1.1s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* Smooth page-to-page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-bar, .site-footer, .cta-band, .map-facade, .btn-row { display: none !important; }
  body { padding: 0; font-size: 12pt; }
}
