/* ==========================================================================
   عيادة الدكتور سعد الوريكات لطب وجراحة العيون
   Main stylesheet — RTL, mobile-first
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   00. Font (Almarai, self-hosted)
   01. Design tokens
   02. Reset & base
   03. Layout helpers
   04. Buttons & badges
   05. Top bar + Navbar + Mobile drawer
   06. Hero
   07. Stats counters
   08. About the doctor + credentials + timeline
   09. Services grid + modal
   10. Media & news gallery + lightbox
   11. Instagram reels
   12. Reviews + Google Map
   13. Blog cards
   14. CTA band + Contact
   15. Footer + floating WhatsApp
   16. Animations & utilities
   17. Responsive breakpoints
   ========================================================================== */

/* ========================= 00. FONT — ALMARAI ============================
   Self-hosted from assets/fonts/ (SIL Open Font License — see OFL.txt).
   No external request: nothing breaks if Google Fonts is slow or blocked.
   Available weights: 300 / 400 / 700 / 800 only.
   ======================================================================== */
@font-face {
  font-family: 'Almarai';
  src: url('../fonts/Almarai-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Almarai';
  src: url('../fonts/Almarai-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Almarai';
  src: url('../fonts/Almarai-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Almarai';
  src: url('../fonts/Almarai-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ============================ 01. DESIGN TOKENS ========================== */
:root {
  /* Brand — sampled from the clinic logo (blue eye) + clinical teal accent */
  --navy:        #133A5E;
  --navy-deep:   #0C2740;
  --brand:       #2E90CE;
  --brand-light: #62B4E4;
  --brand-soft:  #E3F1FA;
  --teal:        #0F8B85;
  --teal-soft:   #E1F3F2;
  --gold:        #C89B3C;

  /* Neutrals */
  --white:   #FFFFFF;
  --bg:      #FFFFFF;
  --bg-alt:  #F5FAFD;
  --bg-tint: #EDF5FA;
  --text:    #1B2B38;
  --muted:   #5C7183;
  --line:    #DDE7EE;

  /* Effects */
  --grad-brand: linear-gradient(135deg, #2E90CE 0%, #0F8B85 100%);
  --grad-navy:  linear-gradient(135deg, #133A5E 0%, #0B5E7A 60%, #0F8B85 100%);
  --glass:      rgba(255, 255, 255, .72);

  --shadow-sm: 0 2px 8px rgba(19, 58, 94, .06);
  --shadow:    0 8px 28px rgba(19, 58, 94, .10);
  --shadow-lg: 0 18px 50px rgba(19, 58, 94, .16);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --header-h: 78px;
  --container: 1240px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* ============================ 02. RESET & BASE =========================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Almarai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.35;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1.1em; }

a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; right: 12px; top: -100px;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); z-index: 999; transition: top .25s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================ 03. LAYOUT HELPERS ========================= */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section--alt  { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--teal); background: var(--teal-soft);
  padding: .4rem 1rem; border-radius: var(--r-pill); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}

.grid { display: grid; gap: 1.5rem; }

/* Grid children default to min-width:auto, which lets a wide child (a nested
   grid, a long word) push the whole track past the viewport. Pin it to 0. */
.about__grid > *, .map__grid > *, .article__grid > *, .svc-block > * { min-width: 0; }

/* Credential badges under the timeline — one column on small phones. */
.badge-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .badge-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================ 04. BUTTONS & BADGES ======================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
  padding: .95rem 1.7rem; border: 2px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover  { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(46,144,206,.32); }
.btn--primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(46,144,206,.42); }

.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.30); }
.btn--whatsapp:hover { color: #fff; background: #1EBE5A; box-shadow: 0 16px 34px rgba(37,211,102,.40); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

.btn--ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--sm { padding: .65rem 1.2rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ====================== 05. TOP BAR / NAVBAR / DRAWER ==================== */
.topbar {
  background: var(--navy-deep); color: rgba(255,255,255,.86);
  font-size: .84rem; line-height: 1.6;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .5rem 0; flex-wrap: wrap;
}
.topbar__info { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; color: inherit; }
.topbar__item:hover { color: var(--brand-light); }
.topbar__item svg { width: 15px; height: 15px; opacity: .85; flex: none; }
.topbar__social { display: flex; align-items: center; gap: .35rem; }
.topbar__social a {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; color: rgba(255,255,255,.8); background: rgba(255,255,255,.08);
  transition: background .25s, color .25s, transform .25s;
}
.topbar__social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.topbar__social svg { width: 15px; height: 15px; }

/* Very small phones (≤ 360px): the logo + booking CTA + burger don't fit on
   one row. Drop the header CTA — the drawer and the floating WhatsApp button
   both still offer booking — and let long button labels wrap. */
@media (max-width: 360px) {
  .nav__actions .btn { display: none; }
  .brand img { height: 44px; }
  .btn { white-space: normal; padding: .85rem 1.2rem; }
}

/* On phones the top bar would eat a third of the first screen — keep the
   phone number and the social row only. */
@media (max-width: 767px) {
  .topbar { font-size: .78rem; }
  .topbar__inner { justify-content: center; padding: .35rem 0; }
  .topbar__info > *:not(:first-child) { display: none; }
  .topbar__social a { width: 26px; height: 26px; }
  .topbar__social svg { width: 13px; height: 13px; }
}

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow); background: rgba(255,255,255,.96); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand img { height: 52px; width: auto; }
.brand__text { display: none; line-height: 1.25; }
.brand__name { display: block; font-weight: 800; color: var(--navy); font-size: .95rem; white-space: nowrap; }
.brand__role { display: block; font-size: .7rem; color: var(--muted); white-space: nowrap; }

.nav__links { display: none; align-items: center; gap: .15rem; }
.nav__links a {
  position: relative; padding: .55rem .55rem; border-radius: var(--r-sm);
  color: var(--text); font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; inset-inline: .55rem; bottom: .3rem; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--brand); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.nav__toggle {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--brand-soft); border: 0; border-radius: var(--r-sm);
  cursor: pointer; color: var(--navy);
}
.nav__toggle span {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: background .2s;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; inset-inline-start: 0; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px);
  background: #fff; z-index: 120; padding: 1.5rem 1.25rem 2rem;
  /* Closed state must stay inside the viewport, or a fixed panel parked
     off-screen adds horizontal scroll. Scale inward from the start edge
     instead of translating outward. */
  transform-origin: 100% 50%;
  transform: scale(.96); opacity: 0; visibility: hidden;
  transition: transform .38s var(--ease), opacity .3s var(--ease), visibility .38s;
  overflow-y: auto; box-shadow: -20px 0 60px rgba(19,58,94,.18);
  display: flex; flex-direction: column; gap: .35rem;
}
.drawer.is-open { transform: none; opacity: 1; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer__head img { height: 46px; }
.drawer__close {
  width: 40px; height: 40px; border: 0; border-radius: var(--r-sm);
  background: var(--bg-alt); color: var(--navy); font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.drawer a.drawer__link {
  display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem;
  border-radius: var(--r-sm); color: var(--text); font-weight: 700;
  border: 1px solid transparent;
}
.drawer a.drawer__link:hover { background: var(--brand-soft); color: var(--brand); }
.drawer__cta { margin-top: 1rem; display: grid; gap: .6rem; }

.overlay {
  position: fixed; inset: 0; background: rgba(11,39,64,.55);
  backdrop-filter: blur(3px); z-index: 110;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ============================ 06. HERO =================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-navy);
  color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0 0;
  isolation: isolate;
}
.hero::before {
  /* soft radial glow */
  content: ""; position: absolute; inset-inline-start: -12%; top: -22%;
  width: 62vw; height: 62vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(98,180,228,.42) 0%, transparent 68%);
  z-index: -1;
}
.hero::after {
  /* subtle grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .10;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
}
.hero__grid { display: grid; gap: 2rem; align-items: center; }

.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero h1 .accent {
  background: linear-gradient(90deg, #8FD3F4, #62B4E4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1rem, 2.2vw, 1.2rem); color: rgba(255,255,255,.88); max-width: 56ch; }

.hero__tag {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #DFF1FC; padding: .45rem 1rem; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 700; margin-bottom: 1.2rem;
  backdrop-filter: blur(8px);
}
.hero__tag svg { width: 16px; height: 16px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.8rem; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero__trust-item { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero__trust-item svg { width: 20px; height: 20px; color: var(--brand-light); flex: none; }

.hero__media { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero__media img {
  width: min(100%, 430px); border-radius: var(--r-lg);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.45));
}
.hero__badge {
  position: absolute; background: var(--glass); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--r);
  padding: .75rem 1rem; box-shadow: var(--shadow-lg); color: var(--navy);
  display: flex; align-items: center; gap: .65rem; animation: float 5s ease-in-out infinite;
}
.hero__badge strong { display: block; font-size: 1.15rem; line-height: 1.2; color: var(--navy); }
.hero__badge span { font-size: .74rem; color: var(--muted); }
.hero__badge .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.hero__badge .ic svg { width: 20px; height: 20px; }
.hero__badge--a { inset-inline-start: 0; top: 18%; }
.hero__badge--b { inset-inline-end: 0; bottom: 22%; animation-delay: 1.4s; }

/* Single, larger credentials badge (replaces the old pair).
   Sits low and overhangs the portrait's outer edge so it frames the photo
   rather than covering the subject. */
.hero__badge--creds {
  inset-inline-start: 0; bottom: 5%;
  padding: 1rem 1.25rem; gap: .85rem; align-items: flex-start;
  max-width: min(86%, 300px);
}
@media (min-width: 992px) {
  .hero__badge--creds { inset-inline-start: -34px; }
}
.hero__badge--creds .ic { width: 46px; height: 46px; border-radius: 13px; }
.hero__badge--creds .ic svg { width: 24px; height: 24px; }
.hero__badge-body strong { font-size: 1rem; margin-bottom: .35rem; }
.hero__badge-list { display: grid; gap: .18rem; }
.hero__badge-list span {
  font-size: .82rem; font-weight: 700; color: var(--brand);
  direction: ltr; text-align: start; line-height: 1.45;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ============================ 07. STATS ================================= */
.stats { background: rgba(255,255,255,.07); border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 1.5rem .75rem; text-align: center; border-inline-start: 1px solid rgba(255,255,255,.12); border-top: 1px solid rgba(255,255,255,.12); }
.stat__num { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stat__num::after { content: "+"; color: var(--brand-light); }
.stat__label { font-size: .82rem; color: rgba(255,255,255,.75); }

/* ====================== 08. ABOUT / CREDENTIALS / TIMELINE =============== */
.about__grid { display: grid; gap: 2.5rem; align-items: start; }

.about__media { position: relative; }
.about__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; }
.about__media::before {
  content: ""; position: absolute; inset-inline-end: -14px; top: -14px;
  width: 55%; height: 55%; border-radius: var(--r-lg);
  background: var(--grad-brand); opacity: .12; z-index: -1;
}
.about__exp {
  position: absolute; inset-inline-start: -12px; bottom: -18px;
  background: #fff; border-radius: var(--r); padding: 1rem 1.3rem;
  box-shadow: var(--shadow-lg); text-align: center; border: 1px solid var(--line);
}
.about__exp strong { display: block; font-size: 2rem; color: var(--brand); line-height: 1; }
.about__exp span { font-size: .78rem; color: var(--muted); }

.creds { display: grid; gap: .55rem; margin: 1.5rem 0; }
.cred {
  display: flex; align-items: flex-start; gap: .7rem;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .75rem .9rem; font-size: .93rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.cred:hover { transform: translateX(-4px); box-shadow: var(--shadow-sm); border-color: var(--brand-light); }
.cred svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: .35rem; }

.memberships { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .45rem 1rem; font-size: .84rem; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); }

/* Timeline */
.timeline { position: relative; margin-top: 1rem; padding-inline-start: 0; }
.timeline::before {
  content: ""; position: absolute; inset-inline-end: 15px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--brand), var(--teal)); opacity: .3; border-radius: 2px;
}
.tl-item { position: relative; padding-inline-end: 3rem; padding-bottom: 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; inset-inline-end: 8px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.tl-year { font-weight: 800; color: var(--brand); font-size: .9rem; }
.tl-item h4 { margin: 0 0 .2rem; font-size: 1.03rem; }
.tl-item p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ============================ 09. SERVICES ============================== */
.services__grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }

