/* ============================================================
   AL GHAZALEEN TEA — SCROLL-DRIVEN LANDING PAGE
   Aesthetic: Dark cinematic luxury, editorial tea heritage
   ============================================================ */

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === DESIGN TOKENS === */
:root {
  /* Brand */
  --brand-red: #b22924;
  --brand-red-dim: #8a1e1b;
  --brand-gold: #fecc18;
  --brand-gold-dim: #c9a00f;

  /* Background Color Zones — light base */
  --bg-hero: #ffffff;
  --bg-dark: #f5f5f5;
  --bg-deep-red: #b22924;
  --bg-warm-red: #d4453e;
  --bg-accent: #fecc18;
  --bg-charcoal: #32373c;
  --bg-cream: #fafafa;
  --bg-warm-gold: #fecc18;

  /* Text — dark on light */
  --text-primary: #000000;
  --text-secondary: #32373c;
  --text-muted: #abb8c3;
  --text-accent: #b22924;
  --text-warm: #fecc18;
  --text-gold: #fecc18;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Garamond, serif;
  --font-accent: 'Bebas Neue', Impact, sans-serif;

  /* Spacing */
  --section-pad: 5vw;
  --content-max: 40vw;

  /* Easing */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === BASE === */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-hero);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  background-image: radial-gradient(ellipse at 30% 20%, rgba(178, 41, 36, 0.04) 0%, transparent 60%),
                    radial-gradient(ellipse at 70% 80%, rgba(254, 204, 24, 0.03) 0%, transparent 60%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* === FILM GRAIN OVERLAY === */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.loader-brand {
  width: 180px;
  opacity: 0;
}

.loader-track {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--brand-red);
  border-radius: 1px;
  transition: width 0.15s linear;
}

#loader-percent {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem var(--section-pad);
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s var(--ease-smooth), opacity 0.5s var(--ease-smooth);
}

.site-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  display: block;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand-red);
  transition: width 0.4s var(--ease-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--brand-red);
}

/* Hamburger Menu */
.site-header .hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.site-header .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ============================================================
   HERO STANDALONE
   ============================================================ */
.hero-standalone {
  position: relative;
  z-index: 5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: var(--section-pad);
  padding-right: 45vw;
  padding-top: 5rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 7rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.hero-heading .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.3em;
  padding-bottom: 0.1em;
}

.hero-heading .word span {
  display: inline-block;
  transform: translateY(110%);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: var(--section-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
}

.scroll-indicator span {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-indicator svg {
  width: 18px;
  height: 28px;
}

.scroll-dot {
  animation: scrollDotBounce 2s ease-in-out infinite;
}

@keyframes scrollDotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ============================================================
   CANVAS
   ============================================================ */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: circle(75% at 50% 50%);
}

canvas#canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(1.3) contrast(0.95);
}

/* ============================================================
   DARK OVERLAY
   ============================================================ */
#dark-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(245, 245, 245, 0.65) 100%);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  position: fixed;
  left: -10%;
  width: 120%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  top: 45%;
  transform: translateY(-50%);
}

.marquee-secondary {
  top: calc(45% + 12vw);
}

.marquee-text {
  font-family: var(--font-accent);
  font-size: 14vw;
  white-space: nowrap;
  color: var(--brand-red);
  opacity: 0.12;
  line-height: 1;
  letter-spacing: 0.03em;
}

.marquee-secondary .marquee-text {
  font-size: 10vw;
  color: var(--brand-gold);
  opacity: 0.2;
}

/* ============================================================
   SCROLL CONTAINER
   ============================================================ */
#scroll-container {
  position: relative;
  z-index: 3;
  height: 600vh;
}

/* ============================================================
   SCROLL SECTIONS — BASE
   ============================================================ */
.scroll-section {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 100vh;
  opacity: 0;
  pointer-events: none;
}

.scroll-section.is-visible {
  pointer-events: auto;
}

/* === Side-Aligned Text Zones === */
.align-left {
  padding-left: var(--section-pad);
  padding-right: 55vw;
  justify-content: flex-start;
}

.align-right {
  padding-left: 55vw;
  padding-right: var(--section-pad);
  justify-content: flex-end;
}

.align-left .section-inner,
.align-right .section-inner {
  max-width: var(--content-max);
  background: rgba(255, 255, 255, 0.92);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--brand-red);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* === Section Typography === */
.section-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.section-note {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.section-stats {
  justify-content: center;
  text-align: center;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 6vw;
  flex-wrap: wrap;
  padding: 3rem var(--section-pad);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  margin: 0 var(--section-pad);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--brand-gold);
  margin-left: 0.15em;
  font-weight: 500;
}

.stat-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.section-cta {
  justify-content: center;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.cta-inner .section-body {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--brand-red);
  padding: 1.2rem 3.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.cta-button:hover {
  background: var(--brand-gold);
  color: #000000;
  transform: scale(1.03);
}

.cta-link {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(122, 107, 93, 0.4);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.cta-link:hover {
  color: var(--brand-red);
  text-decoration-color: var(--brand-red);
}

/* ============================================================
   CHAT BUBBLE & PANEL
   ============================================================ */
.chat-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  width: 100px;
  height: 58px;
  border-radius: 50% 6px 50% 6px;
  background: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(178, 41, 36, 0.35);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  transform: rotate(-10deg);
}

.chat-bubble::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  top: 50%;
  left: 20%;
  transform: rotate(-4deg);
  border-radius: 1px;
}

.chat-bubble:hover {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 6px 32px rgba(178, 41, 36, 0.5);
}

.chat-bubble-text {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  transform: rotate(10deg);
}

.chat-bubble.is-open {
  transform: rotate(-10deg) scale(0);
  pointer-events: none;
}

