/* =====================================================================
   Excellent Dental Clinic & Orthodontic Centre — main stylesheet
   ---------------------------------------------------------------------
   1. Design tokens (colours, fonts, spacing)  ← change the look here
   2. Base & layout
   3. Header / navigation
   4. Buttons, chips, badges
   5. Hero slider
   6. Sections (alternating colours + waves)
   7. Cards: services, doctors, highlights, stats
   8. Orthodontic tabs
   9. Modal (service details)
  10. Forms, contact, map
  11. Footer, floating WhatsApp
  12. Animations & reduced motion
  13. Responsive
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy: #0A2647;
  --navy-2: #133A66;
  --blue: #0F6CBD;
  --blue-600: #0B5AA2;
  --sky: #2BB3E8;
  --aqua: #14B8A6;
  --ink: #0F1E33;
  --muted: #5A6B81;
  --line: #DCE7F2;
  --white: #FFFFFF;
  --tint: #EAF4FB;          /* second alternating section colour */
  --tint-deep: #D6EAF8;
  --wa: #25D366;
  --wa-dark: #128C7E;
  --star: #F5B301;

  --grad-blue: linear-gradient(135deg, #0F6CBD 0%, #2BB3E8 100%);
  --grad-navy: linear-gradient(135deg, #0A2647 0%, #0F4C8A 100%);
  --grad-brand: linear-gradient(110deg, #F7941D 0%, #E8336D 40%, #9B3FD1 70%, #1FB6C9 100%); /* from the logo, used as a thin accent only */

  --font-en: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(10, 38, 71, .06);
  --shadow: 0 14px 40px -12px rgba(10, 38, 71, .18);
  --shadow-lg: 0 30px 70px -20px rgba(10, 38, 71, .30);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --sec-pad: clamp(64px, 9vw, 116px);   /* one shared vertical spacing for every section */
  --header-h: 78px;
  --ease: cubic-bezier(.22, .8, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Base & layout ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 17.5px; line-height: 1.8; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.fill { fill: currentColor; stroke: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- 3. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid rgba(220, 231, 242, .7);
  transition: transform .45s var(--ease), box-shadow .3s, height .3s, background .3s;
}
.site-header.is-scrolled { --header-h: 66px; height: 66px; box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .18); background: rgba(255, 255, 255, .94); }
.site-header.is-hidden { transform: translateY(-105%); }
.site-header .container { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); min-width: 0; }
.brand:hover { color: var(--navy); }
.brand img { width: 46px; height: 44px; object-fit: contain; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
html[lang="ar"] .brand-text span { font-size: .8rem; letter-spacing: 0; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .95rem; transition: color .2s, background .2s;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--grad-blue); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .35s var(--ease);
}
[dir="rtl"] .main-nav a::after { --origin: right; }
.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: .9rem; background: #fff;
  transition: border-color .2s, transform .2s;
}
.lang-switch:hover { border-color: var(--sky); color: var(--blue); transform: translateY(-1px); }
.lang-switch[lang="ar"] { font-family: var(--font-ar); font-size: 1rem; }
.lang-switch[lang="en"] { font-family: var(--font-en); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; inset-inline-start: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 4. Buttons, chips ---------- */
.btn {
  --bg: var(--grad-blue);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0; overflow: hidden; isolation: isolate;
  background: var(--bg); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  box-shadow: 0 12px 28px -12px rgba(15, 108, 189, .7);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn::before { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(15, 108, 189, .8); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 1.2em; height: 1.2em; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-wa { --bg: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 12px 28px -12px rgba(18, 140, 126, .75); }
.btn-ghost { --bg: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { color: var(--blue); box-shadow: inset 0 0 0 2px var(--sky); }
.btn-light { --bg: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-light:hover { --bg: rgba(255,255,255,.24); }
.btn-white { --bg: #fff; color: var(--navy); box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.btn-white:hover { color: var(--blue); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-brand); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--tint); color: var(--navy-2); font-size: .82rem; font-weight: 700; line-height: 1.3;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; line-height: 1.2; color: #fff; background: var(--blue);
}
.badge-female { background: linear-gradient(135deg, #E8336D, #9B3FD1); }
.badge-soon { background: linear-gradient(135deg, #F7941D, #E8336D); }
.badge-founder { background: var(--grad-navy); }

/* ---------- 5. Hero slider ---------- */
.hero {
  position: relative; height: min(100svh, 860px); min-height: 600px;
  background: var(--tint); color: var(--navy); overflow: hidden; isolation: isolate;
}
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; z-index: 1; }
.slide-media { position: absolute; inset: 0; overflow: hidden; }
.slide-media img, .slide-media video {
  width: 100%; height: 100%; object-fit: cover;   /* fixed frame, smart crop — never stretched */
  transform: scale(1.14); transition: transform 9s linear;
}
.slide.is-active .slide-media img, .slide.is-active .slide-media video { transform: scale(1.0); }  /* Ken Burns */
/* No overlay on the photo: the text sits inside a small frosted-glass card */
.slide-card {
  max-width: 600px; padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 24px 60px -30px rgba(10, 38, 71, .35);
}
.slide-card > :last-child { margin-bottom: 0; }
.slide h1, .slide h2 { font-size: clamp(2rem, 4.4vw, 3.5rem) !important; }
.slide-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h); padding-bottom: 120px;
}
.slide-content > * { max-width: 640px; }
.slide .eyebrow { color: var(--blue); }
.slide h1, .slide h2 { color: var(--navy); font-size: clamp(2.2rem, 5.2vw, 4.1rem); margin-bottom: 18px; text-wrap: balance; }
.slide p { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #3E5068; max-width: 540px; margin-bottom: 30px; }
.hero .btn-light, .page-hero .btn-light { --bg: rgba(255,255,255,.85); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.hero .btn-light:hover { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--sky); }
.slide-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* staggered text entrance on the active slide */
.slide [data-anim] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.slide.is-active [data-anim] { opacity: 1; transform: none; }
.slide.is-active [data-anim="1"] { transition-delay: .35s; }
.slide.is-active [data-anim="2"] { transition-delay: .5s; }
.slide.is-active [data-anim="3"] { transition-delay: .65s; }
.slide.is-active [data-anim="4"] { transition-delay: .8s; }

.hero-controls {
  position: absolute; z-index: 5; inset-inline: 0; bottom: 34px;
}
.hero-controls .container { display: flex; align-items: center; gap: 18px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot {
  position: relative; width: 46px; height: 5px; padding: 0; border: 0; border-radius: 5px;
  background: rgba(255,255,255,.75); box-shadow: 0 1px 4px rgba(10,38,71,.25); overflow: hidden;
}
.hero-dot::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero-dot::after { transform-origin: right; }
.hero-dot.is-active::after { animation: dotProgress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
@keyframes dotProgress { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 10px; margin-inline-start: auto; }
.hero-arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.75); color: var(--navy); display: grid; place-items: center;
  backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); transition: background .25s, transform .25s, color .25s;
}
.hero-arrow:hover { background: var(--blue); color: #fff; transform: scale(1.06); }
.hero-count { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy-2); font-size: .95rem; }

/* floating glass badges over the hero */
.hero-badges {
  position: absolute; z-index: 4; inset-inline-end: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  bottom: 120px; display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
[dir="rtl"] .hero-badges { align-items: flex-start; }
.glass {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--navy); box-shadow: 0 18px 40px -22px rgba(10,38,71,.35);
  animation: bob 6s ease-in-out infinite;
}
[dir="rtl"] .glass { padding: 12px 12px 12px 18px; }
.glass:nth-child(2) { animation-delay: -2s; margin-inline-end: 34px; }
.glass:nth-child(3) { animation-delay: -4s; }
.glass-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.glass-icon.pink { color: #E8336D; } .glass-icon.star { color: var(--star); }
.glass strong { display: block; font-size: .98rem; line-height: 1.2; }
.glass small { display: block; font-size: .78rem; opacity: .85; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--navy);
  background: var(--tint);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 100px)) 0 clamp(80px, 10vw, 130px);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: slowZoom 18s ease-in-out infinite alternate; }
@keyframes slowZoom { to { transform: scale(1.0) translate3d(0, -1.5%, 0); } }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 40%, rgba(234,244,251,.45) 75%, rgba(234,244,251,.1) 100%);
}
[dir="rtl"] .page-hero::before { background: linear-gradient(260deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 40%, rgba(234,244,251,.45) 75%, rgba(234,244,251,.1) 100%); }
.page-hero h1 { color: var(--navy); max-width: 760px; text-wrap: balance; }
.page-hero p { color: #3E5068; font-size: 1.15rem; max-width: 600px; margin: 0; }
.page-hero .eyebrow { color: var(--blue); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb .ico { width: 14px; height: 14px; }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; pointer-events: none; }
.page-hero .blob { opacity: .22; }
.blob-1 { width: 380px; height: 380px; background: #2BB3E8; inset-inline-end: -80px; top: -60px; }
.blob-2 { width: 300px; height: 300px; background: #0F6CBD; inset-inline-end: 22%; bottom: -140px; animation-delay: -6s; }
.blob-3 { width: 160px; height: 160px; background: #E8336D; inset-inline-end: 8%; bottom: 20%; opacity: .25; animation-delay: -10s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.1); } 100% { transform: translate(30px, -20px) scale(.95); } }

/* ---------- 6. Sections: two alternating colours + animated waves ---------- */
.sec { position: relative; padding-block: var(--sec-pad); background: var(--white); }
main > section.sec:nth-of-type(even) { background: var(--tint); }   /* automatic: white / light blue / white / ... */
.wave { position: absolute; inset-inline: 0; height: 46px; overflow: hidden; pointer-events: none; z-index: 1; line-height: 0; }
.wave svg { width: 200%; height: 100%; fill: var(--tint); animation: waveMove 22s linear infinite; }
.wave-top { top: -45px; }
.wave-bottom { bottom: -45px; transform: rotate(180deg); }
.wave-bottom svg { animation-direction: reverse; animation-duration: 28s; }
main > section.sec:nth-of-type(odd) > .wave { display: none; }   /* waves only on the tinted sections */
@keyframes waveMove { to { transform: translateX(-50%); } }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head-row .sec-head { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* services ribbon (marquee) */
.ribbon { position: relative; overflow: hidden; padding-block: 18px; background: var(--grad-navy); color: #fff; z-index: 2; }
.ribbon-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
[dir="rtl"] .ribbon-track { animation-name: marqueeRtl; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-item { display: inline-flex; align-items: center; gap: 14px; padding-inline: 22px; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.ribbon-item .ico { color: var(--sky); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* ---------- 7. Cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }   /* more services → new rows automatically */
.grid-doctors { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; height: 100%;   /* equal height in each row */
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  transform-style: preserve-3d;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card::before { /* gradient border on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 3; pointer-events: none;
  background: var(--grad-blue);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.card:hover::before { opacity: 1; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint) url("/img/placeholder.svg") center / 64px no-repeat; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.08); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,38,71,.35), transparent 50%); opacity: .7; }
.card-media .badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; }
.card-icon {
  position: absolute; z-index: 2; inset-inline-end: 18px; bottom: -24px;
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; color: var(--blue); box-shadow: 0 10px 24px -10px rgba(10,38,71,.45);
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.card-icon .ico { width: 26px; height: 26px; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--blue); color: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 30px 22px 22px; }
.card-title {
  font-size: 1.15rem; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;   /* max 2 lines */
  min-height: calc(2 * 1.3em); line-height: 1.3;
}
html[lang="ar"] .card-title { line-height: 1.45; min-height: calc(2 * 1.45em); }
.card-text {
  color: var(--muted); font-size: .95rem; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {   /* always pinned to the bottom of the card */
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price-tag { font-size: .86rem; font-weight: 800; color: var(--navy-2); }
.price-tag.enquire { color: var(--muted); font-weight: 700; }
.card-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  border: 0; background: var(--tint); color: var(--blue); font-weight: 700; font-size: .88rem; white-space: nowrap;
  transition: background .25s, color .25s;
}
.card-btn::after { content: ""; position: absolute; inset: 0; z-index: 4; }   /* whole card is clickable */
.card:hover .card-btn { background: var(--blue); color: #fff; }

/* doctor cards */
.doc-card .doc-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;   /* same frame for square or portrait photos */
  background: radial-gradient(120% 90% at 50% 100%, #CFE7F8 0%, #EAF4FB 55%, #F7FBFE 100%);
}
.doc-card .doc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); mix-blend-mode: multiply; }
.doc-card:hover .doc-photo img { transform: scale(1.05); }
.doc-photo .badges { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.doc-card .card-body { padding: 24px 24px 26px; }
.doc-role { color: var(--blue); font-weight: 700; margin: -2px 0 10px; }
.doc-exp { margin-bottom: 14px; }
.doc-bio { color: var(--muted); font-size: .96rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: var(--lines, 4); -webkit-box-orient: vertical; overflow: hidden; }
.clamp.is-open { -webkit-line-clamp: unset; display: block; }
.read-more { align-self: flex-start; border: 0; background: none; padding: 4px 0; color: var(--blue); font-weight: 700; display: none; }
.read-more.is-visible { display: inline-flex; }
.doc-focus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.doc-meta { margin-top: auto; padding-top: 16px; font-size: .88rem; color: var(--muted); }
.doc-meta strong { color: var(--navy-2); }
.doc-list { margin-top: 12px; display: grid; gap: 6px; font-size: .92rem; }
.doc-list li { display: flex; gap: 8px; align-items: flex-start; }
.doc-list .ico { color: var(--aqua); margin-top: 3px; }

/* highlights */
.hl-card { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; transition: transform .45s var(--ease), box-shadow .45s; position: relative; overflow: hidden; }
.hl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.hl-card::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--tint); transition: transform .6s var(--ease); z-index: 0; }
.hl-card:hover::after { transform: scale(1.6); }
.hl-card > * { position: relative; z-index: 1; }
.hl-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-blue); color: #fff; margin-bottom: 18px; box-shadow: 0 14px 26px -12px rgba(15,108,189,.7); }
.hl-icon .ico { width: 28px; height: 28px; }
.hl-icon.pink { background: linear-gradient(135deg, #E8336D, #9B3FD1); box-shadow: 0 14px 26px -12px rgba(232,51,109,.6); }
.hl-icon.green { background: linear-gradient(135deg, #14B8A6, #0F6CBD); }
.hl-card h3 { font-size: 1.12rem; }
.hl-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat {
  padding: 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease);
}
.stat:hover { transform: translateY(-4px); }
.stat-num { font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; font-family: var(--font-en); }
.stat-num .suf { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* image collage (about) */
.collage { position: relative; aspect-ratio: 1 / 1; }
.collage-main, .collage-small { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.collage-main { inset: 0 18% 14% 0; }
.collage-small { inset: 50% 0 0 42%; border: 6px solid #fff; }
[dir="rtl"] .collage-main { inset: 0 0 14% 18%; }
[dir="rtl"] .collage-small { inset: 50% 42% 0 0; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-tag {
  position: absolute; z-index: 2; top: 8%; inset-inline-end: 4%;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite;
}
.collage-tag .big { font-size: 1.9rem; font-weight: 800; color: var(--blue); line-height: 1; font-family: var(--font-en); }
.collage-tag small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; max-width: 110px; }
.check-list { display: grid; gap: 12px; margin: 22px 0 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.check-list .tick .ico { width: 15px; height: 15px; stroke-width: 2.6; }

/* rating + CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px);
  background: var(--grad-navy); color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta-band .blob { opacity: .45; }
.cta-band .tooth-deco { position: absolute; inset-inline-end: -30px; bottom: -40px; width: 220px; height: 220px; opacity: .08; color: #fff; z-index: -1; animation: spinSlow 40s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.rating-card {
  display: inline-flex; align-items: center; gap: 18px; padding: 18px 24px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.rating-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.rating-num { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; font-family: var(--font-en); }
.stars { display: flex; gap: 2px; color: var(--star); }
.stars .ico { width: 18px; height: 18px; }
.rating-card small { color: var(--muted); }
.g-logo { width: 34px; height: 34px; }
.rating-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; margin-bottom: 40px; }

/* ---------- 8. Orthodontic tabs ---------- */
.ortho { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.ortho-tabs { display: flex; flex-direction: column; gap: 10px; }
.ortho-tab {
  display: flex; align-items: center; gap: 14px; text-align: start;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-weight: 700; transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.ortho-tab .num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-size: .9rem; font-family: var(--font-en); transition: background .3s, color .3s; }
.ortho-tab:hover { transform: translateX(4px); }
[dir="rtl"] .ortho-tab:hover { transform: translateX(-4px); }
.ortho-tab[aria-selected="true"] { background: var(--grad-blue); color: #fff; border-color: transparent; box-shadow: 0 16px 30px -16px rgba(15,108,189,.8); }
.ortho-tab[aria-selected="true"] .num { background: rgba(255,255,255,.22); color: #fff; }
.ortho-panels { position: relative; min-height: 100%; }
.ortho-panel {
  display: grid; grid-template-columns: 1fr 1fr; height: 100%;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ortho-panel[hidden] { display: none; }
.ortho-panel.is-entering { animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: none; } }
.ortho-media { position: relative; min-height: 320px; overflow: hidden; background: var(--tint); }
.ortho-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ortho-panel.is-entering .ortho-media img { animation: imgIn 1.2s var(--ease-out); }
@keyframes imgIn { from { transform: scale(1.12); } to { transform: scale(1); } }
.ortho-body { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; }
.ortho-body h3 { font-size: 1.5rem; }
.ortho-body p { color: var(--muted); }
.pros { display: grid; gap: 10px; margin: 6px 0 22px; }
.pros li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .96rem; }
.pros .ico { color: var(--aqua); margin-top: 4px; stroke-width: 2.6; width: 18px; height: 18px; }
.ortho-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line); }

/* ---------- 9. Modal ---------- */
dialog.modal {
  width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(10, 38, 71, .55);
  opacity: 0; transform: translateY(26px) scale(.97);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
dialog.modal.is-open { opacity: 1; transform: none; }
dialog.modal::backdrop { background: rgba(10, 38, 71, .0); backdrop-filter: blur(0px); transition: background .35s, backdrop-filter .35s; }
dialog.modal.is-open::backdrop { background: rgba(10, 38, 71, .6); backdrop-filter: blur(6px); }
.modal-scroll { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.modal-hero { position: relative; aspect-ratio: 21 / 8; overflow: hidden; background: var(--tint); }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,38,71,.85), rgba(10,38,71,.1) 70%); }
.modal-hero .modal-title { position: absolute; z-index: 2; inset-inline: 28px; bottom: 22px; color: #fff; }
.modal-hero .modal-title h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 0; }
.modal-close {
  position: absolute; z-index: 5; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease);
}
.modal-close:hover { transform: rotate(90deg); }
.modal-body { padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 3vw, 36px); }
.modal-body p { color: var(--muted); }
.modal-body h3 { font-size: 1.05rem; }
.price-box { padding: 22px; border-radius: var(--radius); background: var(--tint); align-self: start; position: sticky; top: 0; }
.price-box .label { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
html[lang="ar"] .price-box .label { letter-spacing: 0; }
.price-box .value { font-size: 1.45rem; font-weight: 800; color: var(--navy); margin: 4px 0 8px; }
.price-box small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.5; margin-bottom: 16px; }
.price-box .btn { width: 100%; }
.variants { grid-column: 1 / -1; }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.variant { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.variant img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.variant div { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.variant h4 { font-size: .98rem; margin-bottom: 6px; }
.variant p { font-size: .86rem; margin-bottom: 10px; }
.variant .price-tag { margin-top: auto; }
body.modal-lock { overflow: hidden; }

/* ---------- 10. Forms, contact, map ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.info-list { display: grid; gap: 14px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s;
}
a.info-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.info-icon { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.info-icon.wa { background: #E3F9EC; color: var(--wa-dark); }
.info-item h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; font-weight: 800; }
html[lang="ar"] .info-item h3 { letter-spacing: 0; font-size: .95rem; }
.info-item p, .info-item span { margin: 0; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.info-item .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--navy); transition: transform .3s var(--ease), background .3s, color .3s; }
.social-btn:hover { transform: translateY(-3px); background: var(--blue); color: #fff; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-brand); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .92rem; color: var(--navy); }
.field label .req { color: #E8336D; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 13px; border: 1.5px solid var(--line); background: #FAFCFE;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(43,179,232,.18); }
.field.has-error input, .field.has-error select { border-color: #E8336D; }
.field .error { color: #C81E55; font-size: .84rem; font-weight: 600; min-height: 0; }
.field input[type="tel"] { direction: ltr; text-align: start; }
html[lang="ar"] .field input[type="tel"] { text-align: right; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .92rem; color: var(--navy-2); cursor: pointer; transition: all .2s; background: #FAFCFE; }
.segmented input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.form-foot { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.form-foot .btn { width: 100%; padding-block: 16px; font-size: 1.05rem; }
.form-note { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.form-status { font-weight: 700; color: var(--wa-dark); min-height: 1.4em; margin: 0; }
.map-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.map-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; background: var(--tint-deep); border: 6px solid #fff; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-pin { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--grad-blue); color: #fff; margin-bottom: 18px; position: relative; }
.map-pin::before, .map-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sky); animation: ping 2.4s var(--ease) infinite; }
.map-pin::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }

/* ---------- 11. Footer & floating WhatsApp ---------- */
.site-footer { position: relative; background: var(--navy); color: rgba(255,255,255,.78); padding: clamp(70px, 8vw, 100px) 0 0; margin-top: 0; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
.site-footer .blob { opacity: .18; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: clamp(28px, 5vw, 60px); }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
.footer-brand img { width: 54px; height: 52px; object-fit: contain; background: #fff; border-radius: 14px; padding: 5px; }
.footer-brand strong { font-size: 1.1rem; line-height: 1.25; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; transition: transform .25s var(--ease); }
.footer-links a:hover { transform: translateX(4px); }
[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ico { color: var(--sky); margin-top: 4px; }
.footer-contact .ltr { direction: ltr; unicode-bidi: isolate; }
.site-footer .social-btn { background: rgba(255,255,255,.1); color: #fff; }
.site-footer .social-btn:hover { background: var(--sky); }
.footer-bottom { margin-top: clamp(40px, 6vw, 64px); padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .9rem; }

.wa-float {
  position: fixed; z-index: 90; bottom: 22px; inset-inline-end: 22px;
  display: flex; align-items: center; gap: 0;
  color: #fff; text-decoration: none;
}
.wa-float .wa-btn {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff;
  box-shadow: 0 14px 30px -8px rgba(18, 140, 126, .65);
  transition: transform .35s var(--ease);
}
.wa-float .wa-btn .ico { width: 32px; height: 32px; }
.wa-float .wa-btn::before, .wa-float .wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waPulse 2.6s ease-out infinite; }
.wa-float .wa-btn::after { animation-delay: 1.3s; }
@keyframes waPulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.7); opacity: 0; } }
.wa-float .wa-label {
  order: -1; margin-inline-end: 12px; padding: 10px 16px; border-radius: 14px; background: #fff; color: var(--navy);
  font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); white-space: nowrap;
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s, transform .35s var(--ease);
}
[dir="rtl"] .wa-float .wa-label { transform: translateX(-10px); }
.wa-float:hover .wa-label, .wa-float.show-label .wa-label { opacity: 1; transform: none; }
.wa-float:hover .wa-btn { transform: scale(1.08) rotate(-6deg); color: #fff; }
.wa-float:hover { color: #fff; }

.to-top {
  position: fixed; z-index: 89; bottom: 96px; inset-inline-end: 30px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: #fff; color: var(--navy); box-shadow: var(--shadow); display: grid; place-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .35s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--sky); stroke-width: 3; stroke-dasharray: 132; stroke-dashoffset: var(--dash, 132); transition: stroke-dashoffset .1s linear; }

/* not found */
.nf { text-align: center; }
.nf .code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-en); }

/* ---------- 12. Scroll animations ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s; transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="down"] { transform: translateY(-30px); }
.js [data-reveal="start"] { transform: translateX(-50px); }
.js [data-reveal="end"] { transform: translateX(50px); }
[dir="rtl"].js [data-reveal="start"], .js[dir="rtl"] [data-reveal="start"] { transform: translateX(50px); }
[dir="rtl"].js [data-reveal="end"], .js[dir="rtl"] [data-reveal="end"] { transform: translateX(-50px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal="blur"] { filter: blur(10px); transform: translateY(20px); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js .split-words .w { display: inline-block; opacity: 0; transform: translateY(.6em); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.js .split-words.is-in .w { opacity: 1; transform: none; }
.page-loaded .page-hero h1, .page-loaded .page-hero p, .page-loaded .page-hero .breadcrumb, .page-loaded .page-hero .eyebrow { animation: heroIn 1s var(--ease-out) both; }
.page-loaded .page-hero .eyebrow { animation-delay: .1s; }
.page-loaded .page-hero h1 { animation-delay: .2s; }
.page-loaded .page-hero p { animation-delay: .35s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .split-words .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .slide-media img, .slide-media video { transform: none !important; }
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav {
    position: fixed; inset: 0; z-index: 99; margin: 0;
    background: rgba(10, 38, 71, .97); backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: center; padding: 100px 32px 40px;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transition: opacity .35s; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { color: #fff; font-size: 1.6rem; font-weight: 800; padding: 10px 0; border-radius: 0; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color .2s; }
  .nav-open .main-nav a { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(2) a { transition-delay: .06s; }
  .nav-open .main-nav li:nth-child(3) a { transition-delay: .12s; }
  .nav-open .main-nav li:nth-child(4) a { transition-delay: .18s; }
  .main-nav a::after { inset-inline: 0; bottom: 4px; }
  .main-nav a[aria-current="page"], .main-nav a:hover { color: var(--sky); }
  .mobile-nav-extra { display: flex !important; flex-direction: column; gap: 12px; margin-top: 30px; }
  .burger { display: inline-flex; position: relative; z-index: 101; }
  .header-actions { margin-inline-start: auto; }
  .nav-open .site-header { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .brand { visibility: hidden; }
  .header-actions .btn { display: none; }
  .split, .contact-grid, .map-wrap { grid-template-columns: 1fr; }
  .ortho { grid-template-columns: 1fr; }
  .ortho-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ortho-tabs::-webkit-scrollbar { display: none; }
  .ortho-tab { flex: none; scroll-snap-align: start; }
  .ortho-tab:hover { transform: none; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .collage { max-width: 560px; }
}
.mobile-nav-extra { display: none; }

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand-text span { display: none; }
  .brand img { width: 40px; height: 38px; }
  .hero { min-height: 620px; height: 100svh; }
  .slide-card { padding: 20px; background: rgba(255, 255, 255, .7); }
  .slide p { margin-bottom: 18px; }
  .page-hero::before, [dir="rtl"] .page-hero::before { background: rgba(255,255,255,.86); }
  .slide-content { justify-content: flex-end; padding-bottom: 110px; }
  .slide-actions .btn { flex: 1 1 100%; }
  .hero-badges { display: none; }
  .hero-arrow { width: 44px; height: 44px; }
  .ortho-panel { grid-template-columns: 1fr; }
  .ortho-media { min-height: 220px; }
  .modal-body { grid-template-columns: 1fr; }
  .price-box { position: static; }
  .modal-hero { aspect-ratio: 16 / 9; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { bottom: 16px; inset-inline-end: 16px; }
  .wa-float .wa-label { display: none; }
  .to-top { bottom: 88px; inset-inline-end: 22px; }
  .sec-head-row { align-items: flex-start; }
}

/* =====================================================================
   HERO STYLE: navy shadow over the photo + white text
   (slider and the header photo of inner pages)
   ===================================================================== */
.hero, .page-hero { background: var(--navy); color: #fff; }
.slide-card { max-width: 620px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,38,71,.9) 0%, rgba(10,38,71,.68) 38%, rgba(10,38,71,.12) 75%, rgba(10,38,71,0) 100%),
    linear-gradient(0deg, rgba(10,38,71,.5) 0%, rgba(10,38,71,0) 35%);
}
[dir="rtl"] .slide::after {
  background:
    linear-gradient(270deg, rgba(10,38,71,.9) 0%, rgba(10,38,71,.68) 38%, rgba(10,38,71,.12) 75%, rgba(10,38,71,0) 100%),
    linear-gradient(0deg, rgba(10,38,71,.5) 0%, rgba(10,38,71,0) 35%);
}
.slide .eyebrow, .page-hero .eyebrow { color: #9FDCFF; }
.slide h1, .slide h2, .page-hero h1 { color: #fff; }
.slide p, .page-hero p { color: rgba(255,255,255,.9); }
.hero .btn-light, .page-hero .btn-light { --bg: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.hero .btn-light:hover { --bg: rgba(255,255,255,.24); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.hero-dot { background: rgba(255,255,255,.3); box-shadow: none; }
.hero-dot::after { background: #fff; }
.hero-arrow { border: 1.5px solid rgba(255,255,255,.5); background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.hero-arrow:hover { background: rgba(255,255,255,.25); color: #fff; }
.hero-count { color: rgba(255,255,255,.85); }
.glass { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; box-shadow: 0 18px 40px -20px rgba(0,0,0,.5); }
.glass-icon { background: rgba(255,255,255,.92); }
.page-hero::before {
  display: block;
  background: linear-gradient(100deg, rgba(10,38,71,.92) 0%, rgba(10,38,71,.78) 45%, rgba(15,76,138,.5) 100%);
}
[dir="rtl"] .page-hero::before { background: linear-gradient(260deg, rgba(10,38,71,.92) 0%, rgba(10,38,71,.78) 45%, rgba(15,76,138,.5) 100%); }
.page-hero .slide-card { max-width: 760px; }
.page-hero .blob { opacity: .4; }
.breadcrumb { color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; }
@media (max-width: 760px) {
  .slide::after, [dir="rtl"] .slide::after { background: linear-gradient(0deg, rgba(10,38,71,.94) 0%, rgba(10,38,71,.75) 50%, rgba(10,38,71,.3) 100%); }
  .page-hero::before, [dir="rtl"] .page-hero::before { background: rgba(10,38,71,.82); }
  .slide-card { padding: 0; background: none; }
}

/* Founder — featured large card above the team grid */
.founder {
  display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 0; margin-bottom: clamp(24px, 3vw, 36px);
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative;
}
.founder::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-blue); }
.founder-photo { position: relative; min-height: 420px; background: radial-gradient(120% 90% at 50% 100%, #CFE7F8 0%, #EAF4FB 55%, #F7FBFE 100%); overflow: hidden; }
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.founder:hover .founder-photo img { transform: scale(1.04); }
.founder-photo .badge { position: absolute; top: 18px; inset-inline-start: 18px; font-size: .85rem; padding: 8px 14px; }
.founder-body { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.founder-name { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; margin-bottom: 14px; color: var(--navy); }
.founder-exp { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 700; color: var(--navy-2); }
.founder-exp .big { font-size: 2.4rem; font-weight: 800; line-height: 1; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-en); }
.founder-body p { color: var(--muted); font-size: 1.04rem; }
@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { min-height: 0; aspect-ratio: 4 / 4.2; }
}
/* centre the doctor cards when a row is not full */
.grid-doctors { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 350px)); justify-content: center; }
.footer-bottom .credit a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(43,179,232,.6); }
.footer-bottom .credit a:hover { color: var(--sky); }
.footer-bottom .credit a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(43,179,232,.6); }
.footer-bottom .credit a:hover { color: var(--sky); }
