/* ============================================================
   BICKFAYA & MHAYDSSEH MUNICIPALITY
   Premium Dark Green + Gold Design System
   Version 1.0 | 2026
   ============================================================ */

/* ---- Fonts: self-hosted, see assets/css/fonts.css (loaded in <head>) ---- */

/* ---- CSS Variables ---- */
:root {
  --primary:        #1B4332;
  --primary-dark:   #0D2818;
  --primary-deep:   #071A10;
  --primary-light:  #2D6A4F;
  --primary-mid:    #245840;
  --gold:           #D4AF37;
  --gold-light:     #F0D060;
  --gold-dark:      #9B7C1A;
  --gold-pale:      #FDF6D8;
  --white:          #FFFFFF;
  --off-white:      #F9FAF8;
  --light-bg:       #F2F5F2;
  --dark:           #060D08;
  --text-dark:      #0D2818;
  --text-mid:       #3A5A45;
  --text-muted:     #7A9A85;
  --border-color:   rgba(212, 175, 55, 0.18);
  --border-light:   rgba(212, 175, 55, 0.08);
  --glass-bg:       rgba(13, 40, 24, 0.72);
  --glass-light:    rgba(27, 67, 50, 0.12);
  --overlay-dark:   rgba(6, 13, 8, 0.65);
  --overlay-green:  rgba(13, 40, 24, 0.82);
  --shadow-gold:    0 4px 30px rgba(212, 175, 55, 0.25);
  --shadow-card:    0 20px 60px rgba(6, 13, 8, 0.35);
  --shadow-sm:      0 4px 16px rgba(6, 13, 8, 0.18);
  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      22px;
  --radius-xl:      32px;
  --radius-pill:    999px;
  --transition:     all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  --font-en-head:   'Playfair Display', Georgia, serif;
  --font-en-body:   'Inter', system-ui, sans-serif;
  --font-ar:        'Cairo', 'Segoe UI', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-en-body);
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}
body.lang-ar { font-family: var(--font-ar); direction: rtl; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3,
body.lang-ar h4, body.lang-ar h5 { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Loading Screen ---- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--primary-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: contain;
  animation: logoPulse 1.5s ease-in-out infinite alternate;
  margin-bottom: 32px;
  border: 2px solid var(--gold);
  padding: 8px;
  background: rgba(212, 175, 55, 0.08);
}
@keyframes logoPulse {
  from { transform: scale(0.92); opacity: 0.7; box-shadow: 0 0 0 rgba(212,175,55,0); }
  to   { transform: scale(1.04); opacity: 1;   box-shadow: 0 0 40px rgba(212,175,55,0.4); }
}
.loader-title {
  font-family: var(--font-en-head);
  font-size: 1.4rem; font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.loader-bar {
  width: 260px; height: 3px;
  background: rgba(212,175,55,0.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: var(--radius-pill);
  animation: loaderFill 2s ease-in-out forwards;
}
@keyframes loaderFill {
  from { width: 0; }
  to   { width: 100%; }
}
.loader-dots {
  display: flex; gap: 8px; margin-top: 20px;
}
.loader-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%,80%,100% { transform: translateY(0); opacity:0.4; }
  40% { transform: translateY(-10px); opacity:1; }
}

/* ---- Top Info Bar ---- */
.top-bar {
  background: var(--primary-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.8rem;
}
.top-bar-item {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.top-bar-item i { color: var(--gold); font-size: 0.85rem; }
.top-bar-item a:hover { color: var(--gold); }
.lang-toggle-btn {
  background: var(--border-color);
  border: 1px solid var(--border-color);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.lang-toggle-btn:hover {
  background: var(--gold);
  color: var(--primary-dark);
}

/* ---- Main Navigation ---- */
.main-nav {
  background: var(--primary-dark);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  padding: 0;
}
.main-nav.scrolled {
  background: rgba(7, 26, 16, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(212,175,55,0.35);
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-name {
  font-family: var(--font-en-head);
  font-size: 1rem; font-weight: 700;
  color: var(--white);
  display: block;
}
.nav-logo-sub {
  font-size: 0.65rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.navbar-nav .nav-item { position: relative; }
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem; font-weight: 500;
  padding: 22px 14px !important;
  transition: var(--transition);
  letter-spacing: 0.3px;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: var(--transition);
  border-radius: 2px 2px 0 0;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after { left: 14px; right: 14px; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link { color: var(--gold) !important; }
.dropdown-menu {
  background: var(--primary-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-card);
  animation: dropIn 0.25s ease;
}
@keyframes dropIn {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}
.dropdown-item {
  color: rgba(255,255,255,0.8) !important;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 10px;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: rgba(212,175,55,0.12) !important;
  color: var(--gold) !important;
  transform: translateX(4px);
}
.dropdown-item i { width: 16px; color: var(--gold); font-size: 0.8rem; }
.btn-emergency {
  background: linear-gradient(135deg, #C0392B, #E74C3C);
  color: var(--white) !important;
  border: none; border-radius: var(--radius-pill);
  padding: 8px 18px; font-size: 0.8rem; font-weight: 600;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 15px rgba(192,57,43,0.4);
}
.btn-emergency:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,0.5); }
.btn-emergency i { animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.navbar-toggler { border: 1px solid var(--border-color); padding: 6px 10px; }
.navbar-toggler-icon { filter: invert(1); }

/* ---- Hero Section ---- */
/* ============================================================
   HERO — INTERACTIVE v2
   ============================================================ */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--primary-deep);
  cursor: none; /* hidden — we use cursor glow instead */
}
@media (max-width: 992px) { .hero-section { cursor: auto; } }

.hero-bg {
  position: absolute; inset: 0;
  transform: scale(1.13);
  /* JS overrides transform on this element for mouse-parallax depth */
  will-change: transform;
  overflow: hidden;
}

/* ── Slideshow slides — JS injects .hero-slide elements inside .hero-bg ── */
.hero-slide {
  position: absolute;
  inset: -14%; /* extra bleed: zoom-in start never shows a hard edge */
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  /* transition handles the fade-in AND the zoom-out EXIT (when is-active removed) */
  transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.0s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  filter: brightness(0.84) saturate(1.18) contrast(1.04);
  transform-origin: center center;
  transform: scale(1.0);
}
.hero-slide.is-active {
  opacity: 1;
  /* animation overrides the transition's transform while active */
  animation: kenBurnsZoomOut 5s ease-out forwards;
}

/* Zoom-OUT: each slide enters slightly zoomed-in, relaxes to natural size */
@keyframes kenBurnsZoomOut {
  0%   { transform: scale(1.14) translate( 0.4%,  0.3%); }
  35%  { transform: scale(1.09) translate(-0.5%, -0.2%); }
  70%  { transform: scale(1.04) translate( 0.3%,  0.1%); }
  100% { transform: scale(1.00) translate( 0%,    0%  ); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active { animation: none; }
}

/* ── Slide indicator dots ── */
.hero-dots {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex; gap: 8px; align-items: center;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none; padding: 0; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.hero-dot.active {
  background: var(--gold);
  width: 30px; border-radius: 3px;
  box-shadow: 0 0 10px rgba(212,175,55,0.55);
}
.hero-dot:hover:not(.active) { background: rgba(255,255,255,0.52); }

/* ── Slide location caption pill ── */
.hero-caption-bar {
  position: absolute;
  bottom: 82px; right: 36px;
  z-index: 6;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 30px;
  padding: 6px 16px 6px 10px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.hero-caption-bar i { color: var(--gold); font-size: 0.68rem; }
.hero-caption-text {
  font-size: 0.68rem; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(255,255,255,0.68);
  font-weight: 500; white-space: nowrap;
}
@media (max-width: 576px) { .hero-caption-bar { display: none; } }

/* ══ 3D STORY SECTION ══════════════════════════════════════════ */
.story-section {
  padding: 100px 0 80px;
  background: var(--primary-deep);
  position: relative; overflow: hidden;
}
.story-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(27,67,50,0.30) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 85% 100%, rgba(212,175,55,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.story-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden; height: 460px;
  will-change: transform, opacity;
  cursor: pointer;
  transition: box-shadow 0.4s ease;
}
.story-card:hover {
  box-shadow: 0 48px 120px rgba(0,0,0,0.55), 0 0 50px rgba(212,175,55,0.10);
}
.story-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.70) saturate(1.25);
}
.story-card:hover .story-card-bg { transform: scale(1.07); }
.story-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,10,6,0.95) 0%, rgba(4,10,6,0.50) 42%, rgba(4,10,6,0.08) 100%);
}
.story-card-num {
  position: absolute; top: 20px; right: 20px;
  font-size: 4rem; font-weight: 900;
  color: rgba(212,175,55,0.12); line-height: 1;
  font-family: var(--font-display); pointer-events: none;
  user-select: none;
}
.story-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px 24px;
}
.story-card-era {
  font-size: 0.68rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.story-card-era::before {
  content: ''; width: 22px; height: 2px;
  background: var(--gold); display: block; flex-shrink: 0;
}
.story-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700; color: #fff;
  margin-bottom: 10px; line-height: 1.2;
}
.story-card-desc {
  font-size: 0.80rem; color: rgba(255,255,255,0.56);
  line-height: 1.6; margin: 0;
}
.story-card-border {
  position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.16);
  pointer-events: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.story-card:hover .story-card-border {
  border-color: rgba(212,175,55,0.40);
  box-shadow: inset 0 0 30px rgba(212,175,55,0.05);
}
/* ── Ambient Orbs ── */
#hero-orbs {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  opacity: 0.55;
}
.hero-orb-1 {
  width: 480px; height: 480px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(212,175,55,0.28) 0%, rgba(212,175,55,0) 70%);
}
.hero-orb-2 {
  width: 620px; height: 620px;
  bottom: -120px; right: -80px;
  background: radial-gradient(circle, rgba(27,67,50,0.50) 0%, rgba(27,67,50,0) 70%);
  opacity: 0.6;
}
.hero-orb-3 {
  width: 340px; height: 340px;
  top: 40%; left: 38%;
  background: radial-gradient(circle, rgba(184,134,11,0.22) 0%, rgba(212,175,55,0) 70%);
}

/* ── Cursor Glow ── */
#hero-cursor-glow {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, rgba(212,175,55,0) 65%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: left, top;
}

/* ── SVG Mountain Layers ── */
.hero-mountains {
  position: absolute; bottom: 0; left: -5%; right: -5%;
  z-index: 2; pointer-events: none;
}
.mtn-layer {
  position: absolute; bottom: 0; left: 0; right: 0;
  will-change: transform;
}
.mtn-layer svg { display: block; width: 110%; margin-left: -5%; }

/* ── Card Glare / Specular ── */
.hero-img-card {
  position: relative;
}
.hero-card-glare {
  position: absolute; inset: 0; z-index: 4;
  border-radius: inherit;
  background: radial-gradient(circle at var(--hl-x, 50%) var(--hl-y, 50%),
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0) 60%);
  pointer-events: none;
  transition: background 0.1s;
}

