/* City Eye Center — site.css (v3.1, Oct 2026)
   v3's pages, speed and booking, dressed the way the clinic liked its old site: Inter and
   Noto Kufi Arabic, deep navy and logo blue, soft white cards, gradient pill buttons, real
   photos. Logical properties throughout, so one file serves English (LTR) and Arabic (RTL). */

/* ── fonts (self-hosted, subset, variable 400–800) ───────────────────── */
@font-face { font-family: 'Inter'; src: url(/assets/fonts/inter-var.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Noto Kufi Arabic'; src: url(/assets/fonts/kufi-var.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
/* metric-matched fallback keeps text from jumping when Inter arrives */
@font-face { font-family: 'Inter FB'; src: local('Arial'); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

/* ── tokens ──────────────────────────────────────────────────────────── */
:root {
  --ink: #0B1D3A;        /* navy — text, dark bands */
  --ink-2: #13294d;      /* raised dark surfaces */
  --iris: #1565C0;       /* logo blue — accents */
  --iris-deep: #1565C0;  /* buttons & links on white (5.6:1) */
  --limbal: #0D47A1;     /* hover, pressed */
  --sky: #29B6F6;        /* light accent, on dark only */
  --mist: #F4F8FF;       /* quiet section ground */
  --paper: #ffffff;
  --line: #E3EAF5;
  --muted: #5B6B80;
  --text-md: #3D5166;
  --ok: #1f7a4d; --warn: #b4232b;
  --grad: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
  --grad-sky: linear-gradient(90deg, #29B6F6, #7FD4FA);
  --grad-dark: radial-gradient(120% 140% at 85% 20%, #1565C0 0%, #0E3A7A 35%, #0B1D3A 72%);

  --f-body: 'Inter', 'Inter FB', 'Segoe UI', system-ui, sans-serif;
  --f-disp: var(--f-body);
  --f-ar: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;

  --wrap: 1180px; --gut: clamp(20px, 4vw, 40px);
  --r: 14px; --r-lg: 20px;
  --sh: 0 4px 24px rgb(11 29 58 / .08);
  --sh-hover: 0 18px 48px rgb(11 29 58 / .16);
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}
html[lang="ar"] { --f-body: var(--f-ar); --f-disp: var(--f-ar); }

/* ── base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.7 var(--f-body);
       text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
html[lang="ar"] body { font-size: 1.02rem; line-height: 1.95; }
img, video, svg { display: block; max-width: 100%; }
svg[class^="i-"] { width: 1.15em; height: 1.15em; flex: none; }
img { height: auto; }
a { color: var(--iris-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--limbal); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: #cfe5fb; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; text-wrap: balance; letter-spacing: -.02em; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0 0 1em; padding-inline-start: 1.2em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* display type — heavy Inter, tight, with a blue second voice */
.d1, .d2, .d3 { font-family: var(--f-disp); font-weight: 800; letter-spacing: -.03em; }
.d1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); line-height: 1.06; }
.d2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.12; }
.d3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.2; letter-spacing: -.02em; }
html[lang="ar"] :is(.d1, .d2, .d3) { font-weight: 800; letter-spacing: 0; line-height: 1.45; }
html[lang="ar"] .d1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.5rem); line-height: 1.35; }
.hl { color: var(--iris); }
@supports (-webkit-background-clip: text) {
  .hl { background: linear-gradient(90deg, #1565C0, #1E88E5); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--iris-deep); margin: 0 0 14px; }
.eyebrow::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.lede { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); color: var(--text-md); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; } .center .lede { margin-inline: auto; } .center .eyebrow { justify-content: center; }

/* ── layout ─────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: clamp(64px, 8vw, 104px); }
.sec--mist { background: var(--mist); }
.sec--tight { padding-block: clamp(44px, 5vw, 72px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .lede { margin: 12px 0 0; }
.sec-head.center { flex-direction: column; align-items: center; }

/* ── buttons: pills ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px;
       border-radius: 999px; border: 1.5px solid transparent; font: 600 .97rem/1 var(--f-body); text-decoration: none; letter-spacing: -.005em;
       cursor: pointer; transition: background .25s var(--ease), color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--solid { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgb(21 101 192 / .65); }
.btn--solid:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgb(21 101 192 / .75); }
.btn--line { border-color: #cfdcef; color: var(--ink); background: var(--paper); }
.btn--line:hover { border-color: var(--iris-deep); color: var(--iris-deep); transform: translateY(-1px); }
.btn--glass { border-color: rgb(255 255 255 / .28); color: #fff; background: rgb(255 255 255 / .08); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgb(255 255 255 / .16); color: #fff; }
.btn:active { transform: translateY(0); }
html[dir="rtl"] .btn .i-arrow { transform: scaleX(-1); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }

/* ── header ─────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.4) blur(14px);
       -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s, box-shadow .25s; }
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(11 29 58 / .4); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 74px; }
.hdr__logo { flex: none; display: block; }
.hdr__logo img { height: 40px; width: auto; }
.hdr__logo .logo-light { display: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 13px; border-radius: 999px; }
.nav a:hover { color: var(--iris-deep); }
.nav a[aria-current="page"] { color: var(--iris-deep); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; inset-inline: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: currentColor; }
.hdr__tools { display: flex; align-items: center; gap: 8px; }
.hdr__lang { font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--ink); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); }
.hdr__lang:hover { border-color: var(--iris-deep); color: var(--iris-deep); }
html[lang="en"] .hdr__lang { font-family: var(--f-ar); }
html[lang="ar"] .hdr__lang { font-family: 'Inter', sans-serif; }
.hdr__portal { font-size: .9rem; font-weight: 500; color: var(--text-md); text-decoration: none; padding: 10px; }
.hdr__tools .btn { min-height: 42px; padding: 0 20px; }
.hdr__menu { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; border-radius: 12px; cursor: pointer; }
.hdr__menu svg { width: 24px; height: 24px; margin: auto; }
/* over the dark hero the header starts transparent and white */
.hdr--over { position: fixed; inset-inline: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr--over:not(.is-scrolled) :is(.nav a, .hdr__lang, .hdr__portal, .hdr__menu) { color: #fff; }
.hdr--over:not(.is-scrolled) .hdr__lang { border-color: rgb(255 255 255 / .3); }
.hdr--over:not(.is-scrolled) .nav a:hover { color: #9fdcfb; }
.hdr--over:not(.is-scrolled) .logo-dark { display: none; }
.hdr--over:not(.is-scrolled) .logo-light { display: block; }
.hdr--over.is-scrolled { background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
/* the inner pages start on a dark band too */
.hdr--dark:not(.is-scrolled) { background: transparent; position: fixed; inset-inline: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr--dark:not(.is-scrolled) :is(.nav a, .hdr__lang, .hdr__portal, .hdr__menu) { color: #fff; }
.hdr--dark:not(.is-scrolled) .hdr__lang { border-color: rgb(255 255 255 / .3); }
.hdr--dark:not(.is-scrolled) .logo-dark { display: none; }
.hdr--dark:not(.is-scrolled) .logo-light { display: block; }
.hdr--dark.is-scrolled { position: fixed; inset-inline: 0; }
@media (max-width: 1060px) {
  .nav, .hdr__portal { display: none; }
  .hdr__menu { display: grid; }
  .hdr__tools { margin-inline-start: auto; }
}
@media (max-width: 420px) { .hdr__tools .btn { display: none; } .hdr__logo img { height: 36px; } }

/* mobile menu sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--grad-dark); background-color: var(--ink); color: #fff; display: flex; flex-direction: column;
         padding: 18px var(--gut) 32px; visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility 0s .25s; }
.sheet.is-open { visibility: visible; opacity: 1; transition: opacity .25s var(--ease); }
.sheet__top { display: flex; justify-content: space-between; align-items: center; height: 54px; }
.sheet__top img { height: 36px; width: auto; }
.sheet nav { display: flex; flex-direction: column; margin-top: 28px; }
.sheet nav a { color: #fff; text-decoration: none; font: 700 1.55rem/1.25 var(--f-disp); letter-spacing: -.02em; padding: 13px 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
html[lang="ar"] .sheet nav a { font-size: 1.4rem; letter-spacing: 0; }
.sheet__foot { margin-top: auto; display: grid; gap: 12px; }
.sheet__foot .btn { width: 100%; }
.sheet .hdr__menu { display: grid; color: #fff; }
body.no-scroll { overflow: hidden; }

/* ── hero (home) — the logo eye, alive ─────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; background: #041126; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: #041126 url(/images/hero-eye-poster.jpg) center/cover no-repeat; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(4 17 38 / .9) 0%, rgb(4 17 38 / .7) 36%, rgb(4 17 38 / .08) 62%, rgb(4 17 38 / 0) 74%); }
html[dir="rtl"] .hero__media { background-image: url(/images/hero-eye-rtl-poster.jpg); }
html[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgb(4 17 38 / .9) 0%, rgb(4 17 38 / .7) 36%, rgb(4 17 38 / .08) 62%, rgb(4 17 38 / 0) 74%); }
.hero__in { padding-block: 128px 96px; }
.hero__text { max-width: 620px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: #8fd6fb; padding: 7px 14px; border-radius: 999px;
        background: rgb(41 182 246 / .1); border: 1px solid rgb(41 182 246 / .35); margin: 0 0 24px; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgb(41 182 246 / .2); }
html[lang="ar"] .pill { font-size: .9rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.hero h1 .hl, .phead .hl { background: var(--grad-sky); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #c7d6ea; margin: 22px 0 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-aspect-ratio: 1/1) {
  .hero { align-items: flex-start; min-height: auto; }
  .hero__media, html[dir="rtl"] .hero__media { bottom: auto; aspect-ratio: 9/16; height: auto; background-image: url(/images/hero-eye-mobile-poster.jpg); background-position: center top; }
  .hero__media video { object-position: center top; }
  .hero::before, html[dir="rtl"] .hero::before { background: linear-gradient(180deg, rgb(4 17 38 / 0) 0, rgb(4 17 38 / .05) 58vw, rgb(4 17 38 / .86) 72vw, #041126 100%); }
  .hero__in { padding-block: 72vw 56px; }
}

/* ── who we are: the photo, the numbers ─────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split__ph { position: relative; }
.split__ph picture, .split__ph > img { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-hover); }
.split__ph img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.badge { position: absolute; inset-inline-end: -16px; bottom: 28px; background: #fff; border-radius: 16px; padding: 14px 18px; text-align: center;
         box-shadow: var(--sh-hover); min-width: 96px; }
.badge b { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; color: var(--iris-deep); letter-spacing: -.03em; }
.badge span { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; border-radius: var(--r-lg); overflow: hidden;
         background: var(--grad-dark); background-color: var(--ink); color: #fff; box-shadow: 0 20px 40px -20px rgb(11 29 58 / .6); }
.stats div { padding: 22px 12px; text-align: center; }
.stats div + div { border-inline-start: 1px solid rgb(255 255 255 / .1); }
.stats b { display: block; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats span { display: block; font-size: .8rem; color: #b6c8e0; margin-top: 6px; line-height: 1.35; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split__ph { order: -1; max-width: 520px; } .badge { inset-inline-end: 12px; } }
@media (max-width: 420px) { .stats span { font-size: .72rem; } }

/* ── service cards (illustration on a soft blue ground) ─────────────── */
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.svc { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh);
       color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); border: 1px solid #edf2fa; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--sh-hover); color: var(--ink); }
.svc__art { display: grid; place-items: center; height: 120px; background: linear-gradient(180deg, #e3f2fd, #f1f8ff); }
.svc__art picture, .svc__art img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; transition: transform .35s var(--ease); }
.svc:hover .svc__art img { transform: scale(1.08); }
.svc__b { padding: 18px 20px 22px; display: grid; gap: 6px; }
.svc__b b { font-weight: 700; font-size: 1.04rem; letter-spacing: -.01em; }
.svc__b span { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.svc__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--iris-deep); font-weight: 600; font-size: .88rem; }
.svc__go svg { width: 15px; height: 15px; }
html[dir="rtl"] .svc__go svg { transform: scaleX(-1); }

/* ── doctors ────────────────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.doc { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh);
       color: inherit; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.doc:hover { transform: translateY(-6px); box-shadow: var(--sh-hover); color: inherit; }
.doc__ph { aspect-ratio: 1/1; overflow: hidden; background: linear-gradient(180deg, #eaf3fc, #d9e8f6); }
.doc__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .6s var(--ease); }
.doc:hover .doc__ph img { transform: scale(1.04); }
.doc__b { padding: 16px 18px 18px; }
.doc h3, .doc h2 { font-size: 1.04rem; font-weight: 700; letter-spacing: -.01em; }
.doc p { margin: 3px 0 0; color: var(--iris-deep); font-size: .86rem; font-weight: 500; line-height: 1.45; }
.doc .where { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--limbal); background: #e8f1fc; border-radius: 999px; padding: 3px 10px; }
.chip--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--iris); }
@media (max-width: 600px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; } .doc__b { padding: 12px 12px 14px; } .doc h3, .doc h2 { font-size: .95rem; } .doc p { font-size: .8rem; } .doc .chip { font-size: .68rem; padding: 2px 7px; } }

/* ── branches ───────────────────────────────────────────────────────── */
.branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.branch { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; border: 1px solid #edf2fa; }
.branch__h { background: var(--grad-dark); background-color: var(--ink); color: #fff; padding: 18px 22px; }
.branch__h :is(h2, h3) { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.branch__h span { display: block; color: #a9c2e2; font-size: .86rem; margin-top: 2px; }
.branch__b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.branch address { font-style: normal; color: var(--text-md); font-size: .94rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; }
.kv dt { font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--iris-deep); padding-top: .32em; }
html[lang="ar"] .kv dt { letter-spacing: 0; text-transform: none; font-size: .86rem; padding-top: 0; }
.kv dd { margin: 0; }
.tel { font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--iris-deep); text-decoration: underline; }
.branch__acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.branch__acts .btn { min-height: 42px; padding: 0 16px; font-size: .9rem; }
@media (max-width: 900px) { .branches { grid-template-columns: 1fr; } }

/* ── reviews: one card per branch ───────────────────────────────────── */
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); align-items: start; }
.rev { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh); padding: 24px 24px 20px; border: 1px solid #edf2fa; }
.rev__br { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--iris-deep); margin: 0; }
html[lang="ar"] .rev__br { letter-spacing: 0; font-size: .92rem; }
.rev__stars { display: flex; gap: 2px; margin: 8px 0 2px; color: #f5a623; }
.rev__stars svg { width: 17px; height: 17px; }
.rev__n { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.rev blockquote { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); font-style: italic; color: var(--text-md); font-size: .93rem; line-height: 1.65; }
html[lang="ar"] .rev blockquote { font-style: normal; }
.rev cite { display: block; font-style: normal; font-weight: 700; color: var(--ink); font-size: .86rem; margin-top: 8px; }
.rev__links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .84rem; }
.rev__links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.rev__links svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .revs { grid-template-columns: 1fr; } }

/* ── inner page head: the dark band ─────────────────────────────────── */
.phead { position: relative; overflow: hidden; background: var(--grad-dark); background-color: var(--ink); color: #fff; padding-block: clamp(118px, 12vw, 150px) clamp(44px, 6vw, 72px); }
.phead::after { content: ''; position: absolute; inset-inline-end: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
                border: 1px solid rgb(41 182 246 / .18); box-shadow: 0 0 0 60px rgb(41 182 246 / .03), 0 0 0 120px rgb(41 182 246 / .025); pointer-events: none; }
.phead .wrap { position: relative; z-index: 1; }
.phead h1 { color: #fff; }
.phead .eyebrow { color: #8fd6fb; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .86rem; color: #93a9c6; }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: #5f7898; }
.crumbs a { color: #b9cbe2; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.phead .lede { margin: 18px 0 0; color: #c7d6ea; }
.phead__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.phead__art { width: clamp(120px, 15vw, 180px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #e3f2fd; box-shadow: 0 0 0 8px rgb(255 255 255 / .06), 0 20px 40px -10px rgb(0 0 0 / .45); }
.phead__art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) { .phead__grid { grid-template-columns: 1fr; } .phead__art { display: none; } }

/* ── article layout (procedures, doctors, branches) ─────────────────── */
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.twocol__aside { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 980px) { .twocol { grid-template-columns: 1fr; } .twocol__aside { position: static; } }
.prose { max-width: 70ch; color: #24384f; }
.prose h2 { font-weight: 800; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin: 2em 0 .6em; line-height: 1.25; color: var(--ink); letter-spacing: -.02em; }
html[lang="ar"] .prose h2 { line-height: 1.5; letter-spacing: 0; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-inline-start: 0; list-style: none; }
.prose li { position: relative; padding-inline-start: 28px; margin-bottom: .55em; }
.prose li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .5em; width: 16px; height: 16px; border-radius: 50%;
                    background: #e3f2fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%231565C0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
html[lang="ar"] .prose li::before { top: .62em; }
.prose .more { margin-top: -.2em; }
.urgent { border-radius: var(--r-lg); padding: 20px 22px; background: #fff5f5; border: 1px solid #f6d3d3; margin: 2em 0; }
.urgent h2 { margin-top: 0 !important; color: var(--warn) !important; font-size: 1.1rem !important; }
.urgent li::before { background: #fde3e3; }
.urgent p:last-child { margin-bottom: 0; }

/* side cards */
.rx { background: var(--paper); border-radius: var(--r-lg); padding: 22px 22px 18px; box-shadow: var(--sh); border: 1px solid #edf2fa; }
.rx__title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rx__title span { font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--iris-deep); }
html[lang="ar"] .rx__title span { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.rx__title b { display: none; }
.rx dl { margin: 0; display: grid; gap: 12px; }
.rx dt { font-size: .8rem; color: var(--muted); }
.rx dd { margin: 0; font-weight: 600; line-height: 1.45; }
.cta-card { background: var(--grad-dark); background-color: var(--ink); color: #dbe7f5; border-radius: var(--r-lg); padding: 24px; box-shadow: 0 20px 40px -20px rgb(11 29 58 / .6); }
.cta-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.cta-card p { font-size: .93rem; color: #b9cbe0; }
.cta-card .btn { width: 100%; }
.cta-card .btn + .btn { margin-top: 10px; }
.cta-card .btn--line { background: transparent; color: #fff; border-color: rgb(255 255 255 / .3); }
.cta-card .btn--line:hover { border-color: #fff; color: #fff; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 1em; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--sh); border-color: #d6e4f5; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; font-weight: 600; font-size: 1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e8f1fc; color: var(--iris-deep); display: grid; place-items: center; font-weight: 700; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 18px 18px; color: var(--text-md); }

/* related & small cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); color: var(--ink); text-decoration: none; background: var(--paper); box-shadow: var(--sh); border: 1px solid #edf2fa; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); color: var(--ink); }
.card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: #e3f2fd; }
.card b { display: block; font-weight: 700; }
.card span { display: block; color: var(--muted); font-size: .88rem; }

/* doctor profile (sits on the dark band) */
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.profile__ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: #e3f2fd; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .55); }
.profile__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.phead .profile .kv dt { color: #8fd6fb; }
.phead .profile .kv dd { color: #e2ecf8; }
.phead .profile .kv a { color: #fff; }
.phead .profile .btn--line { background: rgb(255 255 255 / .06); color: #fff; border-color: rgb(255 255 255 / .28); }
.phead .profile .btn--line:hover { background: rgb(255 255 255 / .14); color: #fff; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile__ph { max-width: 260px; } }

/* map facade */
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #dfe9f3; aspect-ratio: 16/10; box-shadow: var(--sh); }
.map button { all: unset; position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(0deg, rgb(11 29 58 / .5), rgb(11 29 58 / .12)), repeating-linear-gradient(0deg, transparent 0 39px, rgb(255 255 255 / .35) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgb(255 255 255 / .35) 39px 40px), #c9dbea; }
.map button span { background: #fff; color: var(--ink); font-weight: 600; padding: 12px 20px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; box-shadow: var(--sh-hover); }
.map button:focus-visible span { outline: 3px solid var(--sky); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* forms */
.form { display: grid; gap: 16px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh); padding: clamp(20px, 3vw, 32px); border: 1px solid #edf2fa; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #f7faff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--iris); box-shadow: 0 0 0 4px rgb(21 101 192 / .12); }
.form__note { font-size: .86rem; color: var(--muted); }
.form__msg { border-radius: 12px; padding: 12px 14px; font-weight: 600; display: none; }
.form__msg.ok { display: block; background: #e8f5ee; color: var(--ok); }
.form__msg.err { display: block; background: #fdf1f1; color: var(--warn); }

/* gallery */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery button { all: unset; display: block; margin: 0 0 14px; border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; break-inside: avoid; box-shadow: var(--sh); }
.gallery button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.gallery img { width: 100%; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgb(4 15 32 / .88); }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--r); }
.lightbox form { position: absolute; top: 8px; inset-inline-end: 8px; }
.lightbox button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; }

/* ── footer ─────────────────────────────────────────────────────────── */
.ftr { position: relative; background: linear-gradient(135deg, #0B1D3A 0%, #0B1D3A 55%, #0E3A7A 100%); color: #a8bad0; padding-block: 64px 28px; font-size: .93rem; }
.ftr::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, #1565C0, #29B6F6); }
.ftr a { color: #dbe7f5; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px 28px; }
.ftr h2 { font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #4fc3f7; margin: 0 0 14px; }
html[lang="ar"] .ftr h2 { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr__brand img { height: 42px; width: auto; margin-bottom: 16px; }
.ftr__brand p { max-width: 34ch; }
.ftr__quote { margin: 18px 0 0; padding-inline-start: 14px; border-inline-start: 2px solid var(--iris); font-style: italic; color: #b6c8e0; }
html[lang="ar"] .ftr__quote { font-style: normal; }
.ftr .tel { color: #dbe7f5; font-weight: 500; }
.ftr__social { display: flex; gap: 10px; margin-top: 18px; }
.ftr__social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .15); background: rgb(255 255 255 / .04); display: grid; place-items: center; }
.ftr__social a:hover { background: rgb(255 255 255 / .1); }
.ftr__social svg { width: 18px; height: 18px; }
.ftr__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .84rem; color: #7f97b4; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }

/* sticky mobile action bar */
.actbar { display: none; }
@media (max-width: 760px) {
  .actbar { position: fixed; z-index: 40; inset-inline: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
    background: rgb(11 29 58 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5);
    transform: translateY(140%); transition: transform .35s var(--ease); }
  .actbar.is-on { transform: none; }
  .actbar .btn { min-height: 46px; font-size: .95rem; padding: 0 10px; box-shadow: none; }
  .actbar .btn--line { background: transparent; color: #fff; border-color: rgb(255 255 255 / .28); }
  body.has-actbar .ftr { padding-bottom: 96px; }
}

/* ── reveal (progressive: content is visible unless JS opts in) ─────── */
.js-motion .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-motion .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .rv { opacity: 1; transform: none; }
  .hero__media video { display: none; }
}

/* ── 404 ─────────────────────────────────────────────────────────────── */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf__code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 0 0 8px; }

/* ── compat: variables & faces the legacy booking & blog pages expect ── */
:root { --navy: var(--ink); --blue: var(--iris-deep); --blue-lt: #29B6F6; --blue-mid: #1976D2; --teal: #00acc1; --text: var(--ink); --text-mid: var(--text-md);
        --text-light: var(--muted); --bg: var(--paper); --bg-alt: var(--mist); --border: var(--line); --radius: var(--r-lg); --shadow: var(--sh); --transition: .3s var(--ease); }
