/* ============================================================
   Global Medical Group — Luxury Dark Design System
   Deep teal-black · Gold gradient · Alexandria / Tajawal
   RTL-first, logical properties
   ============================================================ */

:root {
  /* Dark surfaces — derived from the logo teal #43726d */
  --bg-950: #1b3834;      /* page background */
  --bg-900: #21433e;      /* raised band */
  --bg-850: #274e48;      /* panels / forms */
  --bg-800: #2f5c55;

  /* Brand teal (logo color #43726d) */
  --brand-900: #24413d;
  --brand-800: #2f524d;
  --brand-700: #3a635e;
  --brand-600: #43726d;
  --brand-500: #518680;
  --brand-300: #9ec4bf;
  --brand-100: #e7f1ef;
  --brand-050: #f4f9f8;

  /* Gold */
  --gold-300: #f0ddae;
  --gold-500: #c9a227;
  --gold-600: #b3901f;
  --gold-700: #8f6b30;
  --gold-grad: linear-gradient(120deg, var(--gold-300), var(--gold-500) 48%, var(--gold-700));

  /* Legacy aliases */
  --teal-950: #142a27;
  --cream: #faf7f0;
  --gold-100: #f7f0d8;

  /* Text on dark */
  --text-hi: #f6f2e7;
  --text-mid: #c2cfc9;
  --text-low: #8fa39c;
  --ink-900: var(--text-hi);
  --ink-700: var(--text-mid);
  --ink-500: var(--text-low);

  --line: rgba(240, 221, 174, 0.12);        /* gold hairline */
  --line-strong: rgba(240, 221, 174, 0.28);
  --glass: rgba(255, 255, 255, 0.035);
  --white: #ffffff;

  --success: #6fcf97;
  --error: #ef7466;

  /* Typography — Alexandria headings / Tajawal body */
  --font-ar: "Tajawal", "Cairo", "Noto Kufi Arabic", sans-serif;
  --font-head: "Alexandria", "Tajawal", sans-serif;
  --font-en: "Alexandria", "Inter", sans-serif;

  /* Spacing — generous */
  --space-1: 8px;  --space-2: 16px; --space-3: 28px;
  --space-4: 40px; --space-5: 56px; --space-6: 88px; --space-7: 120px;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.35);
  --glow-gold: 0 0 0 1px var(--line), 0 18px 50px rgba(201, 162, 39, 0.10);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-mid);
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(201, 162, 39, 0.08), transparent 60%),
    radial-gradient(1100px 700px at -10% 30%, rgba(158, 196, 191, 0.10), transparent 55%),
    var(--bg-950);
  letter-spacing: normal; /* NEVER track Arabic */
}

html[lang="en"] body { font-family: var(--font-en); line-height: 1.7; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgba(201, 162, 39, 0.35); color: var(--white); }

/* Isolate embedded Latin/numbers inside Arabic text */
.ltr { display: inline-block; direction: ltr; unicode-bidi: isolate; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.45; font-weight: 700; color: var(--text-hi);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.35; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.18rem; }
p  { color: var(--text-mid); }

/* Gold gradient text */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.container { width: min(1180px, 92%); margin-inline: auto; }

section { padding-block: var(--space-6); }

.section-head { text-align: center; max-width: 660px; margin-inline: auto; margin-block-end: var(--space-5); }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--gold-300); font-weight: 700; font-size: 0.88rem;
  margin-block-end: var(--space-2);
}
.section-head .kicker::before, .section-head .kicker::after {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.section-head .kicker::after { background: linear-gradient(90deg, var(--gold-500), transparent); }
.section-head p { margin-block-start: var(--space-2); color: var(--text-low); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 13px 30px;
  border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: var(--gold-grad); color: #1a1305;
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.28);
}
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 14px 38px rgba(201, 162, 39, 0.38); color: #1a1305; }
.btn-primary { background: var(--brand-600); color: var(--white); }
.btn-primary:hover { background: var(--brand-500); }
.btn-outline { border-color: var(--line-strong); color: var(--gold-300); background: transparent; }
.btn-outline:hover { background: rgba(201, 162, 39, 0.1); border-color: var(--gold-500); }
.btn-light { background: rgba(255, 255, 255, 0.94); color: var(--brand-900); }
.btn-light:hover { background: var(--white); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: rgba(4, 10, 8, 0.9); color: var(--text-low);
  font-size: 0.86rem; padding-block: 7px;
  border-block-end: 1px solid rgba(240, 221, 174, 0.08);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-300); }
