/* ==========================================================================
   Escape Cafe — موقع سينمائي بالسكرول
   الخط البصري: ليل جبلي، خشب، وضوء عنبري
   ========================================================================== */

/* ---------- 1. التوكنز ---------- */
:root {
  --nav-h:      70px;
  --ink:        #06080b;
  --ink-2:      #0b1016;
  --ink-3:      #131a23;
  --smoke:      #ece7dd;
  --muted:      rgba(236, 231, 221, 0.88);
  --faint:      rgba(236, 231, 221, 0.55);
  --amber:      #f18921;
  --amber-2:    #ff8a65;
  --amber-glow: rgba(241, 137, 33, 0.45);
  --line:       rgba(236, 231, 221, 0.12);
  --glass:      rgba(236, 231, 221, 0.05);

  --font-display: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif;
  --font-latin:   'Bebas Neue', 'Cairo', sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);

  --pad: clamp(1.25rem, 5vw, 6rem);
  --max: 1440px;
}

/* ---------- 2. الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--smoke);
  background: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; height: 100vh; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

::selection { background: var(--amber); color: var(--ink); }

/* شريط التمرير */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: rgba(241, 137, 33, 0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* ---------- 3. طبقات فوق كل شي: حبيبات الفيلم + الڤينييت ---------- */
.grain,
.vignette {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 90;
}

.grain {
  inset: 0;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.5s steps(2) infinite;
}

.vignette {
  inset: 0;
  z-index: 89;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.40) 100%);
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-2%, 1%); }
  100% { transform: translate(1%, -2%); }
}

/* ---------- 4. شاشة التحميل ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
}

.loader__mark { width: min(28vw, 190px); }

.loader__mark path,
.loader__mark line {
  fill: none;
  stroke: var(--smoke);
  stroke-width: 5;
  stroke-linecap: round;
}

.loader__word {
  margin-top: 1.4rem;
  text-align: center;
  font-family: var(--font-latin);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--smoke);
  opacity: 0;
}

.loader__bar {
  position: absolute;
  bottom: 12%;
  right: 50%;
  transform: translateX(50%);
  width: min(200px, 40vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.loader__bar i {
  position: absolute;
  inset: 0;
  transform-origin: right center;
  transform: scaleX(0);
  background: var(--amber);
}

/* ---------- 5. الهيدر ---------- */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  transform: translateY(-110%);
  transition: transform 0.9s var(--ease-out), background 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.nav.is-in { transform: translateY(0); }

.nav.is-solid {
  background: rgba(6, 8, 11, 0.93);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-latin);
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.nav__brand svg { width: 30px; height: 30px; flex: none; }
.nav__brand svg path, .nav__brand svg line { fill: none; stroke: var(--smoke); stroke-width: 6; stroke-linecap: round; }

.nav__links {
  display: flex;
  gap: clamp(0.9rem, 2vw, 2rem);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.nav__links a { position: relative; padding-bottom: 3px; color: var(--muted); transition: color 0.3s; }
.nav__links a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover { color: var(--smoke); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--amber);
  border-radius: 100px;
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.35s, color 0.35s;
}
.nav__cta:hover { background: var(--amber); color: var(--ink); }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* شريط تقدّم القراءة */
.progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 2px;
  width: 100%;
  z-index: 95;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
}

/* ---------- 6. المؤشّر الضوئي ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 120;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor__dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--amber);
  pointer-events: none;
  z-index: 121;
  opacity: 0;
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor__dot { display: none; }
}

/* ---------- 7. عناصر مشتركة ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.chapter-tag {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-latin);
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  color: var(--amber);
  margin-bottom: 1.4rem;
}
.chapter-tag::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to left, var(--amber), transparent);
}

.h-xl { font-size: clamp(2.6rem, 8.5vw, 7rem); font-weight: 900; }
.h-lg { font-size: clamp(2rem, 5.5vw, 4.2rem); font-weight: 800; }
.h-md { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: var(--smoke);
  font-weight: 500;
  max-width: 52ch;
  line-height: 1.9;
}

.amber { color: var(--amber); }

/* كشف الكلمات */
.reveal-line { display: block; overflow: hidden; padding-block: 0.1em 0.14em; }
.reveal-line > span { display: block; }
.word { display: inline-block; }

