/* ══════════════════════════════════════════════
   LEARN QURAN ACADEMY — COMPLETE LANDING PAGE
══════════════════════════════════════════════ */

html {
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }
}

body {
  background-color: #ffffff !important;
}

body, p, span, a, li, ul, ol, input, select, textarea, button {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}

.font-cinzel {
  font-family: 'Cinzel', serif !important;
  color: #06462e !important;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', sans-serif !important;
}

.hero-headline,
.hero-headline * {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  text-transform: none !important;
}

.hero-headline {
  color: #06462e !important;
}

.hero-headline .gold-accent {
  color: #b48d30 !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}

.stat-number,
.stat-counter {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-feature-settings: normal;
}

.font-arabic {
  font-family: 'Amiri', serif !important;
}

/* Slide crossfade */
.slide-layer {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-layer.active { opacity: 1; }

/* Hide scrollbar utility for touch carousels */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ══════════════════════════════════════════════
   DYNAMIC NAV ACTIVE INDICATORS
══════════════════════════════════════════════ */
.desktop-nav-link {
  position: relative;
  transition: color 250ms ease, opacity 250ms ease;
}

.desktop-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f0c868;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms ease;
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(240, 200, 104, 0.6);
}

.desktop-nav-link:hover::after {
  transform: scaleX(0.5);
  background: rgba(240, 200, 104, 0.6);
}

.desktop-nav-link.active {
  color: #f0c868 !important;
  font-weight: 700 !important;
}

.desktop-nav-link.active::after {
  transform: scaleX(1);
  background: #f0c868;
}

/* Mobile Drawer Nav Link Active State */
.drawer-nav-link.active {
  color: #f0c868 !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  font-weight: 700 !important;
}

.drawer-nav-link.active svg {
  color: #f0c868 !important;
  opacity: 1 !important;
}

/* Arabesque subtle pattern removed per request */
.bg-arabesque {
  display: none !important;
  background-image: none !important;
}

/* ══════════════════════════════════════════════
   SMOOTH SCROLL REVEAL ANIMATIONS (EASY EASE-IN-OUT)
══════════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 750ms cubic-bezier(0.42, 0, 0.58, 1), transform 750ms cubic-bezier(0.42, 0, 0.58, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.scroll-in {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Modal entrance */
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.modal-enter { animation: modalEnter 0.2s cubic-bezier(0.16,1,0.3,1) both; }

/* Scrollbar */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: #032619; }
::-webkit-scrollbar-thumb { background: #06462e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b48d30; }

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

/* ══════════════════════════════════════════════
   FAQ ACCORDION SMOOTH TRANSITIONS (EASE-IN-OUT)
══════════════════════════════════════════════ */
.faq-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-collapse.open {
  grid-template-rows: 1fr;
}
.faq-collapse-inner {
  overflow: hidden;
}
.faq-content-body {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 300ms ease-in-out 50ms, transform 300ms ease-in-out 50ms;
}
.faq-collapse.open .faq-content-body {
  opacity: 1;
  transform: translateY(0);
}
.faq-item {
  transition: background-color 300ms ease-in-out, box-shadow 300ms ease-in-out, transform 250ms ease-in-out;
}
.faq-circle {
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease-in-out;
}
.faq-item.active .faq-circle {
  transform: rotate(180deg);
}

/* ══════════════════════════════════════════════
   LENIS SMOOTH SCROLL STYLES
══════════════════════════════════════════════ */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   GO TO TOP BUTTON ANIMATION (SPRING / EASE-IN-OUT)
══════════════════════════════════════════════ */
#scroll-top {
  opacity: 0;
  transform: translateY(22px) scale(0.65);
  pointer-events: none;
  transition: opacity 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 200ms ease,
              box-shadow 300ms ease;
  will-change: opacity, transform;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  box-shadow: 0 10px 28px -4px rgba(6, 70, 46, 0.5), 0 4px 12px -2px rgba(180, 141, 48, 0.25);
}

#scroll-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 16px 36px -4px rgba(6, 70, 46, 0.7), 0 6px 16px -2px rgba(180, 141, 48, 0.35);
}

