/* ═══════════════════════════════════════════════════════
   AZZAM ALLAM MEDICAL POLY CLINICS — Main Stylesheet
   Primary language: Arabic (RTL)
   Colors extracted from logo: #1B6B7B (dark teal)
═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap&font-display=swap');

/* ── CSS Variables ── */
:root {
  --primary:       #1B6B7B;
  --primary-dark:  #124F5C;
  --primary-light: #2490AC;
  --primary-xlt:   #E0F4F8;
  --secondary:     #22B8D4;
  --accent:        #D4A820;
  --accent-light:  #FFF4D0;
  --danger:        #DC2626;
  --success:       #16A34A;

  --bg:            #F2F9FB;
  --bg-alt:        #E8F4F7;
  --white:         #FFFFFF;
  --text:          #1A2A30;
  --text-muted:    #4A6B75;
  --border:        #C8E4EB;
  --gray-light:    #F4F4F4;
  --gray:          #DDDDDD;

  --radius:        8px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 2px 8px rgba(27,107,123,.10);
  --shadow:        0 4px 16px rgba(27,107,123,.14);
  --shadow-lg:     0 8px 32px rgba(27,107,123,.18);

  --nav-h:         72px;
  --topbar-h:      40px;

  /* ── Glassmorphism Design System ── */
  --glass-blur-sm:      blur(4px);
  --glass-blur-md:      blur(8px);
  --glass-blur-lg:      blur(12px);
  --glass-bg-light:     rgba(255,255,255,.75);
  --glass-bg-dark:      rgba(0,0,0,.25);
  --glass-bg-tinted:    rgba(224,244,248,.65);
  --glass-border:       rgba(255,255,255,.2);

  /* ── Additional radius ── */
  --radius-md:          12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; inset-inline-start: 1rem;
  background: var(--primary); color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700; z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Utilities ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section-py { padding: 72px 0; }

.section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--primary); margin-bottom: 10px;
  display: inline-block;
  background: rgba(27,107,123,.10);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(27,107,123,.22);
  transition: background .2s;
}
.section-title {
  font-size: 32px; font-weight: 800; color: var(--text); line-height: 1.25;
  margin-bottom: 12px;
}
.section-desc { font-size: 15px; color: var(--text-muted); line-height: 1.8; max-width: 640px; margin: 0 auto 48px; }
/* Ensure descriptions inside centered sections are always centered */
.text-center .section-desc { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  border: 1.5px solid transparent; transition: all .22s ease;
  font-family: inherit; white-space: nowrap; text-align: center;
  justify-content: center; cursor: pointer;
  position: relative; overflow: hidden;
}
/* Shared inner sheen — the top-half white gloss layer */
.btn-primary::after,
.btn-accent::after,
.btn-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(255,255,255,.38) 0%,
    rgba(255,255,255,.10) 45%,
    transparent 50%
  );
  pointer-events: none;
  border-radius: inherit;
}

/* ── Glossy primary (teal) ── */
.btn-primary {
  background: linear-gradient(to bottom, #2490ac 0%, #1b6b7b 55%, #145f6e 100%);
  color: #fff;
  border-color: rgba(255,255,255,.25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 4px 14px rgba(27,107,123,.38);
}
.btn-primary:hover {
  background: linear-gradient(to bottom, #29a1bf 0%, #1b7a8e 55%, #136272 100%);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.50),
    inset 0 -1px 0 rgba(0,0,0,.20),
    0 6px 20px rgba(27,107,123,.48);
}

/* ── Glossy outline (teal ghost) ── */
.btn-outline {
  background: linear-gradient(to bottom, rgba(36,144,172,.18) 0%, rgba(27,107,123,.08) 50%, rgba(27,107,123,.04) 100%);
  color: var(--primary);
  border-color: rgba(27,107,123,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.60),
    inset 0 -1px 0 rgba(27,107,123,.10);
}
.btn-outline:hover {
  background: linear-gradient(to bottom, #2490ac 0%, #1b6b7b 55%, #145f6e 100%);
  color: #fff;
  border-color: rgba(255,255,255,.25);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 4px 14px rgba(27,107,123,.35);
}

/* ── Glossy white (for hero overlays) ── */
.btn-white {
  background: rgba(255,255,255,.22);
  color: #fff;
  border-color: rgba(255,255,255,.50);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-white:hover {
  background: rgba(255,255,255,.35);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 -1px 0 rgba(0,0,0,.10);
}

/* ── Glossy gold accent ── */
.btn-accent {
  background: linear-gradient(to bottom, #e8c030 0%, #d4a820 55%, #b8900f 100%);
  color: #fff;
  border-color: rgba(255,255,255,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.50),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 4px 14px rgba(212,168,32,.40);
}
.btn-accent:hover {
  background: linear-gradient(to bottom, #f0cc38 0%, #ddb022 55%, #c49812 100%);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.20),
    0 6px 20px rgba(212,168,32,.50);
}

.btn-lg { padding: 13px 32px; font-size: 15px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ── Glossy outline-white (hero ghost button) ── */
.btn-outline-white {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.40),
    inset 0 -1px 0 rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.28);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.10);
}

.btn-group {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 415px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; max-width: none; }
}

/* Cards */
.card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.badge-primary { background: var(--primary-xlt); color: var(--primary); }
.badge-accent  { background: var(--accent-light); color: #8B6A00; }
.badge-success { background: #D1FAE5; color: #065F46; }

/* ═══════════════════════════════════════════
   SCROLL-REVEAL SYSTEM
═══════════════════════════════════════════ */
.sr {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.sr-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  .sr, .an-reveal, .ab-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════ */
#topbar {
  background: linear-gradient(90deg, #1B6B7B 0%, #22B8D4 35%, #4cd8ed 60%, #22B8D4 80%, #1B6B7B 100%);
  background-size: 250% 100%;
  animation: topbarFlow 10s ease-in-out infinite;
  color: rgba(255,255,255,.95);
  height: var(--topbar-h);
  display: flex; align-items: center;
  font-size: 13px; font-weight: 500;
  position: relative; z-index: 1050;
  box-shadow: 0 2px 12px rgba(27,107,123,.35);
}
@keyframes topbarFlow {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
/* Subtle shimmer line along the bottom of topbar */
#topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,191,214,.6), rgba(255,255,255,.4), rgba(43,191,214,.6), transparent);
  animation: topbarShine 4s ease-in-out infinite;
}
@keyframes topbarShine {
  0%   { opacity: 0; transform: translateX(-100%); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}
.topbar-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; width: 100%;
}
.topbar-phones { display: flex; align-items: center; gap: 16px; }
.topbar-phone-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9); transition: color .15s; }
.topbar-phone-item svg { flex-shrink: 0; opacity: 1; }
.topbar-phone-item:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 12px;
  font-weight: 700; transition: background .2s; font-family: inherit;
  letter-spacing: .05em;
}
.lang-toggle:hover { background: rgba(255,255,255,.28); }
.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.topbar-social a:hover { background: rgba(255,255,255,.35); }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
/* ══════════════════════════════════
   NAVBAR — Floating Glass Island (Light)
══════════════════════════════════ */
#navbar {
  position: fixed;
  top: calc(var(--topbar-h) + 6px);
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: calc(100% - 40px);
  max-width: 1280px;
  height: var(--nav-h);
  z-index: 1100;
  display: flex;
  align-items: center;
  border-radius: 50px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 4px 28px rgba(0,0,0,.14), 0 1px 4px rgba(0,0,0,.08),
              inset 0 1px 0 rgba(255,255,255,.35);
  transition: background .35s ease, box-shadow .35s ease,
              top .35s ease, border-color .35s ease;
}
/* Container inside pill becomes full-width fluid */
#navbar > .container {
  max-width: none !important;
  width: 100%;
  padding-inline: 24px !important;
}

/* ── Transparent (hero) state: white logo + links ── */
#navbar:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1);
  transition: filter .35s ease;
}
#navbar:not(.scrolled) .nav-logo-text-ar { color: #fff; }
#navbar:not(.scrolled) .nav-logo-text-en { color: rgba(255,255,255,.65); }
#navbar:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,.88);
}
#navbar:not(.scrolled) .nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
}
#navbar:not(.scrolled) .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.20);
}
/* Underline colors: faint on hover, solid white on active */
#navbar:not(.scrolled) .nav-links a::after       { background: rgba(255,255,255,.55); }
#navbar:not(.scrolled) .nav-links a.active::after { background: #fff; }
#navbar:not(.scrolled) .nav-actions .btn-primary {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
#navbar:not(.scrolled) .nav-actions .btn-primary:hover { background: rgba(255,255,255,.32); }
#navbar:not(.scrolled) .nav-hamburger span { background: #fff; }

/* ── Scrolled state: bright frosted white glass, dark text ── */
#navbar.scrolled {
  background: rgba(255,255,255,0.82);
  border-color: rgba(27,107,123,.10);
  box-shadow: 0 8px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06),
              inset 0 1px 0 rgba(255,255,255,.90);
  top: 8px; /* topbar scrolled away — pill hugs top of viewport */
}
#navbar.scrolled .nav-logo img { filter: none; transition: filter .35s ease; }
#navbar.scrolled .nav-logo-text-ar { color: var(--text); }
#navbar.scrolled .nav-logo-text-en { color: var(--text-muted); }
#navbar.scrolled .nav-links a { color: var(--text); }
#navbar.scrolled .nav-links a:hover {
  color: var(--primary);
  background: var(--primary-xlt);
}
#navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: var(--primary-xlt);
}
/* Underline colors in scrolled state */
#navbar.scrolled .nav-links a::after       { background: rgba(27,107,123,.40); }
#navbar.scrolled .nav-links a.active::after { background: var(--primary); }
#navbar.scrolled .nav-actions .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
#navbar.scrolled .nav-hamburger span { background: var(--text); }
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; width: 100%; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; transition: filter .35s ease; }
.nav-logo-fallback { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 48px; height: 48px; background: var(--primary);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text-ar { font-size: 14px; font-weight: 800; color: var(--primary); line-height: 1.3; }
.nav-logo-text-en { font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: .04em; }
.nav-links {
  display: flex; align-items: center; gap: 1px; flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 22px; /* pill-shaped hover bg */
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
  position: relative;
}
/* Animated underline on ALL links — slides in on hover, wider on active */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  transition: width .25s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover::after  { width: 14px; }
.nav-links a.active::after { width: 26px; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ══════════════════════════════════
   NAV DROPDOWN — Services submenu
══════════════════════════════════ */
.nav-has-dropdown {
  position: relative;
}
.nav-dd-trigger {
  display: flex !important;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dd-chevron {
  transition: transform .25s ease;
  flex-shrink: 0;
  opacity: .7;
  margin-top: 1px;
}
.nav-has-dropdown:hover .nav-dd-chevron,
.nav-has-dropdown:focus-within .nav-dd-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 56px rgba(0,0,0,.13), 0 4px 16px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
  padding: 10px;
  min-width: 400px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 500;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
/* Small arrow pointing up */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  inset-inline-end: 28px;
  width: 14px; height: 14px;
  background: #fff;
  border-inline-start: 1px solid rgba(0,0,0,.06);
  border-top: 1px solid rgba(0,0,0,.06);
  transform: rotate(45deg);
  border-radius: 2px;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  padding: 11px 14px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0b3340 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: background .15s, color .15s !important;
  white-space: nowrap !important;
}
.nav-dropdown a::after { display: none !important; }
.nav-dropdown a:hover {
  background: var(--primary-xlt) !important;
  color: var(--primary) !important;
}
.nav-dd-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--primary-xlt);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  transition: background .15s;
}
.nav-dropdown a:hover .nav-dd-icon {
  background: var(--primary);
  color: #fff;
}
.nav-dd-all {
  grid-column: 1 / -1 !important;
  background: linear-gradient(135deg, var(--primary-xlt), #e0f5f8) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  justify-content: center !important;
  margin-top: 6px !important;
  border-top: 1px solid #e2ecef !important;
  padding-top: 12px !important;
  border-radius: 12px !important;
}
.nav-dd-all:hover {
  background: var(--primary) !important;
  color: #fff !important;
}
/* Transparent navbar state — keep dropdown white, chevron white */
#navbar:not(.scrolled) .nav-dropdown { background: #fff; }
#navbar:not(.scrolled) .nav-dd-chevron { stroke: rgba(255,255,255,.85); }

/* Mobile submenu */
.mob-has-sub { display: flex; flex-direction: column; }
.mob-sub-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 14px 20px; font-size: 15px; font-weight: 600;
  color: var(--text); text-align: inherit;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.mob-sub-trigger:hover { background: var(--primary-xlt); color: var(--primary); }
.mob-sub-chevron { transition: transform .28s; flex-shrink: 0; opacity: .6; }
.mob-has-sub.open .mob-sub-chevron { transform: rotate(180deg); }
.mob-sub-menu {
  max-height: 0; overflow: hidden;
  transition: max-height .32s ease;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; padding: 0 10px;
}
.mob-has-sub.open .mob-sub-menu { max-height: 500px; }
.mob-sub-menu a {
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  display: flex !important; align-items: center !important; gap: 8px !important;
}
.mob-sub-menu a:hover { background: var(--primary-xlt) !important; color: var(--primary) !important; }
.mob-sub-all {
  grid-column: 1 / -1 !important;
  background: var(--primary-xlt) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  justify-content: center !important;
  margin-top: 4px;
  margin-bottom: 8px;
}
.mob-sub-all:hover { background: var(--primary) !important; color: #fff !important; }

/* ── Hamburger button ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; border-radius: var(--radius);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2.5px; background: var(--text);
  border-radius: 2px; transition: transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
/* Animated hamburger → X */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile Nav ── */
/* ══════════════════════════════════
   MOBILE NAV BACKDROP
══════════════════════════════════ */
#nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1199;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
#nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ══════════════════════════════════
   MOBILE NAV — Light glass drawer
══════════════════════════════════ */
#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 360px);
  height: 100dvh;
  /* Light glassmorphism */
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-inline-start: 1px solid rgba(27,107,123,.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translate3d(100%, 0, 0);
  transition: transform .38s cubic-bezier(.4,0,.2,1),
              box-shadow .38s ease;
}
/* Glass shine strip at top */
#mobile-nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,107,123,.18), rgba(43,191,214,.22), rgba(27,107,123,.18), transparent);
  pointer-events: none;
  z-index: 1;
}
#mobile-nav.open {
  transform: translate3d(0, 0, 0);
  box-shadow: -20px 0 70px rgba(0,0,0,.18);
}