section { position: relative; scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ---------- 8. البطل ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero__media {
  position: absolute;
  inset: -8%;
  z-index: 0;
}

.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--ink) 1%, rgba(6, 8, 11, 0.12) 45%, rgba(6, 8, 11, 0.40) 100%),
    radial-gradient(ellipse 75% 60% at 50% 60%, rgba(6, 8, 11, 0) 0%, rgba(6, 8, 11, 0.42) 100%);
}

/* أشرطة السينما */
.bar {
  position: absolute;
  right: 0; left: 0;
  height: 12vh;
  z-index: 6;
  background: var(--ink);
}
@media (max-width: 760px) {
  .bar { height: 7vh; }
  .scroll-cue { bottom: calc(7vh + 1rem); }
}
.bar--top { top: 0; }
.bar--bottom { bottom: 0; }

.hero__inner {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-inline: var(--pad);
}

.hero__eyebrow {
  font-family: var(--font-latin);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--amber);
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.hero__title {
  font-size: clamp(3.2rem, 13.5vw, 10.5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-shadow: 0 0 80px rgba(6, 8, 11, 0.6);
}

.hero__sub {
  margin: clamp(1.5rem, 3vw, 2.4rem) auto 0;
  max-width: 44ch;
  font-size: clamp(1rem, 2vw, 1.32rem);
  color: var(--smoke);
  font-weight: 500;
  line-height: 1.8;
}

.hero__meta {
  margin-top: 2.4rem;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero__metarow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.scroll-cue {
  position: absolute;
  bottom: calc(12vh + 1.4rem);
  right: 50%;
  transform: translateX(50%);
  z-index: 7;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--faint);
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 9. فصل مثبّت بخلفية متحركة ---------- */
.pinned {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.pinned__bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
}
.pinned__bg img { width: 100%; height: 100%; object-fit: cover; }

.pinned__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(6, 8, 11, 0.86) 0%, rgba(6, 8, 11, 0.52) 45%, rgba(6, 8, 11, 0.06) 100%);
}

.pinned__body {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.pinned__body > * { max-width: 40rem; }

.stat-row {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
}
.stat b {
  display: block;
  font-family: var(--font-latin);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
}
.stat small { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; }

/* ---------- 10. الأكواخ — تمرير أفقي ---------- */
.cabins {
  background: var(--ink);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cabins__head {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.4rem, 3vw, 2.4rem);
}

.track-outer { overflow: hidden; }

.track {
  display: flex;
  align-items: stretch;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  padding-inline: var(--pad);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  width: max-content;
}

.cabin {
  position: relative;
  flex: none;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-2);
}

.cabin__img {
  height: min(52vh, 540px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.cabin__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.1s var(--ease-out), filter 0.7s;
  filter: saturate(1.05) contrast(1.02);
}
.cabin:hover .cabin__img img { transform: scale(1); filter: saturate(1.12) contrast(1.02); }

.cabin__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(6, 8, 11, 0.92) 8%, transparent 92%);
}
.cabin__cap h3 { font-size: clamp(1.1rem, 2.4vw, 1.6rem); }
.cabin__cap p { margin-top: 0.4rem; color: var(--muted); font-size: 0.88rem; }

.cabin__no {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-family: var(--font-latin);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  z-index: 2;
}

/* ---------- 11. القائمة ---------- */
.menu { padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7rem); background: var(--ink-2); }

.menu__head { display: grid; gap: 1.2rem; margin-bottom: clamp(2rem, 5vw, 3.4rem); }

.menu__tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.9rem var(--pad);
  margin-inline: calc(var(--pad) * -1);
  background: rgba(11, 16, 22, 0.86);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 3%, #000 97%, transparent 100%);
          mask-image: linear-gradient(to left, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.menu__tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  padding: 0.44rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  transition: all 0.32s var(--ease-out);
}
.tab:hover { color: var(--smoke); border-color: rgba(236, 231, 221, 0.3); }
.tab.is-on { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 500; }

