/* =====================================================
   ASHBILIYA — أشبيلية للملبوسات الخليجية
   Stylesheet — RTL Arabic, Mobile-First, Dark/Gold
   ===================================================== */

/* Fonts loaded via <link> in HTML head — no @import needed (was render-blocking dup) */

@property --line-w {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}

/* ===== CSS VARIABLES ===== */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dim:    #8B6914;
  --dark:        #080808;
  --dark-mid:    #111111;
  --dark-card:   #161616;
  --surface:     #1C1A17;
  --cream:       #F5F0E8;
  --cream-mid:   #E8E0CC;
  --text-dark:   #1A1208;
  --text-light:  #F0EBE0;
  --text-muted:  #7A7060;
  --border-gold: rgba(201,168,76,0.2);
  --gold-accessible: #D4A843;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--dark);
  color: var(--text-light);
  overflow-x: hidden;
  direction: rtl;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===== GRAIN OVERLAY ===== */
#grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
}
#grain-overlay rect { opacity: 0.038; }
/* Disable grain on phones — saves continuous GPU cost on lower-end devices. */
@media (max-width: 767px) {
  #grain-overlay { display: none; }
}

/* ===== STICKY NAV ===== */
#sticky-nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 900;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  pointer-events: none;
}
#sticky-nav.visible { transform: translateY(0); pointer-events: auto; }
.sticky-nav-brand { font-family: 'Amiri', serif; font-size: 1rem; color: var(--gold); white-space: nowrap; }
.sticky-nav-links { display: flex; gap: 20px; align-items: center; }
.sticky-nav-link {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sticky-nav-link:hover { color: var(--gold); }
#reading-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transition: width 0.1s linear;
}

/* ===== WHATSAPP FAB ===== */
#whatsapp-fab {
  position: fixed;
  bottom: 80px; left: 20px;
  z-index: 890;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
  text-decoration: none;
  color: #fff;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  animation: fabBounceIn 0.5s 1.5s ease forwards;
}
#whatsapp-fab:hover, #whatsapp-fab:active {
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transform: scale(1.08);
}
#whatsapp-fab svg { width: 28px; height: 28px; }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 20px; left: 20px;
  z-index: 889;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover, #back-to-top:active { background: rgba(201,168,76,0.15); }
#back-to-top svg { width: 20px; height: 20px; color: var(--gold); }

/* ===== EXIT INTENT OVERLAY ===== */
#exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#exit-overlay.visible { opacity: 1; }
#exit-overlay-inner {
  background: rgba(8,8,8,0.9);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 32px 40px;
  text-align: center;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}