@media (min-width: 901px) {
  #mobile-nav {
    display: none;
  }
}

/* Drawer header — logo + close button */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(27,107,123,.10);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.nav-drawer-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-drawer-logo img {
  height: 40px; width: auto;
  filter: none;
}
.nav-drawer-logo-text {
  font-size: 13px; font-weight: 800; color: var(--primary-dark); line-height: 1.3;
}
.nav-drawer-logo-sub {
  font-size: 10px; color: var(--text-muted); font-weight: 600;
}
.nav-drawer-close {
  width: 36px; height: 36px;
  background: rgba(27,107,123,.08);
  border: 1px solid rgba(27,107,123,.15);
  border-radius: 50%;
  color: var(--text); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
  flex-shrink: 0;
}
.nav-drawer-close:hover { background: rgba(27,107,123,.16); }

/* Drawer nav links */
.nav-drawer-links { flex: 1; padding: 8px 12px; }
#mobile-nav a {
  display: block;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-radius: 12px;
  margin-bottom: 2px;
  transition: background .18s, color .18s, padding-inline-start .18s;
}
#mobile-nav a:hover,
#mobile-nav a.active {
  background: rgba(27,107,123,.10);
  color: var(--primary);
  padding-inline-start: 22px;
}
#mobile-nav a.active {
  background: rgba(27,107,123,.12);
  border: 1px solid rgba(27,107,123,.18);
}
/* Staggered entrance animations */
#mobile-nav.open .nav-drawer-links > *:nth-child(1)  { animation: drawerLink .35s ease .06s both; }
#mobile-nav.open .nav-drawer-links > *:nth-child(2)  { animation: drawerLink .35s ease .10s both; }
#mobile-nav.open .nav-drawer-links > *:nth-child(3)  { animation: drawerLink .35s ease .14s both; }
#mobile-nav.open .nav-drawer-links > *:nth-child(4)  { animation: drawerLink .35s ease .18s both; }
#mobile-nav.open .nav-drawer-links > *:nth-child(5)  { animation: drawerLink .35s ease .22s both; }
#mobile-nav.open .nav-drawer-links > *:nth-child(6)  { animation: drawerLink .35s ease .26s both; }
#mobile-nav.open .nav-drawer-links > *:nth-child(7)  { animation: drawerLink .35s ease .30s both; }
#mobile-nav.open .nav-drawer-links > *:nth-child(8)  { animation: drawerLink .35s ease .34s both; }
@keyframes drawerLink {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Book button inside drawer */
#mobile-nav .mobile-book {
  display: block;
  background: linear-gradient(135deg, #1B6B7B, #2bbfd6);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin: 14px 18px;
  padding: 15px 20px;
  border-radius: 14px;
  border-bottom: none !important;
  box-shadow: 0 6px 20px rgba(27,107,123,.40);
  transition: opacity .2s, transform .2s !important;
}
#mobile-nav .mobile-book:hover {
  opacity: .92;
  transform: translateY(-1px) !important;
  padding-inline-start: 20px !important;
}

/* Language row at bottom */
.mobile-lang-row {
  padding: 16px 22px 24px;
  border-top: 1px solid rgba(27,107,123,.10);
  background: rgba(255,255,255,.40);
  display: flex; align-items: center;
  margin-top: auto;
}
.mobile-lang-btn {
  background: rgba(27,107,123,.10);
  border: 1.5px solid rgba(27,107,123,.28);
  color: var(--primary);
  padding: 7px 22px; border-radius: 20px;
  font-size: 13px; font-weight: 700; font-family: inherit;
  transition: background .2s, color .2s, border-color .2s;
}
.mobile-lang-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* (mob-sub overrides handled above in main block) */

/* ═══════════════════════════════════════════
   INNER PAGE HERO
═══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: calc(var(--nav-h) + 40px) 0 48px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.page-hero p  { font-size: 16px; color: rgba(255,255,255,.8); }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.breadcrumb a { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; transition: color .15s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { font-size: 13px; color: rgba(255,255,255,.5); }
.breadcrumb .current { font-size: 13px; color: rgba(255,255,255,.9); font-weight: 700; }

/* ═══════════════════════════════════════════
   HERO CAROUSEL (Home)
═══════════════════════════════════════════ */
#hero { position: relative; overflow: hidden; }

/* Persistent top vignette so nav links are always legible */
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(0,0,0,.38) 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  /* NOTE: `will-change: transform` was removed here. Keeping it permanent
     promoted the track to its own GPU layer, and iOS Safari deferred painting
     that layer's background-image until a scroll forced a repaint — so the
     hero opened blank/white on mobile. We now toggle will-change from JS only
     while a slide transition is animating (see initHeroCarousel). */
}
.hero-track.is-animating { will-change: transform; }
.hero-slide { contain: layout style; }
.hero-slide {
  min-width: 100%; height: calc(100vh - var(--nav-h)); position: relative;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-bg-header1 {
  background-image: url('../designs/HEADER1.png');
  background-size: cover;
  background-position: center;
  background-color: #c8f0f8;
}
.hero-bg-photo {
  background-image: url('../assets/slider-1.jpg');
  background-size: cover;
  background-position: center top;
  background-color: #c8f0f8;
}
.hero-bg-slider2 {
  background-image: url('../designs/slider2.jpg');
  background-size: cover;
  background-position: center center;
  background-color: #c8f0f8;
}
.hero-bg-home2 {
  background-image: url('../designs/home2.jpeg');
  background-size: cover;
  background-position: center center;
  background-color: #c8f0f8;
}

/* ── Smile Slide — Light Medical Background ── */
.hero-bg-smile {
  background:
    radial-gradient(ellipse at 15% 85%, rgba(27,107,123,.10) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 15%, rgba(34,184,212,.08) 0%, transparent 38%),
    linear-gradient(160deg, #e8f7fb 0%, #c8f0f8 45%, #ddf5fb 100%);
  overflow: hidden;
}
/* Rotating conic sweep — subtle teal bands on light bg */
.hero-bg-smile::before {
  content: '';
  position: absolute;
  width: 160%; height: 160%;
  top: -30%; left: -30%;
  background: conic-gradient(
    from 210deg at 55% 55%,
    transparent            0deg,
    rgba(27,107,123,.06)   30deg,
    transparent            70deg,
    rgba(34,184,212,.05)   105deg,
    transparent            150deg,
    rgba(27,107,123,.04)   185deg,
    transparent            230deg
  );
  animation: smileSpin 18s linear infinite;
  pointer-events: none;
  mix-blend-mode: multiply;
}
/* Pulsing teal orb — bottom centre */
.hero-bg-smile::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(34,184,212,.20) 0%,
    rgba(27,107,123,.08) 40%,
    transparent 70%
  );
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  animation: smileGoldOrb 5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: multiply;
}
@keyframes smileSpin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}
@keyframes smileGoldOrb {
  0%, 100% { opacity: .65; transform: translateX(-50%) scale(1);    }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.28); }
}

/* ── Smile character image (transparent webp) ── */
.hero-smile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 65% center; /* nudge right so text area on left stays clear */
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 50px rgba(27,107,123,.20))
          drop-shadow(0 0 15px rgba(34,184,212,.15));
}
/* Overlay — above image (z3); light teal wash for text legibility */
.hero-overlay-smile {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top,
    rgba(27,107,123,.18) 0%,
    rgba(27,107,123,.06) 38%,
    transparent 62%
  );
  pointer-events: none;
}
/* Smile slide text/buttons must sit above the overlay */
.hero-slide-smile .hero-content { z-index: 10; }
.hero-slide-smile .hero-overlay-photo { z-index: 3; }