.menu__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-top: clamp(2rem, 5vw, 3.2rem);
}

@media (max-width: 900px) {
  .menu__panel { grid-template-columns: 1fr; }
}

.menu__visual {
  position: sticky;
  top: 6.5rem;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-3);
}
.menu__visual img { width: 100%; height: 100%; object-fit: cover; }
.menu__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 11, 0.66), transparent 62%);
}
.menu__visual figcaption {
  position: absolute;
  inset: auto 1.4rem 1.3rem 1.4rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
}
.menu__visual figcaption small {
  display: block;
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--amber);
}

@media (max-width: 900px) {
  .menu__visual { position: relative; top: 0; aspect-ratio: 16 / 10; }
}

.items { display: grid; gap: 0.15rem; }

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.item__name { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }

.item__price {
  font-family: var(--font-latin);
  font-size: 1.05rem;
  color: var(--amber);
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
}
.item__price em { font-style: normal; font-size: 0.62em; color: var(--muted); font-family: var(--font-body); }

.item__opts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.15rem;
}
.item__opts span {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.14rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.item__note {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: var(--faint);
  margin-top: 0.3rem;
}

/* ---------- 12. الأرجيلة ---------- */
.shisha {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 10rem) 0;
  background: var(--ink);
}
.shisha__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}
.shisha__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.shisha::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(6, 8, 11, 0.20), rgba(6, 8, 11, 0.90) 62%);
}
.shisha .wrap { position: relative; z-index: 2; }

.flavors {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.55rem;
  max-width: 46rem;
}
.flavor {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--glass);
  font-size: 0.9rem;
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}
.flavor:hover { border-color: var(--amber); transform: translateY(-2px); }
.flavor b { font-family: var(--font-latin); font-weight: 400; color: var(--amber); display: inline-flex; gap: 0.3em; align-items: baseline; }
.flavor b em { font-style: normal; font-size: 0.62em; color: var(--faint); font-family: var(--font-body); }

/* ---------- 13. الباقات ---------- */
.packages { padding: clamp(4.5rem, 11vw, 9rem) 0; background: var(--ink-2); }

.pkg-grid {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.pkg {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--ink-3);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.pkg:hover { border-color: rgba(241, 137, 33, 0.5); transform: translateY(-5px); }

.pkg__img { aspect-ratio: 4 / 5; overflow: hidden; }
.pkg__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.pkg:hover .pkg__img img { transform: scale(1.05); }

.pkg__body { padding: 1.3rem; display: grid; gap: 0.7rem; }
.pkg__top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; }
.pkg__top h3 { font-size: 1.22rem; }
.pkg__price {
  font-family: var(--font-latin);
  font-size: 1.5rem;
  color: var(--amber);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
}
.pkg__price em { font-style: normal; font-size: 0.5em; color: var(--muted); font-family: var(--font-body); }
.pkg__d { color: var(--muted); font-size: 0.88rem; line-height: 1.8; }
.pkg__inc { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pkg__inc span {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.16rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
}

/* ---------- 14. الزيارة ---------- */
.visit { padding: clamp(4.5rem, 11vw, 9rem) 0; background: var(--ink); }

.visit__grid {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--glass);
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.92rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 500;
}
.status i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 2s infinite;
}
.status.is-closed i { background: #ff6b6b; animation: none; box-shadow: none; }
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-weight: 500;
  font-size: 0.94rem;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease-out);
  width: fit-content;
}
.btn:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); }
.btn--solid { background: var(--amber); color: var(--ink); }
.btn--solid:hover { background: var(--amber-2); border-color: var(--amber-2); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- 15. النداء الأخير + التذييل ---------- */
.finale {
  position: relative;
  min-height: 90svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
}
.finale__bg { position: absolute; inset: -8%; z-index: 0; }
.finale__bg img { width: 100%; height: 100%; object-fit: cover; }
.finale::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(6, 8, 11, 0.38) 0%, rgba(6, 8, 11, 0.88) 72%);
}
.finale__inner { position: relative; z-index: 2; display: grid; gap: 1.6rem; justify-items: center; }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 0.6rem; }
.social {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.35s var(--ease-out);
}
.social:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; fill: currentColor; }

