/* =============================================================
   Backyard Tours & Events — Arabic Site
   Shared styles. RTL. Built on the design system tokens.
   ============================================================= */
@import url("tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar-sans), "Tajawal", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* Type families: Arabic-first */
:root {
  --font-ar-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
  --font-ar-sans:    "Tajawal", "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
}

/* Lucide icon defaults — flip directional ones in RTL */
i[data-lucide] { width: 20px; height: 20px; display: inline-block; vertical-align: middle; stroke-width: 1.7; }
[dir="rtl"] i[data-lucide="arrow-right"],
[dir="rtl"] i[data-lucide="arrow-left"],
[dir="rtl"] i[data-lucide="chevron-right"],
[dir="rtl"] i[data-lucide="chevron-left"] { transform: scaleX(-1); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.sec { padding: 96px 0; }
.sec-tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.16em;
  color: var(--by-purple); text-transform: uppercase;
}
.eyebrow .pip { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(185,112,208,.18); }
.eyebrow.green { color: var(--green-700); }
.eyebrow.green .pip { box-shadow: 0 0 0 4px rgba(175,177,113,.22); }
.eyebrow.muted { color: var(--fg-subtle); }
.eyebrow.muted .pip { background: var(--fg-subtle); box-shadow: 0 0 0 4px rgba(122,110,92,.15); }

.h-display {
  font-family: var(--font-ar-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--by-ink);
  margin: 16px 0 20px;
  text-wrap: pretty;
}
.h-display em { font-style: normal; color: var(--by-purple); }
.h-display.green em { color: var(--green-700); }

.h-section {
  font-family: var(--font-ar-display);
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--by-ink);
  margin: 12px 0 16px;
  text-wrap: pretty;
}
.h-section em { font-style: normal; color: var(--by-purple); }
.h-section.green em { color: var(--green-700); }

.h-card {
  font-family: var(--font-ar-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--by-ink);
  margin: 0 0 8px;
}

.lede {
  font-size: 18px;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 62ch;
  margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: none;
  font-family: var(--font-ar-sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out-quart),
              box-shadow var(--t-base) var(--ease-out-quart),
              background var(--t-base) var(--ease-out-quart),
              color var(--t-base) var(--ease-out-quart);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); box-shadow: var(--sh-press); }
.btn i { width: 18px; height: 18px; }

.btn-primary { background: var(--by-purple); color: #fff; box-shadow: var(--sh-purple); }
.btn-primary:hover { background: var(--purple-600); transform: translateY(-1px); }

.btn-green { background: var(--by-green); color: var(--by-ink); box-shadow: var(--sh-green); }
.btn-green:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); }

.btn-dark { background: var(--by-ink); color: #fff; }
.btn-dark:hover { background: #2a2522; transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--by-ink); box-shadow: inset 0 0 0 1.5px var(--by-ink); }
.btn-outline:hover { background: var(--by-ink); color: #fff; }

.btn-glass {
  background: rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}
.btn-glass:hover { background: rgba(255,255,255,0.22); }

.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ============================================================
   HEADER (sticky, transparent over hero, solid on scroll)
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 80;
  transition: background var(--t-base) var(--ease-out-quart),
              border-color var(--t-base) var(--ease-out-quart),
              box-shadow var(--t-base) var(--ease-out-quart),
              color var(--t-base) var(--ease-out-quart);
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #fff;
}
.site-header.is-solid {
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  color: var(--by-ink);
  box-shadow: 0 1px 0 rgba(21,21,21,0.04);
}
.site-header .row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand-mark .logo-img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}
/* Invert to white when over the transparent (dark hero) header — gives the wordmark contrast on video */
.site-header:not(.is-solid) .brand-mark .logo-img {
  filter: brightness(0) invert(1);
}

.nav-main {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px;
}
.nav-main a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: inherit;
  opacity: 0.82;
  transition: opacity var(--t-base) var(--ease-out-quart), background var(--t-base) var(--ease-out-quart);
}
.nav-main a:hover { opacity: 1; background: rgba(255,255,255,0.10); }
.site-header.is-solid .nav-main a:hover { background: rgba(21,21,21,0.06); }
.nav-main a.is-active {
  opacity: 1;
  background: rgba(255,255,255,0.16);
}
.site-header.is-solid .nav-main a.is-active {
  background: var(--by-ink);
  color: var(--by-sand);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 12px 18px; font-size: 14px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  align-items: center; justify-content: center;
}
.menu-toggle i { width: 20px; height: 20px; }