.hero-overlay { position: absolute; inset: 0; background: rgba(15,40,50,.40); }
/* FIX #1 & #5 – overlay gradient direction respects text direction */
.hero-overlay-photo {
  background: linear-gradient(to left, rgba(5,20,30,.62) 0%, rgba(5,20,30,.38) 55%, rgba(5,20,30,.12) 100%);
}
/* RTL (Arabic) — gradient fades from right (start) to left (end) */
[dir="rtl"] .hero-overlay-photo {
  background: linear-gradient(to left, rgba(5,20,30,.62) 0%, rgba(5,20,30,.38) 55%, rgba(5,20,30,.12) 100%);
}
/* LTR (English) — gradient fades from left (start) to right (end) */
[dir="ltr"] .hero-overlay-photo {
  background: linear-gradient(to right, rgba(5,20,30,.62) 0%, rgba(5,20,30,.38) 55%, rgba(5,20,30,.12) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 48px; max-width: 700px;
}
html[dir="ltr"] .hero-content { padding: 0 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); backdrop-filter: var(--glass-blur-md);
  color: #fff; padding: 6px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
  border: 1px solid var(--glass-border);
  transition: all .2s;
}
.hero-title {
  font-size: 48px; font-weight: 900; color: #fff; line-height: 1.15;
  margin-bottom: 18px;
}
.hero-title span { color: var(--secondary); }
.hero-desc { font-size: 16px; color: rgba(255,255,255,.85); line-height: 1.8; margin-bottom: 28px; max-width: 540px; }
/* ── Hero buttons — unified size & color on ALL slides, web + mobile ── */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn {
  padding: 13px 32px;
  font-size: 15px;
  min-width: 160px;
}
/* Gold accent primary — default for every hero slide */
.hero-slide .hero-actions .btn-primary {
  background: linear-gradient(to bottom, #e8c030 0%, #d4a820 55%, #b8900f 100%);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.50),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 4px 16px rgba(212,168,32,.40);
}
.hero-slide .hero-actions .btn-primary:hover {
  background: linear-gradient(to bottom, #f0cc38 0%, #ddb022 55%, #c49812 100%);
  border-color: rgba(255,255,255,.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.20),
    0 6px 22px rgba(212,168,32,.55);
  transform: translateY(-1px);
}
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: var(--glass-blur-sm); -webkit-backdrop-filter: var(--glass-blur-sm);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, transform .25s; font-size: 20px; line-height: 1;
}
.hero-prev:hover, .hero-next:hover {
  background: var(--accent); border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}
.hero-prev { inset-inline-end: 20px; }
.hero-next { inset-inline-start: 20px; }

/* FIX #4 – hero dots centered for both RTL and LTR */
.hero-dots {
  position: absolute; bottom: 24px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: 1.5px solid rgba(255,255,255,.3);
  transition: background .3s, width .3s, border-color .3s;
}
.hero-dot.active {
  background: var(--accent); border-color: var(--accent);
  width: 28px; border-radius: 6px;
  box-shadow: 0 0 10px rgba(212,168,32,.5);
}

/* ═══════════════════════════════════════════
   QUICK FINDER
═══════════════════════════════════════════ */
#finder {
  background: var(--primary); padding: 28px 0;
}
.finder-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.finder-label { color: #fff; font-weight: 800; font-size: 16px; white-space: nowrap; flex-shrink: 0; }
.finder-fields { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.finder-select {
  flex: 1; min-width: 180px; padding: 11px 16px;
  background: #fff; border: 2px solid transparent;
  border-radius: var(--radius); font-family: 'Cairo', sans-serif;
  font-size: 14px; color: var(--text); transition: border-color .2s; appearance: none;
}
.finder-select:focus { border-color: var(--secondary); outline: none; }
.finder-btn {
  background: var(--accent); color: #fff; padding: 11px 28px;
  border-radius: var(--radius); font-weight: 800; font-size: 14px;
  border: none; font-family: inherit;
  transition: background .2s, transform .15s; white-space: nowrap; flex-shrink: 0;
}
.finder-btn:hover { background: #b8900f; transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════ */
.stats-strip { background: var(--bg-alt); padding: 28px 0; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--border); }
.stats-grid { display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; gap: 0; }
.stat-item {
  text-align: center; padding: 12px 28px;
  border-inline-end: 1px solid var(--border);
  flex: 0 0 auto;
}
.stat-item:last-child { border-inline-end: none; }
.stat-num { font-size: 32px; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; white-space: nowrap; }
@media (max-width: 480px) {
  .stat-num { font-size: 22px; }
  .stat-item { padding: 10px 14px; }
  .stat-label { font-size: 11px; }
}

/* ═══════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
html[dir="rtl"] .about-grid { direction: rtl; }
.about-visual {
  background: linear-gradient(135deg, var(--primary-xlt), var(--bg-alt));
  border-radius: var(--radius-xl); height: 420px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; bottom: -40px; inset-inline-end: -40px;
  width: 160px; height: 160px; background: var(--primary);
  border-radius: 50%; opacity: .08;
}
.about-visual-inner { position: relative; z-index: 1; }
.about-badge-float {
  position: absolute; bottom: 24px; inset-inline-start: 24px;
  background: var(--primary); color: #fff; border-radius: var(--radius-lg);
  padding: 16px 20px; text-align: center; box-shadow: var(--shadow-lg);
}
.about-badge-float .num { font-size: 32px; font-weight: 900; line-height: 1; }
.about-badge-float .lbl { font-size: 11px; opacity: .85; margin-top: 4px; }
.about-content p { font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 16px; }
.about-checks { margin: 24px 0; }
.about-check { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.check-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.check-icon svg { color: #fff; }
.about-check span { font-size: 14px; color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════
   SPECIALTIES GRID
═══════════════════════════════════════════ */
.specialties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.specialty-card {
  background: var(--glass-bg-light); backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border-radius: var(--radius-lg); padding: 28px 20px;
  border: 1px solid var(--glass-border); text-align: center; cursor: default;
  transition: border-color .25s, box-shadow .25s, transform .25s, background .25s;
}
.specialty-card:hover {
  border-color: var(--accent); box-shadow: 0 8px 32px rgba(212,168,32,.18);
  transform: translateY(-4px); background: rgba(255,255,255,.88);
}
.specialty-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary-xlt); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
  transition: background .2s;
}
.specialty-card:hover .specialty-icon { background: var(--accent); }
.specialty-card:hover .specialty-icon svg { color: #fff !important; stroke: #fff !important; }
.specialty-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.specialty-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════
   DOCTORS
═══════════════════════════════════════════ */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doctor-card {
  background: var(--glass-bg-light); backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.doctor-card:hover { box-shadow: 0 8px 32px rgba(27,107,123,.15); transform: translateY(-4px); border-color: rgba(27,107,123,.3); }
.doctor-avatar {
  height: 200px; background: linear-gradient(135deg, var(--primary-xlt), var(--bg-alt));
  display: flex; align-items: center; justify-content: center;
}
.doctor-info { padding: 20px 16px; }
.doctor-name { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.doctor-specialty { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.doctor-exp { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.doctor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.doctor-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--primary-xlt); color: var(--primary); }
.doctor-link { font-size: 13px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.doctor-link:hover { color: var(--primary-dark); }
.doctor-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.doctor-profile-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 20px;
  background: var(--primary); color: #fff; text-decoration: none;
  transition: background .2s, transform .2s;
}
.doctor-profile-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.doctor-book-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 20px;
  background: transparent; color: var(--primary); border: 1.5px solid var(--primary); text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.doctor-book-btn:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--glass-bg-light); backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border-radius: var(--radius-lg); padding: 32px 24px;
  border: 1px solid var(--glass-border);
  transition: border-color .25s, box-shadow .25s, transform .25s, background .25s; cursor: default;
}
.service-card:hover {
  border-color: var(--accent); box-shadow: 0 8px 32px rgba(212,168,32,.18);
  transform: translateY(-4px); background: rgba(255,255,255,.88);
}
.service-card:hover .service-icon { background: var(--accent); }
.service-card:hover .service-icon svg { stroke: #fff !important; }
.service-icon {
  width: 60px; height: 60px; background: var(--primary-xlt);
  border-radius: var(--radius-lg); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
  transition: background .2s;
}
.service-card:hover .service-icon { background: var(--primary); }
.service-card:hover .service-icon svg { stroke: #fff !important; }
.service-title { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.service-list li {
  font-size: 13px; color: var(--text-muted); padding: 5px 0;
  border-top: 1px solid var(--bg-alt); display: flex; align-items: center; gap: 8px;
}
.service-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   INSURANCE PARTNERS SLIDER (ANIMATED)
═══════════════════════════════════════════ */
.insurance-section {
  background: linear-gradient(135deg, var(--bg-alt), #f0f9fa);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.insurance-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.slider-container {
  margin-top: 48px;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
  gap: 24px;
  padding: 20px 0;
}

.logo-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / 2)); }
}

/* For RTL support, we invert the scroll logic if needed, but simple translateX works if the container is wide enough */
[dir="rtl"] .logo-track {
  animation: scroll-rtl 60s linear infinite;
}

@keyframes scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100% / 2)); }
}

.logo-card {
  width: 220px;
  height: 110px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px; /* Reduced padding to make logos larger */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 15px 35px rgba(212, 168, 32, 0.15), 0 0 15px rgba(212, 168, 32, 0.1);
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures logos are as large as possible without distortion */
  opacity: 0.9;
  transition: all 0.4s ease;
}

.logo-card:hover img {
  opacity: 1;
}

@media (max-width: 768px) {
  .logo-card {
    width: 180px;
    height: 90px;
    padding: 16px;
  }
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials-wrap { overflow: hidden; }
.testimonials-track { display: flex; transition: transform .45s ease; }
.testimonials-slide { min-width: 100%; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding: 4px; }
.testimonial-card { background: var(--glass-bg-tinted); backdrop-filter: var(--glass-blur-md); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--glass-border); transition: box-shadow .2s, transform .2s, backdrop-filter .2s; }
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.t-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.t-stars svg { width: 16px; height: 16px; fill: var(--accent); }
.t-text { font-size: 14px; color: var(--text); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; flex-shrink: 0; }
.t-name { font-size: 14px; font-weight: 700; }
.t-role { font-size: 12px; color: var(--text-muted); }
.t-controls { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; transition: background .2s, transform .2s; }
.t-dot { cursor: pointer; }
.t-dot.active { background: var(--accent); transform: scale(1.3); }

/* ═══════════════════════════════════════════
   OFFERS / PROMO BANNER
═══════════════════════════════════════════ */
.promo-banner {
  background: var(--accent-light); border: 2px dashed var(--accent);
  border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.promo-text h3 { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.promo-text p { font-size: 14px; color: var(--text-muted); }

/* --- Offers Gallery --- */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; padding: 48px 0; }
.offer-card { background: #fff; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); transition: transform .3s, box-shadow .3s; position: relative; display: flex; flex-direction: column; }
.offer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.offer-img { height: 220px; background: var(--bg-alt); position: relative; overflow: hidden; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; }
.offer-tag { position: absolute; top: 16px; inset-inline-end: 16px; background: var(--secondary); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 800; z-index: 2; box-shadow: 0 4px 12px rgba(220,131,23,.3); }
.offer-body { padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; flex-grow: 1; justify-content: center; }
.offer-title { font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 12px; width: 100%; }
.offer-desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; min-height: 3.2em; width: 100%; }
.offer-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; justify-content: center; width: 100%; }
.price-now { font-size: 28px; font-weight: 900; color: var(--primary); }
.price-was { font-size: 16px; text-decoration: line-through; color: var(--text-muted); opacity: .7; }
.price-curr { font-size: 14px; font-weight: 700; color: var(--primary); }
.offer-btn { width: 100%; }