.topbar a:hover { color: var(--gold-500); }
.topbar svg { width: 15px; height: 15px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 56, 52, 0.85); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
}
.site-header .container {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding-block: 14px 8px;
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--text-hi); font-family: var(--font-head); }
.brand img {
  width: auto; height: 44px; border-radius: 0; object-fit: contain;
  box-shadow: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

/* Centered lockup: Arabic — mark — English */
.brand-lockup { gap: 28px; }
.brand-lockup img { height: 74px; }
.brand-lockup .brand-ar {
  /* Tajawal بدل Alexandria: نقاط الياء تظهر في "العالمي" */
  font-family: var(--font-ar); font-weight: 800; font-size: 1.85rem;
  line-height: 1.55; white-space: nowrap;
  /* Champagne sheen: cream fading into gold */
  background: linear-gradient(180deg, #fdfbf2 30%, var(--gold-300) 78%, #d9bd6a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.brand-lockup .brand-en {
  font-family: var(--font-en); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.24em; /* Latin only — never track Arabic */
  text-transform: uppercase; color: var(--gold-300); white-space: nowrap;
}
.brand-lockup .brand-ar,
.brand-lockup .brand-en { position: relative; }
.brand-lockup .brand-ar::before,
.brand-lockup .brand-en::after {
  content: ""; position: absolute; top: 50%; width: 44px; height: 1px;
  background: linear-gradient(to var(--_dir, left), var(--line-strong), transparent);
}
.brand-lockup .brand-ar::before { inset-inline-start: -68px; --_dir: right; }
.brand-lockup .brand-en::after { inset-inline-end: -68px; --_dir: left; }

/* Footer keeps the compact lockup */
.site-footer .brand img { height: 38px; }
.site-footer .brand .brand-name { font-family: var(--font-ar); font-size: 1rem; padding-inline-start: 12px; border-inline-start: 1px solid var(--line-strong); }

.main-nav { margin-inline-start: 0; }
.main-nav ul { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 15px; border-radius: 10px;
  font-weight: 500; font-size: 0.95rem; color: var(--text-mid);
}
.main-nav a:hover { color: var(--gold-300); background: rgba(255, 255, 255, 0.04); }
.main-nav a.active { color: var(--gold-300); background: rgba(201, 162, 39, 0.12); }

.header-cta {
  display: flex; align-items: center; gap: 10px;
  position: absolute; inset-inline-end: 24px; top: 22px;
}
.header-cta .btn { min-height: 44px; padding: 10px 22px; font-size: 0.92rem; }
.lang-switch {
  font-weight: 700; font-size: 0.85rem; color: var(--gold-300);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px;
}
.lang-switch:hover { border-color: var(--gold-500); background: rgba(201, 162, 39, 0.1); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--gold-300); }

/* ---------- Hero ---------- */
.hero {
  color: var(--text-hi); padding-block: var(--space-7);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset-inline-start: 50%; top: -260px;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero .container { position: relative; z-index: 1; display: grid; gap: var(--space-5); grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero h1 { color: var(--text-hi); }
.hero .lead { color: var(--text-mid); font-size: 1.12rem; max-width: 540px; margin-block: var(--space-3) var(--space-4); }
/* Stats strip: centered in the space under the header, above the hero grid */
.hero .container.hero-stats-row {
  display: flex; justify-content: center; align-items: center;
  margin-block-end: var(--space-5);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 22px; flex-wrap: nowrap;
  white-space: nowrap;
  color: #ffffff; font-size: 1.4rem; font-weight: 800;
}
.hero-badge .badge-sep {
  display: inline-block; width: 1.5px; height: 22px; flex: none;
  background: rgba(255, 255, 255, 0.5);
}
@media (max-width: 960px) {
  .hero-badge { font-size: 1.05rem; gap: 14px; }
  .hero-badge .badge-sep { height: 16px; }
}
@media (max-width: 620px) {
  .hero .container.hero-stats-row { margin-block-end: var(--space-4); width: min(1180px, 96%); }
  /* أكبر وأسمك بسطر واحد: الحجم يتمدد مع عرض الشاشة، ونخفي "الطبية" لكسب مساحة */
  .hero-badge { font-size: clamp(0.8rem, calc(4.1vw - 1.5px), 1.05rem); gap: 5px; font-weight: 900; }
  .hero-badge .badge-sep { height: 14px; }
  .hero-badge .m-hide { display: none; }
}
/* Entry offer strip (عرض البداية) */
.hero .container.entry-offer-row {
  display: flex; justify-content: center; align-items: center;
  margin-block-end: var(--space-5);
}
.entry-offer {
  display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  padding: 12px 26px;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0.06));
  color: var(--text-hi); text-decoration: none;
  font-size: 1.05rem; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.entry-offer:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25); }
