/* ============================================
   Doctors Walk In Poly Clinic — Styles
   Complete build with mobile menu fix
   ============================================ */

:root {
  --brand-900: #06253a;
  --brand-800: #0a3a55;
  --brand-700: #0e4d6f;
  --brand-600: #166a94;
  --brand-500: #1a7fb0;
  --brand-400: #3d9bc9;
  --brand-300: #7cbde0;
  --brand-200: #b8dcef;
  --brand-100: #e6f2f9;
  --accent-500: #14b8a6;
  --accent-400: #2dd4bf;
  --accent-300: #5eead4;
  --accent-200: #a7f3d0;
  --gold: #e6b980;
  --ink: #0a1a26;
  --ink-soft: #3b5062;
  --ink-mute: #7b8fa0;
  --paper: #ffffff;
  --paper-warm: #f7fbfd;
  --line: #e4eef5;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  --sh-sm: 0 2px 8px rgba(10,58,85,.06);
  --sh-md: 0 8px 30px rgba(10,58,85,.10);
  --sh-lg: 0 20px 60px rgba(10,58,85,.14);

  --t-fast: .2s cubic-bezier(.4,0,.2,1);
  --t: .3s cubic-bezier(.4,0,.2,1);
  --t-slow: .6s cubic-bezier(.22,1,.36,1);

  --container: 1200px;
  --header-h: 78px;
}

/* [hidden] should always hide — overrides display:flex on same element */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
body[dir="rtl"] { font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', sans-serif; }
body.is-loading { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1,h2,h3,h4 {
  margin: 0 0 var(--s-4);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--brand-900);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 var(--s-4); color: var(--ink-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; position: relative; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--brand-900);
  display: grid; place-items: center;
  transition: opacity .5s, visibility .5s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; color: #fff; }
.loader__tooth {
  width: 60px; height: 60px; margin: 0 auto var(--s-4);
  fill: var(--accent-400);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: .8; }
}
.loader__brand { font-size: 1.4rem; font-weight: 700; letter-spacing: .05em; margin-bottom: var(--s-4); }
.loader__bar { width: 180px; height: 3px; background: rgba(255,255,255,.15); border-radius: var(--r-full); margin: 0 auto; overflow: hidden; }
.loader__bar span {
  display: block; height: 100%; width: 40%;
  background: var(--accent-400); border-radius: inherit;
  animation: load 1.4s ease-in-out infinite;
}
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--t);
}
.header.is-scrolled {
  background: rgba(255,255,255,.95);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-sm);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: var(--s-4);
}

.logo { display: flex; align-items: center; gap: var(--s-3); }
.logo__mark { width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--sh-sm); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 800; font-size: .95rem; color: var(--brand-900); letter-spacing: -.01em; }
.logo__sub { font-size: .7rem; color: var(--ink-mute); letter-spacing: .08em; text-transform: uppercase; }

.nav__list { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: var(--s-2) 0;
  transition: var(--t);
}
.nav__link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--accent-500); border-radius: 2px;
  transition: var(--t);
}
.nav__link:hover, .nav__link.active { color: var(--brand-900); }
.nav__link:hover::after, .nav__link.active::after { left: 0; right: 0; }

.header__actions { display: flex; align-items: center; gap: var(--s-3); }

.lang-switch {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 8px 14px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: #fff;
  font-size: .82rem; font-weight: 600; color: var(--brand-800);
  transition: var(--t);
}
.lang-switch:hover { border-color: var(--accent-500); color: var(--accent-500); transform: translateY(-1px); }
.lang-switch__flag { font-size: 1rem; }

.menu-toggle {
  display: none; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 5px;
  border-radius: var(--r-sm); background: var(--brand-100);
}
.menu-toggle span {
  display: block; height: 2px; width: 20px; background: var(--brand-800);
  margin: 0 auto; border-radius: 2px; transition: var(--t);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 12px 22px; border-radius: var(--r-full);
  font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  cursor: pointer; transition: var(--t);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: .82rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent-500), var(--brand-500));
  color: #fff;
  box-shadow: 0 10px 24px rgba(20,184,166,.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20,184,166,.4); }
.btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .8s;
}
.btn--primary:hover::after { transform: translateX(100%); }

.btn--ghost {
  background: transparent; color: var(--brand-800);
  border: 1.5px solid var(--brand-200);
}
.btn--ghost:hover { background: var(--brand-100); border-color: var(--brand-400); }