/* ── Card Corner Accents ── */
.hero-card-corner {
  position: absolute; width: 28px; height: 28px;
  border-color: rgba(212,175,55,0.7); border-style: solid;
  z-index: 5; pointer-events: none;
}
.hero-card-corner-tl {
  top: 12px; left: 12px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}
.hero-card-corner-br {
  bottom: 12px; right: 12px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

/* ── Scroll Hint — animated mouse ── */
.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 4; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(212,175,55,0.55);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.hero-scroll-dot {
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1;   transform: translateY(0); }
  80%  { opacity: 0;   transform: translateY(14px); }
  100% { opacity: 0;   transform: translateY(14px); }
}
.hero-scroll-hint span {
  font-size: 0.68rem; color: rgba(255,255,255,0.4);
  letter-spacing: 2.5px; text-transform: uppercase;
}

/* ── Magnetic button base ── */
.btn-magnetic { display: inline-flex; will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0;
  /*
   * Cinematic tri-layer overlay (UI/UX Pro Max — Premium Hero Pattern):
   *   Layer 1 (left→right): Dark on left for text legibility, fade to reveal building on right
   *   Layer 2 (bottom vignette): Heavy dark at base for mountain SVG silhouettes
   *   Layer 3 (top fade): Subtle top dark so nav bar reads cleanly
   */
  background:
    linear-gradient(105deg,
      rgba(4,10,6,0.93) 0%,
      rgba(4,10,6,0.72) 36%,
      rgba(4,10,6,0.28) 62%,
      rgba(4,10,6,0.08) 100%
    ),
    linear-gradient(0deg,
      rgba(4,10,6,0.97) 0%,
      rgba(4,10,6,0.55) 18%,
      transparent 44%
    ),
    linear-gradient(180deg,
      rgba(4,10,6,0.62) 0%,
      transparent 22%
    );
}
.hero-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(212,175,55,0.015) 2px,
    rgba(212,175,55,0.015) 4px
  );
}
#hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-badge i { font-size: 0.7rem; animation: rotateStar 3s linear infinite; }
@keyframes rotateStar { from{transform:rotate(0)} to{transform:rotate(360deg)} }
.hero-title {
  font-family: var(--font-en-head);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 12px;
}
.hero-title .gold-text {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
}
.hero-slogan {
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 36px;
  font-family: var(--font-en-head);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: var(--primary-dark) !important;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 6px 25px rgba(212,175,55,0.4);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.3px;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212,175,55,0.55);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold) !important;
  border: 2px solid rgba(212,175,55,0.6);
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
}
.btn-outline-gold:hover {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.hero-stats-row {
  display: flex; gap: 28px;
  margin-top: 48px; flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  padding: 16px 20px;
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  min-width: 110px;
}
.hero-stat-num {
  font-family: var(--font-en-head);
  font-size: 1.8rem; font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem; color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 4px;
}
.hero-img-card {
  position: relative; z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.60),
    0 0 0 1px rgba(212,175,55,0.20),
    0 0 60px rgba(212,175,55,0.06) inset;
  border: 2px solid rgba(212,175,55,0.30);
  /* JS owns transform on desktop — CSS fallback for mobile */
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  will-change: transform;
  --hl-x: 50%; --hl-y: 50%;
}
@media (max-width: 992px) {
  .hero-img-card { transform: none; }
  .hero-img-card:hover { transform: scale(1.02); }
}
.hero-img-card img { width: 100%; height: 480px; object-fit: cover; }
.hero-float-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 20px;
  color: var(--white);
  z-index: 3;
}
.hero-float-badge strong { color: var(--gold); font-size: 1.4rem; display: block; line-height: 1; }
.hero-float-badge span { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; text-align: center;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(8px);} }
.hero-scroll-hint i { font-size: 1.4rem; color: rgba(212,175,55,0.6); }
.hero-scroll-hint span { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.4); letter-spacing: 2px; text-transform: uppercase; }