#exit-overlay.visible #exit-overlay-inner { transform: translateY(0); }
#exit-overlay-brand {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
#exit-overlay-sub {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== FOOTER RIBBON ===== */
#footer-ribbon {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 870;
  height: 48px;
  background: linear-gradient(to right,
    rgba(201,168,76,0.10) 0%,
    rgba(201,168,76,0.07) 50%,
    rgba(201,168,76,0.10) 100%);
  border-top: 1px solid rgba(201,168,76,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#footer-ribbon.ribbon-visible { transform: translateY(0); pointer-events: auto; }
#footer-ribbon svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.footer-ribbon-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
#footer-ribbon:hover .footer-ribbon-text { color: var(--gold-light); }
#footer-ribbon:hover svg { color: var(--gold-light); }

/* ===== TOUCH FEEDBACK ===== */
.branch-card-mobile:active, .collection-card:active { transform: scale(0.97); }
.hero-cta:active { transform: scale(0.97); opacity: 0.85; }
.card-directions:active { opacity: 0.7; }
.footer-social-link:active { transform: scale(0.9); }

/* ===== RIPPLE ===== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(201,168,76,0.18);
  transform: scale(0);
  animation: rippleAnim 0.6s linear forwards;
  pointer-events: none;
  z-index: 10;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  background: #fff;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  overflow: hidden;
}
.hero-video-block { position: absolute; inset: 0; width: 100%; height: 100%; background: #fff; z-index: 0; }
.hero-video-block video { width: 100%; height: 100%; object-fit: cover; display: block; }
#hero-skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245,240,232,0) 0%, rgba(245,240,232,0.4) 40%, rgba(245,240,232,0) 80%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.4s ease;
}
#hero-skeleton.hidden { opacity: 0; pointer-events: none; }
.hero-text-block {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(245,240,232,0.82) 52%, rgba(245,240,232,0.97) 78%, #F5F0E8 100%);
  padding: 22px 24px 28px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 14px;
  z-index: 2;
}
.hero-label {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  color: #000;
  letter-spacing: 0.08em;
  opacity: 0; transform: translateY(-20px);
}
.hero-label::before, .hero-label::after {
  content: ''; display: block;
  width: 28px; height: 1px;
  background: #000;
}
.hero-h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(1.75rem, 5vw, 3.2rem);
  color: #000;
  line-height: 1.4;
  opacity: 0; transform: translateY(-20px);
}
.hero-h1-shimmer {
  /* gradient/shimmer removed for visibility — solid black */
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: #000;
  color: #000;
  animation: none;
}
.hero-tagline {
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem; font-weight: 300;
  color: #000;
  opacity: 0; transform: translateY(-20px);
}
.hero-cta {
  position: relative;
  width: 100%; height: 52px;
  border: 1.5px solid #000;
  background: transparent;
  color: #000;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem; font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s;
  opacity: 0; transform: translateY(-20px);
  overflow: hidden;
}
.hero-cta:hover, .hero-cta:active { background: #000; color: #fff; }
.hero-cta::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 6px;
  border: 1.5px solid #000;
  opacity: 0;
  animation: ctaPulseRing 0.7s ease 1.8s 1 forwards;
  pointer-events: none;
}
.hero-scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0;
}
.hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLineGrow 1.4s ease-in-out 2s infinite;
}
.hero-scroll-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 2px;
  animation: scrollDotPulse 1.4s ease-in-out 2s infinite;
}
@media (min-width: 768px) {
  #hero { height: 100vh; min-height: 500px; }
  .hero-video-block { aspect-ratio: unset; }
  .hero-text-block {
    position: absolute;
    bottom: 15%; right: 10%;
    background: transparent;
    padding: 0;
    align-items: flex-end;
    text-align: right;
    gap: 20px;
    width: auto; max-width: 500px;
    left: auto;
  }
  .hero-label { font-size: 0.85rem; }
  .hero-label::before, .hero-label::after { width: 48px; }
  .hero-h1 { line-height: 1.3; }
  .hero-tagline { font-size: 1.2rem; }
  .hero-cta { width: auto; padding: 0 36px; }
}

/* ===== TRANSITION BAND ===== */
.transition-band {
  height: 140px;
  background: linear-gradient(to bottom, var(--cream), var(--dark));
  position: relative;
  overflow: visible;
}
.transition-ornament {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  opacity: 0.38;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ===== LETTER-SPACING ENTRANCE ===== */
.ls-animate {
  display: inline-block;
  letter-spacing: 0.35em;
  opacity: 0;
  transition:
    letter-spacing 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.8s ease;
}
.ls-animate.ls-in {
  letter-spacing: 0.03em;
  opacity: 1;
}
/* ===== STATS STRIP ===== */
#stats {
  background: var(--dark-mid);
  border-top: 1px solid var(--border-gold);
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 220px;
}
#stats::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 50%, rgba(139,105,20,0.04) 0%, transparent 55%);
  animation: meshDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.stats-eyebrow {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  width: 100%;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-item.stat-visible { opacity: 1; transform: scale(1); }
.stat-item::before {
  content: attr(data-watermark);
  position: absolute;
  font-family: 'Amiri', serif;
  font-size: 9rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  white-space: nowrap;
}
.stat-icon {
  width: 28px; height: 28px;
  color: var(--gold-dim);
  margin-bottom: 6px;
  opacity: 0.75;
}
.stat-number {
  font-family: 'Amiri', serif;
  font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700;
  color: var(--gold);
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
  position: relative;
}
.stat-number::before {
  content: '';
  position: absolute; inset: -12px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.stat-label {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}
@media (min-width: 768px) {
  .stats-inner { flex-direction: row; justify-content: center; gap: 0; flex-wrap: wrap; }
  .stats-eyebrow { flex: 0 0 100%; margin-bottom: 24px; }
  .stat-item { flex: 1; padding: 0 40px; }
  .stat-item:not(:last-child)::after {
    content: '';
    position: absolute; left: auto; right: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 60px;
    background: var(--border-gold);
  }
}

/* ===== BRANCHES SECTION ===== */
#branches {
  background: var(--dark);
  padding: 80px 0;
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}
.branches-title-block { text-align: center; padding: 0 24px 48px; }
.branches-title {
  font-family: 'Amiri', serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--gold);
  margin-bottom: 12px; line-height: 1.3;
}
.branches-subtitle {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem; color: var(--text-muted);
}

