/* ============================================================
   Dr. Manal Al-Masha'leh — Consultant Rheumatologist
   Premium personal brand website · RTL/LTR bilingual
   ============================================================ */

:root {
  --ink: #0d1b2a;
  --ink-2: #16283e;
  --ink-3: #1f3552;
  --cream: #faf7f1;
  --paper: #ffffff;
  --gold: #c19a3f;
  --gold-2: #dcb96a;
  --gold-soft: rgba(193, 154, 63, 0.12);
  --plum: #8e3a6e;
  --plum-soft: rgba(142, 58, 110, 0.09);
  --brand-blue: #1c5aa6;
  --brand-teal: #0f9e90;
  --brand-teal-deep: #0c7d71;
  --text: #2b3a4d;
  --muted: #64748b;
  --line: #e8e2d5;
  --green: #1e9e6a;
  --red: #c0392b;
  --shadow-sm: 0 2px 10px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 12px 36px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 24px 64px rgba(13, 27, 42, 0.16);
  --radius: 18px;
  --font-display: "Playfair Display", "Amiri", serif;
  --font-body: "Inter", "Tajawal", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="ar"] {
  --font-display: "Amiri", serif;
  --font-body: "Tajawal", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .inf-path { stroke-dashoffset: 0; animation: none !important; }
  .inf-bead { opacity: 0.7; animation: none !important; }
  .hero h1 .accent { animation: none; background-size: 100% auto; background-position: 0 50%; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; position: relative; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
html[lang="ar"] .eyebrow { letter-spacing: 0.04em; font-size: 0.9rem; }
.eyebrow::before, .eyebrow::after {
  content: ""; width: 28px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--ink); line-height: 1.25; margin-top: 14px;
  font-weight: 700;
}
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.on-dark .section-title { color: #f5f0e6; }
.on-dark .section-sub { color: #a8b6c8; }

/* ---------- Top ribbon ---------- */
.top-ribbon {
  background: linear-gradient(100deg, #123a66 0%, #0f5563 55%, #0c6258 100%);
  color: #e4ecf3;
  font-size: 0.82rem; padding: 8px 0;
  position: relative; z-index: 60;
  border-bottom: 1px solid rgba(220, 185, 106, 0.28);
}
.top-ribbon .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-ribbon a { color: var(--gold-2); font-weight: 600; }
.ribbon-item { display: inline-flex; align-items: center; gap: 7px; }
.ribbon-item svg { width: 13px; height: 13px; fill: var(--gold-2); flex-shrink: 0; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4d5e; display: inline-block;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s, border-color 0.35s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { height: 44px; width: auto; max-width: 104px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.12rem; line-height: 1.2; white-space: nowrap;
  background: linear-gradient(105deg, var(--brand-blue) 6%, var(--brand-teal) 94%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-sub { font-size: 0.68rem; color: var(--gold); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
html[lang="ar"] .brand-sub { letter-spacing: 0.02em; font-size: 0.78rem; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 600; color: var(--ink-2);
  position: relative; padding: 6px 0; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold); border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-weight: 700; font-size: 0.85rem;
  color: var(--ink-2); background: var(--paper);
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 28px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; font-family: var(--font-body);
  cursor: pointer; border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink); box-shadow: 0 8px 22px rgba(193, 154, 63, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(193, 154, 63, 0.45); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(13, 27, 42, 0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-light-outline { background: transparent; color: #f5f0e6; border: 1.5px solid rgba(245, 240, 230, 0.4); }
.btn-light-outline:hover { border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-3px); }
.btn-whatsapp { background: #23b25f; color: #fff; box-shadow: 0 8px 22px rgba(35, 178, 95, 0.35); }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(35, 178, 95, 0.45); }
.btn-sm { padding: 10px 20px; font-size: 0.86rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 420px at 82% 8%, var(--plum-soft), transparent 65%),
    radial-gradient(640px 480px at 8% 88%, var(--gold-soft), transparent 65%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 48px; align-items: center; position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; color: var(--plum);
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  color: var(--ink); line-height: 1.15; margin: 22px 0 8px;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(
    100deg,
    var(--gold-2) 0%,
    var(--gold) 20%,
    var(--plum) 44%,
    var(--brand-blue) 66%,
    var(--brand-teal) 86%,
    var(--gold-2) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: accentSheen 9s ease-in-out infinite;
}
@keyframes accentSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-titles { font-size: clamp(1.02rem, 2vw, 1.22rem); color: var(--ink-3); font-weight: 600; margin-bottom: 18px; }
.hero-titles .sep { color: var(--gold); margin-inline: 8px; }
.hero-lead { color: var(--muted); max-width: 560px; font-size: 1.02rem; margin-bottom: 26px; }

.cred-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
  font-size: 0.8rem; font-weight: 700; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, border-color 0.25s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--gold); }
.chip svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-figure { position: relative; justify-self: center; }
.portrait-frame {
  position: relative; width: min(400px, 82vw);
  border-radius: 220px 220px var(--radius) var(--radius);
  padding: 14px;
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 40%, var(--plum));
  box-shadow: var(--shadow-lg);
}
.portrait-frame::before {
  content: ""; position: absolute; inset: -20px;
  border: 1.5px dashed rgba(193, 154, 63, 0.5);
  border-radius: 240px 240px 28px 28px;
  animation: none;
}
.portrait-frame img {
  width: 100%; border-radius: 208px 208px 10px 10px;
  object-fit: cover; aspect-ratio: 4 / 4.6; background: #fff;
}
.float-card {
  position: absolute; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 11px;
  max-width: 232px;
  animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--ink);
}
.float-card .fc-icon.plum { background: linear-gradient(135deg, var(--plum), #b25690); color: #fff; }
.float-card .fc-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.float-card strong { display: block; color: var(--ink); font-size: 0.92rem; line-height: 1.3; }
.float-card small { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 600; line-height: 1.32; margin-top: 2px; }
.fc-1 { top: 4%; inset-inline-start: -76px; animation-delay: 0.6s; }
.fc-2 { bottom: 4%; inset-inline-end: -68px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Marquee ---------- */
.marquee-band {
  margin-top: 76px;
  background: linear-gradient(100deg, #123a66 0%, #0f5563 55%, #0c6258 100%);
  padding: 16px 0; overflow: hidden; position: relative;
  border-block: 1px solid rgba(220, 185, 106, 0.28);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 42s linear infinite; will-change: transform;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  color: #e4ecf3; font-weight: 600; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 48px; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(calc(50% + 24px)); } }

/* ---------- Stats ---------- */
.stats { padding: 72px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { text-align: center; padding: 22px 12px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; inset-inline-start: -14px; top: 50%;
  transform: translateY(-50%); width: 1px; height: 62%;
  background: var(--line);
}
.stat-value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: var(--ink); line-height: 1.1;
}
.stat-value .plus { color: var(--gold); }
.stat-label { color: var(--muted); font-weight: 600; font-size: 0.94rem; margin-top: 6px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media .photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative;
}
.about-media .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 27, 42, 0.55));
}
.about-media .photo img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.about-media .caption {
  position: absolute; bottom: 18px; inset-inline-start: 18px; inset-inline-end: 18px;
  color: #fff; z-index: 2; font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
}
.about-media .caption svg { width: 15px; height: 15px; fill: var(--gold-2); flex-shrink: 0; }
.about-badge {
  position: absolute; top: -24px; inset-inline-end: -18px;
  background: var(--ink); color: #f5f0e6;
  border-radius: 16px; padding: 16px 22px; text-align: center;
  box-shadow: var(--shadow-md); border: 1px solid rgba(193, 154, 63, 0.4);
}
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-2); line-height: 1.15; }
.about-badge small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a8b6c8; }
html[lang="ar"] .about-badge small { letter-spacing: 0.02em; font-size: 0.8rem; }

.about-copy p { margin-bottom: 16px; color: var(--text); }
.about-copy p strong { color: var(--ink); }
.quals { margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.qual {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 18px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.qual:hover { transform: translateX(4px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
html[dir="rtl"] .qual:hover { transform: translateX(-4px); }
.qual svg { width: 19px; height: 19px; fill: var(--gold); flex-shrink: 0; margin-top: 4px; }
.qual span { font-size: 0.93rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Timeline ---------- */
.journey { background: var(--paper); }
.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  inset-inline-start: 19px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--plum) 60%, transparent);
}
.tl-item { position: relative; padding-inline-start: 66px; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute; inset-inline-start: 6px; top: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); border: 2.5px solid var(--gold);
  display: grid; place-items: center; z-index: 2;
}
.tl-marker::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tl-item:nth-child(even) .tl-marker { border-color: var(--plum); }
.tl-item:nth-child(even) .tl-marker::after { background: var(--plum); }
.tl-era { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
html[lang="ar"] .tl-era { letter-spacing: 0.02em; font-size: 0.86rem; }
.tl-item h3 { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 0.96rem; max-width: 640px; }

/* ---------- Achievements ---------- */
.achievements { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ach-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
  position: relative; overflow: hidden;
}
.ach-card::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0; inset-inline-end: 0;
  height: 3px; background: linear-gradient(90deg, var(--gold), var(--plum));
  opacity: 0; transition: opacity 0.35s;
}
.ach-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.075); border-color: rgba(193, 154, 63, 0.45); }
.ach-card:hover::before { opacity: 1; }
.ach-icon {
  width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(193, 154, 63, 0.22), rgba(142, 58, 110, 0.22));
  border: 1px solid rgba(193, 154, 63, 0.35);
  display: grid; place-items: center; margin-bottom: 20px;
}
.ach-icon svg { width: 27px; height: 27px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ach-card h3 { color: #f5f0e6; font-family: var(--font-display); font-size: 1.18rem; margin-bottom: 10px; line-height: 1.4; }
.ach-card p { color: #a8b6c8; font-size: 0.92rem; margin-bottom: 16px; }
.ach-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(193, 154, 63, 0.13);
  border: 1px solid rgba(193, 154, 63, 0.3);
  padding: 5px 13px; border-radius: 999px;
}
html[lang="ar"] .ach-tag { letter-spacing: 0.02em; font-size: 0.8rem; }

/* ---------- Services ---------- */
.svc-group-label {
  display: flex; align-items: center; gap: 16px;
  margin: 48px 0 26px; font-family: var(--font-display);
  font-size: 1.35rem; color: var(--ink); font-weight: 700;
}
.svc-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.svc-group-label .num {
  font-size: 0.8rem; font-weight: 800; color: var(--gold);
  border: 1.5px solid var(--gold); border-radius: 999px;
  width: 34px; height: 34px; display: grid; place-items: center;
  font-family: var(--font-body); flex-shrink: 0;
}
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  position: relative;
}
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(193, 154, 63, 0.55); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-soft), var(--plum-soft));
  border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 18px;
  transition: background 0.35s;
}
.svc-card:hover .svc-icon { background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.svc-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.35s; }
.svc-card:hover .svc-icon svg { stroke: var(--ink); }
.svc-card h3 { font-family: var(--font-display); color: var(--ink); font-size: 1.16rem; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 0.92rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.svc-tags span {
  font-size: 0.74rem; font-weight: 700; color: var(--plum);
  background: var(--plum-soft); border-radius: 999px; padding: 4px 11px;
}

/* ---------- Humanitarian ---------- */
.humanitarian { background: var(--paper); }
.hum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hum-card {
  border-radius: var(--radius); padding: 36px 32px;
  border: 1px solid var(--line); background: var(--cream);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  position: relative; overflow: hidden;
}
.hum-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.hum-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  border: 1px solid rgba(193, 154, 63, 0.35);
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
}
.hum-card.featured::after {
  content: ""; position: absolute; inset-inline-end: -80px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 154, 63, 0.18), transparent 70%);
}
.hum-icon {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: grid; place-items: center;
}
.hum-icon svg { width: 28px; height: 28px; fill: var(--ink); }
.hum-card:not(.featured) .hum-icon { margin-bottom: 18px; background: linear-gradient(135deg, var(--plum), #b25690); }
.hum-card:not(.featured) .hum-icon svg { fill: #fff; }
.hum-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 10px; }
.hum-card.featured h3 { color: #f5f0e6; font-size: 1.5rem; }
.hum-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 16px; }
.hum-card.featured p { color: #b8c6d8; max-width: 760px; }
.hum-tag {
  display: inline-block; font-size: 0.74rem; font-weight: 800;
  color: var(--plum); background: var(--plum-soft);
  padding: 5px 14px; border-radius: 999px;
}
.hum-card.featured .hum-tag { color: var(--gold-2); background: rgba(193, 154, 63, 0.14); border: 1px solid rgba(193, 154, 63, 0.3); }

/* ---------- Media / videos ---------- */
.media-section { background: var(--cream); }
.live-banner {
  background: linear-gradient(120deg, var(--plum) 0%, #5b2247 55%, var(--ink) 100%);
  border-radius: 22px; padding: 40px 44px; margin-bottom: 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.live-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 88% 20%, rgba(255, 255, 255, 0.09), transparent 60%);
}
.live-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em;
  padding: 7px 16px; border-radius: 999px; text-transform: uppercase;
}
html[lang="ar"] .live-pill { letter-spacing: 0.03em; font-size: 0.85rem; }
.live-banner h3 { font-family: var(--font-display); color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin: 16px 0 8px; }
.live-banner p { color: rgba(255, 255, 255, 0.82); max-width: 560px; font-size: 0.98rem; }
.live-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; }
.live-meta div { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 0.9rem; }
.live-meta svg { width: 16px; height: 16px; fill: var(--gold-2); flex-shrink: 0; }
.live-cta { position: relative; z-index: 2; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s;
  display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--ink); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); opacity: 0.92; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(250, 247, 241, 0.92); backdrop-filter: blur(4px);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease), background 0.3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.play-btn svg { width: 20px; height: 20px; fill: var(--ink); margin-inline-start: 3px; }