/* ═══════════════════════════════════════════
   APPOINTMENT FORM
═══════════════════════════════════════════ */
.appt-section { background: var(--primary); padding: 72px 0; }
.appt-box { background: var(--glass-bg-light); backdrop-filter: var(--glass-blur-lg); border-radius: var(--radius-xl); padding: 40px; max-width: 820px; margin: 0 auto; box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--glass-blur-lg); }
.appt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.appt-field { display: flex; flex-direction: column; }
.appt-field.full { grid-column: 1 / -1; }
.appt-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.appt-req { color: var(--danger); }
.appt-input, .appt-select, .appt-textarea {
  padding: 11px 14px; background: rgba(255,255,255,.95);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Cairo', sans-serif; font-size: 14px; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%; backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.appt-input:focus, .appt-select:focus, .appt-textarea:focus {
  outline: none; border-color: var(--primary);
  background: rgba(255,255,255,.98);
  box-shadow: 0 0 0 3px rgba(27,107,123,.12);
}
.appt-submit {
  width: 100%; padding: 14px; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius); font-family: inherit;
  font-size: 16px; font-weight: 800; transition: background .2s, transform .15s, box-shadow .2s; margin-top: 4px;
  box-shadow: 0 4px 16px rgba(212,168,32,.3);
}
.appt-submit:hover { background: #b8900f; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,168,32,.4); }
.appt-submit:disabled { opacity: .7; cursor: not-allowed; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600; display: none; }
.form-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.form-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ── Appointment Page Layout ── */
.appt-main-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.appt-form-card {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.contact-bottom-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--glass-bg-tinted); backdrop-filter: var(--glass-blur-md); border-radius: var(--radius-lg); padding: 28px; text-align: center; border: 1px solid var(--glass-border); transition: box-shadow .2s, transform .2s, backdrop-filter .2s; }
.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.contact-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.contact-title { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.contact-detail { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.contact-detail a { color: var(--primary); font-weight: 700; }
/* Improved map box — now contains an iframe placeholder area */
.map-box {
  background: var(--primary-xlt); border-radius: var(--radius-xl);
  height: 320px; border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; margin-top: 32px; overflow: hidden;
  position: relative;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-xl); }
.map-box .map-fallback { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; }

/* ═══════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════ */
.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .section-title, .section-label { text-align: center; }
  .section-desc { text-align: center; margin-inline-start: auto; margin-inline-end: auto; }
  .text-center-mobile { text-align: center !important; }
  .vision-mission-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }
}
.vision-card {
  padding: 32px;
  text-align: start;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
@media (max-width: 900px) {
  .vision-card {
    text-align: center;
  }
}
.vision-card:hover {
  box-shadow: 0 8px 28px rgba(27,107,123,.12);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.why-us-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.why-us-card:hover {
  box-shadow: 0 8px 28px rgba(212,168,32,.15);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.why-us-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .why-us-card { 
    text-align: center; 
    flex-direction: column; 
    align-items: center; 
    padding: 32px 24px;
  }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   FOOTER — Brand Teal Redesign
══════════════════════════════════════════ */
footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0A3D2F 0%, #0e3d47 100%);
  color: #fff;
}
/* Subtle radial glow accents */
footer::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 10% 20%, rgba(43,191,214,.18) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 90% 80%, rgba(255,255,255,.07) 0%, transparent 65%);
}
/* Dots pattern overlay */
footer::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5;
}

/* Wave divider at top of footer */
.footer-wave {
  position: relative; z-index: 2;
  line-height: 0; display: block;
  margin-bottom: -2px;
}
.footer-wave svg {
  width: 100%; height: 70px;
  display: block;
  color: var(--white);
}

/* CTA strip — warm accent inside teal */
.footer-cta {
  position: relative; z-index: 2;
  background: rgba(0,0,0,.15);
  backdrop-filter: blur(8px);
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-cta-text {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em;
}
.footer-cta-text em { color: #ffd87a; font-style: normal; }

/* Stats strip inside footer */
.footer-stats {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 0;
}
.footer-stat {
  flex: 1; text-align: center;
  padding: 28px 20px;
  border-inline-end: 1px solid rgba(255,255,255,.10);
}
.footer-stat:last-child { border-inline-end: none; }
.footer-stat-num {
  font-size: 30px; font-weight: 900; color: #fff;
  line-height: 1;
}
.footer-stat-num span { color: #2bbfd6; }
.footer-stat-lbl {
  font-size: 12px; color: rgba(255,255,255,.65);
  margin-top: 5px; font-weight: 600;
}

/* Main footer grid */
.footer-main {
  position: relative; z-index: 2;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(200px, 1.1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid > div:first-child {
  padding: 30px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 32px rgba(0,0,0,.15);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .footer-stats { flex-wrap: wrap; }
  .footer-stat { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,.10); }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; padding: 22px 18px; }
  .footer-stat { min-width: 50%; }
  .footer-stat-num { font-size: 24px; }
  .footer-wave svg { height: 40px; }
}

/* Logo area */
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-logo img { height: 60px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-icon {
  width: 50px; height: 50px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-logo-text { font-size: 17px; font-weight: 800; line-height: 1.3; color: #fff; }
.footer-logo-sub {
  font-size: 10px; color: rgba(43,191,214,.85);
  text-transform: uppercase; letter-spacing: .14em; margin-top: 3px;
}

/* Description */
.footer-desc {
  font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.9;
  margin-bottom: 20px; max-width: 32ch;
}

/* Insurance badge */
.footer-insurance-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  padding: 7px 16px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.footer-insurance-badge svg { color: #2bbfd6; flex-shrink: 0; }

/* Social icons */
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s, border-color .2s;
}
.footer-social a:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.35); }
.footer-social a[aria-label="Facebook"]:hover  { background: #1877F2; }
.footer-social a[aria-label="Instagram"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.footer-social a[aria-label="TikTok"]:hover    { background: #010101; }
.footer-social a[aria-label="Snapchat"]:hover  { background: #FFFC00; color: #000; }
.footer-social a[aria-label="WhatsApp"]:hover  { background: #25D366; }

/* Column headings */
.footer-col h4 {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .16em;
  color: #2bbfd6;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.footer-col h4::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to left, transparent, rgba(43,191,214,.35));
}

/* Column links */
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
  font-size: 14px; color: rgba(255,255,255,.78);
  transition: color .15s, padding-inline-start .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-col ul li a::before {
  content: '›'; color: #2bbfd6; font-size: 16px; line-height: 1;
  opacity: 0; transform: translateX(4px); transition: opacity .15s, transform .15s;
}
.footer-col ul li a:hover {
  color: #fff;
  padding-inline-start: 4px;
}
.footer-col ul li a:hover::before { opacity: 1; transform: translateX(0); }

/* Contact items */
.footer-col .contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 14px; line-height: 1.75;
  color: rgba(255,255,255,.82);
}
.footer-contact-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(43,191,214,.20);
  border: 1px solid rgba(43,191,214,.30);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #2bbfd6;
}
.footer-col .contact-item a { color: rgba(255,255,255,.88); transition: color .15s; }
.footer-col .contact-item a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 22px 0 20px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.45); }
.footer-btm-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-btm-links a {
  font-size: 12px; color: rgba(255,255,255,.60);
  transition: color .15s;
}
.footer-btm-links a:hover { color: #fff; }

/* ═══════════════════════════════════════════
   FLOATING BUTTONS
═══════════════════════════════════════════ */
.float-btn {
  position: fixed; inset-inline-end: 24px; z-index: 300;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform .2s, background .2s;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.12); }
#float-whatsapp { bottom: 96px; background: #25D366; }
#float-phone    { bottom: 28px;  background: var(--primary); }
#float-whatsapp:hover { background: #1EB851; }
#float-phone:hover    { background: var(--primary-dark); }
/* On mobile the sticky CTA bar (injected by JS) provides Call+Book buttons.
   Hide the old float-phone to avoid stacking on top of the CTA bar. */
@media (max-width: 768px) {
  #float-phone { display: none !important; }
}

/* ── Pulse ring on WhatsApp button ── */
#float-whatsapp::before {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid rgba(37,211,102,.45);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1100px)
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .doctors-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤900px)
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .section-title, .section-label { text-align: center; }
  /* Centre descriptions to match centred headings; about body text stays RTL right-aligned */
  .section-desc { text-align: center; margin-inline-start: auto; margin-inline-end: auto; }
  .about-content p { text-align: start; }
  /* Centre insurance CTA column when stacked */
  .insurance-cta-col { align-items: center; }
  .why-us-grid > div { text-align: center; flex-direction: column; align-items: center !important; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
  /* Pill navbar on mobile: tighter width & padding */
  #navbar {
    width: calc(100% - 24px);
    top: calc(var(--topbar-h) + 5px);
  }
  #navbar > .container { padding-inline: 16px !important; }
  #navbar.scrolled { top: calc(var(--topbar-h) + 2px); }
  .about-grid    { grid-template-columns: 1fr; }
  .about-visual  { display: flex; height: 300px; margin-bottom: 24px; }
  .offer-body    { text-align: center; }
  .offer-price   { justify-content: center; }
  .specialties-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .doctors-grid  { grid-template-columns: repeat(2,1fr); }
  .testimonials-slide { grid-template-columns: 1fr; }
  /* stats-grid stays flex row — no override needed */
  .contact-grid  { grid-template-columns: 1fr; }
  .contact-bottom-grid { grid-template-columns: 1fr; }
  .hero-title    { font-size: 34px; }
  .hero-content  { padding: 0 28px; }
  .hero-slide    { height: 80vh; }
  .hero-bg-photo { background-position: center center; }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; padding: 24px 0; }
  .footer-btm-links { justify-content: center; margin-top: 8px; }
  .section-title { font-size: 28px; }
  .insurance-inner { flex-direction: column; text-align: center; }
  .appt-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .appt-form-card {
    padding: 24px 20px;
  }
  .insurance-logos { justify-content: center; }
  .feature-content h3, .feature-content p, .about-content h2, .about-content p {
    text-align: start;
  }
  .about-content {
    text-align: start;
  }
  /* Centre the section label in about section on mobile to match centred heading */
  .about-content .section-label { display: block; text-align: center; }
  .page-hero-content {
    text-align: center;
  }
  .insurance-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤640px)
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --topbar-h: 0px; }
  #topbar { display: none; }  /* hide topbar on very small screens to save space */

  .specialties-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid    { grid-template-columns: 1fr; }
  .doctors-grid     { grid-template-columns: 1fr 1fr; }
  .appt-grid        { grid-template-columns: 1fr; }
  .hero-title    { font-size: 26px; }
  .section-title { font-size: 24px; }

  /* ── All slides: full viewport height on mobile ── */
  .hero-slide { height: 100svh; min-height: 600px; }

  /* ── Ensure photo backgrounds cover properly ── */
  .hero-slide:first-child .hero-bg-slider2,
  .hero-slide:nth-child(2) .hero-bg-home2 {
    background-size: cover;
    background-position: center center;
  }

  /* ── Overlay: strong bottom-to-top gradient — slides 1 & 2 ── */
  .hero-slide:first-child .hero-overlay-photo,
  .hero-slide:nth-child(2) .hero-overlay-photo {
    background: linear-gradient(to top,
      rgba(5,18,28,.90) 0%,
      rgba(5,18,28,.55) 45%,
      rgba(5,18,28,.12) 100%) !important;
  }

  /* ── Text: pinned to bottom, full-width, centred — slides 1, 2 & 3 ── */
  .hero-slide:first-child .hero-content,
  .hero-slide:nth-child(2) .hero-content,
  .hero-slide:nth-child(3) .hero-content {
    position: absolute; bottom: 72px;
    inset-inline-start: 0; inset-inline-end: 0;
    padding: 0 20px; max-width: 100%; text-align: center;
  }
  .hero-slide:first-child .hero-actions,
  .hero-slide:nth-child(2) .hero-actions,
  .hero-slide:nth-child(3) .hero-actions { justify-content: center; }

  /* ── Smile slide: mobile portrait image, matching overlay ── */
  .hero-smile-img {
    content: url('../designs/mobile smile.webp');
    object-fit: cover;
    object-position: center top;
    opacity: .90;
    filter: drop-shadow(0 0 30px rgba(212,168,32,.35));
  }
  .hero-overlay-smile {
    background: linear-gradient(to top,
      rgba(5,18,28,.90) 0%,
      rgba(5,18,28,.55) 45%,
      rgba(5,18,28,.12) 100%
    ) !important;
  }

  /* ── Hero buttons — stacked on mobile, consistent size ── */
  .hero-slide .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-actions-insurance { margin-top: 36px; }

  /* Make hero dots and arrows tidy on mobile */
  .hero-prev, .hero-next { width: 38px; height: 38px; font-size: 16px; }
  .hero-dots { bottom: 20px; }

  /* stats-grid stays flex row — no override needed */
  .finder-wrap   { flex-direction: column; align-items: stretch; }
  .finder-label  { text-align: center; }
  .promo-banner  { flex-direction: column; text-align: center; }
  .promo-banner .btn { align-self: center; }

  .float-btn { width: 48px; height: 48px; }
  #float-whatsapp { bottom: 84px; }
  #float-phone    { display: none !important; }

  .section-py { padding: 48px 0; }
  .appt-box   { padding: 24px 16px; }
  .page-hero  { padding: 100px 0 32px; } /* Increased to clear fixed nav */
  .page-hero h1 { font-size: 26px; }
  
  /* Mobile centering — Hero content */
  .hero-content, .hero-content .hero-title, .hero-content .hero-desc, .hero-content .hero-badge {
    text-align: center;
  }
  /* All hero-actions stack on mobile with capped width */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    min-width: unset;
  }

  /* Mobile centering — Inner page headers */
  .page-hero-content {
    text-align: center;
  }
  .page-hero-content h1,
  .page-hero-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .breadcrumb {
    justify-content: center;
    text-align: center;
  }
  
  /* Mobile centering — Section content */
  .contact-card, .contact-detail, .contact-title {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-hero { padding-top: 110px; } /* More space on very small screens */
}