/* ---- Announcement Ticker ---- */
.ticker-wrap {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  padding: 10px 0; overflow: hidden;
}
.ticker-label {
  background: var(--primary-dark);
  color: var(--gold);
  padding: 4px 18px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  margin-right: 20px;
  flex-shrink: 0;
}
.ticker-track {
  display: flex; align-items: center;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item {
  color: var(--primary-dark);
  font-size: 0.82rem; font-weight: 600;
  padding: 0 28px;
  display: flex; align-items: center; gap: 8px;
}
.ticker-item i { font-size: 0.75rem; }
.ticker-item::after { content: '◆'; margin-left: 28px; opacity: 0.5; }

/* ---- Section Headers ---- */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px;
  margin-bottom: 12px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  min-width: 30px;
}
.section-title-main {
  font-family: var(--font-en-head);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title-main .accent { color: var(--primary); }
.section-title-white { color: var(--white) !important; }
.section-lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 600px; line-height: 1.8;
}
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 3px;
  margin: 16px 0 24px;
}
.gold-divider.center { margin: 16px auto 24px; }

/* ---- Services Section ---- */
.services-section { padding: 100px 0; background: var(--off-white); }
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(27,67,50,0.1);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  border-color: rgba(212,175,55,0.3);
  box-shadow: 0 30px 70px rgba(13,40,24,0.15), var(--shadow-gold);
}
.service-icon-wrap {
  width: 68px; height: 68px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(27,67,50,0.3);
}
.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--shadow-gold);
}
.service-icon-wrap i { font-size: 1.6rem; color: var(--white); }
.service-card:hover .service-icon-wrap i { color: var(--primary-dark); }
.service-title {
  font-family: var(--font-en-head);
  font-size: 1.15rem; font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 20px;
}
.service-links { display: flex; flex-direction: column; gap: 6px; }
.service-link {
  font-size: 0.8rem; color: var(--text-mid);
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
  padding: 4px 0;
}
.service-link i { font-size: 0.65rem; color: var(--gold); }
.service-link:hover { color: var(--primary); transform: translateX(4px); }
.service-card-footer {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid rgba(27,67,50,0.08);
  display: flex; align-items: center; justify-content: space-between;
}
.service-cta {
  font-size: 0.8rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.service-card:hover .service-cta { color: var(--gold-dark); gap: 10px; }

/* ---- Quick Access ---- */
.quick-access-section {
  background: var(--primary-dark);
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.qa-title {
  font-size: 0.75rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 2.5px; white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.7;
}
.qa-cards-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.qa-card {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(212,175,55,0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 16px;
  min-width: 110px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  gap: 10px;
}
.qa-card:hover {
  background: rgba(212,175,55,0.12);
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}
.qa-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qa-card:hover .qa-icon { transform: scale(1.15) rotate(-8deg); }
.qa-icon i { font-size: 1.1rem; color: var(--primary-dark); }
.qa-label {
  font-size: 0.75rem; color: rgba(255,255,255,0.75);
  font-weight: 500; line-height: 1.3;
}

/* ---- Mayor Section ---- */
.mayor-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  position: relative; overflow: hidden;
}
.mayor-section::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.mayor-photo-wrap {
  position: relative; display: inline-block;
}
.mayor-photo-frame {
  width: 320px; height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(212,175,55,0.3);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 60px rgba(212,175,55,0.1);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.mayor-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.mayor-badge-wrap {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius);
  padding: 16px 20px; text-align: center;
  box-shadow: var(--shadow-gold);
}
.mayor-badge-wrap strong { display: block; color: var(--primary-dark); font-size: 1.3rem; font-weight: 900; }
.mayor-badge-wrap span { font-size: 0.68rem; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.mayor-eyebrow { color: var(--gold); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.mayor-name {
  font-family: var(--font-en-head);
  font-size: 2.6rem; font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}
.mayor-title-role { color: var(--gold); font-size: 0.95rem; font-weight: 500; margin-bottom: 28px; }
.mayor-quote {
  position: relative;
  padding: 24px 28px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.mayor-quote::before {
  content: '\201C';
  position: absolute; top: -16px; left: 20px;
  font-size: 5rem; color: var(--gold); line-height: 1;
  font-family: Georgia, serif; opacity: 0.4;
}
.mayor-quote p { font-size: 0.95rem; color: rgba(255,255,255,0.82); line-height: 1.9; font-style: italic; }
.mayor-signature {
  font-family: var(--font-en-head);
  font-size: 1.6rem; font-style: italic;
  color: var(--gold); opacity: 0.8;
}

/* ---- Stats Section ---- */
.stats-section {
  background: var(--primary-deep);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.stat-item { text-align: center; padding: 24px; }
.stat-number {
  font-family: var(--font-en-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500;
}
.stat-sublabel { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 4px; }
.stat-divider { width: 1px; background: var(--border-color); margin: 0 auto; }

/* ---- News Section ---- */
.news-section { padding: 100px 0; background: var(--light-bg); }
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(27,67,50,0.08);
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(13,40,24,0.14);
  border-color: rgba(212,175,55,0.2);
}
.news-img-wrap { position: relative; overflow: hidden; height: 220px; }
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.news-card:hover .news-img-wrap img { transform: scale(1.08); }
.news-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.badge-alert { background: #C0392B; color: var(--white); }
.badge-event { background: var(--primary); color: var(--white); }
.badge-news  { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--primary-dark); }
.badge-announcement { background: var(--primary-light); color: var(--white); }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  font-size: 0.75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.news-date i { color: var(--gold); font-size: 0.7rem; }
.news-title {
  font-family: var(--font-en-head);
  font-size: 1.15rem; font-weight: 700;
  color: var(--primary-dark); line-height: 1.4;
  margin-bottom: 10px;
  transition: var(--transition);
}
.news-card:hover .news-title { color: var(--primary); }
.news-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.news-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(27,67,50,0.07);
  display: flex; align-items: center; justify-content: space-between;
}
.news-read-more {
  font-size: 0.82rem; font-weight: 600;
  color: var(--primary);
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.news-read-more:hover { color: var(--gold-dark); gap: 10px; }

/* ---- Tourism Section ---- */
.tourism-section { padding: 100px 0; background: var(--off-white); }
.tourism-hero-card {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; min-height: 520px;
  display: flex; align-items: flex-end;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(212,175,55,0.15);
}
.tourism-hero-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition-slow);
}
.tourism-hero-card:hover img { transform: scale(1.06); }
.tourism-hero-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,26,16,0.9) 0%, rgba(7,26,16,0.2) 60%, transparent 100%);
}
.tourism-card-body {
  position: relative; z-index: 2;
  padding: 36px;
}
.tourism-card-body .badge-category {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--primary-dark);
  padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  display: inline-block; margin-bottom: 12px;
}
.tourism-card-body h3 {
  font-family: var(--font-en-head);
  font-size: 1.8rem; font-weight: 800;
  color: var(--white); margin-bottom: 10px;
}
.tourism-card-body p { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.7; }
.tourism-small-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,67,50,0.1);
  transition: var(--transition);
}
.tourism-small-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(13,40,24,0.2); }
.tourism-small-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition-slow);
}
.tourism-small-card:hover img { transform: scale(1.08); }
.tourism-small-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,26,16,0.85) 0%, transparent 60%);
}
.tourism-small-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 20px;
}
.tourism-small-body h5 {
  font-family: var(--font-en-head);
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
}
.tourism-small-body span { font-size: 0.72rem; color: var(--gold); }