html[dir="rtl"] .play-btn svg { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 3px; }
.video-card:hover .play-btn { transform: scale(1.12); background: var(--gold-2); }
.video-src {
  position: absolute; top: 12px; inset-inline-start: 12px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  color: #fff; background: rgba(13, 27, 42, 0.72); backdrop-filter: blur(4px);
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.video-body { padding: 18px 20px 22px; }
.video-body h3 { font-size: 0.98rem; color: var(--ink); font-weight: 700; line-height: 1.5; }

/* ---------- Hours ---------- */
.hours { background: var(--paper); }
.hours-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.hours-table {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 26px; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 0.95rem; transition: background 0.2s;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--ink-2); }
.hours-row .time { color: var(--muted); }
.hours-row.closed .time { color: var(--red); font-weight: 700; }
.hours-row.today { background: var(--gold-soft); position: relative; }
.hours-row.today::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 3.5px; background: var(--gold);
}
.hours-row.today .day { color: var(--ink); font-weight: 800; }

.open-indicator {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 10px 22px; font-weight: 800; font-size: 0.9rem;
  margin-bottom: 22px;
}
.open-indicator .oi-dot { width: 10px; height: 10px; border-radius: 50%; }
.open-indicator.is-open { background: rgba(30, 158, 106, 0.1); color: var(--green); border: 1px solid rgba(30, 158, 106, 0.3); }
.open-indicator.is-open .oi-dot { background: var(--green); animation: pulse 1.8s infinite; }
.open-indicator.is-closed { background: rgba(192, 57, 43, 0.07); color: var(--red); border: 1px solid rgba(192, 57, 43, 0.25); }
.open-indicator.is-closed .oi-dot { background: var(--red); }