.entry-offer .eo-tag {
  background: var(--gold-500); color: #1b3834;
  padding: 3px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 800;
}
.entry-offer .eo-text b { color: var(--gold-300); font-weight: 800; }
.entry-offer .eo-text s { color: var(--text-mid); font-weight: 500; }
.entry-offer .eo-cta { color: var(--gold-300); font-weight: 800; white-space: nowrap; }
@media (max-width: 620px) {
  .hero .container.entry-offer-row { margin-block-end: var(--space-4); }
  .entry-offer { font-size: 0.85rem; gap: 8px; padding: 10px 16px; }
  .entry-offer .eo-tag { font-size: 0.72rem; }
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  color: var(--text-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-4);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ---------- Stats ---------- */
.stats {
  background: rgba(255, 255, 255, 0.02); padding-block: var(--space-5);
  border-block: 1px solid rgba(240, 221, 174, 0.08);
}
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); text-align: center; }
.stat b {
  display: block; font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700; direction: ltr; font-family: var(--font-head);
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* direct child only — the Arabic pages wrap the figure in <b><span class="ltr">, which this
   selector used to shrink to label size */
.stat > span { color: var(--text-low); font-weight: 500; font-size: 0.95rem; }

/* ---------- Video section ---------- */
.video-section { padding-block: var(--space-6); }
.video-section .section-head h2 { color: var(--text-hi); }
.video-section .section-head p { color: var(--text-low); }
.video-wrap {
  max-width: 900px; margin-inline: auto; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line-strong);
}
.video-wrap video { width: 100%; display: block; }

/* ---------- Branch groups ---------- */
.branch-group-title {
  margin-block: var(--space-5) var(--space-3);
  padding-inline-start: var(--space-2);
  border-inline-start: 3px solid var(--gold-500);
  color: var(--gold-300);
}

/* ---------- Footer socials & payments ---------- */
.social-links { display: flex; gap: 10px; margin-block-start: var(--space-2); }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  transition: background .2s, border-color .2s, color .2s;
}
.social-links a:hover { background: var(--gold-500); border-color: var(--gold-500); color: #1a1305; }
.social-links svg { width: 18px; height: 18px; }
.pay-note {
  margin-block-start: var(--space-2); font-size: 0.85rem;
  color: var(--text-low);
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }

.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-4);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  box-shadow: var(--glow-gold); transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.card .icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(201, 162, 39, 0.1); color: var(--gold-300);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-block-end: var(--space-3);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-block-end: 8px; }
.card p { font-size: 0.95rem; color: var(--text-low); }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-300); font-weight: 700; font-size: 0.9rem; margin-block-start: var(--space-2);
}
.card .card-link:hover { color: var(--gold-500); }

/* ---------- Branch card ---------- */
.branch-card { display: flex; flex-direction: column; gap: 10px; }
.branch-card h3 { display: flex; align-items: center; gap: 8px; }
.branch-card h3 svg { width: 20px; height: 20px; color: var(--gold-500); flex: none; }
.branch-meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; color: var(--text-low); }
.branch-meta span { display: flex; align-items: center; gap: 8px; }
.branch-meta svg { width: 16px; height: 16px; color: var(--brand-500); flex: none; }
.branch-actions { display: flex; gap: 8px; margin-block-start: auto; padding-block-start: var(--space-2); flex-wrap: wrap; }
.branch-actions .btn { min-height: 40px; padding: 8px 18px; font-size: 0.88rem; }