.foot {
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--faint);
  background: var(--ink);
  position: relative;
  z-index: 2;
  padding-inline-end: clamp(1.25rem, 5vw, 6rem);
}
@media (max-width: 720px) {
  .foot { padding-bottom: 5rem; }
}

/* زر واتساب عائم */
.wa {
  position: fixed;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 85;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #05130a;
  box-shadow: 0 10px 34px rgba(37, 211, 102, 0.32);
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa.is-in { transform: scale(1); }
.wa svg { width: 27px; height: 27px; fill: currentColor; }
.wa:hover { transform: scale(1.08) !important; }

/* ---------- 16. احترام تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; opacity: 0.1; }
  .scroll-cue i { animation: none; }
  .status i { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 17. فيديو البطل ---------- */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  pointer-events: none;
}
.hero__video.is-on { opacity: 1; }

@media (max-width: 760px) {
  .hero__video { display: none; }   /* على الموبايل بنكتفي بالصورة العمودية */
}

/* ---------- 18. الرحلة — مشاهد فيديو بالسكرول ---------- */
.reel {
  position: relative;
  height: 500svh;
  background: var(--ink);
}

.reel__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.reel__scenes { position: absolute; inset: 0; z-index: 0; }

.reel__scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 0.9s var(--ease-out), transform 1.6s var(--ease-out);
}
.reel__scene.is-on { opacity: 1; transform: scale(1); }

.reel__scene video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to left, rgba(6, 8, 11, 0.88) 0%, rgba(6, 8, 11, 0.52) 42%, rgba(6, 8, 11, 0.04) 100%),
    linear-gradient(to top, rgba(6, 8, 11, 0.72) 0%, transparent 45%);
}

.reel__copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.reel__slides { position: relative; min-height: clamp(15rem, 34vh, 20rem); }

.reel__slide {
  position: absolute;
  inset: 0;
  max-width: 38rem;
  display: grid;
  align-content: start;
  gap: 1.1rem;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease-out), transform 0.75s var(--ease-out);
  pointer-events: none;
}
.reel__slide.is-on { opacity: 1; transform: none; pointer-events: auto; }

.reel__time {
  font-family: var(--font-latin);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--amber);
  align-self: start;
  justify-self: start;
}

.reel__rail {
  position: absolute;
  z-index: 4;
  bottom: clamp(1.6rem, 5vh, 3rem);
  right: var(--pad);
  display: flex;
  gap: 0.5rem;
}
.reel__rail i {
  width: 34px;
  height: 2px;
  background: var(--line);
  transition: background 0.4s;
}
.reel__rail i.is-on { background: var(--amber); }

@media (max-width: 760px) {
  .reel__scrim {
    background:
      linear-gradient(to top, rgba(6, 8, 11, 0.96) 22%, rgba(6, 8, 11, 0.45) 65%, rgba(6, 8, 11, 0.3) 100%);
  }
  .reel__stage { align-items: end; }
  .reel__copy { padding-bottom: clamp(3.5rem, 12vh, 6rem); }
  .reel__slides { min-height: 16rem; }
  .reel__rail { right: var(--pad); left: var(--pad); bottom: 1.2rem; }
  .reel__rail i { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .reel { height: auto; }
  .reel__stage { position: relative; height: auto; padding-block: 4rem; }
  .reel__scene { display: none; }
  .reel__scene.is-on { display: block; }
  .reel__slides { min-height: 0; }
  .reel__slide { position: relative; opacity: 1; transform: none; }
}

/* ---------- 19. الأكواخ على الشاشات الصغيرة ---------- */
@media (max-width: 760px) {
  .cabins { min-height: auto; }
  .track {
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
  }
  .cabin { scroll-snap-align: center; }
  .cabin__img { height: min(58vh, 480px); }
}

/* شريط قابل للسحب على اللمس */
@media (max-width: 760px) {
  .track-outer {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .track-outer::-webkit-scrollbar { display: none; }
}

.swipe-hint {
  display: none;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.swipe-hint::before {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(to left, var(--amber), transparent);
}
@media (max-width: 760px) { .swipe-hint { display: flex; } }

/* ---------- 20. السهرات — فسيفساء صور ---------- */
.nights {
  padding: clamp(4.5rem, 11vw, 9rem) 0;
  background: var(--ink);
  position: relative;
}
.nights::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--line), transparent);
}