.booking-card {
  background: linear-gradient(150deg, var(--ink), var(--ink-3));
  border-radius: var(--radius); padding: 40px 36px;
  color: #f5f0e6; position: relative; overflow: hidden;
  border: 1px solid rgba(193, 154, 63, 0.3);
}
.booking-card::after {
  content: ""; position: absolute; inset-inline-end: -70px; bottom: -70px;
  width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 58, 110, 0.35), transparent 70%);
}
.booking-card h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 12px; }
.booking-card p { color: #b8c6d8; margin-bottom: 26px; font-size: 0.97rem; }
.booking-card .phone-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 16px 20px; position: relative; z-index: 2;
}
.booking-card .phone-row svg { width: 22px; height: 22px; fill: var(--gold-2); flex-shrink: 0; }
.booking-card .phone-row a { font-size: 1.35rem; font-weight: 800; color: #fff; direction: ltr; unicode-bidi: embed; letter-spacing: 0.04em; }
.booking-card .btn { position: relative; z-index: 2; }
.booking-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 26px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.cc-icon {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-soft), var(--plum-soft));
  border: 1px solid var(--line); display: grid; place-items: center;
}
.cc-icon svg { width: 22px; height: 22px; fill: var(--gold); }
.contact-card h3 { font-size: 0.85rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 4px; }
html[lang="ar"] .contact-card h3 { letter-spacing: 0.02em; font-size: 0.9rem; }
.contact-card p, .contact-card a.val { color: var(--ink); font-weight: 700; font-size: 1.02rem; line-height: 1.6; }
.contact-card a.val:hover { color: var(--gold); }
.contact-card .num { direction: ltr; unicode-bidi: embed; display: inline-block; }