#scroll-top:active {
  transform: translateY(-1px) scale(0.96);
}

/* ══════════════════════════════════════════════
   STICKY NAVBAR DYNAMICS & SMOOTH CONVERSION
══════════════════════════════════════════════ */
#main-header {
  background-color: rgba(6, 70, 46, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -5px rgba(3, 38, 25, 0.4);
  transition: padding 300ms ease, box-shadow 300ms ease;
  will-change: padding, box-shadow;
}

#main-header.is-scrolled {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  box-shadow: 0 10px 30px -10px rgba(3, 38, 25, 0.7), 0 1px 0 0 rgba(180, 141, 48, 0.25);
}

#main-header:not(.is-scrolled) {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

#header-logo {
  height: 3.25rem;
  max-height: 5rem;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1), transform 300ms ease;
}

@media (min-width: 640px) {
  #header-logo {
    height: 3.5rem;
  }
}

@media (min-width: 768px) {
  #header-logo {
    height: 4rem;
  }
}

@media (min-width: 1024px) {
  #header-logo {
    height: 4.75rem;
  }
}

#main-header.is-scrolled #header-logo {
  height: 2.85rem; /* compact ~46px on scroll */
}

/* ══════════════════════════════════════════════
   RIGHT-SIDE SLIDE-OVER DRAWER (TAKES UP ONLY RIGHT SIDE)
══════════════════════════════════════════════ */
#nav-drawer-container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

#nav-drawer-container.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#nav-drawer-backdrop {
  opacity: 0;
  transition: opacity 300ms ease;
}

#nav-drawer-container.open #nav-drawer-backdrop {
  opacity: 1;
}

#nav-drawer-panel {
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#nav-drawer-container.open #nav-drawer-panel {
  transform: translateX(0);
}

#nav-drawer-container.open .drawer-nav-link {
  animation: drawerLinkFadeIn 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes drawerLinkFadeIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ══════════════════════════════════════════════
   MOBILE COURSES CAROUSEL
══════════════════════════════════════════════ */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#courses-carousel {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  #courses-carousel {
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }
}

.course-dot {
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms ease;
}

/* ══════════════════════════════════════════════
   CUSTOM LANDING PAGE CURSOR (DEFAULT DISABLED)
══════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  html.custom-cursor-active,
  html.custom-cursor-active body,
  html.custom-cursor-active *,
  html.custom-cursor-active *::before,
  html.custom-cursor-active *::after {
    cursor: none !important;
  }
}

/* Inner Dot Base */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 0;
  box-shadow: none !important;
  transition: opacity 250ms ease,
              transform 150ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 150ms ease;
  will-change: left, top, transform, opacity;
}

/* Outer Follower Ring Base */
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: 0;
  box-shadow: none !important;
  transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1),
              height 220ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 150ms ease,
              border-color 150ms ease,
              opacity 250ms ease;
  will-change: left, top, width, height, transform, opacity;
}

/* ──────────────────────────────────────────────
   1. ON GREEN BACKGROUND: CURSOR TURNS YELLOW
   ────────────────────────────────────────────── */
body.cursor-on-green #cursor-dot {
  background-color: #f0c868;
  box-shadow: none !important;
}

body.cursor-on-green #cursor-ring {
  border: 1.5px solid #f0c868;
  background-color: rgba(240, 200, 104, 0.08);
  box-shadow: none !important;
}

/* Hover over interactive elements on green bg */
body.cursor-on-green.cursor-hover #cursor-ring {
  width: 42px;
  height: 42px;
  border-color: #f0c868;
  background-color: rgba(240, 200, 104, 0.16);
  box-shadow: none !important;
}