.service {
  position: relative; overflow: hidden; text-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem; cursor: pointer; font-family: inherit; width: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service::before {
  content: ""; position: absolute; inset-inline-end: 0; top: 0; height: 4px; width: 0;
  background: var(--grad-brand); transition: width .4s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { width: 100%; }

.service__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--brand-soft); margin-bottom: 1.1rem;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.service:hover .service__icon { background: var(--grad-brand); transform: rotate(-6deg) scale(1.05); }
.service__icon img { width: 36px; height: 36px; transition: filter .35s; }
.service:hover .service__icon img { filter: brightness(0) invert(1); }

.service h3 { margin-bottom: .45rem; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.service__more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9rem; color: var(--brand);
}
.service__more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.service:hover .service__more svg { transform: translateX(-5px); }

/* Modal (shared: services + reels + lightbox) */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 1rem; background: rgba(11,39,64,.72); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  background: #fff; border-radius: var(--r-lg); width: min(100%, 680px);
  max-height: min(88vh, 900px); overflow-y: auto; padding: 2rem 1.6rem;
  box-shadow: var(--shadow-lg); transform: translateY(24px) scale(.97);
  transition: transform .35s var(--ease); position: relative;
}
.modal.is-open .modal__box { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; inset-inline-start: 1rem; top: 1rem;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--bg-alt); color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background .25s, transform .25s;
}
.modal__close:hover { background: #FDE8E8; color: #C0392B; transform: rotate(90deg); }
.modal__box h3 { padding-inline-start: 2.5rem; }
.modal__box ul { display: grid; gap: .6rem; margin: 1rem 0 1.5rem; }
.modal__box ul li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.modal__box ul li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: .6rem;
  background: var(--grad-brand);
}
.modal__note {
  background: var(--teal-soft); border-inline-start: 4px solid var(--teal);
  border-radius: var(--r-sm); padding: .9rem 1rem; font-size: .92rem; margin-bottom: 1.4rem;
}
.modal__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ====================== 10. MEDIA & NEWS GALLERY ======================== */
.media__grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
.media-card {
  position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 16 / 10; cursor: pointer; border: 0; padding: 0; background: #000;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.media-card:nth-child(1), .media-card:nth-child(6) { grid-column: span 2; aspect-ratio: 16 / 9; }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .35s; }
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.media-card:hover img { transform: scale(1.08); opacity: .82; }
.media-card__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start; gap: .35rem;
  padding: 1rem; text-align: start;
  background: linear-gradient(to top, rgba(11,39,64,.92) 0%, rgba(11,39,64,.35) 45%, transparent 75%);
  color: #fff;
}
.media-card__tag {
  font-size: .7rem; font-weight: 700; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3); padding: .2rem .6rem; border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}