/* ---- Documents Section ---- */
.docs-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
}
.doc-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: rgba(212,175,55,0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 10px;
  text-decoration: none;
}
.doc-item:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.4);
  transform: translateX(6px);
  box-shadow: var(--shadow-gold);
}
.doc-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.doc-icon i { color: var(--gold); font-size: 1.1rem; }
.doc-name { font-size: 0.88rem; color: rgba(255,255,255,0.85); flex: 1; line-height: 1.4; }
.doc-dl { color: var(--gold); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.doc-dl i { margin-right: 5px; }

/* ---- Video Section (legacy wrap, kept for services page) ---- */
.video-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(27,67,50,0.12);
  position: relative;
  aspect-ratio: 16/9;
}
.video-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---- Heritage / History of Bickfaya ---- */
.heritage-section {
  padding: 110px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.08), transparent 55%),
    linear-gradient(180deg, #0D2818 0%, #102e1c 100%);
  position: relative;
  overflow: hidden;
}
.heritage-timeline {
  --hl: 0;                 /* line-grow progress, driven by GSAP scrub */
  position: relative;
  max-width: 940px;
  margin: 60px auto 0;
}
/* Central gold spine — always visible base line */
.heritage-timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent,
    rgba(212,175,55,0.35) 12%,
    rgba(212,175,55,0.35) 88%,
    transparent);
}
/* Bright gold fill that "draws" down as the user scrolls (GSAP animates --hl) */
.heritage-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  height: calc(var(--hl, 0) * 100%);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.6);
  z-index: 1;
}
.heritage-item {
  position: relative;
  width: 50%;
  padding: 14px 46px;
  box-sizing: border-box;
}
.heritage-item:nth-child(odd)  { left: 0;   text-align: right; }
.heritage-item:nth-child(even) { left: 50%; text-align: left;  }
/* Node on the spine */
.heritage-item::after {
  content: "";
  position: absolute;
  top: 30px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--primary-deep);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.18);
  z-index: 2;
  transition: transform .35s ease, box-shadow .35s ease;
}
.heritage-item:nth-child(odd)::after  { right: -8px; }
.heritage-item:nth-child(even)::after { left: -8px;  }
.heritage-item:hover::after {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(212,175,55,0.28), 0 0 18px rgba(212,175,55,0.6);
}
.heritage-card {
  position: relative;
  display: inline-block;
  text-align: left;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: rgba(212,175,55,0.04);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.heritage-card:hover {
  background: rgba(212,175,55,0.09);
  border-color: rgba(212,175,55,0.32);
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(6,13,8,0.45);
}
.heritage-year {
  display: inline-block;
  font-family: var(--font-en-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
}
.heritage-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.heritage-card-title i { color: var(--gold); margin-inline-end: 8px; font-size: .95rem; }
.heritage-card-desc {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 767px) {
  .heritage-timeline::before,
  .heritage-timeline::after { left: 18px; transform: none; }
  .heritage-item,
  .heritage-item:nth-child(odd),
  .heritage-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 12px 0 12px 48px;
  }
  .heritage-item:nth-child(odd)::after,
  .heritage-item:nth-child(even)::after { left: 10px; right: auto; }
  .heritage-card { display: block; }
}

/* ---- AI Chatbot ---- */
.chatbot-bubble {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 5000;
}
.chatbot-toggle {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(212,175,55,0.45);
  transition: var(--transition);
  font-size: 1.4rem; color: var(--primary-dark);
}
.chatbot-toggle:hover { transform: scale(1.1) rotate(-5deg); }
.chatbot-toggle.active { background: linear-gradient(135deg, #C0392B, #E74C3C); }
.chatbot-notification {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: #E74C3C; border-radius: 50%;
  border: 2px solid var(--primary-dark);
  font-size: 0.6rem; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{box-shadow:0 0 0 0 rgba(231,76,60,0.6);}
  50%{box-shadow:0 0 0 8px rgba(231,76,60,0);}
}
.chatbot-window {
  position: absolute; bottom: 72px; right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  border: 1px solid rgba(27,67,50,0.15);
  overflow: hidden;
  transform: scale(0) translateY(20px);
  transform-origin: bottom right;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}
.chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: all;
}
.chatbot-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chatbot-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(212,175,55,0.15);
  border: 2px solid rgba(212,175,55,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.chatbot-header-info h5 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin: 0; }
.chatbot-header-info span { font-size: 0.72rem; color: var(--gold); display: flex; align-items: center; gap: 4px; }
.chatbot-online { width: 6px; height: 6px; border-radius: 50%; background: #2ECC71; display: inline-block; }
.chatbot-messages {
  height: 300px; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(27,67,50,0.2); border-radius: 4px; }
.chat-msg { display: flex; gap: 8px; max-width: 90%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--gold); margin-top: auto;
}
.chat-msg-bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: 0.83rem; line-height: 1.5;
}
.chat-msg.bot .chat-msg-bubble {
  background: var(--light-bg); color: var(--text-dark);
  border-radius: 4px 14px 14px 14px;
}
.chat-msg.user .chat-msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 14px 4px 14px 14px;
}
.chat-suggestions {
  padding: 10px 16px; display: flex; flex-direction: column; gap: 6px;
}
.chat-suggestion {
  background: var(--off-white); border: 1px solid rgba(27,67,50,0.12);
  border-radius: var(--radius-pill); padding: 8px 14px;
  font-size: 0.78rem; color: var(--primary);
  cursor: pointer; transition: var(--transition);
  text-align: left;
}
.chat-suggestion:hover { background: rgba(27,67,50,0.08); border-color: var(--primary); }
.chatbot-input-area {
  padding: 12px 16px;
  border-top: 1px solid rgba(27,67,50,0.1);
  display: flex; gap: 8px; align-items: center;
}
.chatbot-input {
  flex: 1; border: 1px solid rgba(27,67,50,0.18);
  border-radius: var(--radius-pill); padding: 9px 16px;
  font-size: 0.83rem; outline: none; font-family: inherit;
  transition: var(--transition);
}
.chatbot-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,67,50,0.1); }
.chatbot-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none; color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: var(--transition);
}
.chatbot-send:hover { transform: scale(1.1); background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--primary-dark); }