/* mobile menu (hidden until JS toggle) */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--by-ink);
  color: #fff;
  z-index: 90;
  padding: 80px 32px 40px;
  flex-direction: column; gap: 8px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-ar-display);
  font-weight: 700;
  font-size: 28px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  color: #fff;
}
.mobile-menu a:hover { color: var(--by-purple-hi); }
.mobile-menu .close {
  position: absolute; top: 20px; left: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu .wa-row { margin-top: auto; display: flex; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ============================================================
   PAGE HEAD (for inner pages — sand banner under header)
   ============================================================ */
.page-head {
  position: relative;
  padding: 160px 0 72px;
  background: var(--by-sand);
  overflow: hidden;
}
.page-head.green-bg { background: linear-gradient(180deg, #EFF1CF 0%, var(--by-sand) 100%); }
.page-head.purple-bg { background: linear-gradient(180deg, #F6E0FB 0%, var(--by-sand) 100%); }
.page-head .crumbs {
  font-size: 12px; letter-spacing: 0.14em; color: var(--fg-subtle);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-ar-sans);
}
.page-head .crumbs a:hover { color: var(--by-ink); }
.page-head .crumbs .sep { margin: 0 8px; color: var(--by-beige); }
.page-head h1 {
  font-family: var(--font-ar-display);
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--by-ink);
  margin: 8px 0 18px;
  max-width: 22ch;
  text-wrap: pretty;
}
.page-head h1 em { font-style: normal; color: var(--by-purple); }
.page-head.green-bg h1 em { color: var(--green-700); }
.page-head .lede { max-width: 60ch; font-size: 19px; }
.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 -40px 0;
  height: 100px;
  background: url("pattern-dunes-dots.svg") repeat-x bottom;
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================================
   CARD SYSTEM (services / features / benefits)
   ============================================================ */
.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease-out-quart),
              box-shadow var(--t-base) var(--ease-out-quart);
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card .icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple-100); color: var(--by-purple);
  margin-bottom: 6px;
}
.card .icon i { width: 28px; height: 28px; stroke-width: 1.6; }
.card.green .icon { background: var(--green-100); color: var(--green-700); }
.card.sand .icon { background: var(--sand-200); color: var(--sand-700); }
.card p { margin: 0; font-size: 15px; color: var(--fg-muted); line-height: 1.7; }
.card .num {
  position: absolute; top: 18px; left: 28px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--fg-subtle);
}
.card .more {
  margin-top: auto; padding-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700;
  color: var(--by-ink);
}
.card .more:hover { color: var(--by-purple); }
.card.green .more:hover { color: var(--green-700); }

/* small chip card (audience / benefits list) */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 600; font-size: 14px;
  color: var(--by-ink);
  box-shadow: var(--sh-xs);
}
.chip-list .chip i { color: var(--by-purple); width: 16px; height: 16px; }
.chip-list.green .chip i { color: var(--green-700); }