.mosaic {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1rem);
}

.tile {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink-3);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease-out), filter 0.7s;
  filter: saturate(1.05);
}
.tile:hover img { transform: scale(1); filter: saturate(1.08); }

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  display: grid;
  gap: 0.25rem;
  background: linear-gradient(to top, rgba(6, 8, 11, 0.94) 10%, transparent 100%);
}
.tile figcaption b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}
.tile figcaption span { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

/* البلاطة النصّية */
.tile--cta {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.7rem;
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  border: 1px solid var(--line);
  background: var(--glass);
}
.tile__eyebrow {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--amber);
}
.tile--cta h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.tile--cta p { color: var(--muted); font-size: 0.86rem; line-height: 1.75; }

@media (max-width: 1000px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .mosaic { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 5; }
  .tile--cta { aspect-ratio: auto; }
}

/* ---------- 21. ضبط سطور البطل على الشاشات الصغيرة ---------- */
@media (max-width: 760px) {
  .hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    margin-bottom: 0.9rem;
  }

  .hero__title {
    font-size: clamp(3rem, 17vw, 5rem);
    line-height: 0.96;
  }

  .hero__sub {
    margin-top: 1.05rem;
    max-width: 26ch;
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero__meta {
    margin-top: 1.5rem;
    gap: 0.4rem 1rem;
    font-size: 0.76rem;
    line-height: 1.6;
  }
  .hero__meta span::before { width: 4px; height: 4px; }

  /* نفس المعالجة لعناوين الفصول */
  .h-lg { font-size: clamp(1.9rem, 8.5vw, 3rem); line-height: 1.16; }
  .h-xl { font-size: clamp(2.4rem, 12vw, 4rem); line-height: 1.06; }
  .lede { font-size: 0.98rem; line-height: 1.8; max-width: 34ch; }
  .chapter-tag { font-size: 0.72rem; letter-spacing: 0.26em; margin-bottom: 1rem; }

  .reel__slide { gap: 0.8rem; }
  .reel__time { font-size: 0.8rem; letter-spacing: 0.24em; }
}

/* ---------- 22. وضوح نص البطل فوق الصورة على الموبايل ---------- */
@media (max-width: 760px) {
  /* نزّل إطار الصورة شوي حتى الأكواخ تنزل تحت النص */
  .hero__media img { object-position: 50% 62%; }

  /* حزام تعتيم ورا كتلة النص حتى يضل مقروء فوق أضواء المدينة */
  .hero__scrim {
    background:
      linear-gradient(to top, var(--ink) 3%, rgba(6, 8, 11, 0.22) 30%, rgba(6, 8, 11, 0.58) 100%),
      radial-gradient(ellipse 130% 42% at 50% 46%, rgba(6, 8, 11, 0.7) 0%, rgba(6, 8, 11, 0) 100%);
  }

  .hero__title { text-shadow: 0 2px 30px rgba(6, 8, 11, 0.9); }
  .hero__sub   { text-shadow: 0 1px 14px rgba(6, 8, 11, 0.95); }
  .hero__meta  { text-shadow: 0 1px 12px rgba(6, 8, 11, 0.95); }
}

/* ---------- 23. سطور البطل: توازن أدقّ ---------- */
@media (min-width: 761px) {
  /* على الشاشات الكبيرة نرجعهم صفّ واحد */
  .hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; }
}

@media (max-width: 760px) {
  .hero__sub { max-width: 30ch; line-height: 1.62; }
  .hero__meta { margin-top: 1.35rem; gap: 0.42rem; }
  .hero__metarow { gap: 0.35rem 1.1rem; }
}