.media-card__title { font-size: .92rem; font-weight: 700; line-height: 1.5; }
.media-card__play {
  position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(50%, -50%) scale(.9);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--brand); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), background .3s;
}
.media-card:hover .media-card__play { transform: translate(50%, -50%) scale(1.08); background: #fff; }
.media-card__play svg { width: 22px; height: 22px; margin-inline-start: -2px; }

/* Video / image lightbox */
.lightbox__frame {
  width: min(96vw, 960px); border-radius: var(--r); overflow: hidden;
  background: #000; box-shadow: var(--shadow-lg);
  transform: scale(.96); transition: transform .35s var(--ease);
}
.modal.is-open .lightbox__frame { transform: scale(1); }
.lightbox__frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.lightbox__fallback {
  display: block; padding: .7rem 1rem; text-align: center;
  background: #0B2740; color: rgba(255,255,255,.72); font-size: .84rem;
}
.lightbox__fallback:hover { color: #fff; background: #133A5E; }
.lightbox__frame img { width: 100%; max-height: 82vh; object-fit: contain; background: #0B2740; }
.lightbox__close {
  position: absolute; inset-inline-start: 1.2rem; top: 1.2rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.5rem; line-height: 1;
  transition: transform .25s, background .25s;
}
.lightbox__close:hover { transform: rotate(90deg); background: #fff; }

/* ============================ 11. REELS ================================= */
.reels__grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
.reel {
  position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--r); aspect-ratio: 9 / 16; background: var(--grad-navy);
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem; text-align: start; color: #fff;
}
.reel__poster {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55; transition: transform .6s var(--ease), opacity .4s;
}
.reel:hover .reel__poster { transform: scale(1.07); opacity: .68; }
.reel::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(11,39,64,.92) 0%, rgba(11,39,64,.35) 50%, rgba(19,58,94,.55) 100%);
  transition: opacity .4s;
}
.reel:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.reel:hover::after { opacity: 1; }
.reel > *:not(.reel__poster) { position: relative; z-index: 1; }
.reel__badge {
  align-self: flex-start; font-size: .7rem; font-weight: 700;
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
  padding: .3rem .7rem; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: .3rem;
}
.reel__badge svg { width: 13px; height: 13px; }
.reel__play {
  align-self: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.6);
  display: grid; place-items: center; backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), background .3s;
}
.reel:hover .reel__play { transform: scale(1.12); background: rgba(255,255,255,.35); }
.reel__play svg { width: 20px; height: 20px; margin-inline-start: -2px; }
.reel__title { display: block; font-size: .88rem; font-weight: 700; line-height: 1.6; }
.reel__meta { display: block; font-size: .74rem; color: rgba(255,255,255,.7); }