/* feature list */
.feature-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--by-ink);
}
.feature-list li .tick {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-list.purple li .tick { background: var(--purple-100); color: var(--by-purple); }
.feature-list li .tick i { width: 16px; height: 16px; }
.feature-list li b { font-weight: 700; color: var(--by-ink); }
.feature-list li small {
  display: block; color: var(--fg-muted); font-weight: 400; font-size: 13.5px;
  margin-top: 2px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  border-radius: var(--r-card-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-band.purple { background: var(--by-ink); }
.cta-band.purple::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 110%, rgba(185,112,208,0.55), transparent 60%);
}
.cta-band.green { background: var(--by-ink); }
.cta-band.green::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 110%, rgba(175,177,113,0.55), transparent 60%);
}
.cta-band.dusk { background: var(--grad-dusk); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: var(--font-ar-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
  text-wrap: pretty;
}
.cta-band p {
  font-size: 17px; line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 50ch;
}
.cta-band .actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: flex-start;
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.fab-wa {
  position: fixed;
  bottom: 24px; left: 24px; /* RTL: stays on left visually */
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 18px;
  border-radius: var(--r-pill);
  background: var(--by-green);
  color: var(--by-ink);
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: var(--sh-green);
  border: none;
  transition: transform var(--t-base) var(--ease-out-quart);
  text-decoration: none;
}
.fab-wa:hover { transform: translateY(-2px) scale(1.02); }
.fab-wa .ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--by-ink);
  color: var(--by-green-hi);
  display: inline-flex; align-items: center; justify-content: center;
}
.fab-wa .ic i { width: 20px; height: 20px; }
.fab-wa .dot {
  position: absolute; top: 6px; left: 38px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--by-purple);
  border: 2px solid var(--by-green);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--by-ink);
  color: var(--by-sand);
  padding: 72px 0 28px;
  margin-top: 96px;
}
.site-footer .row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .brand .logo-img {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 0 6px;
  /* show in original purple+green on the dark footer */
}
.site-footer .brand p {
  color: #C9BFAE;
  font-size: 14.5px;
  line-height: 1.75;
  margin: 14px 0 18px;
  max-width: 38ch;
}
.site-footer .socials { display: flex; gap: 10px; }
.site-footer .socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(246,241,232,0.08);
  border: 1px solid rgba(246,241,232,0.12);
  color: #F6F1E8;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-base);
}
.site-footer .socials a:hover { background: var(--by-purple); border-color: var(--by-purple); color: #fff; }
.site-footer .col h4 {
  font-family: var(--font-ar-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #C9BFAE;
  text-transform: uppercase;
  margin: 6px 0 16px;
}
.site-footer .col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer .col ul a { font-size: 14.5px; color: #E2D7C2; }
.site-footer .col ul a:hover { color: var(--by-purple-hi); }
.site-footer .bot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(246,241,232,0.10);
  margin-top: 48px; padding-top: 22px;
  font-size: 12.5px; color: #8B8174; letter-spacing: 0.03em;
}
.site-footer .bot .links { display: flex; gap: 22px; }

/* ============================================================
   PAGE HERO v2 — modern animated hero for inner pages
   ============================================================ */
.page-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(620px, 84vh, 880px);
  padding: 150px 0 90px;
  background: var(--by-sand);
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; }
/* Soft brand color orbs in the background */
.page-hero .ph-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.page-hero .ph-orb.purple { width: 520px; height: 520px; background: rgba(185,112,208,0.45); top: -100px; right: -120px; }
.page-hero .ph-orb.green  { width: 460px; height: 460px; background: rgba(175,177,113,0.40); bottom: -80px; left: -120px; }
.page-hero .ph-pattern {
  position: absolute; inset: 0;
  background-image: url("pattern-dunes-dots.svg");
  background-size: 360px; opacity: 0.08;
  z-index: 0; pointer-events: none;
}

/* Layout */
.page-hero .ph-crumbs {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-subtle);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-ar-sans);
}
.page-hero .ph-crumbs a { color: var(--fg-subtle); }
.page-hero .ph-crumbs a:hover { color: var(--by-ink); }
.page-hero .ph-crumbs .sep { margin: 0 8px; color: var(--by-beige); }

.page-hero .ph-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: 24px;
}

/* Text column */
.page-hero .ph-content {
  position: relative;
  z-index: 2;
}
.page-hero .ph-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--by-purple);
  text-transform: uppercase;
}
.page-hero.green-accent .ph-eyebrow { color: var(--green-700); }
.page-hero .ph-eyebrow .pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  position: relative;
}
.page-hero .ph-eyebrow .pip::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid currentColor; opacity: 0.32;
  animation: ph-ping 2.2s ease-out infinite;
}
@keyframes ph-ping {
  0% { transform: scale(0.55); opacity: 0.65; }
  100% { transform: scale(1.5); opacity: 0; }
}

.page-hero .ph-title {
  font-family: var(--font-ar-display);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--by-ink);
  margin: 18px 0 22px;
  text-wrap: balance;
  max-width: 16ch;
}
.page-hero .ph-title em {
  font-style: normal;
  color: var(--by-purple);
  position: relative;
  display: inline-block;
}
.page-hero.green-accent .ph-title em { color: var(--green-700); }
.page-hero .ph-title em::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px; bottom: 8px;
  height: 12px;
  background: var(--by-green-hi);
  opacity: 0.5;
  border-radius: 6px;
  z-index: -1;
}
.page-hero.green-accent .ph-title em::after { background: var(--by-purple-hi); opacity: 0.45; }

/* Title line wrappers used by GSAP mask-reveal */
.page-hero .ph-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}
.page-hero .ph-title .line > span {
  display: inline-block;
  will-change: transform;
}