/* ---------- Doctors ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-block-end: var(--space-4); }
.filters select, .filters input {
  font-family: inherit; font-size: 0.95rem; min-height: 48px;
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--bg-850); color: var(--text-hi); min-width: 180px;
}
.filters select:focus, .filters input:focus { outline: 2px solid var(--gold-500); border-color: var(--gold-500); }

.doctor-card { text-align: center; }
.doctor-avatar {
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--gold-grad); color: #1a1305;
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto; margin-block-end: var(--space-2);
  font-size: 1.6rem; font-weight: 800;
}
.doctor-card .spec { color: var(--gold-300); font-weight: 700; font-size: 0.9rem; }
.doctor-card .branch { color: var(--text-low); font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--bg-800), var(--bg-900));
  border: 1px solid var(--line-strong);
  color: var(--text-hi); border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.cta-band::before {
  content: ""; position: absolute; inset-inline-start: 50%; top: -180px;
  transform: translateX(-50%);
  width: 560px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.16), transparent 65%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--text-hi); }
.cta-band p { color: var(--text-mid); max-width: 540px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg-850); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.9rem; color: var(--gold-300); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 1rem; min-height: 50px;
  padding: 11px 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); color: var(--text-hi); width: 100%;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-low); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--gold-500); border-color: var(--gold-500);
  background: rgba(255, 255, 255, 0.07);
}
.form-field select option { background: var(--bg-850); color: var(--text-hi); }
.form-hint { font-size: 0.82rem; color: var(--text-low); }
.form-msg { font-weight: 700; margin-block-start: var(--space-2); }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--error); }

/* ---------- Offers / landing ---------- */
.offer-card { position: relative; overflow: hidden; }
.offer-tag {
  position: absolute; inset-inline-end: 0; top: 18px;
  background: var(--gold-grad); color: #1a1305;
  font-weight: 800; font-size: 0.85rem; padding: 6px 20px;
  border-start-start-radius: 999px; border-end-start-radius: 999px;
}
.offer-price { display: flex; align-items: baseline; gap: 10px; margin-block: var(--space-2); }
.offer-price .now {
  font-size: 1.9rem; font-weight: 700; direction: ltr; font-family: var(--font-head);
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.offer-price .was { color: var(--text-low); text-decoration: line-through; direction: ltr; }

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(16, 34, 31, 0.92); color: var(--text-mid);
  border-block-start: 1px solid var(--line);
  padding-block: var(--space-6) var(--space-3); margin-block-start: var(--space-6);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-4); padding-block-end: var(--space-4); }
.site-footer h4 { color: var(--gold-300); margin-block-end: var(--space-2); font-size: 1rem; }
.site-footer a { display: block; padding-block: 5px; font-size: 0.92rem; color: var(--text-mid); }
.site-footer a:hover { color: var(--gold-300); }
.site-footer .brand { color: var(--text-hi); margin-block-end: var(--space-2); }
.site-footer p { color: var(--text-low); font-size: 0.9rem; }
.footer-bottom {
  border-block-start: 1px solid var(--line);
  padding-block-start: var(--space-2); text-align: center; font-size: 0.85rem;
  color: var(--text-low);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  color: var(--text-hi); padding-block: var(--space-6); text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset-inline-start: 50%; top: -220px;
  transform: translateX(-50%);
  width: 680px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12), transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--text-hi); }
.page-hero p { color: var(--text-low); max-width: 620px; margin-inline: auto; margin-block-start: var(--space-2); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.84rem; color: var(--text-low);
  margin-block-end: var(--space-3);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
}
.breadcrumb a { color: var(--gold-300); }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb span { color: var(--text-low); opacity: 0.6; }
.page-hero .hero-actions { justify-content: center; }

/* ---------- Branch detail page ---------- */
.branch-layout {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: var(--space-5); align-items: start;
}
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.fact {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); border-radius: 14px; padding: var(--space-3);
}
.fact-ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(201, 162, 39, 0.1); color: var(--gold-300);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.fact-ico svg { width: 19px; height: 19px; }
.fact-k { display: block; font-size: 0.78rem; color: var(--text-low); margin-block-end: 3px; }
.fact-v { display: block; font-size: 0.94rem; font-weight: 500; color: var(--text-hi); }

.dep-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dep-chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem; color: var(--text-hi);
  transition: border-color 0.2s ease, background 0.2s ease;
}
a.dep-chip:hover { border-color: rgba(201, 162, 39, 0.5); background: rgba(201, 162, 39, 0.08); }

.note-inline {
  font-size: 0.88rem; color: var(--text-low);
  border-inline-start: 2px solid var(--line-strong);
  padding-inline-start: var(--space-3);
}
.branch-dist { font-size: 0.8rem; color: var(--gold-300); font-weight: 500; }

