/* =========================================================
   iyafa.com — I ♥ Yafa
   ========================================================= */
:root {
  --sea: #0b1d2e;
  --sea-2: #10314d;
  --sea-3: #1b4f72;
  --sand: #f6efe3;
  --sand-2: #efe3cf;
  --stone: #c9b28f;
  --ink: #1d1a16;
  --muted: #6b6257;
  --red: #d62828;
  --red-2: #a4161a;
  --wine: #8c1c2e;
  --orange: #ff8a00;
  --green: #2e7d32;
  --gold: #e9b44c;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(11, 29, 46, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-ar: "Tajawal", system-ui, sans-serif;
  --font-head: "Amiri", "Tajawal", serif;
  --font-en: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  padding-inline-start: 34px;
}
.eyebrow::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%;
  width: 24px; height: 2px; background: currentColor;
}
.eyebrow.center { display: table; margin-inline: auto; }
.title {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.3;
  margin: 0 0 26px;
  color: var(--sea);
}
.title.center { text-align: center; }
.accent { color: var(--red); }
.accent-orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font: 700 1rem var(--font-ar); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; box-shadow: 0 12px 30px -10px rgba(214, 40, 40, .7); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--sea); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; align-content: center; gap: 30px;
  background: radial-gradient(circle at 50% 40%, var(--sea-2), var(--sea));
  transition: opacity .8s var(--ease), visibility .8s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-inner { display: flex; align-items: center; gap: 14px; direction: ltr; color: #fff; font-family: var(--font-en); font-size: clamp(3rem, 9vw, 5.5rem); }
.pl-i, .pl-yafa { opacity: 0; animation: fadeUp .8s var(--ease) forwards; }
.pl-yafa { animation-delay: .5s; }
.pl-heart { width: .9em; fill: var(--red); animation: beat 1s infinite, pop .6s var(--ease) .25s both; filter: drop-shadow(0 0 20px rgba(214,40,40,.7)); }
.pl-bar { width: 180px; height: 3px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--red)); animation: load 1.6s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
@keyframes pop { from { opacity: 0; transform: scale(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */
#nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, calc((100% - 1200px) / 2));
  transition: background .4s, padding .4s, box-shadow .4s;
}
#nav.scrolled { background: rgba(11, 29, 46, .82); backdrop-filter: blur(14px); padding-block: 10px; box-shadow: 0 10px 30px -15px rgba(0,0,0,.6); }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; direction: ltr; }
.logo-i { font: 600 1.9rem/1 var(--font-en); }
.logo-heart { width: 24px; fill: var(--red); animation: beat 1.6s infinite; }
.logo-y { font: 700 1.5rem/1 var(--font-head); }
#menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
#menu a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: rgba(255,255,255,.88); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background .3s, color .3s;
}
#menu a:hover, #menu a.active { background: rgba(255,255,255,.14); color: #fff; }
#burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
#burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .35s var(--ease); }
#burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: grid; place-items: center; color: #fff; text-align: center; background: var(--sea); }
.hero-bg { position: absolute; inset: -6%; background-size: cover; background-position: center 60%; animation: kenburns 28s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.15) translate(-2%, -2%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,29,46,.55) 0%, rgba(11,29,46,.15) 40%, rgba(11,29,46,.75) 100%); }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: 0 16px; }
.reveal-hero { opacity: 0; transform: translateY(40px); }
body.ready .reveal-hero { animation: fadeUp 1.1s var(--ease) var(--d, 0s) forwards; }
.hero-kicker { margin: 0 0 14px; }
.hero-kicker span {
  display: inline-block; direction: ltr;
  font: italic 600 1.15rem/1 var(--font-en); letter-spacing: .32em;
  padding: 9px 16px 9px calc(16px + .32em);
  color: #fff; background: rgba(11, 29, 46, .55);
  border: 1px solid rgba(233, 180, 76, .75); border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.hero-title { margin: 0; }
.ht-line { display: block; }
.ht-en { direction: ltr; display: flex; align-items: center; justify-content: center; gap: .18em; font: 600 clamp(3.4rem, 11vw, 8rem)/1.05 var(--font-en); text-shadow: 0 8px 40px rgba(0,0,0,.5); }
.ht-heart { width: .82em; animation: beat 1.4s infinite; filter: drop-shadow(0 0 30px rgba(255,60,60,.65)); }
.ht-word { position: relative; display: inline-grid; text-align: left; }
.ht-word b { grid-area: 1 / 1; font-weight: 600; opacity: 0; transform: translateY(.4em) rotateX(-70deg); transform-origin: 50% 100%; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ht-word b.on { opacity: 1; transform: none; }
.ht-word b.out { opacity: 0; transform: translateY(-.4em) rotateX(70deg); }
.ht-word em { font-style: normal; color: var(--wine); text-shadow: 0 0 1px rgba(255,255,255,.35), 0 6px 26px rgba(0,0,0,.35); }
.ht-ar { font: 700 clamp(1.8rem, 5vw, 3.2rem)/1.5 var(--font-head); margin-top: 8px; }
.ht-ar strong { color: #ffd166; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); min-height: 2em; margin: 14px 0 30px; color: rgba(255,255,255,.92); }
.caret { animation: blink 1s steps(1) infinite; margin-inline-start: 2px; color: var(--gold); }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 110px; left: 50%; translate: -50% 0; z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(16px); } }

/* Waves */
.waves { position: absolute; bottom: -1px; left: 0; width: 100%; height: 110px; z-index: 2; }
.wave-parallax > use { animation: wave 25s cubic-bezier(.55,.5,.45,.5) infinite; }
.wave-parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; fill: rgba(246,239,227,.35); }
.wave-parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; fill: rgba(246,239,227,.5); }
.wave-parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; fill: rgba(246,239,227,.7); }
.wave-parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; fill: var(--sand); }
@keyframes wave { 0% { transform: translate3d(-90px,0,0); } 100% { transform: translate3d(85px,0,0); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Stats ---------- */
.stats { padding: 30px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, #000 0 25%, #fff 25% 50%, var(--green) 50% 75%, var(--red) 75%); }
.stat b { display: block; font: 800 clamp(1.8rem, 3.5vw, 2.6rem)/1.2 var(--font-ar); color: var(--sea); direction: ltr; unicode-bidi: plaintext; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.story-text p { color: #3d372f; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips span { background: #fff; padding: 8px 16px; border-radius: 999px; font-size: .92rem; box-shadow: 0 6px 18px -10px rgba(0,0,0,.3); }
.stack { position: relative; aspect-ratio: 1 / 1.05; }
.stack img { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); transition: transform .8s var(--ease); }
.stack-a { width: 75%; height: 70%; top: 0; inset-inline-end: 0; filter: sepia(.35); }
.stack-b { width: 68%; height: 58%; bottom: 0; inset-inline-start: 0; border: 8px solid var(--sand); }
.stack:hover .stack-a { transform: rotate(2deg) translateY(-8px); }
.stack:hover .stack-b { transform: rotate(-2deg) translateY(8px); }
.stack-badge { position: absolute; top: 58%; inset-inline-end: 6%; background: var(--red); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.stack-badge b { display: block; font: 700 1.8rem/1.2 var(--font-head); }
.stack-badge span { font: italic 500 .95rem var(--font-en); opacity: .9; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Timeline ---------- */
.timeline-sec { background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%); }
.timeline { position: relative; margin-top: 50px; }
.tl-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: rgba(11,29,46,.12); border-radius: 3px; }
.tl-line span { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(var(--orange), var(--red)); border-radius: 3px; }
.tl-item { position: relative; width: 50%; padding: 0 44px 40px; }
.tl-item:nth-of-type(odd) { margin-inline-start: 0; }
.tl-item:nth-of-type(even) { margin-inline-start: 50%; }
.tl-dot { position: absolute; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--sand); border: 4px solid var(--red); inset-inline-end: -9px; z-index: 2; transition: transform .4s; }
.tl-item:nth-of-type(even) .tl-dot { inset-inline-end: auto; inset-inline-start: -9px; }
.tl-item.in .tl-dot { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(214,40,40,.15); }
.tl-card { background: #fff; padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.tl-card:hover { transform: translateY(-6px); }
.tl-card time { font-weight: 800; color: var(--red); font-size: .95rem; }
.tl-card h3 { font: 700 1.5rem/1.4 var(--font-head); margin: 4px 0 6px; color: var(--sea); }
.tl-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.tl-dark .tl-card { background: var(--sea); }
.tl-dark .tl-card h3 { color: #fff; }
.tl-dark .tl-card p { color: rgba(255,255,255,.8); }
.tl-item:nth-of-type(odd).reveal { transform: translateX(60px); }
.tl-item:nth-of-type(even).reveal { transform: translateX(-60px); }
.tl-item.reveal.in { transform: none; }

/* ---------- Landmarks ---------- */
.lm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; perspective: 1200px; }
.lm-card { position: relative; height: 400px; border-radius: 22px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transform-style: preserve-3d; background: var(--sea); }
.lm-card.reveal.in { transition: opacity 1s var(--ease), transform .25s ease-out; }
.lm-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.lm-card:hover .lm-img { transform: scale(1.12); }
.lm-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,29,46,.95) 100%); }
.lm-body { position: absolute; inset: auto 0 0; padding: 24px; z-index: 2; color: #fff; transform: translateZ(40px); }
.lm-body h3 { font: 700 1.55rem/1.3 var(--font-head); margin: 0 0 6px; }
.lm-body p { margin: 0; font-size: .95rem; color: rgba(255,255,255,.85); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .6s; }
.lm-card:hover .lm-body p, .lm-card:focus-within .lm-body p { max-height: 140px; opacity: 1; }
.lm-card .shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.25), transparent 45%); opacity: 0; transition: opacity .3s; }
.lm-card:hover .shine { opacity: 1; }