/* ═══════════════════════════════════════════
   RESPONSIVE — VERY SMALL (≤400px)
═══════════════════════════════════════════ */
@media (max-width: 400px) {
  .doctors-grid { grid-template-columns: 1fr; }
  .specialties-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 22px; }
}

/* ═══════════════════════════════════════════
   GLASSMORPHISM — MOBILE ADJUSTMENTS (≤640px)
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Reduce blur intensity on mobile for performance and clarity */
  #navbar.scrolled {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .hero-badge {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .contact-card,
  .testimonial-card {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  #mobile-nav {
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
  }

  #mobile-nav.open {
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
  }

  /* Reduce form wrapper padding on small screens */
  .appt-box {
    padding: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ═══════════════════════════════════════════
   DESKTOP — ALL SLIDES TEXT POSITION
   RTL: text on the right + slightly below centre
   LTR: text on the left  + slightly below centre
   (inset-inline-start handles both automatically)
═══════════════════════════════════════════ */
@media (min-width: 901px) {
  .hero-slide .hero-content {
    position: absolute;
    top: 60%;                     /* slightly below vertical centre */
    transform: translateY(-50%);
    inset-inline-start: 52px;    /* RTL → right: 52px | LTR → left: 52px */
    inset-inline-end: auto;
    max-width: 540px;
    padding: 0;
  }
}

/* ═══════════════════════════════════════════
   HERO SLIDER — PREMIUM INSURANCE INTEGRATION
═══════════════════════════════════════════ */
/* Slide 4 — flex-flow centering (no absolute clip risk) */
.hero-slide-center {
  justify-content: center;
}
/* Slide 4 buttons — centred row, same style as all other slides */
.hero-slide-center .hero-actions {
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 40px;
}
@media (min-width: 901px) {
  .hero-slide-center .hero-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    max-width: 100% !important;      /* full slide width */
    width: 100%;
    text-align: center;
    padding: 32px 48px;
  }
}

.hero-insurance-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-logos-wrap {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  width: 100%;
  animation: heroFadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero-logo-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 1);
  border: 1.5px solid rgba(212, 168, 32, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: heroLogoFloat 5s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(212, 168, 32, 0.12);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Premium Gold Shimmer effect */
.hero-logo-item::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(212, 168, 32, 0.25), transparent);
  transform: rotate(45deg);
  animation: goldShimmer 4s infinite;
}

@keyframes goldShimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  50%, 100% { transform: translateX(100%) rotate(45deg); }
}

.hero-logo-item:nth-child(even) { animation-delay: 1.5s; }
.hero-logo-item:nth-child(3n) { animation-delay: 2.5s; }

.hero-logo-item img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-logo-item:hover {
  transform: translateY(-12px) scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(212, 168, 32, 0.45), 0 0 20px rgba(212, 168, 32, 0.25);
  z-index: 5;
}

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