.page-hero .ph-lede {
  font-size: clamp(16.5px, 1.3vw, 19px);
  line-height: 1.85;
  color: var(--fg-muted);
  max-width: 56ch;
  margin: 0 0 28px;
}

.page-hero .ph-stats {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 0 0 28px;
}
.page-hero .ph-stat {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
}
.page-hero .ph-stat .n {
  font-family: var(--font-ar-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: var(--by-ink);
}
.page-hero .ph-stat .n em { font-style: normal; color: var(--by-purple); }
.page-hero.green-accent .ph-stat .n em { color: var(--green-700); }
.page-hero .ph-stat .l {
  font-size: 12.5px;
  color: var(--fg-muted);
  font-weight: 600;
}

.page-hero .ph-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Image stage */
.page-hero .ph-stage {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  border-radius: var(--r-card-lg);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  background-color: var(--by-ink);
  will-change: transform;
  z-index: 1;
}
.page-hero .ph-image {
  position: absolute; inset: 0;
  background-color: #2A241C;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Ken Burns slow scale forever */
  animation: ph-ken-burns 22s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes ph-ken-burns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-2%, -2%, 0); }
}
.page-hero .ph-image-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(185,112,208,0.22) 0%, transparent 42%, rgba(175,177,113,0.20) 100%),
    linear-gradient(180deg, transparent 40%, rgba(21,21,21,0.45) 75%, rgba(21,21,21,0.80) 100%);
  z-index: 1; pointer-events: none;
}
.page-hero .ph-image-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.7;
  z-index: 2; pointer-events: none;
}

.page-hero .ph-stamp {
  position: absolute;
  top: 22px; right: 22px;
  background: #fff;
  color: var(--by-ink);
  font-family: var(--font-ar-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  transform: rotate(-4deg);
  z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
}
.page-hero .ph-stamp .d {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--by-purple);
  box-shadow: 0 0 0 3px rgba(185,112,208,0.22);
}
.page-hero.green-accent .ph-stamp .d { background: var(--by-green); box-shadow: 0 0 0 3px rgba(175,177,113,0.22); }

.page-hero .ph-floor {
  position: absolute;
  right: 26px; left: 26px; bottom: 26px;
  color: #fff;
  z-index: 5;
}
.page-hero .ph-floor .eb {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  opacity: 0.92;
  text-transform: uppercase;
}
.page-hero .ph-floor .ttl {
  font-family: var(--font-ar-display);
  font-weight: 800;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  margin-top: 6px;
  text-wrap: pretty;
}

/* Floating polaroid stack (overlapping the stage corner) */
.page-hero .ph-pol-stack {
  position: absolute;
  bottom: -38px;
  /* RTL-aware via inset prop below */
  left: -54px;
  width: 200px; height: 220px;
  z-index: 6;
  pointer-events: none;
}
[dir="rtl"] .page-hero .ph-pol-stack { left: auto; right: -54px; }