/* Mobile map filter */
#mobile-map-filter { padding: 0 20px 32px; }
.mobile-map-label { text-align: center; margin-bottom: 14px; }
.mobile-map-active-name {
  font-family: 'Amiri', serif;
  font-size: 1.15rem; color: var(--gold-light);
  display: inline-block; min-height: 1.6rem;
  transition: opacity 0.25s;
}
.mobile-map-hint {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem; color: var(--text-muted);
  display: block; margin-top: 4px;
}
#mobile-map-svg-wrap {
  width: 100%; max-width: 480px;
  margin: 0 auto; display: block; position: relative;
}
#mobile-map-svg-wrap svg {
  width: 100%; height: auto; display: block;
  background: rgba(12,10,8,0.7);
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  padding: 10px;
}
.mobile-map-reset {
  display: block; margin: 14px auto 0;
  height: 40px; padding: 0 24px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mobile-map-reset.active-reset {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold); color: var(--gold-light);
}

/* Discovery hint */
.map-discovery-hint {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 0 auto 10px;
  animation: hintArrowBounce 1s ease 0.5s 2 forwards;
  opacity: 0;
}
.map-discovery-hint svg { width: 18px; height: 18px; color: var(--gold); opacity: 0.7; }
.map-discovery-hint-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.72rem; color: var(--gold-dim);
}

/* Mobile branch cards */
.branch-cards-mobile { display: flex; flex-direction: column; gap: 16px; padding: 0 20px; }
.branch-card-mobile {
  background: rgba(22,22,22,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px; padding: 20px;
  border-right: 3px solid var(--gold);
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(30px);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  transition: clip-path 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease, transform 0.4s ease;
}
.branch-card-mobile.visible {
  opacity: 1; transform: translateY(0);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.branch-card-mobile.hidden { display: none; }
@keyframes cardActivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.35); }
  50%  { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
  100% { box-shadow: none; }
}
.branch-card-mobile.just-entered { animation: cardActivePulse 1.5s ease forwards; }

