/* ==========================================================================
   Al-Noor Academy v3.0 — Crisp Editorial White/Cream, Deep Emerald & Gold
   ========================================================================== */

:root {
    --cream-bg: #FAF8F4;
    --pure-white: #FFFFFF;
    --beige-soft: #F2EFE7;
    --emerald-deep: #0E4434;
    --emerald-main: #145A45;
    --emerald-hover: #0A3528;
    --gold-main: #C8A158;
    --gold-light: #E6CE95;
    --ink-dark: #15251F;
    --ink-muted: #43554D;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #FAF8F4 !important; }

body {
    background-color: #FAF8F4 !important;
    color: #15251F !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    margin: 0;
}

.font-serif-editorial { font-family: 'Playfair Display', Georgia, serif; }
.font-arabic { font-family: 'Amiri', 'Scheherazade New', serif; direction: rtl; }

/* Exact Reference Light Background with Soft Sage-Emerald Top-Right Glow */
.hero-ambient-bg {
    background:
        radial-gradient(circle at 92% 16%, rgba(20, 90, 69, 0.22) 0%, rgba(20, 90, 69, 0.08) 28%, rgba(250, 248, 244, 0) 56%),
        radial-gradient(circle at 6% 88%, rgba(200, 161, 88, 0.10) 0%, rgba(250, 248, 244, 0) 45%),
        #FAF8F4 !important;
}

/* Bold, High-Contrast Emerald Pill Button with Gold Rim */
.btn-emerald-gold {
    background: linear-gradient(135deg, #165E48 0%, #0D4232 100%) !important;
    color: #FFFFFF !important;
    border: 2px solid #C8A158 !important;
    box-shadow: 0 10px 24px -6px rgba(14, 68, 52, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-emerald-gold:hover {
    background: linear-gradient(135deg, #1A6E54 0%, #0E4A38 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -6px rgba(14, 68, 52, 0.45);
}

.btn-emerald-gold:active {
    transform: translateY(0px) scale(0.99);
}

/* Secondary Light Pill Button (High Visibility White/Cream) */
.btn-cream-outline {
    background: #FFFFFF !important;
    color: #0E4434 !important;
    border: 2px solid #D5CCB8 !important;
    box-shadow: 0 6px 16px -6px rgba(14, 68, 52, 0.12);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-cream-outline:hover {
    background: #F4F1E9 !important;
    border-color: #0E4434 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(14, 68, 52, 0.18);
}

/* Gold Action Button (For Highlighted Pricing Card) */
.btn-gold-solid {
    background: linear-gradient(135deg, #D9B56D 0%, #C29647 100%) !important;
    color: #0B2E23 !important;
    border: 2px solid #EBD4A2 !important;
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.28);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-gold-solid:hover {
    background: linear-gradient(135deg, #E5C47E 0%, #CCA150 100%) !important;
    transform: translateY(-2px);
}

/* Islamic Arabesque Geometric Lattice Pattern inside Emerald Card behind Laptop */
.emerald-lattice-card {
    background-color: #104938;
    background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C8A158' stroke-width='1.15' stroke-opacity='0.52'%3E%3Cpath d='M36 0L46.5 25.5L72 36L46.5 46.5L36 72L25.5 46.5L0 36L25.5 25.5Z'/%3E%3Crect x='14' y='14' width='44' height='44' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='10'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 68px 68px;
}

.subtle-islamic-bg {
    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' stroke='%23C8A158' stroke-width='0.6' stroke-opacity='0.14'%3E%3Cpath d='M30 0L38 22L60 30L38 38L30 60L22 38L0 30L22 22Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Sleek Realistic Silver MacBook Mockup */
.laptop-wrapper {
    position: relative;
    z-index: 10;
    animation: gentleFloat 5.5s ease-in-out infinite;
}

.laptop-lid {
    background: #14171A;
    border-radius: 18px 18px 4px 4px;
    padding: 10px 10px 13px 10px;
    box-shadow: 0 28px 55px -16px rgba(10, 38, 28, 0.32), inset 0 0 0 1.5px #3D444C;
    position: relative;
}

.laptop-camera {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2C333A;
    margin: 0 auto 6px auto;
}

.laptop-screen {
    background: #0F172A;
    border-radius: 7px;
    overflow: hidden;
    aspect-ratio: 16 / 10.2;
    position: relative;
    border: 1px solid #2A3038;
}

.laptop-base {
    height: 14px;
    width: 108%;
    margin-left: -4%;
    background: linear-gradient(180deg, #E5E8EC 0%, #BCC2CA 60%, #8E959E 100%);
    border-radius: 2px 2px 14px 14px;
    position: relative;
    box-shadow: 0 16px 26px -8px rgba(15, 35, 28, 0.30);
}

.laptop-notch {
    width: 68px;
    height: 5px;
    background: #9FA6AF;
    border-radius: 0 0 6px 6px;
    margin: 0 auto;
}

.mushaf-frame {
    background: #FDFBF2;
    border: 2px solid #8DA68E;
    box-shadow: inset 0 0 0 2px #FDFBF2, inset 0 0 0 3px #C8A158;
}

/* Editorial Cards */
.editorial-card {
    background: #FFFFFF;
    border: 1.5px solid #EAE4D7;
    box-shadow: 0 10px 28px -14px rgba(14, 68, 52, 0.11);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.editorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 42px -16px rgba(14, 68, 52, 0.18);
    border-color: rgba(200, 161, 88, 0.65);
}

/* Smooth Mobile Drawer Animation */
.mobile-drawer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.mobile-drawer.is-open {
    max-height: 620px;
    opacity: 1;
}

/* Smooth FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-answer {
    max-height: 420px;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

/* Simple Clean Animations */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-hero {
    animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-hero-delay {
    animation: fadeInUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* Scroll Reveal (Safe: JS adds .js-reveal-ready to html so content is always visible if JS disabled) */
.js-reveal-ready .reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal-ready .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes waRing {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float-btn { animation: waRing 2.6s infinite; }

@media (prefers-reduced-motion: reduce) {
    .laptop-wrapper, .animate-hero, .animate-hero-delay, .wa-float-btn { animation: none !important; }
    .js-reveal-ready .reveal-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* Currency Tabs & Country Flag Cards (v6.0) */
.currency-tab {
    background: #FAF8F4;
    color: #1E312B;
    border: 1.5px solid #DED7C8;
    transition: all 0.22s ease;
    cursor: pointer;
}
.currency-tab:hover {
    border-color: #0E4434;
    background: #FFFFFF;
}
.currency-tab.active-tab {
    background: #0E4434 !important;
    color: #FFFFFF !important;
    border-color: #C8A158 !important;
    box-shadow: 0 8px 18px -6px rgba(14, 68, 52, 0.35);
}
.country-flag-card {
    background: #FFFFFF;
    border: 1.5px solid #EAE4D7;
    transition: all 0.24s ease;
    cursor: pointer;
}
.country-flag-card:hover {
    border-color: #C8A158;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(14, 68, 52, 0.16);
}
