/* Surau Umar Al-Khattab - Awwwards-Style Minimalist Architecture Theme
   Brand: Emerald Green (emerald-700 / emerald-800) with Warm Gold / Amber donation accents.
   Strictly NO dark mode, neon, or cyberpunk elements.
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --emerald-primary: #047857;     /* emerald-700 */
  --emerald-deep: #065f46;        /* emerald-800 */
  --emerald-light: #ECFDF5;       /* emerald-50 */
  --emerald-border: #A7F3D0;      /* emerald-200 */
  --gold-accent: #D97706;         /* amber-600 */
  --gold-hover: #B45309;          /* amber-700 */
  --gold-light: #FFFBEB;          /* amber-50 */
  --text-primary: #0F172A;        /* slate-900 */
  --text-muted: #64748B;          /* slate-500 */
  --bg-page: #FFFFFF;
  --bg-subtle: #F8FAFC;           /* slate-50 */
  --border-subtle: #E2E8F0;       /* slate-200 */
}

/* Base Document Configuration */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Arabic Quranic & Hadith Typography */
.font-arabic {
  font-family: 'Amiri', serif;
  font-feature-settings: "cv01" on, "cv02" on;
  letter-spacing: 0.01em;
  direction: rtl;
  text-align: right;
  line-height: 2.1;
}

.font-arabic-center {
  font-family: 'Amiri', serif;
  letter-spacing: 0.01em;
  direction: rtl;
  text-align: center;
  line-height: 2.1;
}

/* Subtle Geometric Pattern for Highlights */
.bg-islamic-pattern {
  background-image: radial-gradient(rgba(4, 120, 87, 0.07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

.bg-dot-subtle {
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Awwwards-Style Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays for Grid Children */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Subtle Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Dialog & Backdrop Modern UX */
dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

dialog[open] {
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Toast Notification Animation */
.toast-in {
  animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-out {
  animation: toastSlideDown 0.25s ease-in forwards;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

/* Card Hover Elevation */
.card-hover-awwwards {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-awwwards:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(4, 120, 87, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

/* Transparent-to-Solid Sticky Header Transition */
#mainHeader.header-top {
  background-color: rgba(15, 23, 42, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
#mainHeader.header-top .brand-title {
  color: #FFFFFF;
}
#mainHeader.header-top .brand-sub {
  color: #6EE7B7; /* emerald-300 */
}
#mainHeader.header-top nav a {
  color: rgba(255, 255, 255, 0.85);
}
#mainHeader.header-top nav a:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.12);
}
#mainHeader.header-top #mobileMenuBtn {
  color: #FFFFFF;
}

#mainHeader.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: #E2E8F0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06) !important;
  color: #0F172A !important;
}
#mainHeader.header-scrolled .brand-title {
  color: #0F172A !important;
}
#mainHeader.header-scrolled .brand-sub {
  color: #047857 !important;
}
#mainHeader.header-scrolled nav a {
  color: #475569 !important;
}
#mainHeader.header-scrolled nav a:hover {
  color: #047857 !important;
  background-color: #ECFDF5 !important;
}
#mainHeader.header-scrolled #mobileMenuBtn {
  color: #0F172A !important;
}