@media (max-width: 400px) {
  .hero__sub { font-size: 0.95rem; max-width: 28ch; }
  .hero__meta { font-size: 0.72rem; }
}

/* ---------- 24. توزيع أنعم لسطور النصوص العربية ---------- */
.hero__sub { text-wrap: balance; }

.lede,
.reel__slide p,
.cabin__cap p,
.tile figcaption span,
.pkg__d,
.card p {
  text-wrap: pretty;
}

h1, h2, h3, .hero__title, .h-xl, .h-lg, .h-md {
  text-wrap: balance;
}


/* ==========================================================================
   25. وضوح النصوص — كل الكلام الثانوي أبيض وأثقل، مش شبه شفاف
   ========================================================================== */

/* وصف البطاقات والصور */
.cabin__cap p,
.tile figcaption span,
.pkg__d,
.card p,
.stat small {
  color: rgba(236, 231, 221, 0.92);
  font-weight: 500;
}

.cabin__cap h3,
.tile figcaption b,
.pkg__top h3,
.card h3 { font-weight: 800; }

/* خيارات وملاحظات المنيو */
.item__name { font-weight: 700; font-size: 1.05rem; }
.item__opts span { color: rgba(236, 231, 221, 0.85); font-weight: 500; }
.item__note { color: rgba(236, 231, 221, 0.7); font-weight: 500; }
.pkg__inc span { color: rgba(236, 231, 221, 0.85); font-weight: 500; }
.flavor { font-weight: 600; }

/* التبويبات */
.tab { color: rgba(236, 231, 221, 0.82); font-weight: 600; }
.tab:hover { color: var(--smoke); }

/* روابط الهيدر */
.nav__links a { color: rgba(236, 231, 221, 0.85); font-weight: 500; }

/* التذييل والتلميحات */
.foot { color: rgba(236, 231, 221, 0.7); font-weight: 500; }
.swipe-hint { color: rgba(236, 231, 221, 0.72); font-weight: 500; }
.scroll-cue { color: rgba(236, 231, 221, 0.7); font-weight: 500; }

/* النصوص فوق الصور والفيديو: ظل خفيف يفصلها عن الخلفية */
.pinned__body .lede,
.reel__slide p,
.finale__inner .lede {
  text-shadow: 0 1px 16px rgba(6, 8, 11, 0.9);
}

.pinned__body h2,
.reel__slide h2,
.finale__inner h2 {
  text-shadow: 0 2px 28px rgba(6, 8, 11, 0.75);
}

/* الوقت في فصل الرحلة */
.reel__time { font-weight: 500; }

/* العناوين بخط Cairo — وزن أثقل شوي للوضوح على الخلفيات الداكنة */
.h-lg, .h-xl { font-weight: 900; }
.h-md { font-weight: 800; }

/* مسافة أنفَس فوق وتحت العناوين */
.pinned__body h2,
.reel__slide h2 { margin-block: 0.1em 0.15em; }

/* ==========================================================================
   26. تصليحات تخطيط بعد تكبير المسافات
   ========================================================================== */

/* مساحة كافية بين كتلة البطل وسهم «انزل» */
.hero__inner { padding-bottom: clamp(3.5rem, 9vh, 7rem); }
.scroll-cue i { height: 38px; }

/* طبقات البارالاكس: هامش أوسع من مدى الحركة حتى ما تبين حواف الصورة */
.pinned__bg { inset: -24%; }
.finale__bg { inset: -18%; }
.shisha__bg { inset: -20%; }

@media (max-width: 760px) {
  .hero__inner { padding-bottom: clamp(2.5rem, 7vh, 4.5rem); }
}

/* ---------- 27. ضبط سطرَي عنوان البطل ---------- */
.hero__title { --split-gap: 0.02em; }

@media (max-width: 760px) {
  .hero__title { line-height: 1.0; font-size: clamp(3rem, 16vw, 4.8rem); }
  .hero__sub { margin-top: 1.3rem; }
}