/* ---------- Marquee ---------- */
.marquee {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--brand-900); color: #fff;
  padding: 10px 0; overflow: hidden; z-index: 90;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  transition: opacity .25s ease;
}
.marquee__track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.marquee__track span { flex-shrink: 0; color: var(--accent-300); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  padding: calc(var(--header-h) + 80px) 0 var(--s-9);
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(180deg, var(--paper-warm) 0%, #fff 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__waves { position: absolute; bottom: -2px; left: 0; width: 100%; height: 55%; }
.hero__mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(20,184,166,.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(26,127,176,.18) 0%, transparent 45%);
}
.hero__noise {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .1 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: var(--s-7); align-items: center;
}
.hero__content { max-width: 620px; }

.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 8px 16px; border-radius: var(--r-full);
  background: rgba(20,184,166,.12); color: var(--accent-500);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: var(--s-5); transition: var(--t);
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-500); position: relative; transition: var(--t);
}
.badge__dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid var(--accent-500);
  animation: ripple 1.8s ease-out infinite; transition: var(--t);
}
@keyframes ripple {
  0% { transform: scale(.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.badge.is-open { background: rgba(20,184,166,.15); color: #0d9488; }
.badge.is-open .badge__dot { background: #10b981; box-shadow: 0 0 14px #10b981; }
.badge.is-open .badge__dot::after { border-color: #10b981; }

.badge.is-closed { background: rgba(220,38,38,.12); color: #b91c1c; }
.badge.is-closed .badge__dot { background: #dc2626; box-shadow: 0 0 14px #dc2626; }
.badge.is-closed .badge__dot::after { border-color: #dc2626; animation: none; opacity: .5; }

.hero__title { margin-bottom: var(--s-5); }
.hero__title-accent {
  display: block;
  background: linear-gradient(135deg, var(--accent-500), var(--brand-500));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: italic; font-weight: 800;
}
.hero__desc { font-size: 1.08rem; max-width: 540px; margin-bottom: var(--s-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-7); }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4); padding-top: var(--s-5);
  border-top: 1px solid var(--line); max-width: 520px;
}
.stat__num {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--brand-900); line-height: 1; letter-spacing: -.03em;
}
.stat__label {
  font-size: .78rem; color: var(--brand-700); font-weight: 600;
  margin-top: 4px; letter-spacing: .06em; text-transform: uppercase;
}

.hero__visual { position: relative; height: 500px; }
.hero__card {
  position: absolute; background: #fff; border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5); box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: var(--s-3);
  border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}
.hero__card i { font-size: 1.4rem; color: var(--accent-500); }
.hero__card strong { display: block; font-size: .92rem; color: var(--brand-900); }
.hero__card span { font-size: .75rem; color: var(--ink-mute); }
.hero__card--1 { top: 5%; left: 5%; animation-delay: 0s; }
.hero__card--2 { top: 42%; right: 0; animation-delay: 1.5s; }
.hero__card--3 { bottom: 5%; left: 15%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
.hero__orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.35) 0%, transparent 70%);
  filter: blur(30px); z-index: -1;
  animation: orbPulse 4s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(-50%,-50%) scale(1.15); }
}

.hero__scroll {
  position: absolute; bottom: var(--s-5); left: 50%;
  transform: translateX(-50%); width: 26px; height: 42px;
  border: 2px solid var(--brand-300); border-radius: var(--r-full);
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--accent-500);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

/* ---------- Section heads ---------- */
.section__head { text-align: center; max-width: 720px; margin: 0 auto var(--s-8); }
.section__eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: var(--accent-500); letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.section__title { margin-bottom: var(--s-4); }
.section__sub { font-size: 1.02rem; color: var(--ink-mute); margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--paper-warm); }
.services__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
}
.service {
  background: #fff; border-radius: var(--r-lg); padding: var(--s-5);
  border: 1px solid var(--line); transition: var(--t);
  position: relative; overflow: hidden;
}
.service::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent-500), var(--brand-500));
  transition: width .4s cubic-bezier(.22,1,.36,1);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.service:hover::before { width: 100%; }
.service__icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-100), rgba(20,184,166,.15));
  display: grid; place-items: center; margin-bottom: var(--s-4);
  color: var(--accent-500); font-size: 1.4rem; transition: var(--t);
}
.service:hover .service__icon {
  background: linear-gradient(135deg, var(--accent-500), var(--brand-500));
  color: #fff; transform: rotate(-6deg) scale(1.05);
}
.service h3 { margin-bottom: var(--s-2); font-size: 1.1rem; }
.service p { font-size: .92rem; margin: 0; color: var(--ink-mute); }