/* ---- Footer ---- */
.main-footer {
  background: var(--primary-deep);
  border-top: 1px solid var(--border-color);
  padding: 72px 0 0;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(212,175,55,0.3); }
.footer-logo-name { font-family: var(--font-en-head); font-size: 1.05rem; font-weight: 700; color: var(--white); }
.footer-logo-sub { font-size: 0.65rem; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }
.footer-about { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.8; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--gold); color: var(--primary-dark); border-color: var(--gold); transform: translateY(-3px); }
.footer-heading {
  font-size: 0.8rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.footer-heading::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.footer-links { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '›'; color: var(--gold); font-size: 1rem; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.footer-contact-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--glass-light); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 0.8rem; flex-shrink: 0; }
.footer-contact-text { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.footer-bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom-text { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-bottom-badges { display: flex; gap: 8px; }
.footer-badge { font-size: 0.7rem; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-color); color: rgba(255,255,255,0.45); }

/* ============================================================
   PWA INSTALL BANNER
   ============================================================ */
#pwa-install-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #0d2818 0%, #1b4332 60%, #1a3a28 100%);
  border-top: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.55);
  padding: 16px 20px 20px;
  display: none;
  align-items: center;
  gap: 14px;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#pwa-install-banner.pwa-visible {
  transform: translateY(0);
}
.pwa-banner-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(212,175,55,0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.pwa-banner-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pwa-banner-text {
  flex: 1;
  min-width: 0;
}
.pwa-banner-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0d060;
  font-family: 'Playfair Display', serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pwa-banner-text span {
  display: block;
  font-size: 0.75rem;
  color: rgba(232,240,235,0.6);
  margin-top: 2px;
  line-height: 1.4;
}
#pwa-install-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #d4af37, #f0d060);
  color: #0d2818;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(212,175,55,0.4);
}
#pwa-install-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(212,175,55,0.55);
}
.pwa-banner-dismiss {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.pwa-banner-dismiss:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* iOS tip bar */
#pwa-ios-tip {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #0d2818 0%, #1b4332 100%);
  border-top: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.55);
  padding: 18px 20px 24px;
  text-align: center;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#pwa-ios-tip.pwa-visible {
  transform: translateY(0);
}
#pwa-ios-tip p {
  color: rgba(232,240,235,0.85);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 14px;
}
#pwa-ios-tip .ios-icon {
  display: inline-block;
  width: 22px; height: 22px;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 22px;
  vertical-align: middle;
  margin: 0 3px;
}
#pwa-ios-dismiss {
  background: none;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.8rem;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