.socials-row { display: flex; gap: 12px; margin-top: 6px; }
.social-btn {
  width: 46px; height: 46px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.social-btn svg { width: 20px; height: 20px; fill: var(--ink-2); transition: fill 0.25s; }
.social-btn:hover { transform: translateY(-4px); background: var(--ink); border-color: var(--ink); }
.social-btn:hover svg { fill: var(--gold-2); }

.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  min-height: 420px; display: flex;
}
.map-wrap iframe { width: 100%; min-height: 420px; border: 0; flex: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a8b6c8; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.footer .brand-name {
  background: linear-gradient(105deg, #5aa8e0 6%, #37d0ba 94%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.footer .brand-sub { color: var(--gold-2); }
.footer p { font-size: 0.92rem; margin-top: 14px; max-width: 380px; }
.footer .brand-slogan {
  font-family: var(--font-display); font-style: italic;
  color: var(--gold-2); font-size: 1.02rem; margin-top: 16px;
}
.footer h4 {
  color: #f5f0e6; font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
html[lang="ar"] .footer h4 { letter-spacing: 0.02em; font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.92rem; transition: color 0.25s, padding 0.25s; }
.footer-links a:hover { color: var(--gold-2); padding-inline-start: 5px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; margin-bottom: 12px; }
.footer-contact svg { width: 15px; height: 15px; fill: var(--gold-2); flex-shrink: 0; margin-top: 5px; }
.footer-contact .num { direction: ltr; unicode-bidi: embed; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0; text-align: center; font-size: 0.82rem; color: #64748b;
}
.footer-bottom a { color: var(--gold-2); }

/* ---------- Floating actions ---------- */
.fab-whatsapp {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  background: #23b25f; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(35, 178, 95, 0.45);
  transition: transform 0.3s var(--ease);
  animation: fab-pop 0.6s var(--ease) 1.2s backwards;
}
.fab-whatsapp svg { width: 30px; height: 30px; fill: #fff; }
.fab-whatsapp:hover { transform: scale(1.1) translateY(-3px); }
@keyframes fab-pop { from { transform: scale(0); } to { transform: scale(1); } }

.to-top {
  position: fixed; bottom: 100px; inset-inline-end: 33px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); border: 1px solid rgba(193, 154, 63, 0.4);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 18px; height: 18px; fill: var(--gold-2); }

/* ---------- Infinity motif divider ---------- */
.infinity-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 30px 0; margin: 0 auto;
}
.infinity-divider svg { width: 132px; height: 52px; overflow: visible; }
.inf-path {
  fill: none; stroke: var(--brand-teal); stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
}
.infinity-divider.is-visible .inf-path { animation: inf-draw 2.4s var(--ease) forwards; }
@keyframes inf-draw { to { stroke-dashoffset: 0; } }
.inf-bead { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; }
.infinity-divider.is-visible .inf-bead { animation: inf-bead-pulse 2.8s 2.2s ease-in-out infinite; }
@keyframes inf-bead-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- As seen on ---------- */
.seen-on { padding: 46px 0 6px; }
.seen-label {
  text-align: center; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 24px;
}
html[lang="ar"] .seen-label { letter-spacing: 0.04em; font-size: 0.92rem; }
.seen-logos {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 16px 38px;
}
.seen-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: var(--ink-3); opacity: 0.6; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  filter: grayscale(1); transition: opacity 0.25s, color 0.25s, filter 0.25s;
}
.seen-logo:hover { opacity: 1; color: var(--brand-teal-deep); filter: none; }
.seen-logo svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream); }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column; gap: 15px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.tst-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(193, 154, 63, 0.45); }
.tst-card::before {
  content: "\201D"; position: absolute; top: 10px; inset-inline-end: 22px;
  font-family: var(--font-display); font-size: 3.6rem; line-height: 1;
  color: rgba(193, 154, 63, 0.2);
}
.tst-stars { display: flex; gap: 3px; }
.tst-stars svg { width: 17px; height: 17px; fill: var(--gold); }
.tst-quote { color: var(--text); font-size: 0.98rem; line-height: 1.78; }
.tst-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tst-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  font-family: var(--font-body); font-size: 1.02rem;
}
.tst-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.tst-meta { color: var(--muted); font-size: 0.8rem; }
.tst-note {
  text-align: center; color: var(--muted); font-size: 0.85rem;
  margin-top: 30px; font-style: italic;
}