@media (max-width: 900px) {
  .branch-layout { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .branch-layout .hero-card { max-width: 560px; margin-inline: auto; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: var(--space-2); max-width: 860px; margin-inline: auto; }
.faq-q {
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  overflow: hidden;
}
.faq-q > summary {
  list-style: none; cursor: pointer;
  padding: var(--space-3);
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; color: var(--text-hi); font-size: 1rem;
  transition: color 0.2s ease;
}
.faq-q > summary::-webkit-details-marker { display: none; }
.faq-q > summary:hover { color: var(--gold-300); }
.faq-q > summary::after {
  content: "+"; margin-inline-start: auto;
  font-size: 1.4rem; line-height: 1; color: var(--gold-300);
  transition: transform 0.25s ease;
}
.faq-q[open] > summary::after { transform: rotate(45deg); }
.faq-q[open] > summary { color: var(--gold-300); }
.faq-a {
  padding: 0 var(--space-3) var(--space-3);
  color: var(--text-low); font-size: 0.95rem; line-height: 1.85;
}
.faq-a a { color: var(--gold-300); }
.faq-a a:hover { color: var(--gold-500); }
.faq-a ul { margin-block-start: var(--space-2); padding-inline-start: 1.2em; }
.faq-a li { margin-block-end: 6px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-block-start: var(--space-2); }
.mt-3 { margin-block-start: var(--space-3); }
.mt-4 { margin-block-start: var(--space-4); }
.hidden { display: none !important; }

/* Accessibility: visible focus */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold-500); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { max-width: 500px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    background: var(--bg-900); border-block-end: 1px solid var(--line);
    padding: var(--space-2); box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 14px; }
  .nav-toggle {
    display: block; margin: 0;
    position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%);
  }
  .header-cta { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
  .header-cta .btn { display: none; }
  .site-header .container { padding-block: 12px; gap: 0; }
  .brand-lockup { gap: 14px; }
  .brand-lockup img { height: 52px; }
  .brand-lockup .brand-ar { font-size: 1.2rem; }
  .brand-lockup .brand-en { font-size: 0.68rem; letter-spacing: 0.18em; }
  .brand-lockup .brand-ar::before,
  .brand-lockup .brand-en::after { display: none; }
}

@media (max-width: 620px) {
  /* Lockup too wide for small screens: keep mark + primary name only */
  [dir="rtl"] .brand-lockup .brand-en { display: none; }
  [dir="ltr"] .brand-lockup .brand-ar { display: none; }
  .brand-lockup { gap: 8px; }
  .brand-lockup img { height: 42px; }
  .brand-lockup .brand-ar { font-size: 1.1rem; }
  .brand-lockup .brand-en { font-size: 0.58rem; letter-spacing: 0.09em; }
  [dir="ltr"] .brand-lockup .brand-en::after { display: none; }
  .header-cta { inset-inline-end: 0; }
  .nav-toggle { inset-inline-start: 0; }
  .grid-3, .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:last-child { grid-column: 1 / -1; }
  .topbar .container { justify-content: center; }
  section { padding-block: var(--space-5); }
  .hero { padding-block: var(--space-6); }
  .cta-band { padding: var(--space-5) var(--space-3); }
}

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
  background: rgba(27, 56, 52, 0.95); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-start: 1px solid var(--line-strong);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; border-radius: 12px; font-weight: 700; font-size: 0.88rem;
}
.mobile-cta-bar .m-call { background: var(--brand-600); color: var(--white); }
.mobile-cta-bar .m-wa { background: #25d366; color: var(--white); }
.mobile-cta-bar .m-book { background: var(--gold-grad); color: #1a1305; }
.mobile-cta-bar svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 620px) {
  .mobile-cta-bar { display: grid; }
  .wa-float { display: none; }
  body { padding-block-end: 76px; }
  .site-footer { margin-block-end: 0; }
}

/* ---------- Motion (professional animations) ---------- */
.site-header { transition: background 0.3s ease, box-shadow 0.3s ease; }
.site-header.scrolled {
  background: rgba(20, 42, 39, 0.96);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}
.site-header.scrolled .container { padding-block: 8px 6px; }
.site-header .container { transition: padding 0.3s ease; }
.site-header.scrolled .brand-lockup img { height: 56px; }
.brand-lockup img { transition: height 0.3s ease; }

/* نبض زر واتساب العائم */
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-float { animation: wa-pulse 2.4s ease-out infinite; }

/* لمعة ذهبية تمر على الأزرار الذهبية */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: gold-sheen 3.6s ease-in-out infinite;
}
@keyframes gold-sheen {
  0%, 55% { inset-inline-start: -60%; }
  75%, 100% { inset-inline-start: 130%; }
}