body.cursor-on-green.cursor-hover #cursor-dot {
  transform: translate(-50%, -50%) scale(1.2);
  background-color: #f0c868;
}

/* ──────────────────────────────────────────────
   2. ON ALL OTHER BACKGROUNDS (WHITE, CREAM, ETC.): CURSOR TURNS GREEN
   ────────────────────────────────────────────── */
body:not(.cursor-on-green) #cursor-dot {
  background-color: #06462e;
  box-shadow: none !important;
}

body:not(.cursor-on-green) #cursor-ring {
  border: 1.5px solid #06462e;
  background-color: rgba(6, 70, 46, 0.06);
  box-shadow: none !important;
}

/* Hover over interactive elements on non-green bg */
body:not(.cursor-on-green).cursor-hover #cursor-ring {
  width: 42px;
  height: 42px;
  border-color: #06462e;
  background-color: rgba(6, 70, 46, 0.12);
  box-shadow: none !important;
}

body:not(.cursor-on-green).cursor-hover #cursor-dot {
  transform: translate(-50%, -50%) scale(1.2);
  background-color: #06462e;
}

/* Clicking / Active Mousedown */
body.cursor-clicking #cursor-ring {
  width: 24px !important;
  height: 24px !important;
  transform: translate(-50%, -50%) scale(0.85);
}

body.cursor-clicking #cursor-dot {
  transform: translate(-50%, -50%) scale(0.7);
}

/* Disable custom cursor on touch screens */
@media (hover: none) or (pointer: coarse) {
  #cursor-dot,
  #cursor-ring {
    display: none !important;
  }
}


/* ──────────────────────────────────────────────
   LUXURY PRICING & TUITION STYLES (EMERALD & GOLD)
   ────────────────────────────────────────────── */
.islamic-subtle-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(180, 141, 48, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
}
.shadow-luxury {
  box-shadow: 0 10px 40px -10px rgba(6, 36, 25, 0.06), 0 2px 10px -2px rgba(6, 36, 25, 0.03);
}
.card-shadow {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}
.badge-glass {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.grid-pattern-dark {
  background-size: 28px 28px;
  background-image: 
    linear-gradient(to right, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
}
.text-gold-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #E6CA65 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-gold-gradient {
  background: linear-gradient(135deg, #F0D575 0%, #D4AF37 50%, #C59A27 100%);
}
.bg-gold-gradient:hover {
  background: linear-gradient(135deg, #F5DC86 0%, #DFC048 50%, #B88B1E 100%);
}

.paper-texture {
  background-color: #f7f6f2;
  background-image: 
    radial-gradient(#e7e5dd 0.8px, transparent 0.8px),
    radial-gradient(#dcd8cb 0.6px, #f7f6f2 0.6px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}
.shadow-luxury-soft {
  box-shadow: 0 20px 40px -15px rgba(6, 36, 25, 0.05), 0 0 1px 1px rgba(6, 36, 25, 0.04);
}
.shadow-luxury-featured {
  box-shadow: 0 30px 60px -15px rgba(6, 36, 25, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.35);
}
.shadow-gold-glow {
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.38);
}

/* Stitch Case Study & Impact Story Atmosphere */
.hero-atmosphere {
  background-color: #0b090a;
  background-image: 
    radial-gradient(ellipse 65% 55% at 50% 45%, rgba(224, 46, 28, 0.85) 0%, rgba(185, 28, 28, 0.45) 45%, transparent 80%),
    radial-gradient(ellipse 45% 35% at 60% 30%, rgba(251, 146, 60, 0.7) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(244, 63, 94, 0.5) 0%, transparent 70%),
    radial-gradient(circle at 50% 100%, #050505 10%, #171717 60%, #262626 100%);
  background-blend-mode: screen, normal, normal, normal;
  box-shadow: inset 0 0 100px 30px rgba(0, 0, 0, 0.85);
}
.editorial-headline {
  letter-spacing: -0.015em;
  line-height: 1.38;
}