/* Card shared styles */
.card-watermark {
  position: absolute; top: -10px; left: 10px;
  font-family: 'Amiri', serif;
  font-size: 5rem; color: var(--gold);
  opacity: 0.08; pointer-events: none;
  line-height: 1; direction: ltr;
  unicode-bidi: isolate;
}
.card-top-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.card-emirate-badge {
  display: inline-block;
  padding: 3px 12px; border-radius: 12px;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border-gold);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.75rem; color: var(--gold-light);
}
.badge-abudhabi { background: rgba(180,150,60,0.18); border-color: rgba(180,150,60,0.4); color: #E8C060; }
.badge-dubai    { background: rgba(210,140,50,0.18); border-color: rgba(210,140,50,0.4); color: #F0A840; }
.badge-sharjah  { background: rgba(160,130,80,0.18); border-color: rgba(160,130,80,0.4); color: #C8A855; }
.badge-ajman    { background: rgba(140,120,90,0.18); border-color: rgba(140,120,90,0.4); color: #B89850; }
.badge-uaq      { background: rgba(130,110,85,0.18); border-color: rgba(130,110,85,0.4); color: #A88840; }
.badge-rak      { background: rgba(150,125,75,0.18); border-color: rgba(150,125,75,0.4); color: #C8A045; }
.badge-fujairah { background: rgba(120,100,70,0.18); border-color: rgba(120,100,70,0.4); color: #A8904A; }
.badge-alain    { background: rgba(160,140,90,0.18); border-color: rgba(160,140,90,0.4); color: #D0B060; }
.card-branch-name {
  font-family: 'Amiri', serif;
  font-size: 1.3rem; color: var(--text-light);
  margin-bottom: 8px; line-height: 1.4;
}
.card-divider {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 10px 0; margin-right: 0; margin-left: auto;
}
.card-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.card-hours {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.65;
}
.card-hours bdi { unicode-bidi: isolate; display: block; }
.card-hours svg {
  width: 14px; height: 14px; flex-shrink: 0;
  color: var(--gold-dim);
  margin-top: 4px; /* aligns icon with the first text line's cap height */
}
.card-phone-link {
  color: var(--gold-light);
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; margin-bottom: 14px;
  direction: ltr; min-height: 44px;
  unicode-bidi: isolate;
  transition: color 0.2s;
}
.card-phone-link bdi { unicode-bidi: isolate; }
.card-phone-link:hover, .card-phone-link:active { color: var(--gold); }
.card-phone-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-directions {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  color: var(--gold);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.card-directions:hover { color: var(--gold-light); }
.card-directions svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Tablet: 2-column grid */
.uae-silhouette-tablet { display: none; text-align: center; margin-bottom: 40px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .uae-silhouette-tablet { display: block; }
  .uae-silhouette-tablet svg { width: 200px; height: auto; opacity: 0.3; }
  .branch-cards-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 24px; }
}

/* Desktop: sticky scrollytelling */
.branches-desktop-wrapper { display: none; }
@media (min-width: 1024px) {
  .branches-title-block, #mobile-map-filter, .branch-cards-mobile, .uae-silhouette-tablet { display: none; }
  .branches-desktop-wrapper {
    display: flex; align-items: flex-start;
    min-height: 100vh;
    max-width: 1300px; margin: 0 auto; padding: 0 40px;
  }
  #branches { padding: 0; }
  #map-column {
    width: 52%; height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px 0 60px 40px;
    position: relative;
  }
  .map-section-title {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--gold);
    margin-bottom: 8px; line-height: 1.3;
  }
  .map-section-subtitle {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem; color: var(--text-muted);
    margin-bottom: 32px;
  }
  #uae-map-svg { width: 100%; max-width: 440px; height: auto; }
  #active-branch-label {
    font-family: 'Amiri', serif;
    font-size: 1.2rem; color: var(--gold-light);
    margin-top: 20px; min-height: 2rem;
    transition: opacity 0.3s ease;
  }
  .map-bg-pattern {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='1'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 30px 30px; opacity: 0.06;
    pointer-events: none; z-index: 0;
  }
  #map-column > * { position: relative; z-index: 1; }
  #cards-column { width: 48%; padding: 80px 40px 80px 0; }
  #cards-column {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
  }
  #cards-column::-webkit-scrollbar { width: 4px; }
  #cards-column::-webkit-scrollbar-track { background: transparent; }
  #cards-column::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 2px;
  }
  .branch-card-desktop {
    height: 85vh;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .branch-card-desktop.visible { opacity: 1; transform: translateY(0); }
  .branch-card-desktop-inner {
    background: rgba(22,22,22,0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 10px; padding: 36px 32px;
    border-right: 3px solid var(--gold);
    position: relative; overflow: hidden; width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  }
  .branch-card-desktop-inner:hover {
    transform: translateY(-4px);
    box-shadow:
      0 0 8px rgba(201,168,76,0.2),
      0 0 24px rgba(201,168,76,0.1),
      0 0 60px rgba(201,168,76,0.05),
      0 8px 32px rgba(0,0,0,0.4);
    border-color: var(--gold-light);
  }
  .branch-card-desktop-inner::before {
    content: '';
    position: absolute; top: 0; right: 0; left: 0;
    height: 2px;
    background: linear-gradient(to left, var(--gold) var(--line-w), transparent var(--line-w));
    transition: --line-w 0.45s ease;
    pointer-events: none;
  }
  .branch-card-desktop-inner:hover::before { --line-w: 100%; }
  .branch-card-desktop-inner .card-watermark { font-size: 8rem; top: -20px; left: 16px; }
  .branch-card-desktop-inner .card-branch-name { font-size: 1.6rem; }
  .branch-card-desktop-inner .card-phone-link { justify-content: flex-start; }
}

/* ===== UAE MAP SVG STYLES ===== */
.emirate-path {
  fill: #0D0B09; stroke: var(--gold); stroke-width: 0.8;
  transition: fill 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}
.emirate-path.active { fill: var(--gold-dim); filter: url(#glow); }
.mobile-emirate { transition: fill 0.3s ease, filter 0.3s ease, opacity 0.3s ease; }
.mobile-emirate.active { fill: var(--gold-dim) !important; filter: url(#glow-mobile); }
.mobile-emirate-disabled { opacity: 0.35; cursor: not-allowed; }
.mobile-emirate-disabled:hover { opacity: 0.5; }
.map-dot {
  fill: var(--gold); opacity: 0.85;
  animation: pulseDot 2.5s ease-in-out infinite;
  cursor: pointer;
}
.map-dot.active { animation: pulseDotActive 1.5s ease-in-out infinite; opacity: 1; }
.oman-path { fill: #0D0B09; stroke: #333; stroke-width: 0.6; opacity: 0.4; }
.neutral-path { fill: #0D0B09; stroke: #222; stroke-width: 0.5; opacity: 0.3; }

/* ===== MAP DRAW-IN ANIMATION ===== */
.emirate-path,
.mobile-emirate {
  stroke-dasharray: 8000;
  stroke-dashoffset: 8000;
  animation: drawMapPath 2s ease forwards;
  animation-play-state: paused;
}
@keyframes drawMapPath {
  to { stroke-dashoffset: 0; }
}
#branches.map-draw-started .emirate-path,
#branches.map-draw-started .mobile-emirate {
  animation-play-state: running;
}
/* ===== COLLECTION TEASER ===== */
#collection {
  background: var(--dark-mid);
  padding: 80px 0;
  position: relative; overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}
#collection::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(201,168,76,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(139,105,20,0.03) 0%, transparent 50%);
  animation: meshDrift 16s ease-in-out 2s infinite alternate;
  pointer-events: none;
}
.collection-title-block {
  text-align: center; padding: 0 24px 40px;
  position: relative; z-index: 1;
}
.collection-title {
  font-family: 'Amiri', serif;
  font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(201,168,76,0.3);
}
.collection-subtitle {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem; color: var(--text-muted);
}
.collection-carousel {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px; padding: 0 20px 20px;
  scrollbar-width: none; -ms-overflow-style: none;
  position: relative; z-index: 1;
}
.collection-carousel::-webkit-scrollbar { display: none; }
.collection-card {
  scroll-snap-align: start; flex-shrink: 0;
  width: 75vw; height: 200px;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  position: relative; overflow: hidden;
  cursor: pointer;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  opacity: 0;
  transition: clip-path 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease, transform 0.3s ease, border-color 0.3s ease;
}
.collection-card.card-revealed {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 1;
}
.collection-card:hover, .collection-card:active {
  transform: scale(1.02);
  border-color: var(--gold);
}
.collection-card:hover .collection-card-name { transform: translateY(-8px); }
.collection-card-bg {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='1'%3E%3Cpath d='M30 0L60 30L30 60L0 30z M30 10L50 30L30 50L10 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 50px 50px; opacity: 0.06;
  transition: filter 0.4s ease;
}
.collection-card-name {
  font-family: 'Amiri', serif;
  font-size: 1.4rem; color: var(--gold-light);
  z-index: 1; position: relative;
  transition: transform 0.3s ease;
  text-align: center; padding: 0 16px;
}
.collection-card-tagline {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem; color: var(--text-muted);
  z-index: 1; position: relative;
  text-align: center; padding: 0 16px;
  opacity: 1;
}
@media (min-width: 768px) {
  .collection-carousel {
    display: grid; grid-template-columns: repeat(3,1fr);
    overflow: visible; scroll-snap-type: none;
    padding: 0 40px; gap: 24px;
  }
  .collection-card { width: auto; height: 280px; flex-shrink: unset; scroll-snap-align: none; }
  .collection-card-tagline {
    position: absolute; bottom: 20px;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .collection-card:hover .collection-card-tagline { opacity: 1; transform: translateY(0); }
}
.carousel-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 20px; padding-bottom: 4px;
  position: relative; z-index: 1;
}
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-gold);
  border: 1px solid rgba(201,168,76,0.3);
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}
.carousel-dot.active { background: var(--gold); transform: scale(1.3); }
@media (min-width: 768px) { .carousel-dots { display: none; } }
.collection-view-all {
  display: flex; justify-content: center;
  padding: 24px 20px 0;
  position: relative; z-index: 1;
}
.collection-view-all-btn {
  width: 100%; max-width: 340px; height: 52px;
  border: 1.5px solid var(--border-gold);
  background: transparent; color: var(--gold-light);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem; font-weight: 500;
  border-radius: 4px; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  min-height: 52px;
}
.collection-view-all-btn:hover, .collection-view-all-btn:active {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold); color: var(--gold);
}
@media (min-width: 768px) {
  .collection-view-all { padding: 32px 40px 0; }
  .collection-view-all-btn { max-width: 280px; }
}

/* ===== FOOTER ===== */
#footer {
  background: #040404;
  padding: 60px 24px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}
#footer::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.footer-brand { font-family: 'Amiri', serif; font-size: 1.4rem; color: var(--gold); }
.footer-tagline { font-family: 'Tajawal', sans-serif; font-size: 0.85rem; color: var(--text-muted); }
.footer-rule { width: 60px; height: 1px; background: var(--gold); opacity: 0.4; }
.footer-socials { display: flex; gap: 8px; align-items: center; justify-content: center; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.footer-social-link:hover, .footer-social-link:active {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold); color: var(--gold);
}
.footer-social-link svg { width: 24px; height: 24px; }
.footer-address {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.footer-address svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--gold-dim); }
.footer-ornament-divider {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 200px;
}
.footer-ornament-divider::before, .footer-ornament-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-gold);
}
.footer-ornament-divider-star {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg); opacity: 0.6; flex-shrink: 0;
}
.footer-copy {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem; color: var(--text-muted); direction: rtl;
}