/* ---------- Oranges ---------- */
.oranges { background: linear-gradient(160deg, #fff4e3, #ffe2bd); overflow: hidden; }
.orange-float { position: absolute; inset: 0; pointer-events: none; }
.orange-float i { position: absolute; bottom: -60px; font-style: normal; animation: rise linear infinite; opacity: .55; }
@keyframes rise { to { transform: translateY(-120vh) rotate(360deg); } }
.or-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; position: relative; }
.or-text p { color: #5a4630; }
.orange-svg { width: 150px; margin-top: 20px; }
.orange-svg svg { animation: spinFloat 8s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(211,84,0,.35)); }
@keyframes spinFloat { 0%,100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-14px); } }
.or-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.or-photos figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.or-photos figure:first-child { grid-row: span 2; }
.or-photos img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); transition: transform 1s var(--ease), filter .6s; }
.or-photos figure:hover img { transform: scale(1.08); filter: none; }
.or-photos figcaption { position: absolute; inset: auto 0 0; padding: 30px 14px 10px; font-size: .88rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* ---------- Gallery ---------- */
.gallery { background: var(--sea); color: #fff; overflow: hidden; }
.gallery .title { color: #fff; }
.gallery .eyebrow { color: var(--gold); }
.ring-stage { height: 380px; perspective: 1400px; display: grid; place-items: center; margin: 40px 0 10px; cursor: grab; touch-action: pan-y; user-select: none; }
.ring-stage:active { cursor: grabbing; }
.ring { position: relative; width: 230px; height: 300px; transform-style: preserve-3d; }
.ring figure { position: absolute; inset: 0; margin: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,.7); -webkit-box-reflect: below 10px linear-gradient(transparent 70%, rgba(255,255,255,.18)); }
.ring img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ring figure::after { content: attr(data-title); position: absolute; inset: auto 0 0; padding: 30px 12px 10px; font-size: .9rem; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.ring-hint { text-align: center; color: rgba(255,255,255,.55); font-size: .9rem; margin: 40px 0 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filters button { font: 500 .95rem var(--font-ar); padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer; transition: .3s; }
.filters button:hover { border-color: #fff; }
.filters button.active { background: var(--red); border-color: var(--red); }
.masonry { columns: 3 300px; column-gap: 16px; }
.m-item { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; transform: translateZ(0); transition: opacity .5s, transform .5s var(--ease); }
.m-item.hide { display: none; }
.m-item.pop { animation: popIn .6s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(30px); } }
.m-item img { width: 100%; transition: transform .9s var(--ease), filter .6s; }
.m-item:hover img { transform: scale(1.08); filter: brightness(.7); }
.m-item figcaption { position: absolute; inset: auto 0 0; padding: 16px; transform: translateY(100%); transition: transform .5s var(--ease); background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.m-item:hover figcaption, .m-item:focus figcaption { transform: none; }
.m-item figcaption b { display: block; font: 700 1.15rem var(--font-head); }
.m-item figcaption small { opacity: .75; }

/* ---------- Lightbox ---------- */
#lightbox, #vmodal { position: fixed; inset: 0; z-index: 500; background: rgba(5,12,20,.94); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transition: opacity .4s; }
#lightbox.show, #vmodal.show { opacity: 1; }
#lightbox[hidden], #vmodal[hidden] { display: none; }
#lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
#lbImg { max-width: 92vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); margin-inline: auto; animation: lbIn .6s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.92); } }
#lightbox figcaption { color: #fff; margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
#lbTitle { font: 700 1.3rem var(--font-head); }
#lbCredit { font-size: .82rem; opacity: .6; }
#lbCount { font-size: .8rem; opacity: .5; direction: ltr; }
.lb-close { position: absolute; top: 18px; left: 22px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 2rem; cursor: pointer; transition: background .3s; z-index: 2; }
.lb-nav:hover { background: var(--red); }
.lb-prev { right: 22px; }
.lb-next { left: 22px; }
.lb-play { position: absolute; bottom: 20px; left: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.vm-frame { width: min(1000px, 92vw); aspect-ratio: 16/9; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* ---------- Map ---------- */
.map-sec { background: var(--sand-2); }
.map-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: center; }
.coords { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coords li { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 25px -15px rgba(0,0,0,.3); }
.coords span { display: block; font-size: .82rem; color: var(--muted); }
.coords b { color: var(--sea); direction: ltr; unicode-bidi: plaintext; }
.map-btns { display: flex; gap: 10px; margin-bottom: 18px; }
.map-btns .btn-ghost { color: var(--sea); border-color: var(--sea); background: transparent; }
.map-btns .btn-ghost:hover { background: var(--sea); color: #fff; }
.map-btns .btn.is-on { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; border-color: transparent; }
.map-link { display: block; color: var(--sea-3); font-weight: 700; text-decoration: none; margin-top: 6px; }
.map-link:hover { color: var(--red); }
.map-frame { position: relative; height: 480px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-pin-pulse { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -28px 0 0 -8px; border-radius: 50%; pointer-events: none; z-index: 2; }
.map-pin-pulse::before, .map-pin-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--red); animation: pulse 2.2s infinite; }
.map-pin-pulse::after { animation-delay: 1.1s; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(6); opacity: 0; } }

/* ---------- Videos ---------- */
.videos { background: linear-gradient(180deg, var(--sand), #fff); }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 40px; }
.vid { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; background: #000; box-shadow: var(--shadow); aspect-ratio: 16/10; border: 0; padding: 0; text-align: inherit; font: inherit; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .8s var(--ease), opacity .4s; }
.vid:hover img { transform: scale(1.08); opacity: .6; }
.vid .play { position: absolute; top: 42%; left: 50%; translate: -50% -50%; width: 62px; height: 62px; border-radius: 50%; background: rgba(214,40,40,.92); display: grid; place-items: center; transition: transform .4s var(--ease); box-shadow: 0 0 0 0 rgba(214,40,40,.6); }
.vid:hover .play { transform: scale(1.15); animation: ring 1.4s infinite; }
@keyframes ring { to { box-shadow: 0 0 0 18px rgba(214,40,40,0); } }
.vid .play::before { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; margin-left: 5px; }
.vid span.vt { position: absolute; inset: auto 0 0; padding: 26px 14px 12px; color: #fff; font-size: .92rem; font-weight: 700; line-height: 1.5; background: linear-gradient(transparent, rgba(0,0,0,.85)); }

/* ---------- Quote ---------- */
.quote { position: relative; padding: 160px 16px; text-align: center; color: #fff; overflow: hidden; }
.quote-bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; will-change: transform; }
.quote::before { content: ""; position: absolute; inset: 0; background: rgba(11,29,46,.6); z-index: 1; }
.quote blockquote { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.quote p { font: 700 clamp(1.6rem, 4vw, 2.7rem)/1.6 var(--font-head); margin: 0 0 16px; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.quote cite { font: italic 500 1.2rem var(--font-en); color: var(--gold); }

/* ---------- Author ---------- */
.author { padding: 90px 0; }
.author-card { display: flex; gap: 36px; align-items: center; background: linear-gradient(135deg, var(--sea), var(--sea-3)); color: #fff; padding: 46px; border-radius: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.author-card::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(rgba(214,40,40,.45), transparent 70%); inset-inline-start: -120px; top: -140px; }
.author-card > * { position: relative; }
.author-mark { flex: none; width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; font: 700 4rem var(--font-head); background: linear-gradient(135deg, var(--red), var(--orange)); box-shadow: 0 0 0 8px rgba(255,255,255,.08), 0 0 0 16px rgba(255,255,255,.04); animation: float 6s ease-in-out infinite; }
.author-card .eyebrow { color: var(--gold); }
.author-card h2 { font: 700 2.4rem/1.3 var(--font-head); margin: 0 0 8px; }
.author-card p { color: rgba(255,255,255,.85); margin: 0 0 20px; }

/* ---------- Footer ---------- */
.footer { background: #071420; color: rgba(255,255,255,.75); padding: 50px 0 30px; font-size: .95rem; }
.footer a { color: var(--gold); }
.ft-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 24px; margin-bottom: 20px; }
.logo.big .logo-i { font-size: 2.4rem; }
.logo.big .logo-y { font: 600 2rem var(--font-en); }
.credits summary { cursor: pointer; font-weight: 700; color: #fff; }
.credits ul { columns: 2 280px; font-size: .82rem; padding-inline-start: 18px; }
.credits li { margin-bottom: 4px; }
.copy { text-align: center; margin: 24px 0 0; font-size: .85rem; opacity: .6; }

#toTop { position: fixed; bottom: 24px; left: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: 0 10px 25px -8px rgba(214,40,40,.8); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .4s var(--ease); }
#toTop.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lm-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .or-grid, .map-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  #burger { display: block; }
  #nav nav { position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); background: rgba(11,29,46,.97); backdrop-filter: blur(14px); padding: 90px 20px 20px; transform: translateX(100%); transition: transform .5s var(--ease); }
  #nav nav.open { transform: none; }
  #menu { flex-direction: column; }
  #menu a { font-size: 1.1rem; padding: 12px 16px; }
  #burger { position: relative; z-index: 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-line { left: auto; right: 8px; margin: 0; }
  .tl-item, .tl-item:nth-of-type(even) { width: 100%; margin-inline-start: 0; padding: 0 40px 30px 0; }
  .tl-item .tl-dot, .tl-item:nth-of-type(even) .tl-dot { inset-inline-start: 0; inset-inline-end: auto; }
  .tl-item:nth-of-type(n).reveal { transform: translateY(40px); }
  .tl-item.reveal.in { transform: none; }
  .author-card { flex-direction: column; text-align: center; padding: 36px 22px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .lm-grid { grid-template-columns: 1fr; }
  .lm-card { height: 340px; }
  .lm-body p { max-height: 140px; opacity: 1; }
  .ring-stage { height: 300px; }
  .ring { width: 170px; height: 230px; }
  .map-frame { height: 360px; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .scroll-hint { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Language switcher
   ========================================================= */
.flag { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 1.15em; line-height: 1; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font: 700 .85rem "Manrope", var(--font-ar); color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  transition: background .3s;
}
.lang-btn:hover, .lang.open .lang-btn { background: rgba(255,255,255,.22); }
.lang-caret { font-size: .7rem; opacity: .8; transition: transform .3s; }
.lang.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 120;
  list-style: none; margin: 0; padding: 6px; min-width: 170px;
  background: rgba(11, 29, 46, .96); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: none; color: #fff; text-align: start;
  font: 500 .98rem "Manrope", var(--font-ar);
}
.lang-menu button[lang="ar"] { font-family: "Tajawal", sans-serif; }
.lang-menu button:hover { background: rgba(255,255,255,.1); }
.lang-menu button.active { background: var(--red); }

/* =========================================================
   Non-Arabic languages (LTR)
   ========================================================= */
html:not([lang="ar"]) {
  --font-ar: "Manrope", system-ui, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, serif;
}
html:not([lang="ar"]) body { line-height: 1.75; }
html:not([lang="ar"]) .title { font-weight: 700; line-height: 1.15; }
html:not([lang="ar"]) .ht-ar { font-weight: 700; font-size: clamp(1.9rem, 5vw, 3.3rem); }
html:not([lang="ar"]) .eyebrow { letter-spacing: .14em; }
html:not([lang="ar"]) .lm-body h3, html:not([lang="ar"]) .tl-card h3 { font-weight: 700; font-size: 1.6rem; }
html:not([lang="ar"]) .quote p { font-style: italic; font-weight: 600; }
html:not([lang="ar"]) #menu a { font-size: .9rem; }
[dir="ltr"] .lb-prev { left: 22px; right: auto; }
[dir="ltr"] .lb-next { right: 22px; left: auto; }
[dir="ltr"] .lb-close { left: auto; right: 22px; }
[dir="ltr"] .lb-play { left: auto; right: 22px; }
[dir="ltr"] .tl-item:nth-of-type(odd).reveal { transform: translateX(-60px); }
[dir="ltr"] .tl-item:nth-of-type(even).reveal { transform: translateX(60px); }
[dir="ltr"] .tl-item.reveal.in { transform: none; }
[dir="ltr"] .ring-hint, [dir="ltr"] .filters { direction: ltr; }

@media (max-width: 1100px) {
  html:not([lang="ar"]) #menu a { padding: 8px 10px; font-size: .85rem; }
}
@media (max-width: 860px) {
  .tl-line { left: auto; right: auto; inset-inline-start: 8px; }
  .tl-item, .tl-item:nth-of-type(even) { padding: 0 0 30px; padding-inline-start: 40px; }
  [dir="ltr"] .tl-item:nth-of-type(n).reveal { transform: translateY(40px); }
  [dir="ltr"] .tl-item.reveal.in { transform: none; }
  [dir="ltr"] #nav nav { inset: 0 auto 0 0; transform: translateX(-100%); }
  [dir="ltr"] #nav nav.open { transform: none; }
  .lang-code { display: none; }
  .lang-btn { padding: 7px 10px; }
}