#pwa-ios-dismiss:hover {
  background: rgba(212,175,55,0.1);
}

@media (max-width: 480px) {
  #pwa-install-banner { padding: 14px 16px 18px; gap: 10px; }
  .pwa-banner-icon { width: 44px; height: 44px; border-radius: 12px; }
  .pwa-banner-text strong { font-size: 0.88rem; }
  #pwa-install-btn { padding: 9px 16px; font-size: 0.8rem; }
}


/* ================================================================
   IMPECCABLE POLISH — Site-wide refinements
   ================================================================ */

/* ── Nav: transparent-to-dark transition is not instant ── */
.main-nav {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ── Better body text contrast ── */
body {
  color: #1a2e22;  /* was too light in some sections */
}

/* ── Attraction cards: remove CDN dependency, show gradient placeholder ── */
.attraction-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4/3;
  background: var(--primary-dark);
}
.attraction-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.attraction-card:hover img { transform: scale(1.06); }
.attraction-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,13,8,.88) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  color: #f4efe0;
}
.attraction-card-overlay h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #f4efe0;
}
.attraction-card-overlay span {
  font-size: 0.78rem;
  color: rgba(212,175,55,.85);
}

/* ── Restaurant cards ── */
.restaurant-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(6,13,8,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.restaurant-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(6,13,8,.14); }
.restaurant-card img { width:100%; height:200px; object-fit:cover; display:block; }
.restaurant-card-body { padding: 20px; }
.restaurant-card-body h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px;
}
.restaurant-card-body p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 14px; }
.restaurant-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--primary); background: rgba(27,67,50,.08);
  border: 1px solid rgba(27,67,50,.15);
  border-radius: 999px; padding: 3px 10px;
}