/* ---------- Doctors ---------- */
.doctors { background: #fff; }
.doctors__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5); max-width: 900px; margin: 0 auto;
}
.doctor {
  background: linear-gradient(180deg, var(--paper-warm), #fff);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s-6); transition: var(--t);
  position: relative; overflow: hidden;
}
.doctor::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(20,184,166,.15), transparent 70%);
  border-radius: 50%; transform: translate(30%, -30%);
  transition: var(--t);
}
.doctor:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--accent-200); }
.doctor:hover::after { transform: translate(20%, -20%) scale(1.3); }
.doctor__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-500), var(--brand-500));
  display: grid; place-items: center; color: #fff;
  font-size: 1.8rem; margin-bottom: var(--s-4);
  box-shadow: 0 8px 20px rgba(20,184,166,.3);
}
.doctor h3 { margin-bottom: 4px; font-size: 1.25rem; }
.doctor__role {
  display: block; color: var(--accent-500); font-size: .85rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.doctor p { font-size: .92rem; color: var(--ink-soft); margin-bottom: var(--s-4); }
.doctor__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.doctor__tags span {
  font-size: .75rem; font-weight: 600;
  padding: 5px 11px; background: var(--brand-100);
  color: var(--brand-700); border-radius: var(--r-full);
}
.doctors__note {
  text-align: center; margin-top: var(--s-6);
  font-size: .9rem; color: var(--ink-mute); font-style: italic;
}

/* ---------- Why ---------- */
.why { background: var(--paper-warm); }
.why__inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8); align-items: center;
}
.why__visual { position: relative; }
.why__frame {
  border-radius: var(--r-xl); padding: 6px;
  background: linear-gradient(135deg, var(--accent-500), var(--brand-500));
  box-shadow: var(--sh-lg);
}
.why__frame-inner {
  background: #fff; border-radius: calc(var(--r-xl) - 6px);
  padding: var(--s-7) var(--s-6); text-align: center;
}
.why__frame-inner i {
  font-size: 3rem; color: var(--accent-500);
  margin-bottom: var(--s-4); display: block;
}
.why__frame-inner h4 { font-size: 1.3rem; margin-bottom: var(--s-3); }
.why__frame-inner p { margin: 0; }

.why__list { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.why__num {
  font-size: .78rem; font-weight: 800; color: var(--accent-500);
  background: rgba(20,184,166,.12); padding: 8px 12px;
  border-radius: var(--r-sm); letter-spacing: .05em;
}
.why__item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.why__item p { font-size: .92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { background: #fff; }
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: var(--s-4);
}
.gallery__item {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  padding: 0; cursor: zoom-in; transition: var(--t);
  background: var(--brand-100);
}
.gallery__item:hover { transform: scale(1.02); box-shadow: var(--sh-lg); }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__media { position: relative; width: 100%; height: 100%; overflow: hidden; }
.gallery__media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.gallery__item:hover .gallery__media img { transform: scale(1.08); }

.gallery__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,37,58,.5) 0%, rgba(6,37,58,.75) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: #fff; font-weight: 600; font-size: .95rem;
  letter-spacing: .05em; text-transform: uppercase;
  transition: background .4s, opacity .4s;
}
.gallery__overlay i { font-size: 2rem; text-shadow: 0 4px 12px rgba(0,0,0,.4); }
.gallery__item:hover .gallery__overlay {
  background: linear-gradient(180deg, rgba(6,37,58,.3) 0%, rgba(6,37,58,.6) 100%);
}

/* ---------- Reviews ---------- */
.reviews { background: var(--paper-warm); }
.reviews__grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--s-5);
}
.review {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6); margin: 0;
  transition: var(--t); position: relative;
}
.review::before {
  content: '"'; position: absolute; top: 12px; right: 22px;
  font-size: 5rem; line-height: 1; color: var(--brand-100);
  font-family: Georgia, serif;
}
body[dir="rtl"] .review::before { right: auto; left: 22px; }
.review:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.review__stars {
  color: var(--gold); font-size: 1.05rem;
  letter-spacing: 3px; margin-bottom: var(--s-3);
}
.review blockquote {
  margin: 0 0 var(--s-4); font-size: 1rem;
  color: var(--ink); line-height: 1.6;
  position: relative; z-index: 1;
}
.review figcaption { display: flex; flex-direction: column; }
.review figcaption strong { color: var(--brand-900); font-size: .95rem; }
.review figcaption span { color: var(--ink-mute); font-size: .78rem; }