.page-hero .ph-pol {
  position: absolute;
  width: 130px; height: 160px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 44px -12px rgba(21,21,21,0.45);
  padding: 8px 8px 24px;
  display: flex; flex-direction: column;
  transform-origin: center bottom;
}
.page-hero .ph-pol .photo {
  flex: 1; border-radius: 3px; position: relative; overflow: hidden;
}
.page-hero .ph-pol .photo::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
.page-hero .ph-pol .cap {
  font-family: var(--font-ar-display);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--by-ink);
  text-align: center;
  margin-top: 4px;
  text-transform: uppercase;
}
.page-hero .ph-pol-1 {
  bottom: 0; left: 0;
  transform: rotate(-12deg);
  animation: ph-pol1 8s ease-in-out infinite;
}
.page-hero .ph-pol-1 .photo { background: linear-gradient(160deg, #B970D0 0%, #57306A 60%, #151515 100%); }
.page-hero .ph-pol-2 {
  bottom: 6px; left: 30px;
  transform: rotate(4deg);
  z-index: 2;
  animation: ph-pol2 8s ease-in-out infinite;
}
.page-hero .ph-pol-2 .photo { background: linear-gradient(160deg, #E1E4A6 0%, #AFB171 40%, #4A4B30 100%); }
@keyframes ph-pol1 { 0%,100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(-14deg) translateY(-4px); } }
@keyframes ph-pol2 { 0%,100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-3px); } }

/* Decorative orbital ring sticker */
.page-hero .ph-ring {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 130px; height: 130px;
  z-index: 6;
  pointer-events: none;
}
[dir="rtl"] .page-hero .ph-ring { right: auto; left: -28px; }
.page-hero .ph-ring svg { width: 100%; height: 100%; animation: ph-ring-spin 22s linear infinite; }
@keyframes ph-ring-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.page-hero .ph-ring .pip-p,
.page-hero .ph-ring .pip-g { transform-origin: center; }

/* Bottom dune wave divider */
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background:
    radial-gradient(40% 100% at 20% 0%, var(--by-sand) 0%, transparent 70%),
    radial-gradient(50% 100% at 60% 0%, var(--by-sand) 0%, transparent 70%),
    radial-gradient(40% 100% at 90% 0%, var(--by-sand) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Variant: green accent (umrah/religious/tourism) */
.page-hero.green-accent { background: linear-gradient(180deg, #EFF1CF 0%, var(--by-sand) 100%); }
.page-hero.purple-accent { background: linear-gradient(180deg, #F6E0FB 0%, var(--by-sand) 100%); }
.page-hero.ink-accent {
  background: linear-gradient(180deg, #2A241C 0%, #151515 100%);
  color: #fff;
}
.page-hero.ink-accent .ph-title { color: #fff; }
.page-hero.ink-accent .ph-lede { color: rgba(246,241,232,0.85); }
.page-hero.ink-accent .ph-crumbs { color: rgba(246,241,232,0.55); }
.page-hero.ink-accent .ph-crumbs a { color: rgba(246,241,232,0.55); }
.page-hero.ink-accent .ph-stat {
  background: rgba(246,241,232,0.06);
  border-color: rgba(246,241,232,0.15);
  backdrop-filter: blur(10px);
}
.page-hero.ink-accent .ph-stat .n { color: #fff; }
.page-hero.ink-accent .ph-stat .l { color: rgba(246,241,232,0.75); }

/* Responsive */
@media (max-width: 960px) {
  .page-hero { padding: 130px 0 70px; min-height: auto; }
  .page-hero .ph-grid { grid-template-columns: 1fr; gap: 36px; }
  .page-hero .ph-stage { max-width: 100%; margin: 0; aspect-ratio: 3/4; }
  .page-hero .ph-orb.purple { width: 320px; height: 320px; }
  .page-hero .ph-orb.green { width: 320px; height: 320px; }
  .page-hero .ph-pol-stack { width: 140px; height: 160px; bottom: -20px; }
  [dir="rtl"] .page-hero .ph-pol-stack { right: -20px; }
  .page-hero .ph-pol-stack .ph-pol { width: 100px; height: 124px; }
  .page-hero .ph-ring { width: 100px; height: 100px; top: -18px; }
  [dir="rtl"] .page-hero .ph-ring { left: -18px; }
}
@media (max-width: 560px) {
  .page-hero { padding: 110px 0 56px; }
  .page-hero .ph-title { font-size: 38px; }
  .page-hero .ph-stat { padding: 9px 14px; }
  .page-hero .ph-stat .n { font-size: 18px; }
  .page-hero .ph-pol-stack { display: none; }
}

/* ============================================================
   MOTION
   ============================================================ */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-right { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
[dir="rtl"] @keyframes fade-right { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float-soft { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }

.anim-up { animation: fade-up 700ms var(--ease-out-quart) both; }
.anim-up.d1 { animation-delay: 120ms; }
.anim-up.d2 { animation-delay: 240ms; }
.anim-up.d3 { animation-delay: 360ms; }
.anim-up.d4 { animation-delay: 480ms; }

/* When GSAP is active, suppress CSS keyframes so they don't double-animate */
html.has-gsap .anim-up { animation: none !important; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--by-purple), var(--by-green));
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
}
[dir="rtl"] .scroll-progress { transform-origin: left center; }

/* Page-load curtain (revealed by GSAP) */
.page-curtain {
  position: fixed; inset: 0; z-index: 300;
  background: var(--by-ink);
  transform-origin: top center;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-main { display: none; }
  .nav-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .sec { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .page-head { padding: 130px 0 56px; }
}
@media (max-width: 560px) {
  .site-footer .grid { grid-template-columns: 1fr; }
  .site-footer .bot { flex-direction: column; gap: 10px; }
  .fab-wa { left: 16px; bottom: 16px; padding: 12px 16px 12px 14px; }
  .fab-wa span.label { display: none; }
}