@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .hero-logos-wrap {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-slide-center .hero-content {
    position: relative !important;
    top: auto !important; left: auto !important; bottom: auto !important;
    transform: none !important;
    inset-inline-start: auto !important; inset-inline-end: auto !important;
    padding: 20px 20px;
    max-width: 100%;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-logos-wrap {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 20px;
  }
  .hero-logo-item {
    aspect-ratio: 1.8 / 1;
    padding: 5px;
  }
  .hero-main-logo img { height: 50px; }
  .hero-main-logo { margin-bottom: 10px; }
  .hero-title { font-size: 24px !important; }
}

@media (max-width: 480px) {
  .hero-logos-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-main-logo img { height: 40px; }
}

/* ═══════════════════════════════════════════════════
   FEATURE: STICKY MOBILE CTA
═══════════════════════════════════════════════════ */
#sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  display: flex;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -3px 20px rgba(0,0,0,.18);
}
#sticky-cta.visible { transform: translateY(0); }
.sticky-cta-btn {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  padding: 15px 10px; font-size: 14px; font-weight: 800;
  text-decoration: none; border: none; cursor: pointer;
  transition: filter .2s;
}
.sticky-cta-btn:active { filter: brightness(.88); }
.sticky-cta-call { background: var(--primary); color: #fff; }
.sticky-cta-book { background: var(--accent);  color: #fff; }
.sticky-cta-divider { width: 1px; background: rgba(255,255,255,.3); flex-shrink: 0; }
@media (min-width: 769px) { #sticky-cta { display: none !important; } }
@media (max-width: 768px) { body { padding-bottom: 56px; } }

/* ═══════════════════════════════════════════════════
   FEATURE: WHATSAPP CHAT WIDGET
═══════════════════════════════════════════════════ */
#float-whatsapp { display: none !important; } /* replaced by widget */
#wa-widget {
  position: fixed;
  bottom: 88px; inset-inline-end: 22px;
  z-index: 8999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
@media (max-width: 768px) { #wa-widget { bottom: 68px; inset-inline-end: 14px; } }
#wa-bubble {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
#wa-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
#wa-dot {
  position: absolute; top: 3px; inset-inline-end: 3px;
  width: 13px; height: 13px;
  background: #ff4040; border-radius: 50%; border: 2px solid #fff;
  animation: waDotPulse 2.2s ease-in-out infinite;
}
@keyframes waDotPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:.7} }
#wa-panel {
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  width: 300px; overflow: hidden;
  display: none; transform-origin: bottom right;
}
html[dir="ltr"] #wa-panel { transform-origin: bottom left; }
#wa-panel.open { display: block; animation: waPanelIn .25s cubic-bezier(.4,0,.2,1); }
@keyframes waPanelIn { from{opacity:0;transform:translateY(10px) scale(.95)} to{opacity:1;transform:none} }
.wa-panel-head {
  background: #075E54; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; color: #fff;
}
.wa-panel-close {
  margin-inline-start: auto; background: none; border: none;
  color: rgba(255,255,255,.7); cursor: pointer; font-size: 20px; line-height: 1;
  padding: 0 4px; transition: color .15s;
}
.wa-panel-close:hover { color: #fff; }
.wa-avatar-wrap {
  width: 42px; height: 42px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wa-panel-name { font-size: 14px; font-weight: 800; line-height: 1.2; }
.wa-panel-status { font-size: 11.5px; opacity: .75; }
.wa-panel-body {
  background: #e5ddd5; padding: 20px 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3C/svg%3E");
}
.wa-msg-bubble {
  background: #fff; border-radius: 0 12px 12px 12px;
  padding: 10px 14px; font-size: 13px; line-height: 1.6; color: #333;
  max-width: 85%; box-shadow: 0 1px 2px rgba(0,0,0,.1);
  margin-bottom: 6px;
}
.wa-msg-time { font-size: 11px; color: #999; text-align: end; }
.wa-cta-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff; font-size: 14px; font-weight: 800;
  padding: 15px; text-decoration: none; transition: background .2s;
}
.wa-cta-link:hover { background: #1ea855; color: #fff; }

/* ═══════════════════════════════════════════════════
   FEATURE: GOOGLE REVIEWS WIDGET
═══════════════════════════════════════════════════ */
.reviews-rating-box {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius-xl); padding: 28px 32px;
  border: 1px solid var(--border); margin-bottom: 36px;
  box-shadow: 0 2px 12px rgba(27,107,123,.07);
}
.reviews-big-num {
  font-size: 64px; font-weight: 900; color: var(--text); line-height: 1;
}
.reviews-stars-row { display: flex; gap: 4px; margin: 6px 0; }
.reviews-stars-row svg { fill: #fbbc04; width: 22px; height: 22px; }
.reviews-total { font-size: 13px; color: var(--text-muted); }
.reviews-g-badge {
  display: flex; align-items: center; gap: 6px;
  margin-inline-start: auto; font-size: 13px; color: var(--text-muted);
}
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px;
}
.review-card {
  background: #fff; border-radius: var(--radius-xl); padding: 22px;
  border: 1px solid var(--border); transition: box-shadow .2s, transform .2s;
}
.review-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.review-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 700; color: var(--text); }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-card-stars { display: flex; gap: 2px; margin-bottom: 10px; }
.review-card-stars svg { fill: #fbbc04; width: 15px; height: 15px; }
.review-text { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.reviews-cta { text-align: center; margin-top: 36px; }
@media (max-width: 640px) {
  .reviews-rating-box { flex-direction: column; align-items: flex-start; gap: 16px; }
  .reviews-g-badge { margin-inline-start: 0; }
  .reviews-big-num { font-size: 48px; }
}

/* ═══════════════════════════════════════════════════
   FEATURE: BEFORE/AFTER GALLERY
═══════════════════════════════════════════════════ */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 28px; margin-top: 40px; }
.ba-card {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.ba-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.ba-slider-wrap {
  position: relative; height: 240px; overflow: hidden;
  cursor: col-resize; user-select: none; touch-action: pan-y;
}
.ba-before, .ba-after {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ba-after { clip-path: inset(0 50% 0 0); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff; z-index: 5; pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.3));
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; z-index: 6;
  pointer-events: none;
}
.ba-label-before, .ba-label-after {
  position: absolute; top: 12px; z-index: 4;
  padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 800; color: #fff;
}
.ba-label-before { inset-inline-end: 12px; background: rgba(0,0,0,.5); }
.ba-label-after  { inset-inline-start: 12px; background: var(--primary); }
.ba-info { padding: 16px 20px 20px; }
.ba-specialty { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.ba-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.ba-desc { font-size: 13px; color: var(--text-muted); }
.ba-disclaimer {
  margin-top: 28px; padding: 14px 18px;
  background: var(--bg); border-radius: var(--radius-lg); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   FEATURE: COUNTDOWN TIMER
═══════════════════════════════════════════════════ */
.countdown-strip {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  background: linear-gradient(135deg,#fff8e1,#fff3cd);
  border: 1px solid var(--accent); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px;
}
.countdown-fire { font-size: 16px; }
.countdown-label-text { font-size: 12px; font-weight: 700; color: #92600a; }
.countdown-units { display: flex; gap: 6px; margin-inline-start: 6px; }
.countdown-unit {
  background: var(--primary); color: #fff;
  border-radius: 7px; padding: 5px 9px; text-align: center; min-width: 44px;
}
.countdown-num {
  font-size: 18px; font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums; display: block;
}
.countdown-lbl { font-size: 9px; opacity: .8; margin-top: 2px; display: block; }

/* ═══════════════════════════════════════════════════
   FEATURE: APPOINTMENT SUCCESS OVERLAY
═══════════════════════════════════════════════════ */
#appt-success-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 10000;
  align-items: center; justify-content: center; padding: 20px;
}
#appt-success-overlay.show { display: flex; animation: aoFade .3s ease; }
@keyframes aoFade { from{opacity:0} to{opacity:1} }
.ao-card {
  background: #fff; border-radius: 24px; padding: 40px 32px;
  max-width: 420px; width: 100%; text-align: center;
  animation: aoSlide .35s cubic-bezier(.4,0,.2,1);
  position: relative;
}
@keyframes aoSlide { from{transform:translateY(20px);opacity:0} to{transform:none;opacity:1} }
.ao-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
}
.ao-title { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.ao-sub { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.ao-ref {
  background: var(--bg); border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg); padding: 12px 20px;
  font-family: monospace; font-size: 20px; font-weight: 900;
  color: var(--primary); letter-spacing: 3px; margin-bottom: 20px;
}
.ao-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff; border-radius: var(--radius-lg);
  padding: 14px 24px; font-weight: 800; font-size: 15px;
  text-decoration: none; margin-bottom: 12px; transition: background .2s;
}
.ao-wa-btn:hover { background: #1ea855; color: #fff; }
.ao-close {
  background: none; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 10px 28px; font-size: 14px; color: var(--text-muted);
  cursor: pointer; transition: border-color .2s, color .2s; width: 100%;
}
.ao-close:hover { border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════════════════════════════
   REVIEWS — Light carousel
══════════════════════════════════════════════════════ */
.revs-section {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #d4eef5 0%, #eaf9f5 35%, #f4fffe 65%, #ddf0ea 100%);
  padding: 100px 0 80px;
}

.revs-header { text-align: center; margin-bottom: 52px; position: relative; z-index: 2; }
.revs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(27,107,123,.08); border: 1px solid rgba(27,107,123,.22);
  color: #1B6B7B; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  padding: 6px 18px; border-radius: 50px; margin-bottom: 18px;
}
.revs-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #1B6B7B; animation: revDotPulse 2s ease-in-out infinite; }
@keyframes revDotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(1.6)} }
.revs-title { font-size: clamp(26px,4vw,44px); font-weight: 900; color: #0d1d2a; margin: 0 0 8px; line-height: 1.22; }
.revs-title em { font-style: normal; color: #1B6B7B; }
.revs-sub { font-size: 16px; color: #64748b; }

/* Rating hero strip */
.revs-rating-hero {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
  margin-bottom: 64px; position: relative; z-index: 2;
  background: #fff; border: 1px solid #dde8ef;
  border-radius: 24px; padding: 32px 48px;
  box-shadow: 0 8px 40px rgba(27,107,123,.1);
}
.revs-score-block { text-align: center; }
.revs-big-score {
  font-size: 84px; font-weight: 900; line-height: 1;
  color: #0d1d2a; font-family: 'Inter', sans-serif; letter-spacing: -3px;
}
.revs-stars-row {
  display: flex; gap: 5px; justify-content: center; margin: 10px 0 8px;
}
.revs-stars-row svg {
  width: 26px; height: 26px; fill: #fbbc04;
  animation: revStarPop .55s cubic-bezier(.34,1.56,.64,1) both;
}
.revs-stars-row svg:nth-child(1){animation-delay:.05s}
.revs-stars-row svg:nth-child(2){animation-delay:.13s}
.revs-stars-row svg:nth-child(3){animation-delay:.21s}
.revs-stars-row svg:nth-child(4){animation-delay:.29s}
.revs-stars-row svg:nth-child(5){animation-delay:.37s}
@keyframes revStarPop { from{transform:scale(0) rotate(-20deg);opacity:0} 70%{transform:scale(1.3) rotate(5deg)} to{transform:scale(1) rotate(0);opacity:1} }
.revs-score-lbl { font-size: 13px; color: #94a3b8; margin-top: 2px; }
.revs-hero-sep { width: 1px; height: 90px; background: #dde8ef; }

/* Bars */
.revs-bars { display: flex; flex-direction: column; gap: 9px; min-width: 210px; }
.revs-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #64748b; }
.revs-bar-track { flex: 1; height: 7px; border-radius: 4px; background: #e8f0f5; overflow: hidden; }
.revs-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#fbbc04,#f9a825); width: 0; transition: width 1.2s cubic-bezier(.4,0,.2,1); }
.revs-bar-pct { width: 32px; text-align: left; font-size: 11px; color: #94a3b8; }
html[dir="rtl"] .revs-bar-pct { text-align: right; }

/* Google badge */
.revs-google-badge { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.revs-google-logo {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #dde8ef; border-radius: 14px; padding: 12px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
.revs-google-logo span { font-size: 15px; font-weight: 700; color: #1a2d3a; }
.revs-review-count { font-size: 12px; color: #94a3b8; }

/* ══ Carousel ══ */
.revs-carousel-outer {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  max-width: 860px; margin: 0 auto;
  padding: 0 24px;
}
.revs-carousel { flex: 1; min-width: 0; overflow: hidden; position: relative; }
.revs-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.revs-slide { padding: 8px 6px; min-width: 0; }

/* Review card — light */
.revs-card {
  background: #fff;
  border: 1.5px solid rgba(27,107,123,.14);
  border-top: 3px solid #1B6B7B;
  border-radius: 20px; padding: 30px 28px 24px;
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 8px 32px rgba(27,107,123,.13), 0 2px 8px rgba(0,0,0,.06);
  display: flex; flex-direction: column; min-height: 260px;
}
.revs-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(27,107,123,.22), 0 4px 12px rgba(0,0,0,.08); }
.revs-card::before {
  content: '\201C';
  position: absolute; top: 16px; right: 22px;
  font-size: 72px; line-height: 1; font-family: Georgia, serif;
  color: rgba(27,107,123,.1); pointer-events: none;
}
html[dir="ltr"] .revs-card::before { right: auto; left: 22px; }
.revs-card-stars { display: flex; gap: 4px; margin-bottom: 14px; }
.revs-card-stars svg { width: 18px; height: 18px; fill: #fbbc04; }
.revs-card-text {
  font-size: 14.5px; line-height: 1.85; color: #334155;
  margin: 0; padding-bottom: 18px; flex: 1;
}
.revs-card-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid #e8f0f5; padding-top: 16px; margin-top: auto;
}
.revs-card-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.revs-card-name { font-size: 14px; font-weight: 800; color: #0d1d2a; }
.revs-card-role { font-size: 12px; font-weight: 600; color: #94a3b8; margin-top: 2px; }
.revs-card-g { margin-right: auto; opacity: .8; flex-shrink: 0; }
html[dir="ltr"] .revs-card-g { margin-right: 0; margin-left: auto; }

/* Nav buttons */
.revs-nav-btn {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 1.5px solid #d1e0e8;
  color: #1B6B7B; font-size: 22px; font-weight: 400; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s, box-shadow .2s, transform .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.revs-nav-btn:hover { background: #1B6B7B; color: #fff; border-color: #1B6B7B; box-shadow: 0 6px 24px rgba(27,107,123,.32); transform: scale(1.08); }

/* Dots */
.revs-dots {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; margin-top: 28px; position: relative; z-index: 2;
}
.revs-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: #c0d4de; border: none; cursor: pointer; padding: 0;
  transition: all .32s cubic-bezier(.34,1.56,.64,1);
}
.revs-dot.active { width: 26px; background: #1B6B7B; box-shadow: 0 0 10px rgba(27,107,123,.38); }

/* CTA */
.revs-cta { text-align: center; margin-top: 48px; position: relative; z-index: 2; }
.revs-cta-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid #1B6B7B;
  color: #1B6B7B; border-radius: 50px;
  padding: 14px 34px; font-size: 14px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(27,107,123,.12);
  transition: all .3s ease;
}
.revs-cta-link:hover { background: #1B6B7B; color: #fff; box-shadow: 0 8px 30px rgba(27,107,123,.32); transform: translateY(-3px); }

/* Responsive */
@media (max-width: 900px) {
  .revs-rating-hero { gap: 24px; padding: 24px 28px; }
  .revs-big-score { font-size: 64px; letter-spacing: -2px; }
  .revs-hero-sep { display: none; }
}
@media (max-width: 600px) {
  .revs-section { padding: 70px 0 60px; }
  .revs-carousel-outer { padding: 0 12px; gap: 10px; }
  .revs-rating-hero { padding: 20px 16px; gap: 20px; }
  .revs-nav-btn { width: 36px; height: 36px; font-size: 18px; }
  .revs-card { padding: 24px 20px 20px; }
}

/* ════════════════════════════════════════════════════════
   BLOG REDESIGN — homepage preview + standalone page
════════════════════════════════════════════════════════ */

/* Article accent palette */
:root {
  --art-dentistry:  #1B6B7B;
  --art-ortho:      #22B8D4;
  --art-derm:       #7c6de8;
  --art-gyn:        #c0479a;
  --art-surgery:    #C9A84C;
  --art-general:    #28a860;
  --art-emergency:  #c0392b;
}

/* ── HOMEPAGE BLOG PREVIEW ── */
.blog-preview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .blog-preview-grid { grid-template-columns: 1fr; }
}

/* Featured card */
.blog-feat-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  box-shadow: 0 8px 40px rgba(27,107,123,.30);
  transition: transform .38s cubic-bezier(.4,0,.2,1), box-shadow .38s;
}
.blog-feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(27,107,123,.38);
}
.blog-feat-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--feat-color1, #1B6B7B) 0%, var(--feat-color2, #22B8D4) 100%);
}
/* Real photo layer — sits between .blog-feat-bg gradient and content */
.blog-feat-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; z-index: 1;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.blog-feat-card:hover .blog-feat-img { transform: scale(1.05); }
/* Dark scrim over photo so text stays readable */
.blog-feat-bg { z-index: 2; background: linear-gradient(160deg, rgba(27,107,123,.28) 0%, rgba(5,16,24,.72) 100%); }
.blog-feat-emoji {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  font-size: 108px;
  opacity: .22;
  pointer-events: none;
  transition: transform .5s ease, opacity .5s;
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
}
.blog-feat-card:hover .blog-feat-emoji {
  transform: translate(-50%, -66%);
  opacity: .34;
}
.blog-feat-badge {
  position: absolute;
  top: 22px; right: 22px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.30);
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 15px; border-radius: 50px;
}
html[dir="ltr"] .blog-feat-badge { right: auto; left: 22px; }
.blog-feat-content {
  position: relative; z-index: 2;
  padding: 28px 30px;
  background: linear-gradient(to top, rgba(4,14,24,.94) 0%, rgba(4,14,24,.65) 55%, transparent 100%);
}
.blog-feat-cat {
  display: inline-block;
  color: #2bbfd6; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  margin-bottom: 8px;
}
.blog-feat-title {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 800; color: #fff; line-height: 1.45; margin: 0 0 10px;
}
.blog-feat-excerpt {
  font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.7;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-feat-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 18px;
}
.blog-feat-read-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(43,191,214,.22);
  border: 1.5px solid rgba(43,191,214,.55);
  color: #fff; padding: 9px 20px;
  border-radius: 50px; font-size: 13px; font-weight: 700;
  transition: background .25s, border-color .25s;
}
.blog-feat-read-btn:hover {
  background: rgba(43,191,214,.40);
  border-color: rgba(43,191,214,.85);
}

/* Side cards */
.blog-side-col { display: flex; flex-direction: column; gap: 18px; }
.blog-side-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border-radius: 16px; padding: 18px;
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.blog-side-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--card-accent, var(--primary));
  border-radius: 0 4px 4px 0;
}
html[dir="ltr"] .blog-side-card::before { right: auto; left: 0; border-radius: 4px 0 0 4px; }
.blog-side-card:hover {
  transform: translateX(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  border-color: var(--card-accent, var(--primary));
}
html[dir="ltr"] .blog-side-card:hover { transform: translateX(4px); }
.blog-side-icon {
  width: 76px; height: 76px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; flex-shrink: 0;
  background: var(--card-icon-bg, var(--primary-xlt));
  overflow: hidden; position: relative;
}
.blog-side-icon img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: 13px;
  transition: transform .4s ease;
}
.blog-side-card:hover .blog-side-icon img { transform: scale(1.08); }
.blog-side-body { flex: 1; min-width: 0; }
.blog-side-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--card-accent, var(--primary)); margin-bottom: 4px;
}
.blog-side-title {
  font-size: 14.5px; font-weight: 800; color: var(--text);
  line-height: 1.5; margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color .25s;
}
.blog-side-card:hover .blog-side-title { color: var(--card-accent, var(--primary)); }
.blog-side-meta { font-size: 12px; color: var(--text-muted); }

/* ── BLOG PAGE STANDALONE ── */

/* Hero */
.blog-pg-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg,
    #1B6B7B 0%, #1e85a0 22%, #2490AC 45%, #2bbfd6 72%, #6de4f5 90%, #b8f0fa 100%);
  min-height: 52vh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 0 80px;
}
.blog-pg-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: pgOrbFloat 9s ease-in-out infinite;
}
.blog-pg-orb:nth-child(1) {
  width: 440px; height: 440px; top: -120px; right: -60px;
  background: radial-gradient(circle, rgba(43,191,214,.20) 0%, transparent 68%);
}
.blog-pg-orb:nth-child(2) {
  width: 300px; height: 300px; bottom: -80px; left: 4%;
  background: radial-gradient(circle, rgba(27,107,123,.28) 0%, transparent 68%);
  animation-delay: -4s; animation-duration: 12s;
}
.blog-pg-orb:nth-child(3) {
  width: 180px; height: 180px; top: 30%; left: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  animation-delay: -7s; animation-duration: 7s;
}
@keyframes pgOrbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-18px) scale(1.06); }
}

.blog-pg-hero-content {
  text-align: center; color: #fff;
  position: relative; z-index: 2; padding: 0 20px;
}
.blog-pg-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid #2bbfd6;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 24px; border-radius: 50px; margin-bottom: 24px;
  animation: bpgFadeUp .6s ease both;
}
.blog-pg-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2bbfd6;
  box-shadow: 0 0 10px rgba(43,191,214,.8);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { transform:scale(1); opacity: 1; }
  50%      { transform:scale(1.4); opacity: 0.5; }
}
.blog-pg-title {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 900; line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: bpgFadeUp .7s .08s ease both;
}
.blog-pg-title em {
  font-style: normal;
  background: linear-gradient(to right, #fff 0%, #2bbfd6 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bpgShimmer 4s linear infinite;
}
@keyframes bpgShimmer { to { background-position: 200% center; } }
.blog-pg-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,.85);
  line-height: 1.7; max-width: 800px; margin: 0 auto 40px;
  animation: bpgFadeUp .7s .16s ease both;
}
/* ── Stats cards ── */
.blog-pg-stats {
  display: flex; align-items: stretch; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  animation: bpgFadeUp .7s .24s ease both;
}
.blog-pg-stats > div:not(.blog-pg-divider) {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-top: 2px solid #2bbfd6;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border-radius: 20px;
  padding: 24px 40px;
  min-width: 150px;
  text-align: center;
  transition: all .3s ease;
}
.blog-pg-stats > div:not(.blog-pg-divider):hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.2);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.blog-pg-stat-num {
  font-size: 36px; font-weight: 900; line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.blog-pg-stat-lbl {
  font-size: 13px; color: #fff;
  margin-top: 8px; font-weight: 600; letter-spacing: .05em;
  opacity: 0.9;
}
.blog-pg-divider { display: none; }
@keyframes bpgFadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Filter bar */
.blog-filter-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; justify-content: center;
  padding: 40px 0 12px;
}
.blog-filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--border);
  background: #fff; color: var(--text-muted);
  cursor: pointer; transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}