/* ---------- Interactive joint map ---------- */
.joint-map { background: linear-gradient(180deg, var(--paper), var(--cream)); }
.jm-grid {
  display: grid; grid-template-columns: minmax(230px, 0.82fr) 1.18fr;
  gap: 44px; align-items: center; margin-top: 8px;
}
.jm-figure { position: relative; display: grid; place-items: center; }
.jm-figure svg { width: min(290px, 80%); height: auto; overflow: visible; }
.jm-body { fill: url(#jmBody); }
.jm-body-outline { fill: none; stroke: rgba(12, 125, 113, 0.35); stroke-width: 1.5; }
.jm-hint { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 16px; }
html[lang="ar"] .jm-hint { font-size: 0.92rem; }

.joint-dot {
  fill: #fff; stroke: var(--brand-teal); stroke-width: 2.4;
  cursor: pointer; transition: fill 0.2s, stroke 0.2s, transform 0.2s;
  transform-box: fill-box; transform-origin: center;
  animation: jointBreathe 2.6s ease-in-out infinite;
}
.joint-dot:hover, .joint-dot:focus-visible { fill: var(--gold-2); stroke: var(--gold); outline: none; }
.joint-dot.active { fill: var(--gold); stroke: var(--gold-2); animation: none; transform: scale(1.15); }
@keyframes jointBreathe { 0%, 100% { transform: scale(0.9); } 50% { transform: scale(1.06); } }

.jm-panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 34px 30px;
  box-shadow: var(--shadow-sm); min-height: 268px;
}
.jm-detail[hidden] { display: none; }
.jm-eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
html[lang="ar"] .jm-eyebrow { letter-spacing: 0.02em; font-size: 0.85rem; }
.jm-detail h3 {
  font-family: var(--font-display); font-size: 1.55rem;
  color: var(--ink); line-height: 1.3; margin-bottom: 4px;
}
.jm-conditions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.jm-conditions span {
  background: var(--gold-soft); border: 1px solid rgba(193, 154, 63, 0.3);
  color: var(--ink-2); padding: 6px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
}
.jm-service { color: var(--muted); font-size: 0.94rem; line-height: 1.7; margin-bottom: 22px; }
.jm-default h3 { color: var(--brand-teal-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .hero-lead { margin-inline: auto; }
  .cred-chips, .hero-ctas { justify-content: center; }
  .hero-figure { margin-top: 10px; }
  .fc-1 { inset-inline-start: -150px; top: 0; }
  .fc-2 { inset-inline-end: -150px; bottom: 2%; }
  .ach-grid, .svc-grid, .video-grid, .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .hours-grid, .contact-grid { grid-template-columns: 1fr; }
  .jm-grid { grid-template-columns: 1fr; gap: 30px; justify-items: center; }
  .jm-panel { width: 100%; max-width: 620px; }
  .about-media { max-width: 560px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat + .stat::before { display: none; }
  .live-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Nav collapses to a slide-in drawer here: below ~1024px the 7 horizontal
     links + CTA no longer leave room for the brand (worse in EN, whose labels
     are longer), which would crush the logo/tagline. */
  .nav-links {
    position: fixed; top: 0; inset-inline-end: 0; z-index: 90;
    height: 100dvh; width: min(320px, 84vw);
    background: var(--ink); flex-direction: column;
    align-items: flex-start; justify-content: flex-start;
    padding: 96px 34px 34px; gap: 8px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  html[dir="rtl"] .nav-links { transform: translateX(-100%); }
  .nav-links.open { transform: none !important; }
  .nav-links a { color: #e8eef5; font-size: 1.05rem; width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-toggle { display: flex; z-index: 95; position: relative; }
  .nav-toggle.open span { background: #fff; }
  .nav-cta-desktop { display: none; }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .ach-grid, .svc-grid, .video-grid, .hum-grid, .footer-grid, .tst-grid { grid-template-columns: 1fr; }
  .hum-card.featured { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .top-ribbon .ribbon-group-2 { display: none; }
  .live-banner { padding: 30px 26px; }
  .about-badge { inset-inline-end: 8px; top: -18px; padding: 12px 18px; }
  .booking-card { padding: 32px 26px; }
}

@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .btn { padding: 12px 22px; font-size: 0.88rem; }
}