/* ---------- Insurance ---------- */
.insurance {
  padding: var(--s-7) 0;
  background: var(--brand-900); color: #fff; overflow: hidden;
}
.insurance__label {
  text-align: center; font-size: .8rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand-300); margin-bottom: var(--s-5);
}
.insurance__marquee { overflow: hidden; }
.insurance__track {
  display: flex; gap: 32px; white-space: nowrap;
  font-size: 1.6rem; font-weight: 800; letter-spacing: .04em;
  animation: marquee 30s linear infinite;
  color: rgba(255,255,255,.6);
}
.insurance__track span:nth-child(even) { color: var(--accent-400); }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq__inner {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: var(--s-8); align-items: start;
}
.faq__list { display: grid; gap: var(--s-3); }
.faq__item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; transition: var(--t);
}
.faq__item[open] { border-color: var(--accent-500); box-shadow: var(--sh-sm); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); font-weight: 600; color: var(--brand-900); font-size: .98rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { color: var(--accent-500); transition: transform var(--t); flex-shrink: 0; }
.faq__item[open] summary i { transform: rotate(135deg); }
.faq__item p {
  padding: 0 var(--s-5) var(--s-5); margin: 0;
  color: var(--ink-soft); font-size: .94rem;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Contact ---------- */
.contact { background: var(--paper-warm); }
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-7); align-items: start;
}
.contact__list {
  list-style: none; padding: 0; margin: var(--s-6) 0;
  display: grid; gap: var(--s-4);
}
.contact__list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; }
.contact__list i {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: #fff; display: grid; place-items: center;
  color: var(--accent-500); box-shadow: var(--sh-sm);
}
.contact__list strong { display: block; color: var(--brand-900); font-size: .9rem; margin-bottom: 2px; }
.contact__list span, .contact__list a { color: var(--ink-soft); font-size: .92rem; display: block; }
.contact__list a:hover { color: var(--accent-500); }

.payments { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: 6px; }
.payments i {
  font-size: 1.6rem; color: var(--brand-700);
  background: none; box-shadow: none;
  width: auto; height: auto;
  transition: var(--t);
}
.payments i:hover { color: var(--accent-500); transform: translateY(-2px); }

.contact__map {
  margin-top: var(--s-6); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-md);
}
.contact__map iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact__form {
  background: #fff; border-radius: var(--r-xl);
  padding: var(--s-6); border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  position: sticky; top: calc(var(--header-h) + 40px);
}
.contact__form h3 { margin-bottom: var(--s-2); }
.contact__form > p { font-size: .92rem; margin-bottom: var(--s-5); color: var(--ink-mute); }

.field { margin-bottom: var(--s-4); position: relative; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--brand-900); margin-bottom: var(--s-2);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--paper-warm); transition: var(--t);
  font-size: .95rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-500);
  background: #fff; box-shadow: 0 0 0 4px rgba(20,184,166,.12);
}
.field textarea { resize: vertical; min-height: 80px; }
.field__error {
  display: none; color: #dc2626; font-size: .78rem; margin-top: 4px;
}
.field.is-invalid input, .field.is-invalid select { border-color: #dc2626; background: #fef2f2; }
.field.is-invalid .field__error { display: block; }

.form__success {
  display: flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-4); padding: var(--s-3) var(--s-4);
  background: rgba(20,184,166,.1); border-radius: var(--r-md);
  color: var(--accent-500); font-weight: 600; font-size: .9rem;
}
.form__success i { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-900); color: #fff; padding: var(--s-8) 0 var(--s-5); }
.footer__inner { display: grid; gap: var(--s-6); }
.footer__brand { display: flex; align-items: center; gap: var(--s-4); }
.footer__logo { width: 52px; height: 52px; border-radius: 14px; }
.footer__brand strong { display: block; font-size: 1.05rem; color: #fff; }
.footer__brand p { color: var(--brand-300); font-size: .88rem; margin: 0; }

.footer__social { display: flex; gap: var(--s-2); }
.footer__social a, .footer__social button {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  transition: var(--t); font-size: 1rem;
}
.footer__social a:hover, .footer__social button:hover {
  background: var(--accent-500); border-color: var(--accent-500);
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s-3); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: var(--brand-300);
}
.footer__bottom p { margin: 0; color: inherit; }