/* ===== MASK REVEAL — triggered by JS adding .mask-revealed ===== */
.mask-reveal {
  mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-size: 300% 100%;
  mask-position: 100% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-size: 300% 100%;
  -webkit-mask-position: 100% 0;
}
.mask-reveal.mask-revealed {
  animation: maskReveal 1.1s ease forwards;
}
@keyframes maskReveal {
  to { mask-position: 0% 0; -webkit-mask-position: 0% 0; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-h1-shimmer { animation: none; -webkit-text-fill-color: var(--text-dark); background: none; }
  .ls-animate { transition: none; letter-spacing: 0.03em; opacity: 1; }
  .branch-card-mobile, .collection-card { clip-path: none !important; }
  .emirate-path, .mobile-emirate { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  #footer-ribbon { transition: none; }
}

/* ===== ALL KEYFRAMES ===== */
@keyframes fabBounceIn {
  0%   { opacity: 0; transform: scale(0.8) translateY(20px); }
  60%  { transform: scale(1.08) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes heroShimmer {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}
@keyframes ctaPulseRing {
  0%   { opacity: 0; transform: scale(0.95); }
  50%  { opacity: 0.6; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.12); }
}
@keyframes scrollLineGrow {
  0%, 100% { opacity: 0.5; transform: scaleY(0.7); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}
@keyframes scrollDotPulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(4px); }
}
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes hintArrowBounce {
  0%   { opacity: 0; transform: translateY(-4px); }
  20%  { opacity: 0.8; }
  50%  { transform: translateY(4px); opacity: 1; }
  80%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes pulseDot {
  0%, 100% { r: 4; opacity: 0.85; }
  50%       { r: 5.5; opacity: 1; }
}
@keyframes pulseDotActive {
  0%, 100% { r: 5; opacity: 1; filter: drop-shadow(0 0 4px var(--gold)); }
  50%       { r: 7; opacity: 1; filter: drop-shadow(0 0 8px var(--gold-light)); }
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}
@keyframes meshDrift {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.06); }
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(6px); opacity: 1; }
}