/* ── Trail cards ── */
.trail-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  box-shadow: 0 2px 16px rgba(6,13,8,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.trail-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(6,13,8,.12); }
.difficulty-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: .5px;
  border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
  text-transform: uppercase;
}
.difficulty-easy { background: rgba(39,174,96,.12); color: #1a7a42; }
.difficulty-moderate { background: rgba(230,126,34,.12); color: #b05a10; }
.difficulty-hard { background: rgba(192,57,43,.12); color: #a0251a; }

/* ── Feature cards ── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(6,13,8,.05);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(6,13,8,.1); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--gold);
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(27,67,50,.25);
}
.feature-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px;
}
.feature-card p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; margin: 0; }

/* ── Section headings: tighter letter-spacing, text-wrap balance ── */
.section-title-main, h1, h2 {
  text-wrap: balance;
  letter-spacing: -0.025em;
}
.section-lead { text-wrap: pretty; }

/* ── Gold divider ── */
.gold-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  margin: 14px 0 28px;
}
.gold-divider.center { margin: 14px auto 28px; }

/* ── Scroll-reveal: AOS library handles its own init ── */

/* ── Reduced motion overrides ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   LANGUAGE TOGGLE — English default, Arabic on body.lang-ar
   ================================================================ */

/* Default: Arabic hidden */
.display-ar { display: none; }

/* Arabic mode: Arabic visible, English hidden */
body.lang-ar .display-ar { display: revert; }
body.lang-ar .display-en { display: none; }

/* Breathing pulse for the Story heading (English + Arabic) */
@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1;    }
}
/* Warm gold glow breathing for accent words */
@keyframes breathe-glow {
  0%, 100% { transform: scale(1);    text-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50%      { transform: scale(1.04); text-shadow: 0 0 24px rgba(212, 175, 55, 0.55); }
}
.breathe {
  display: inline-block;
  animation: breathe 3.4s ease-in-out infinite;
  transform-origin: center;
}
.accent.breathe,
.section-eyebrow .breathe {
  animation: breathe-glow 3.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .breathe { animation: none; }
}

/* RTL typographic adjustments */
body.lang-ar { font-family: 'Cairo', 'Segoe UI', sans-serif; }
body.lang-ar .nav-logo-name,
body.lang-ar .nav-logo-sub { font-family: 'Cairo', sans-serif; }
body.lang-ar .section-title-main,
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3 {
  font-family: 'Cairo', sans-serif;
}


/* ================================================================
   UI/UX PRO MAX POLISH — Accessibility, Touch, Motion, Focus
   Applied: 2026-06 per ui-ux-pro-max skill guidelines
   ================================================================ */

/* --- Skip to main content link (Accessibility Priority 1) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: .875rem;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 10001;
  transition: top .2s ease;
  text-decoration: none;
}
.skip-link:focus { top: 0; outline: 3px solid var(--primary-dark); }

/* --- Global focus ring (Accessibility Priority 1) --- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Remove default outline only when :focus-visible is supported */
:focus:not(:focus-visible) { outline: none; }

/* --- Touch targets (Touch Priority 2) --- */
button, [role="button"], .btn-gold, .btn-outline,
.nav-link, .chatbot-toggle, .filter-btn, .pgal-filter-btn,
.back-to-top, .lang-toggle-btn, #lang-toggle, #lang-toggle-mob,
.xplore-topic, .event-item {
  touch-action: manipulation;
}
/* Ensure interactive items hit 44×44px minimum */
.nav-link { min-height: 44px; display: inline-flex; align-items: center; }
#chatbot-toggle { width: 56px; height: 56px; }

/* ---- Back to Top (floating, gold) ---- */
#back-to-top {
  position: fixed;
  right: 28px;
  bottom: 100px;            /* stacked above the chatbot bubble */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--primary-dark);
  font-size: 1rem;
  cursor: pointer;
  z-index: 4900;            /* just under the chatbot (5000) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.9);
  box-shadow: 0 8px 24px rgba(6, 13, 8, 0.35);
  transition: opacity .35s ease,
              transform .35s cubic-bezier(.22, 1, .36, 1),
              box-shadow .35s ease,
              background .3s ease;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
#back-to-top:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.45);
}
#back-to-top:active { transform: translateY(0) scale(0.96); }
#back-to-top i { transition: transform .3s ease; }
#back-to-top:hover i { transform: translateY(-3px); }
@media (max-width: 575px) {
  #back-to-top { right: 18px; bottom: 90px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #back-to-top { transition: opacity .2s ease; transform: none; }
  #back-to-top.visible { transform: none; }
}

/* --- Improved button interaction states --- */
.btn-gold {
  transition: background .22s ease, transform .15s ease, box-shadow .22s ease;
}
.btn-gold:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,175,55,.40); }
.btn-gold:active { transform: translateY(0) scale(.97); }