.lightbox__frame.is-narrow { width: auto; background: transparent; box-shadow: none; }
.reel-embed { width: min(94vw, 420px); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.reel-embed iframe { width: 100%; height: min(80vh, 720px); border: 0; display: block; }

/* ====================== 12. REVIEWS + GOOGLE MAP ======================== */
.reviews__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 2rem;
}
.rating-card {
  display: flex; align-items: center; gap: 1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.4rem; box-shadow: var(--shadow-sm);
}
.rating-card__score { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stars { display: flex; gap: 2px; color: #F5A623; }
.stars svg { width: 17px; height: 17px; }
.rating-card__meta { font-size: .82rem; color: var(--muted); }

.slider { position: relative; }
.slider__track {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1.4rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider__track::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 min(88%, 380px); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review__quote {
  position: absolute; inset-inline-start: 1.1rem; bottom: 4.6rem;
  font-size: 3.2rem; line-height: 1; color: var(--brand-soft);
  font-family: Georgia, serif; pointer-events: none;
}
.review__text {
  font-size: .95rem; color: var(--text); margin-bottom: 1.2rem; flex: 1; position: relative;
  /* Reviews vary a lot in length; clamping keeps every card in the carousel
     the same height. The full text stays one click away on Google. */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9;
  overflow: hidden;
}
/* Google reviews written in English need their own direction inside the RTL page */
.review__text.review--ltr { direction: ltr; text-align: left; }

.review__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-bottom: .85rem;
}
.review__tag {
  font-size: .72rem; font-weight: 700; color: var(--teal);
  background: var(--teal-soft); border-radius: var(--r-pill);
  padding: .25rem .7rem; white-space: nowrap;
}
.review__guide {
  display: inline-block; font-size: .66rem; font-weight: 700; color: var(--gold);
  border: 1px solid rgba(200,155,60,.4); background: rgba(200,155,60,.08);
  border-radius: var(--r-pill); padding: .05rem .45rem; margin-bottom: .15rem;
}
.review__foot { display: flex; align-items: center; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1rem; flex: none;
}
.review__name { font-weight: 700; font-size: .95rem; color: var(--navy); line-height: 1.3; }
.review__src { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.review__foot > span:last-child { display: block; }
.review__src svg { width: 12px; height: 12px; }

.slider__nav { display: flex; justify-content: center; gap: .6rem; margin-top: .4rem; }
.slider__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.slider__btn:hover { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-3px); }
.slider__btn svg { width: 18px; height: 18px; }

/* Facebook review screenshots strip */
.shots { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin-top: 2.2rem; }
.shot {
  border: 0; padding: 0; cursor: pointer; border-radius: var(--r-sm); overflow: hidden;
  background: #111; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 9;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow); }

/* Map */
.map__wrap {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--bg-alt); margin-top: 1.2rem;
}
.map__wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(1.05); }

.map__grid { display: grid; gap: 1.5rem; align-items: start; }
.info-list { display: grid; gap: .9rem; }
.info-item { display: flex; gap: .9rem; align-items: flex-start; }
.info-item__ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); flex: none;
}
.info-item__ic svg { width: 20px; height: 20px; }
.info-item strong { display: block; font-size: .95rem; color: var(--navy); }
.info-item span, .info-item a { font-size: .9rem; color: var(--muted); }
.info-item a:hover { color: var(--brand); }