.blog-filter-btn img {
  width: 18px; height: 18px;
  object-fit: contain;
  transition: filter .25s;
}
.blog-filter-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.blog-filter-btn.bf-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-filter-btn.bf-active img { filter: brightness(0) invert(1); }
.blog-filter-btn[data-cat="dentistry"].bf-active  { background: var(--art-dentistry); border-color: var(--art-dentistry); }
.blog-filter-btn[data-cat="ortho"].bf-active      { background: var(--art-ortho);      border-color: var(--art-ortho); }
.blog-filter-btn[data-cat="derm"].bf-active       { background: var(--art-derm);       border-color: var(--art-derm); }
.blog-filter-btn[data-cat="gyn"].bf-active        { background: var(--art-gyn);        border-color: var(--art-gyn); }
.blog-filter-btn[data-cat="surgery"].bf-active    { background: var(--art-surgery);    border-color: var(--art-surgery); }
.blog-filter-btn[data-cat="general"].bf-active    { background: var(--art-general);    border-color: var(--art-general); }
.blog-filter-btn[data-cat="emergency"].bf-active  { background: var(--art-emergency);  border-color: var(--art-emergency); }

/* Featured article (blog page) */
.bfeat-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.13);
  text-decoration: none; min-height: 340px;
  transition: transform .38s, box-shadow .38s;
  margin-bottom: 52px;
}
.bfeat-wrap:hover { transform: translateY(-5px); box-shadow: 0 22px 60px rgba(0,0,0,.19); }
.bfeat-visual {
  display: flex; align-items: center; justify-content: center;
  font-size: 110px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--bfeat-c1, #1B6B7B), var(--bfeat-c2, #22B8D4));
}
/* Real photo for featured article visual */
.bfeat-visual-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.bfeat-wrap:hover .bfeat-visual-img { transform: scale(1.05); }
.bfeat-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(4,14,24,.42) 0%, transparent 55%);
}
html[dir="ltr"] .bfeat-visual::after {
  background: linear-gradient(to right, rgba(4,14,24,.42) 0%, transparent 55%);
}
.bfeat-emoji {
  position: relative; z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
  animation: featBobBlog 5.5s ease-in-out infinite;
}
@keyframes featBobBlog {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
.bfeat-info {
  background: #fff; padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.bfeat-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--bfeat-accent, var(--primary)); margin-bottom: 14px;
}
.bfeat-eyebrow-line {
  display: inline-block; width: 26px; height: 2px;
  background: var(--bfeat-accent, var(--primary)); border-radius: 2px;
}
.bfeat-title {
  font-size: clamp(19px, 2.2vw, 26px); font-weight: 900;
  color: var(--text); line-height: 1.4; margin: 0 0 14px;
  transition: color .25s;
}
.bfeat-wrap:hover .bfeat-title { color: var(--bfeat-accent, var(--primary)); }
.bfeat-excerpt {
  font-size: 14.5px; color: var(--text-muted); line-height: 1.8;
  margin: 0 0 28px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bfeat-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bfeat-accent, var(--primary));
  color: #fff; border-radius: 50px;
  padding: 11px 26px; font-size: 14px; font-weight: 800;
  align-self: flex-start;
  transition: opacity .25s, transform .25s;
}
.bfeat-wrap:hover .bfeat-btn { opacity: .88; transform: translateX(-4px); }
html[dir="ltr"] .bfeat-wrap:hover .bfeat-btn { transform: translateX(4px); }
@media (max-width: 760px) {
  .bfeat-wrap { grid-template-columns: 1fr; }
  .bfeat-visual { min-height: 200px; }
  .bfeat-info { padding: 28px 24px; }
}

/* Magazine grid */
.blog-mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 1024px) { .blog-mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .blog-mag-grid { grid-template-columns: 1fr; } }

/* Magazine card */
.bmag-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 18px rgba(0,0,0,.07);
  display: flex; flex-direction: column;
  text-decoration: none; position: relative;
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease, box-shadow .35s;
}
.bmag-card.bm-vis { opacity:1; transform:translateY(0); }
.bmag-card:hover { transform: translateY(-6px) !important; box-shadow: 0 18px 52px rgba(0,0,0,.14); }
.bmag-card.bm-hidden { display: none; }

/* Accent top bar */
.bmag-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--card-accent, var(--primary)); z-index: 3;
}
.bmag-cover {
  height: 192px;
  display: flex; align-items: center; justify-content: center;
  font-size: 62px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--cover-c1, #1B6B7B) 0%, var(--cover-c2, #22B8D4) 100%);
}
/* Real photo inside cover */
.bmag-cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.bmag-card:hover .bmag-cover-img { transform: scale(1.06); }
/* Subtle gradient overlay so card top-accent bar is still readable */
.bmag-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.22) 100%);
  z-index: 1; pointer-events: none;
}
.bmag-cover-emoji {
  position: relative; z-index: 2;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.28));
  transition: transform .4s ease;
  display: none; /* hidden when real image is present */
}
.bmag-cover-emoji.show { display: block; } /* fallback if no image */
.bmag-card:hover .bmag-cover-emoji { transform: scale(1.14) translateY(-5px); }
.bmag-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.bmag-cat {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--card-accent, var(--primary)); margin-bottom: 10px; text-transform: uppercase;
}
.bmag-cat-icon {
  width: 16px; height: 16px; object-fit: contain;
  /* Filter to match the accent color or stay original */
  transition: transform .3s;
}
.bmag-card:hover .bmag-cat-icon { transform: scale(1.1) rotate(-5deg); }
.bfeat-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bfeat-accent, var(--primary));
}
.bfeat-eyebrow-line { width: 30px; height: 2px; background: currentColor; opacity: .4; }
.bfeat-title {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 900;
  color: var(--text); line-height: 1.3; margin: 0 0 16px;
  transition: color .25s;
}
.bmag-title {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 16px; font-weight: 800; color: var(--text);
  line-height: 1.5; margin: 0 0 12px;
  transition: color .25s;
}
.art-icon-box {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(43,191,214,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
  margin-top: 2px;
}
.bmag-card:hover .art-icon-box, .bfeat-wrap:hover .art-icon-box {
  transform: scale(1.1);
}
.art-icon-box img {
  width: 16px; height: 16px;
  object-fit: contain;
}
.bmag-card:hover .bmag-title { color: var(--card-accent, var(--primary)); }
.bmag-excerpt {
  font-size: 13px; color: var(--text-muted); line-height: 1.7;
  flex: 1; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bmag-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 13px; border-top: 1px solid var(--border); gap: 8px;
}
.bmag-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.bmag-read-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--card-accent, var(--primary));
  transition: gap .22s;
}
.bmag-card:hover .bmag-read-more { gap: 8px; }