/* Chat Panel */
.chat-panel {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 151;
  width: 380px;
  max-height: 520px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-logo {
  width: 36px;
  height: auto;
}

.chat-title {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  flex: 1;
}

.chat-close {
  background: none;
  border: none;
  color: #abb8c3;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease;
}

.chat-close:hover {
  color: #000000;
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 280px;
  max-height: 340px;
}

.chat-msg p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.chat-bot p {
  color: #32373c;
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  border-radius: 10px 10px 10px 2px;
}

.chat-user p {
  color: #fff;
  background: var(--brand-red);
  padding: 0.75rem 1rem;
  border-radius: 10px 10px 2px 10px;
  margin-left: auto;
  max-width: 85%;
}

.chat-typing p {
  color: var(--text-muted);
  font-style: italic;
}

/* Input */
.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.chat-input {
  flex: 1;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #000000;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-input:focus {
  border-color: var(--brand-red);
}

.chat-send {
  background: var(--brand-red);
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--brand-red-dim);
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 6vw;
    --content-max: 100%;
  }

  .site-header {
    padding: 0.6rem var(--section-pad);
  }

  .header-logo img {
    width: 90px;
  }

  .site-header .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .canvas-wrap {
    clip-path: circle(60% at 50% 50%);
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    gap: 1rem;
  }

  .hero-standalone {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .hero-heading {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
    line-height: 1.05;
  }

  .align-left,
  .align-right {
    padding-left: var(--section-pad);
    padding-right: var(--section-pad);
    justify-content: center;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--brand-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  #scroll-container {
    height: 500vh;
  }

  .section-heading {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .stats-grid {
    gap: 2rem;
  }

  .stat-number {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .marquee-text {
    font-size: 20vw;
  }

  .marquee-secondary .marquee-text {
    font-size: 15vw;
  }
}

  .chat-panel {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 1rem;
    max-height: 70vh;
  }

  .chat-bubble {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 84px;
    height: 50px;
  }

  .chat-bubble-text {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .stats-grid {
    flex-direction: column;
    gap: 2.5rem;
  }

  .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

/* ============================================================
   VISUAL ENHANCEMENTS
   ============================================================ */

/* Hero Text Shimmer — gold underline sweep instead of text-fill */
.hero-heading.shimmer-active {
  position: relative;
}

.hero-heading.shimmer-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent 20%, #fecc18 50%, transparent 80%);
  background-size: 200% 100%;
  animation: shimmerGold 3s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes shimmerGold {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Scroll Progress Indicator */
#scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 100vh;
  z-index: 120;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.05);
}

#scroll-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #b22924, #fecc18);
  transition: height 0.1s linear;
}

/* Gold Accent Line */
#gold-accent-line {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, #fecc18 30%, #b22924 50%, #fecc18 70%, transparent 95%);
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Floating Tea Leaf Particles */
#leaf-particles {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#leaf-particles .leaf {
  position: absolute;
  width: 24px;
  height: 36px;
}

#leaf-particles .leaf:nth-child(1) { top: 10%; left: 5%; }
#leaf-particles .leaf:nth-child(2) { top: 20%; right: 8%; }
#leaf-particles .leaf:nth-child(3) { top: 35%; left: 12%; }
#leaf-particles .leaf:nth-child(4) { top: 45%; right: 15%; }
#leaf-particles .leaf:nth-child(5) { top: 55%; left: 8%; }
#leaf-particles .leaf:nth-child(6) { top: 65%; right: 6%; }
#leaf-particles .leaf:nth-child(7) { top: 75%; left: 18%; }
#leaf-particles .leaf:nth-child(8) { top: 85%; right: 12%; }

/* Section Transition Wipe */
#section-wipe {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: var(--brand-red);
  transform: translateX(-100%);
}

/* ============================================================
   POPUP OVERLAY (global — used on homepage and sub-pages)
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.popup-card {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.popup-overlay.show .popup-card { transform: scale(1); }
.popup-card img { width: 100%; display: block; }
.popup-body { padding: 2rem; text-align: center; }
.popup-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}
.popup-body p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
[dir="rtl"] .popup-body h3,
[dir="rtl"] .popup-body p,
[dir="rtl"] .popup-btn,
.rtl .popup-body h3,
.rtl .popup-body p,
.rtl .popup-btn { font-family: 'Tajawal', sans-serif; }
.popup-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--brand-red);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}
.popup-btn:hover { background: var(--brand-red-dim); }
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 1;
}
.popup-close:hover { background: rgba(0, 0, 0, 0.7); }

/* ============================================================
   HOMEPAGE FOOTER
   ============================================================ */
.home-footer {
  position: relative;
  z-index: 10;
  background: #1a1a2e;
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: 3rem 2rem 2rem;
  font-family: var(--font-body);
}
.home-footer-inner { max-width: 600px; margin: 0 auto; }
.home-footer-logo { width: 80px; height: auto; margin-bottom: 1rem; opacity: .9; }
.home-footer-desc { font-size: .9rem; line-height: 1.6; margin-bottom: 1.5rem; opacity: .7; }
.home-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.home-footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}
.home-footer-links a:hover { color: var(--brand-gold); }
.home-footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.home-footer-social a { color: rgba(255,255,255,.5); transition: color .2s; }
.home-footer-social a:hover { color: var(--brand-gold); }
.home-footer-copy { font-size: .78rem; opacity: .4; }
.home-footer-cookie-link {
  display: inline-block;
  margin-top: .75rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  text-decoration: underline;
  cursor: pointer;
}
.home-footer-cookie-link:hover { color: rgba(255,255,255,.7); }