/* ============================ 13. BLOG ================================== */
.blog__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__thumb img { transform: scale(1.07); }
.post__cat {
  position: absolute; inset-inline-start: .8rem; top: .8rem;
  background: var(--glass); backdrop-filter: blur(8px); color: var(--navy);
  font-size: .74rem; font-weight: 700; padding: .3rem .8rem; border-radius: var(--r-pill);
}
.post__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .78rem; color: var(--muted); margin-bottom: .7rem; }
.post__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post__meta svg { width: 14px; height: 14px; }
.post h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.post p { color: var(--muted); font-size: .92rem; flex: 1; }
.post__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; margin-top: .6rem; }
.post__link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.post:hover .post__link svg { transform: translateX(-5px); }

/* ====================== 14. CTA BAND + TOOLS ============================ */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-navy); border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.4rem); text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset-inline-end: -10%; top: -60%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(98,180,228,.4), transparent 65%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 60ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.6rem; }

.tools__grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.tool {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tool:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tool__ic {
  width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff;
}
.tool__ic svg { width: 26px; height: 26px; }
.tool h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.tool p { font-size: .92rem; color: var(--muted); margin-bottom: .8rem; }

/* ====================== 15. FOOTER + FLOATING WHATSAPP ================== */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .92rem; }
.footer__grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer h4::after {
  content: ""; position: absolute; inset-inline-end: 0; bottom: 0;
  width: 42px; height: 3px; background: var(--grad-brand); border-radius: 2px;
}
.footer__logo { height: 68px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .95; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: var(--brand-light); }
.footer__links { display: grid; gap: .55rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer__links a::before { content: "‹"; color: var(--brand-light); font-weight: 700; }

.footer__hours { display: grid; gap: .5rem; }
.footer__hours li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed rgba(255,255,255,.14); }
.footer__hours .closed { color: #FF9E9E; }

.footer__social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  transition: transform .25s var(--ease), background .25s;
}
.footer__social a:hover { transform: translateY(-4px); color: #fff; }
.footer__social a.fb:hover { background: #1877F2; }
.footer__social a.ig:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.footer__social a.yt:hover { background: #FF0000; }
.footer__social a.wa:hover { background: #25D366; }
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.55); text-align: center;
}

.fab {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90;
  display: flex; flex-direction: column-reverse; gap: .7rem; align-items: center;
}
.fab__wa {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,.45);
  transition: transform .3s var(--ease);
}
.fab__wa:hover { transform: scale(1.1); color: #fff; }
.fab__wa svg { width: 30px; height: 30px; }
.fab__wa::before {
  content: ""; position: absolute; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; opacity: .55; animation: ping 2.2s var(--ease) infinite; z-index: -1;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.fab__top {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s var(--ease);
}
.fab__top.is-visible { opacity: 1; visibility: visible; }
.fab__top:hover { transform: translateY(-4px); }
.fab__top svg { width: 18px; height: 18px; }

/* ====================== 16. ANIMATIONS & UTILITIES ====================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

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

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

/* ============================ 17. RESPONSIVE ============================ */
@media (min-width: 576px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .blog__grid     { grid-template-columns: repeat(2, 1fr); }
  .shots          { grid-template-columns: repeat(3, 1fr); }
  .stats__grid    { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .reels__grid  { grid-template-columns: repeat(4, 1fr); }
  /* Fixed row height keeps the 2×2 feature card flush with the stacked
     small cards beside it — no dead space in the grid. */
  .media__grid  { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 235px; }
  .media-card   { aspect-ratio: auto; height: 100%; }
  /* aspect-ratio must be reset here too: the mobile :nth-child rules are more
     specific than the bare .media-card override above, so without this the
     feature card sizes itself 16/9 off its 2-row height and overflows the grid. */
  .media-card:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .media-card:nth-child(6) { grid-column: span 1; aspect-ratio: auto; }
  .tools__grid  { grid-template-columns: repeat(2, 1fr); }
  .map__grid    { grid-template-columns: 1fr 1.35fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .hero__grid   { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .about__grid  { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .blog__grid   { grid-template-columns: repeat(3, 1fr); }
  .shots        { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .fab { inset-inline-end: 28px; bottom: 28px; }
}

/* Horizontal nav only once the full link row + logo + CTA actually fit.
   Ten links at Arabic text widths need ~1090px, so 1200 is the safe floor. */
@media (min-width: 1200px) {
  .nav__links  { display: flex; }
  .nav__toggle { display: none; }
}

@media (min-width: 1280px) {
  .nav__links a { padding: .55rem .75rem; }
  .nav__links a::after { inset-inline: .75rem; }
}

@media (min-width: 1400px) {
  :root { --container: 1320px; }
  .brand__text { display: block; }
}

/* ==========================================================================
   18. INNER PAGES
   --------------------------------------------------------------------------
   Everything below is used only by services.html / blog.html / contact.html
   and the article pages. The homepage does not reference any of it.
   18a. Page hero + breadcrumb
   18b. Service detail blocks
   18c. FAQ accordion
   18d. Article layout + prose
   18e. Forms
   18f. Blog listing extras
   ========================================================================== */

/* ------------------------- 18a. PAGE HERO ------------------------------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-navy); color: #fff;
  padding: clamp(2.2rem, 6vw, 3.6rem) 0 clamp(2.4rem, 6vw, 3.8rem);
}
.page-hero::before {
  content: ""; position: absolute; inset-inline-start: -10%; top: -60%;
  width: 60vw; height: 60vw; max-width: 640px; max-height: 640px; z-index: -1;
  background: radial-gradient(circle, rgba(98,180,228,.38) 0%, transparent 68%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
}
.page-hero h1 { color: #fff; margin-bottom: .4rem; font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
.page-hero p  { color: rgba(255,255,255,.85); max-width: 62ch; margin-bottom: 0; }
.page-hero .eyebrow { background: rgba(255,255,255,.14); color: #DFF1FC; }
.page-hero .eyebrow::before { background: var(--brand-light); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  font-size: .82rem; color: rgba(255,255,255,.66); margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.82); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li { display: flex; align-items: center; gap: .45rem; }
.breadcrumb li + li::before { content: "‹"; color: rgba(255,255,255,.45); }
.breadcrumb [aria-current] { color: #fff; font-weight: 700; }

/* --------------------- 18b. SERVICE DETAIL BLOCKS ----------------------- */
.svc-block {
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
  border-bottom: 1px solid var(--line);
}
.svc-block:last-child { border-bottom: 0; }
.svc-block__media { position: relative; }
.svc-block__media img {
  width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.svc-block__media::before {
  content: ""; position: absolute; inset-inline-end: -12px; top: -12px;
  width: 48%; height: 48%; border-radius: var(--r-lg); z-index: -1;
  background: var(--grad-brand); opacity: .14;
}
.svc-block__ic {
  position: absolute; inset-inline-start: 1rem; bottom: -1.2rem;
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.svc-block__ic img { width: 38px; height: 38px; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.svc-block h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin-bottom: .6rem; }
.svc-block > div > p { color: var(--muted); }

.feature-list { display: grid; gap: .7rem; margin: 1.2rem 0 1.5rem; }
.feature-list li {
  display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem;
}
.feature-list li svg { width: 20px; height: 20px; flex: none; margin-top: .35rem; color: var(--teal); }
.feature-list strong { color: var(--navy); }

.callout {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--teal-soft); border-inline-start: 4px solid var(--teal);
  border-radius: var(--r-sm); padding: 1rem 1.1rem; font-size: .93rem; margin-bottom: 1.4rem;
}
.callout svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: .2rem; }
.callout--warn { background: #FFF4E5; border-inline-start-color: #E08600; }
.callout--warn svg { color: #E08600; }
.callout p:last-child { margin-bottom: 0; }

/* Compact service index (chips linking to each block) */
.svc-index { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.svc-index a {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .55rem 1.1rem; font-size: .88rem; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.svc-index a:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }
.svc-index a img { width: 20px; height: 20px; }

/* --------------------------- 18c. FAQ ----------------------------------- */
.faq { display: grid; gap: .75rem; max-width: 820px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: var(--brand-light); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; cursor: pointer; font-weight: 700; color: var(--navy);
  list-style: none; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after {
  content: "−"; background: var(--grad-brand); color: #fff; transform: rotate(180deg);
}
.faq summary:hover { color: var(--brand); }
.faq__body { padding: 0 1.25rem 1.25rem; color: var(--muted); font-size: .95rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* ------------------- 18d. ARTICLE LAYOUT + PROSE ------------------------ */
.article__grid { display: grid; gap: 2.5rem; align-items: start; }

.article__cover {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 1.8rem; aspect-ratio: 16 / 9;
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r);
  padding: .9rem 1.1rem; margin-bottom: 1.8rem; font-size: .88rem;
}
.byline__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.byline strong { display: block; color: var(--navy); font-size: .95rem; }
.byline span { color: var(--muted); }

.prose { font-size: 1.03rem; line-height: 2; }
.prose > p:first-of-type { font-size: 1.12rem; color: var(--navy); font-weight: 400; }
.prose h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin-top: 2.2rem; margin-bottom: .7rem;
  padding-inline-start: .9rem; position: relative;
}
.prose h2::before {
  content: ""; position: absolute; inset-inline-end: 0; top: .35em; bottom: .25em;
  width: 4px; border-radius: 3px; background: var(--grad-brand);
}
.prose h3 { margin-top: 1.6rem; font-size: 1.1rem; }
.prose ul { display: grid; gap: .6rem; margin: 1rem 0 1.4rem; }
.prose ul li { display: flex; gap: .7rem; align-items: flex-start; }
.prose ul li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: .72em;
  background: var(--grad-brand);
}
.prose strong { color: var(--navy); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Sticky article sidebar */
.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.aside-card h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.aside-card--cta { background: var(--grad-navy); border-color: transparent; color: #fff; }
.aside-card--cta h3 { color: #fff; }
.aside-card--cta p { color: rgba(255,255,255,.85); font-size: .9rem; }

.toc { display: grid; gap: .1rem; }
.toc a {
  display: block; padding: .5rem .7rem; border-radius: var(--r-sm);
  font-size: .9rem; color: var(--text); border-inline-end: 2px solid transparent;
}
.toc a:hover { background: var(--brand-soft); color: var(--brand); border-inline-end-color: var(--brand); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line); }
.share span { font-size: .88rem; font-weight: 700; color: var(--navy); }
.share a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--navy); border: 1px solid var(--line);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.share a:hover { transform: translateY(-3px); color: #fff; background: var(--brand); border-color: transparent; }
.share svg { width: 16px; height: 16px; }

.medical-note {
  margin-top: 2rem; padding: 1rem 1.2rem; border-radius: var(--r-sm);
  background: var(--bg-alt); border: 1px dashed var(--line);
  font-size: .86rem; color: var(--muted);
}

/* --------------------------- 18e. FORMS --------------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 700; color: var(--navy); }
.field label .req { color: #D14343; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: .98rem; color: var(--text);
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-alt); width: 100%;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(46,144,206,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #9AAAB7; }
.field__hint { font-size: .78rem; color: var(--muted); }
.field__error { font-size: .8rem; color: #D14343; display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #D14343; background: #FEF4F4; }
.field.is-invalid .field__error { display: block; }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { width: 20px; height: 20px; flex: none; margin-top: .15rem; accent-color: var(--brand); }
.check a { text-decoration: underline; }

.form-note {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .84rem; color: var(--muted); margin-top: .4rem;
}
.form-note svg { width: 17px; height: 17px; color: var(--teal); flex: none; margin-top: .2rem; }

/* Contact method cards */
.contact-cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.contact-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-light); }
.contact-card__ic {
  width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.contact-card__ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-card p { font-size: .88rem; color: var(--muted); margin-bottom: .5rem; }
.contact-card a.link { font-weight: 700; font-size: .92rem; }

/* --------------------- 18f. BLOG LISTING EXTRAS ------------------------- */
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter-row button {
  font-family: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .55rem 1.2rem; color: var(--navy);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.filter-row button:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.filter-row button.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }

.post--featured { grid-column: 1 / -1; }
.post--featured .post__body { padding: clamp(1.4rem, 3vw, 2rem); }
.post--featured h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); grid-column: 1 / -1; }

/* --------------------- 18g. INNER-PAGE RESPONSIVE ----------------------- */
@media (min-width: 768px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 .field--full { grid-column: 1 / -1; }
}

@media (min-width: 992px) {
  .svc-block { grid-template-columns: .9fr 1.1fr; gap: 3rem; }
  .svc-block:nth-child(even) .svc-block__media { order: 2; }
  .article__grid { grid-template-columns: 1fr 320px; gap: 3rem; }
  .article__aside { position: sticky; top: calc(var(--header-h) + 20px); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .post--featured { display: grid; grid-template-columns: 1.15fr 1fr; }
  /* The thumb must take its height from the text column, not from the image's
     intrinsic size — otherwise a portrait photo stretches the card to ~1200px. */
  .post--featured .post__thumb { aspect-ratio: auto; min-height: 320px; }
  .post--featured .post__thumb img { position: absolute; inset: 0; }
}

/* ==========================================================================
   19. LASIK FEATURE SECTION (homepage)
   Numbered accordion of treatment tracks beside a tall visual.
   ========================================================================== */
.lasik { background: var(--bg-alt); overflow: hidden; }
.lasik__grid { display: grid; gap: 2.5rem; align-items: center; }

.lasik__media { position: relative; }
.lasik__media img {
  width: 100%; border-radius: var(--r-lg); display: block;
  box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; object-fit: cover;
}
.lasik__media::before {
  content: ""; position: absolute; inset-inline-end: -18px; top: -18px;
  width: 55%; height: 55%; border-radius: var(--r-lg); z-index: 0;
  background: var(--grad-brand); opacity: .12;
}
.lasik__stat {
  position: absolute; inset-inline-start: -10px; bottom: -16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: .9rem 1.2rem; box-shadow: var(--shadow-lg); text-align: center;
}
.lasik__stat strong { display: block; font-size: 1.7rem; line-height: 1; color: var(--brand); }
.lasik__stat span { font-size: .76rem; color: var(--muted); }

.lasik__head h2 { margin-bottom: .6rem; }
.lasik__head > p { color: var(--muted); margin-bottom: 1.6rem; }

/* --- numbered accordion --- */
.lasik__list { display: grid; }
.lasik-item {
  border-top: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.lasik-item:last-child { border-bottom: 1px solid var(--line); }
.lasik-item[open] { background: #fff; }

.lasik-item summary {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1rem;
  padding: 1.1rem .4rem; cursor: pointer; list-style: none;
}
.lasik-item summary::-webkit-details-marker { display: none; }

.lasik-item__toggle {
  order: 3; width: 38px; height: 38px; flex: none;
  border: 1px solid var(--line); border-radius: 8px;
  display: grid; place-items: center; color: var(--gold);
  font-size: 1.3rem; line-height: 1; background: #fff;
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
}
.lasik-item summary:hover .lasik-item__toggle { border-color: var(--gold); }
.lasik-item[open] .lasik-item__toggle {
  background: var(--gold); color: #fff; border-color: var(--gold); transform: rotate(45deg);
}

.lasik-item__text { order: 2; min-width: 0; }
.lasik-item__ar {
  display: block; font-weight: 800; color: var(--navy); font-size: 1.02rem; line-height: 1.5;
  transition: color .3s var(--ease);
}
.lasik-item[open] .lasik-item__ar,
.lasik-item summary:hover .lasik-item__ar { color: var(--gold); }
.lasik-item__en {
  display: block; font-size: .78rem; color: var(--muted); letter-spacing: .01em;
  direction: ltr; text-align: start;
}

.lasik-item__num {
  order: 1; font-size: .82rem; font-weight: 800; color: var(--gold);
  opacity: .75; font-variant-numeric: tabular-nums;
}

.lasik-item__body {
  padding: 0 .4rem 1.3rem; color: var(--muted); font-size: .94rem;
  animation: lasikOpen .35s var(--ease);
}
.lasik-item__body p:last-child { margin-bottom: 0; }
.lasik-item__body ul { display: grid; gap: .45rem; margin: .8rem 0 0; }
.lasik-item__body li { display: flex; gap: .6rem; align-items: flex-start; }
.lasik-item__body li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  margin-top: .65em; background: var(--gold);
}
@keyframes lasikOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.lasik__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

@media (min-width: 992px) {
  /* RTL: column 1 is the right-hand one. Text sits right, visual sits left,
     matching the reference layout. */
  .lasik__grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; }
  .lasik__head  { order: 1; }
  .lasik__media { order: 2; }
  .lasik-item summary { padding: 1.25rem .5rem; }
}

/* Media grid variant: a simple equal row (used when the section holds only
   a few items and the 2×2 feature card would leave holes). */
.media__grid--row { grid-auto-rows: auto; }
.media__grid--row .media-card { aspect-ratio: 16 / 10; height: auto; }
.media__grid--row .media-card:nth-child(1),
.media__grid--row .media-card:nth-child(6) { grid-column: auto; grid-row: auto; }

/* Small star row inside a review card */
.stars--sm { margin-bottom: .8rem; }
.stars--sm svg { width: 15px; height: 15px; }

/* ==========================================================================
   20. REVIEW TOPIC CHIPS
   Aggregate keyword counts published on the clinic's Google listing.
   ========================================================================== */
.topics { text-align: center; margin-bottom: 1.8rem; }
.topics__label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.topics__row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.topic-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .45rem 1rem; font-size: .88rem; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.topic-chip b {
  background: var(--brand-soft); color: var(--brand);
  border-radius: var(--r-pill); padding: .1rem .5rem; font-size: .78rem;
}
