/* ═══ Golden Palm — Premium Homepage Hero ═══ */

:root {
  --navy: #0a1628;
  --navy-deep: #060e1a;
  --emerald-deep: #051810;
  --emerald-mid: #0e2a20;
  --hero-gold: #d4af37;
  --hero-gold-light: #f0e2bc;
}

/* Animated emerald gradient base */
.hero--premium {
  background: linear-gradient(145deg, #030f0c 0%, #051810 40%, #0a2219 100%);
}

.hero--premium .hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero--premium .hero-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: heroOrbDrift 20s ease-in-out infinite alternate;
}

.hero--premium .hero-ambient__orb--1 {
  width: 420px;
  height: 420px;
  top: 15%;
  inset-inline-end: 10%;
  background: rgba(212, 175, 75, 0.1);
}

.hero--premium .hero-ambient__orb--2 {
  width: 360px;
  height: 360px;
  bottom: 20%;
  inset-inline-start: 5%;
  background: rgba(14, 58, 42, 0.65);
  animation-delay: -8s;
}

.hero--premium .hero-geo {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.14;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(212, 175, 75, 0.35) 49%, rgba(212, 175, 75, 0.35) 51%, transparent 52%),
    linear-gradient(-30deg, transparent 48%, rgba(212, 175, 75, 0.2) 49%, rgba(212, 175, 75, 0.2) 51%, transparent 52%);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, black 20%, transparent 75%);
}

@keyframes heroOrbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.08); }
}

/* ── Cinematic hero background ── */
.hero--premium .hero-cinematic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero--premium .hero-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero--premium .hero-layer--mosque {
  background-image: url('../images/home/hero-1.png');
  background-position: center 35%;
  z-index: 1;
  animation: heroKenBurns 28s ease-in-out infinite alternate;
}

.hero--premium .hero-layer--skyline {
  background-image: url('../images/home/hero-2.png');
  background-position: center bottom;
  background-size: cover;
  z-index: 2;
  opacity: 0.45;
  mix-blend-mode: soft-light;
}

.hero--premium .hero-layer--video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero--premium .hero-layer--custom {
  z-index: 0;
  background-position: center;
  background-size: cover;
}

.hero--premium .hero-layer--gold-hour {
  z-index: 3;
  background: linear-gradient(
    135deg,
    rgba(180, 120, 40, 0.22) 0%,
    rgba(10, 22, 40, 0.35) 40%,
    rgba(5, 24, 16, 0.5) 100%
  );
  mix-blend-mode: multiply;
}

.hero--premium .hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(6, 14, 26, 0.92) 0%,
      rgba(6, 14, 26, 0.72) 28%,
      rgba(5, 24, 16, 0.35) 52%,
      rgba(5, 24, 16, 0.12) 100%
    ),
    linear-gradient(to top, rgba(5, 24, 16, 0.88) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(212, 175, 75, 0.08) 0%, transparent 55%);
}

html[dir="rtl"] .hero--premium .hero-vignette,
html[lang="ar"] .hero--premium .hero-vignette {
  background:
    linear-gradient(
      255deg,
      rgba(6, 14, 26, 0.92) 0%,
      rgba(6, 14, 26, 0.72) 28%,
      rgba(5, 24, 16, 0.35) 52%,
      rgba(5, 24, 16, 0.12) 100%
    ),
    linear-gradient(to top, rgba(5, 24, 16, 0.88) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(212, 175, 75, 0.08) 0%, transparent 55%);
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* Hide legacy single slide when using cinematic layers */
.hero--premium .hero-slides {
  display: none;
}

.hero--premium .hero-overlay {
  display: none;
}

/* ── Glass panel ── */
.hero--premium .hero-body {
  position: relative;
  z-index: 5;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(48px, 8vh, 80px);
  padding-bottom: clamp(64px, 10vh, 120px);
}

.hero--premium .hero-content {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  max-width: min(640px, 94vw);
  padding: clamp(36px, 5vw, 52px) clamp(32px, 4.5vw, 48px);
  background: rgba(8, 18, 32, 0.38);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(212, 175, 75, 0.28);
  border-inline-start: none;
  border-radius: 2px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 60px rgba(212, 175, 75, 0.04);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

html[dir="rtl"] .hero--premium .hero-content,
html[lang="ar"] .hero--premium .hero-content {
  border-inline-end: none;
}

.hero--premium .hero-content::before {
  content: '';
  position: absolute;
  inset-block: 24px;
  inset-inline-start: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--hero-gold) 20%, var(--hero-gold-light) 50%, var(--hero-gold) 80%, transparent);
}

.hero--premium .hero-content::before,
.hero--premium .hero-content::after {
  pointer-events: none;
}

.hero--premium .hero-content::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
}

.hero--premium .hero-content:hover {
  border-color: rgba(212, 175, 75, 0.42);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(212, 175, 75, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Typography ── */
.hero--premium .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fEn);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--hero-gold-light);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 175, 75, 0.25);
}

.hero--premium .hero-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--hero-gold);
}

.hero--premium .hero-title {
  font-family: var(--fDis);
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero--premium .hero-title-em {
  color: var(--hero-gold-light);
  font-style: italic;
}

.hero--premium .hero-sub {
  font-family: var(--fEn);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

html[dir="rtl"] .hero--premium .hero-sub,
html[lang="ar"] .hero--premium .hero-sub {
  font-family: var(--fAr);
}

html[dir="rtl"] .hero--premium .hero-tag,
html[lang="ar"] .hero--premium .hero-tag {
  font-family: var(--fAr);
  letter-spacing: 0.04em;
}

html[dir="rtl"] .hero--premium .btn-hero-primary svg,
html[dir="rtl"] .hero--premium .btn-hero-glass svg {
  transform: scaleX(-1);
}

/* ── CTA buttons ── */
.hero--premium .hero-actions {
  gap: 14px;
}

.hero--premium .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: linear-gradient(135deg, #e8d5a8 0%, var(--hero-gold) 45%, #a88632 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(212, 175, 75, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero--premium .btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(212, 175, 75, 0.45);
}

.hero--premium .btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 18, 32, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 75, 0.55);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}

.hero--premium .btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--hero-gold-light);
  transform: translateY(-2px);
}

/* ── Premium home nav ── */
body.is-home #navbar {
  background: linear-gradient(180deg, rgba(6, 14, 26, 0.85) 0%, rgba(6, 14, 26, 0.25) 100%);
  border-bottom: 1px solid rgba(212, 175, 75, 0.12);
  backdrop-filter: blur(12px);
}

body.is-home #navbar.scrolled {
  background: rgba(6, 14, 26, 0.96);
  border-bottom-color: rgba(212, 175, 75, 0.2);
}

body.is-home #navbar .nav-links a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Stats strip refinement on home ── */
.home-below-hero .stats-band {
  background: var(--navy-deep);
  border-color: rgba(212, 175, 75, 0.12);
}

.home-below-hero .stat-item {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.9) 0%, rgba(5, 24, 16, 0.95) 100%);
  transition: background 0.4s;
}

.home-below-hero .stat-item:hover {
  background: rgba(14, 42, 32, 0.6);
}

@media (max-width: 900px) {
  .hero--premium .hero-body {
    align-items: flex-end;
  }

  .hero--premium .hero-content {
    max-width: 100%;
  }

  .hero--premium .hero-layer--skyline {
    opacity: 0.4;
  }
}

@media (max-width: 540px) {
  .hero--premium .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--premium .btn-hero-primary,
  .hero--premium .btn-hero-glass {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--premium .hero-layer--mosque {
    animation: none;
  }
}
