/* Custom Utilities & Branding Variables */
:root {
  --emerald-primary: #0F5132;
  --emerald-dark: #0A3722;
  --amber-gold: #D97706;
  --amber-hover: #B45309;
  --cream-bg: #FDFBF7;
  --charcoal-text: #1E293B;
}

body {
  background-color: var(--cream-bg);
  color: var(--charcoal-text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Typography Classes */
.font-heading {
  font-family: 'Cinzel', serif;
}

.font-quran {
  font-family: 'Amiri', serif;
}

/* Subtle Islamic Pattern Overlay */
.islamic-bg-pattern {
  background-image: radial-gradient(rgba(217, 119, 6, 0.25) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Hide scrollbar on the horizontal gallery carousel */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hero Background Overlays */
.hero-custom-bg {
  background: linear-gradient(
      to bottom,
      rgba(15, 81, 50, 0.86),
      rgba(10, 55, 34, 0.95)
    ),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-hero-bg {
  background: linear-gradient(
      to bottom,
      rgba(15, 81, 50, 0.82),
      rgba(10, 55, 34, 0.92)
    ),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.coming-soon-bg {
  background: linear-gradient(
      to bottom,
      rgba(15, 81, 50, 0.88),
      rgba(10, 55, 34, 0.95)
    ),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
   HERO LOGO HALO ENGINE
   ========================================================= */

.hero-halo-stage {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-halo-stage {
    width: 220px;
    height: 220px;
  }
}

.hero-halo-stage .halo-glow-bg {
  position: absolute;
  inset: -15px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.75) 0%, rgba(217, 119, 6, 0.35) 50%, rgba(15, 81, 50, 0) 75%);
  filter: blur(16px);
  z-index: 1;
  animation: pulseHalo 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-halo-stage .halo-dashed-orbit {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px dashed #F59E0B;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5), inset 0 0 15px rgba(245, 158, 11, 0.3);
  z-index: 2;
  animation: rotateOrbit 18s linear infinite;
  pointer-events: none;
}

.hero-halo-stage .halo-wave {
  position: absolute;
  inset: 4px;
  border-radius: 9999px;
  border: 1.5px solid rgba(251, 191, 36, 0.85);
  z-index: 3;
  animation: rippleEffect 2.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
}

.hero-halo-stage .emblem-core {
  position: relative;
  z-index: 10;
  width: 140px;
  height: 140px;
  border-radius: 9999px;
  transform-origin: center center;
  animation: subtleLogoZoom 3.8s ease-in-out infinite alternate;
}

@media (min-width: 768px) {
  .hero-halo-stage .emblem-core {
    width: 170px;
    height: 170px;
  }
}

@keyframes pulseHalo {
  0% { transform: scale(0.88); opacity: 0.5; }
  100% { transform: scale(1.22); opacity: 1; }
}

@keyframes rotateOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rippleEffect {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes subtleLogoZoom {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.4);
  }
  100% {
    transform: scale(1.03);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 32px rgba(245, 158, 11, 0.75);
  }
}

/* =========================================================
   HERO TYPOGRAPHY & BUTTON DELIGHT
   ========================================================= */

.text-gold-gradient {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.btn-sheen-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sheen-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: btnSheenSweep 4.5s ease-in-out infinite;
}

.btn-sheen-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.55);
}

@keyframes btnSheenSweep {
  0%, 65% { left: -120%; }
  100% { left: 180%; }
}

.btn-glass-alt {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-glass-alt:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(251, 191, 36, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   GOLDEN LIGHT BEAM SEPARATOR ANIMATION
   ========================================================= */

.golden-divider-line {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.8) 50%, transparent 100%);
  overflow: hidden;
}

.golden-divider-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, #FFFFFF 50%, transparent 100%);
  animation: beamSweep 4s ease-in-out infinite;
}

@keyframes beamSweep {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* =========================================================
   ILLUMINATED HADITH MIHRAB CARD & PILLAR ENGINE
   ========================================================= */

.hadith-mihrab-box {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F2 100%);
  border: 1.5px solid #FCD34D;
  box-shadow: 0 15px 35px -5px rgba(217, 119, 6, 0.12), 0 0 0 4px rgba(253, 230, 138, 0.25);
  border-radius: 1.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hadith-mihrab-box:hover {
  box-shadow: 0 20px 40px -5px rgba(217, 119, 6, 0.2), 0 0 0 5px rgba(245, 158, 11, 0.35);
}

.hadith-mihrab-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0F5132 0%, #D97706 50%, #0F5132 100%);
}

.calligraphy-glow {
  text-shadow: 0 2px 8px rgba(15, 81, 50, 0.15);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.hadith-mihrab-box:hover .calligraphy-glow {
  text-shadow: 0 3px 12px rgba(217, 119, 6, 0.3);
}

.deed-pillar-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.deed-pillar-card:hover {
  transform: translateY(-3px);
  border-color: #F59E0B;
  background-color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(15, 81, 50, 0.08);
}