/* عرض البداية: نبض إطار خفيف */
@keyframes offer-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.0); }
  50% { box-shadow: 0 0 24px 2px rgba(201, 162, 39, 0.28); }
}
.entry-offer { animation: offer-ring 3s ease-in-out infinite; }

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .wa-float, .entry-offer, .btn-gold::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   Section light — كسر لوني فاتح (عاجي) لأقسام مختارة
   يُطبَّق بإضافة class="section-light" على <section> فقط
   ============================================================ */
.section-light {
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(201, 162, 39, 0.07), transparent 60%),
    linear-gradient(180deg, #fbf8f1, #f5efe2);
  border-block: 1px solid rgba(143, 107, 48, 0.18);
}
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: #1d3733; }
.section-light p, .section-light .lead { color: #3f5a55; }
.section-light .section-head .kicker { color: var(--gold-700); }
.section-light .section-head .kicker::before { background: linear-gradient(90deg, transparent, var(--gold-600)); }
.section-light .section-head .kicker::after { background: linear-gradient(90deg, var(--gold-600), transparent); }
.section-light .section-head p { color: #5d726c; }

.section-light .card {
  background: #ffffff;
  border: 1px solid rgba(29, 55, 51, 0.09);
  box-shadow: 0 14px 36px rgba(29, 55, 51, 0.08);
}
.section-light .card:hover {
  background: #ffffff;
  border-color: rgba(143, 107, 48, 0.35);
  box-shadow: 0 20px 48px rgba(29, 55, 51, 0.12);
}
.section-light .card h3 { color: #1d3733; }
.section-light .card p { color: #5d726c; }
.section-light .card .icon {
  background: rgba(67, 114, 109, 0.08);
  color: var(--brand-600);
  border-color: rgba(29, 55, 51, 0.10);
}
.section-light .card .card-link { color: var(--gold-700); }
.section-light .card .card-link:hover { color: var(--gold-600); }

.section-light .btn-outline {
  border-color: rgba(143, 107, 48, 0.45);
  color: var(--gold-700);
}
.section-light .btn-outline:hover { background: rgba(201, 162, 39, 0.12); border-color: var(--gold-600); }

.section-light .offer-price .now {
  background: linear-gradient(120deg, var(--gold-600), var(--gold-700));
  -webkit-background-clip: text; background-clip: text;
}
.section-light .offer-price .was { color: #8a9a94; }

/* ---------- Landing branch pills ---------- */
.bp-group { margin-block-end: var(--space-3); text-align: center; }
.bp-title { font-size: 1.05rem; margin-block-end: var(--space-2); }
.branch-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.branch-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(29, 55, 51, 0.12);
  color: #1d3733; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(29, 55, 51, 0.06);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.branch-pill svg { width: 16px; height: 16px; color: var(--gold-600); flex: none; }
.branch-pill:hover { transform: translateY(-2px); border-color: rgba(143, 107, 48, 0.5); box-shadow: 0 10px 24px rgba(29, 55, 51, 0.10); }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 {
  font-size: 1.35rem; margin-block: var(--space-4) var(--space-2);
  padding-block-end: 10px; border-block-end: 1px solid var(--line);
  color: var(--gold-300);
}
.legal h2:first-child { margin-block-start: 0; }
.legal h3 { font-size: 1.05rem; margin-block: var(--space-3) var(--space-1); }
.legal p { color: var(--text-mid); margin-block-end: var(--space-2); }
.legal ul { margin-block-end: var(--space-2); }
.legal li {
  color: var(--text-mid); margin-block-end: 10px;
  padding-inline-start: 20px; position: relative;
}
.legal li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500);
}
.legal a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-500); }
.legal .updated {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-low); font-size: 0.9rem; margin-block-end: var(--space-3);
}
.legal-box {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-3);
  margin-block: var(--space-3);
}
.legal-box p:last-child { margin-block-end: 0; }

/* ---------- Consent note under booking forms ---------- */
.consent-note {
  font-size: 0.82rem; color: var(--text-low);
  line-height: 1.7; margin-block-start: 12px;
}
.consent-note a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 2px; }

/* حقل مصيدة السبام — مخفي عن المستخدمين وقارئات الشاشة، مرئي للروبوتات فقط */
.hp-wrap {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; pointer-events: none;
}

/* ---------- 404 ---------- */
.error-page { text-align: center; }
.error-code {
  font-family: var(--font-head); font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1; font-weight: 700;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; margin-block-end: var(--space-2);
}
.error-page .lead { max-width: 560px; margin-inline: auto; }
.error-links {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-block-start: var(--space-4);
}