/* ---------- FABs ---------- */
.fab {
  position: fixed; right: 22px;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.4rem; color: #fff;
  z-index: 80; box-shadow: var(--sh-md);
  transition: var(--t);
}
body[dir="rtl"] .fab { right: auto; left: 22px; }
.fab--whatsapp { bottom: 22px; background: #25D366; }
.fab--whatsapp:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 14px 32px rgba(37,211,102,.5); }
.fab__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: ripple 2s ease-out infinite;
}
.fab--top {
  bottom: 90px; background: var(--brand-900);
  opacity: 0; visibility: hidden; font-size: 1rem;
}
.fab--top.is-visible { opacity: 1; visibility: visible; }
.fab--top:hover { background: var(--accent-500); transform: translateY(-3px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,37,58,.94); backdrop-filter: blur(10px);
}
.lightbox.is-open { display: flex; animation: fadeIn .3s ease; }
.lightbox__stage {
  width: min(85vw, 900px); max-height: 85vh;
  border-radius: var(--r-lg); overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.lightbox__stage img {
  width: 100%; height: auto; max-height: 85vh;
  object-fit: contain; display: block;
}
.lightbox__close, .lightbox__nav {
  position: absolute; color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 50%; display: grid; place-items: center;
  transition: var(--t);
}
.lightbox__close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 1.6rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent-500); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- RTL ---------- */
body[dir="rtl"] .marquee__track,
body[dir="rtl"] .insurance__track { animation-direction: reverse; }
body[dir="rtl"] .hero__title-accent { font-style: normal; }
body[dir="rtl"] .btn i.fa-arrow-right { transform: scaleX(-1); }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner, .why__inner, .faq__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 360px; }
  .reviews__grid, .doctors__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item--lg, .gallery__item--wide { grid-column: span 2; }
  .contact__form { position: static; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root { --header-h: 66px; }

  /* Hide the marquee when menu is open — prevents overlap */
  body.nav-open .marquee {
    opacity: 0;
    pointer-events: none;
  }

  /* Mobile menu: full-height drawer, slides from hamburger side */
  .nav {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    width: min(320px, 85vw);
    height: auto;
    min-height: calc(100vh - var(--header-h));
    background: #fff;
    box-shadow: 0 20px 60px rgba(6,37,58,.25);
    transition: transform .4s cubic-bezier(.22,1,.36,1);
    padding: var(--s-5);
    padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  html[dir="ltr"] .nav { right: 0; transform: translateX(105%); }
  html[dir="ltr"] .nav.is-open { transform: translateX(0); }
  html[dir="rtl"] .nav { left: 0; transform: translateX(-105%); }
  html[dir="rtl"] .nav.is-open { transform: translateX(0); }

  /* Dim backdrop — behind the drawer */
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(6,37,58,.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 98;
    animation: fadeIn .3s ease;
  }

  .nav__list {
    flex-direction: column;
    gap: var(--s-2);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav__link {
    display: block;
    padding: var(--s-4) var(--s-4);
    border-radius: var(--r-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-900);
    transition: background .2s, color .2s;
  }
  .nav__link:hover,
  .nav__link.active {
    background: var(--brand-100);
    color: var(--brand-900);
  }
  .nav__link::after { display: none; }

  .menu-toggle { display: flex; }

  .marquee { font-size: .65rem; padding: 8px 0; }
  .header .btn--primary span { display: none; }
  .header .btn--primary { padding: 10px 12px; }

  .hero { padding-top: calc(var(--header-h) + 60px); }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .hero__stats .stat:last-child { grid-column: span 2; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__visual { height: 300px; margin-top: var(--s-5); }
  .hero__card { font-size: .85rem; padding: 10px 14px; }
  .hero__card i { font-size: 1rem; }

  .section { padding: var(--s-8) 0; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 160px; }
  .gallery__item--lg, .gallery__item--wide { grid-column: span 1; grid-row: span 1; }
  .gallery__overlay { font-size: .85rem; }
  .gallery__overlay i { font-size: 1.6rem; }

  .footer__bottom { flex-direction: column; text-align: center; }
  .fab { width: 48px; height: 48px; right: 16px; bottom: 16px; font-size: 1.2rem; }
  body[dir="rtl"] .fab { left: 16px; right: auto; }
  .fab--top { bottom: 76px; }

  .lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