/* Blog page CTA */
.blog-pg-cta {
  background: linear-gradient(135deg, #1B6B7B 0%, #22B8D4 55%, #4cd8ed 100%);
  border-radius: 24px; padding: 52px 40px;
  text-align: center; margin-top: 68px;
  position: relative; overflow: hidden;
}
.blog-pg-cta::after {
  content: '🏥';
  position: absolute; right: 36px; top: 50%; transform: translateY(-50%);
  font-size: 100px; opacity: .08; pointer-events: none;
}
html[dir="ltr"] .blog-pg-cta::after { right: auto; left: 36px; }
.blog-pg-cta h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 900; color: #fff; margin: 0 0 10px; }
.blog-pg-cta p  { font-size: 16px; color: rgba(255,255,255,.76); margin: 0 0 28px; }
.blog-pg-cta .btn-white {
  background: #fff; color: var(--primary);
  padding: 13px 36px; border-radius: 50px; font-size: 15px; font-weight: 800;
  text-decoration: none; display: inline-block; transition: background .25s;
}
.blog-pg-cta .btn-white:hover { background: var(--primary-xlt); }

.footer-dev {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.footer-dev a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-dev a:hover {
  color: #fff;
}
.footer-dev img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════
   OFFERS SUB-PAGES — Shared Component Styles
═══════════════════════════════════════════════════ */

/* ── Hero banner ── */
.sp-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 52vw, 620px);
  isolation: isolate;
  background:
    linear-gradient(110deg, oklch(18% .042 213), oklch(30% .072 197) 48%, oklch(40% .09 176));
}
.sp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 24, 30, .18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(246, 253, 252, .10) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 24%, black 76%, transparent 100%);
  opacity: .42;
  animation: sp-grid-drift 18s linear infinite;
}
.sp-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -1px -8%;
  z-index: 3;
  height: 34%;
  background: linear-gradient(to top, oklch(98% .009 197), transparent);
  pointer-events: none;
}
.sp-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.035);
  animation: sp-hero-kenburns 14s cubic-bezier(.16, 1, .3, 1) both;
}
.sp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 5vw, 5.5rem);
  background:
    linear-gradient(to top, rgba(5, 20, 27, .94) 0%, rgba(5, 20, 27, .58) 42%, rgba(5, 20, 27, .10) 100%),
    linear-gradient(110deg, rgba(10, 100, 115, .48), transparent 52%);
}
.sp-hero-text {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: sp-rise .8s cubic-bezier(.16, 1, .3, 1) both;
}
.sp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: oklch(92% .115 93);
  background: rgba(11, 45, 54, .72);
  border: 1px solid rgba(246, 253, 252, .22);
  box-shadow: inset 0 1px 0 rgba(246, 253, 252, .18), 0 16px 34px rgba(3, 14, 18, .28);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  padding: .42rem 1.05rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.sp-hero-title {
  font-size: clamp(2.1rem, 5.7vw, 5rem);
  font-weight: 900;
  color: oklch(98% .008 190);
  text-shadow: 0 24px 54px rgba(3, 14, 18, .58);
  line-height: 1.05;
  max-width: 12ch;
  margin-bottom: .8rem;
}
.sp-hero-sub {
  color: oklch(91% .025 190 / .86);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.8;
  max-width: 55ch;
}
.sp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: .82rem;
  color: oklch(88% .018 190 / .62);
  margin-top: 1.15rem;
}
.sp-breadcrumb a { color: oklch(93% .041 190 / .82); transition: color .2s; }
.sp-breadcrumb a:hover { color: oklch(83% .128 190); }

/* ── Mobile filter chips ── */
.sp-mobile-chips { display: none; overflow-x: auto; gap: .65rem; padding: 1.1rem 0 .25rem; scrollbar-width: none; }
.sp-mobile-chips::-webkit-scrollbar { display: none; }
.sp-chip {
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; flex-shrink: 0;
  padding: .52rem 1.05rem; border-radius: 999px; font-size: .82rem; font-weight: 800;
  color: oklch(33% .071 197); background: oklch(99% .006 190); border: 1px solid oklch(87% .036 194); cursor: pointer;
  font-family: inherit; transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 10px 24px rgba(27,107,123,.08);
}
.sp-chip.active, .sp-chip:hover {
  background: oklch(35% .083 194);
  border-color: oklch(35% .083 194);
  color: oklch(98% .008 190);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 91, 107, .22);
}

/* ── Layout ── */
.sp-layout { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: flex-start; padding: 44px 0 90px; }
.sp-content { flex: 1; min-width: 0; }

/* ── Sidebar ── */
.sp-sidebar { width: 292px; flex-shrink: 0; position: sticky; top: 118px; }
.sb-card {
  background: linear-gradient(180deg, oklch(99% .006 190), oklch(96% .014 190));
  border-radius: 8px;
  border: 1px solid oklch(87% .035 194);
  box-shadow: 0 24px 60px rgba(27,107,123,.14);
  overflow: hidden;
}
.sb-head {
  position: relative;
  background:
    linear-gradient(135deg, oklch(22% .053 207), oklch(34% .086 194) 72%, oklch(52% .116 177));
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sb-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(246,253,252,.22), transparent);
  transform: translateX(-120%);
  animation: sp-sheen 5.5s cubic-bezier(.16, 1, .3, 1) infinite;
}
.sb-head-title { position: relative; z-index: 1; font-size: .97rem; font-weight: 900; color: oklch(98% .008 190); }
.sb-reset { position: relative; z-index: 1; font-size: .74rem; font-weight: 800; color: oklch(92% .02 190 / .76); background: rgba(246,253,252,.12); border: 1px solid rgba(246,253,252,.22); padding: .25rem .7rem; border-radius: 999px; cursor: pointer; font-family: inherit; transition: background .2s, color .2s, transform .2s; }
.sb-reset:hover { background: rgba(246,253,252,.24); color: oklch(98% .008 190); transform: translateY(-1px); }
.sb-body { padding: 1.15rem; }
.sb-filter-lbl { font-size: .71rem; font-weight: 900; color: oklch(34% .086 194); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .65rem; }
.sb-filter-list { display: flex; flex-direction: column; gap: .3rem; }
.sb-fitem { display: flex; align-items: center; justify-content: space-between; padding: .58rem .68rem; border-radius: 8px; cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s; user-select: none; border: 1px solid transparent; }
.sb-fitem:hover { background: oklch(96% .018 190); transform: translateX(-3px); }
.sb-fitem.active { background: oklch(35% .083 194); border-color: oklch(58% .112 184 / .48); box-shadow: 0 14px 28px rgba(20, 91, 107, .18); }
.sb-fitem-inner { display: flex; align-items: center; gap: .4rem; }
.sb-fitem-icon { font-size: .92rem; }
.sb-fitem-name { font-size: .87rem; font-weight: 800; color: oklch(24% .033 208); }
.sb-fitem.active .sb-fitem-name { color: oklch(98% .008 190); }
.sb-fitem-count { font-size: .72rem; font-weight: 900; color: oklch(42% .045 197); background: oklch(93% .027 190); padding: .16rem .5rem; border-radius: 999px; min-width: 26px; text-align: center; }
.sb-fitem.active .sb-fitem-count { background: rgba(246,253,252,.2); color: oklch(98% .008 190); }
.sb-divider { height: 1px; background: oklch(88% .03 194); margin: 1rem 0; }
.sb-info { font-size: .84rem; color: oklch(43% .041 197); line-height: 1.7; margin-bottom: 1rem; }
.sb-book {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  background: linear-gradient(135deg, oklch(68% .19 151), oklch(49% .126 180));
  color: oklch(99% .006 156); font-weight: 900; font-size: .87rem;
  padding: .72rem 1rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 14px 30px rgba(18,140,126,.25); transition: filter .2s, transform .15s, box-shadow .2s;
}
.sb-book:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(18,140,126,.32); }
.sb-result { font-size: .79rem; color: oklch(43% .041 197); margin-top: .8rem; text-align: center; font-weight: 800; }

/* ── Offer grid ── */
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.45rem); align-items: start; }
@media (max-width: 1100px) { .sp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .sp-grid { grid-template-columns: 1fr; } }

/* ── Offer cards ── */
.sp-card {
  position: relative;
  background: oklch(99% .006 190);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(27,107,123,.10);
  border: 1px solid oklch(89% .026 194);
  display: flex;
  flex-direction: column;
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), box-shadow .34s cubic-bezier(.16, 1, .3, 1), border-color .34s;
  will-change: transform;
}
.sp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(246,253,252,.56) 42%, transparent 58%);
  transform: translateX(-135%);
  transition: transform .74s cubic-bezier(.16, 1, .3, 1);
}
.sp-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 70px rgba(20,91,107,.22);
  border-color: oklch(72% .071 190);
}
.sp-card:hover::before { transform: translateX(135%); }
.sp-card-img {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, oklch(96% .018 190), oklch(93% .025 197));
}
.sp-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 24, 30, .18), transparent 35%);
  opacity: 0;
  transition: opacity .3s;
}
.sp-card-img img { width: 100%; height: auto; display: block; object-fit: contain; transition: transform .55s cubic-bezier(.16, 1, .3, 1), filter .55s; }
.sp-card:hover .sp-card-img img { transform: scale(1.045); filter: saturate(1.08) contrast(1.03); }
.sp-card:hover .sp-card-img::after { opacity: 1; }
.sp-card-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: oklch(74% .142 87); color: oklch(20% .035 85); font-size: .7rem; font-weight: 900; letter-spacing: .04em; padding: .32rem .74rem; border-radius: 999px; box-shadow: 0 10px 24px rgba(173,126,14,.25); z-index: 3; }
.sp-card-footer { padding: .95rem 1rem 1.05rem; border-top: 1px solid oklch(91% .022 194); margin-top: auto; background: linear-gradient(180deg, oklch(99% .006 190), oklch(97% .011 190)); }
.sp-book { display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; padding: .72rem 1rem; background: linear-gradient(135deg, oklch(68% .19 151), oklch(49% .126 180)); color: oklch(99% .006 156); font-weight: 900; font-size: .86rem; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 28px rgba(18,140,126,.25); transition: filter .2s, transform .15s, box-shadow .2s; font-family: inherit; }
.sp-book:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(18,140,126,.32); }
.sp-card.hidden { display: none; }

/* ── Sub-page CTA strip ── */
.sp-cta { background: linear-gradient(115deg, oklch(18% .044 213) 0%, oklch(32% .083 194) 58%, oklch(56% .12 180) 100%); padding: clamp(52px, 7vw, 82px) 0; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.sp-cta::before { content:''; position:absolute; inset:0; background: repeating-linear-gradient(100deg, rgba(246,253,252,.08) 0 1px, transparent 1px 18px); opacity: .32; animation: sp-stripes 16s linear infinite; }
.sp-cta h2 { font-size:clamp(1.55rem,3vw,2.35rem); font-weight:900; color:oklch(98% .008 190); margin-bottom:.5rem; position:relative; }
.sp-cta p { color:oklch(91% .025 190 / .76); font-size:.98rem; max-width:530px; margin:0 auto 1.5rem; position:relative; }
.sp-cta-btns { display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; position:relative; }
.sp-cta-wa { display:inline-flex; align-items:center; gap:.45rem; background:oklch(66% .18 151); color:oklch(99% .006 156); font-weight:900; font-size:.93rem; padding:.78rem 1.8rem; border-radius:999px; text-decoration:none; box-shadow:0 16px 34px rgba(18,140,126,.38); transition:filter .2s,transform .15s, box-shadow .2s; }
.sp-cta-wa:hover { filter:brightness(1.08); transform:translateY(-2px); box-shadow:0 20px 40px rgba(18,140,126,.45); }
.sp-cta-appt { display:inline-flex; align-items:center; gap:.45rem; background:rgba(246,253,252,.13); color:oklch(98% .008 190); font-weight:900; font-size:.93rem; padding:.78rem 1.8rem; border-radius:999px; text-decoration:none; border:1px solid rgba(246,253,252,.35); transition:background .2s,transform .15s; }
.sp-cta-appt:hover { background:rgba(246,253,252,.23); transform:translateY(-2px); }

/* ── Back link ── */
.sp-back { display:inline-flex; align-items:center; gap:.38rem; color:oklch(35% .083 194); font-weight:900; font-size:.86rem; text-decoration:none; margin-bottom:1.3rem; transition:color .2s, transform .2s; }
.sp-back:hover { color:oklch(26% .064 202); transform: translateX(3px); }

@keyframes sp-grid-drift { to { background-position: 58px 58px; } }
@keyframes sp-hero-kenburns {
  from { transform: scale(1.08) translateY(10px); }
  to { transform: scale(1.035) translateY(0); }
}
@keyframes sp-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes sp-sheen {
  0%, 48% { transform: translateX(-120%); }
  68%, 100% { transform: translateX(120%); }
}
@keyframes sp-stripes { to { background-position: 120px 0; } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sp-hero { min-height: 420px; }
  .sp-hero-overlay { padding: 1.5rem; }
  .sp-hero-title { max-width: 11ch; }
  .sp-layout { flex-direction: column; padding-top: 28px; }
  .sp-sidebar { display: none !important; }
  .sp-mobile-chips { display: flex !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-hero::before,
  .sb-head::after,
  .sp-cta::before,
  .sp-hero-img {
    animation: none !important;
  }
}