.btn-outline {
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .15s ease;
}
.btn-outline:hover  { transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0) scale(.97); }

/* Scale feedback on tappable cards (ui-ux guideline: scale-feedback) */
.service-card, .feature-card, .stat-card, .news-card {
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
  will-change: transform;
}
.service-card:hover  { transform: translateY(-6px); }
.feature-card:hover  { transform: translateY(-5px); }
.news-card:hover     { transform: translateY(-4px); }

/* --- Cursor pointer on all interactive non-button elements --- */
[role="button"], .event-item, .doc-item, .qa-item,
.news-card, .xplore-topic, .pgal-item { cursor: pointer; }

/* --- Section spacing rhythm (8pt grid, visual hierarchy) --- */
section { scroll-margin-top: 80px; }

/* --- Improved card elevation scale (consistent shadow) --- */
.service-card, .feature-card, .stat-card {
  box-shadow: 0 2px 12px rgba(6,13,8,.06), 0 1px 3px rgba(6,13,8,.04);
}
.service-card:hover, .feature-card:hover {
  box-shadow: 0 16px 48px rgba(6,13,8,.14), 0 4px 12px rgba(6,13,8,.08);
}

/* --- Improved nav link underline indicator --- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: left .25s ease, right .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { left: 8px; right: 8px; }

/* --- Section dividers — subtle visual breathing room --- */
.services-section,
.stats-section,
.news-section,
.cta-section {
  position: relative;
}

/* --- Typography refinements --- */
h1, h2, h3 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* Improve eyebrow label legibility */
.section-eyebrow {
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
}

/* --- Improved scrollbar (desktop) --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-deep); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* --- Image aspect-ratio stability (prevent CLS) --- */
.hero-slide img, .story-img img, .news-card img, .xplore-panel img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

/* --- Chatbot window polish --- */
#chatbot-window {
  border: 1px solid rgba(212,175,55,.15);
  box-shadow: 0 24px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(212,175,55,.08);
}
.chat-msg-bubble {
  line-height: 1.6;
  font-size: .875rem;
}

/* --- Gold accent gradient text helper --- */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Smooth image loading fade-in --- */
img { transition: opacity .4s ease; }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded { opacity: 1; }

/* ================================================================
   PREFERS-REDUCED-MOTION — Respect OS accessibility setting
   (ui-ux-pro-max Priority 7 / Priority 1: reduced-motion rule)
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slide { animation: none !important; }
  .loader-logo { animation: none !important; }
  .loader-bar-fill { animation: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ================================================================
   PRINT STYLES — for document printing
   ================================================================ */
@media print {
  #loader, .main-nav, #chatbot-toggle, #chatbot-window,
  #back-to-top, #pwa-install-banner, .hero-particles { display: none !important; }
  body { background: white; color: black; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}
