/* ============================================
   OURDOUACADEMY — DIASPORA FINAL
   5-phase background + full sales page
============================================= */

:root {
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Outfit', sans-serif;
    --font-urdu:    'Noto Nastaliq Urdu', serif;
    --container-width: min(1100px, 90vw);
    --section-padding: clamp(80px, 12vh, 140px);
    --gold: #d4a853;
    --green: #2e8b57;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: #080c18;
    color: #c8cdd8;
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: #6b8cce; text-decoration: none; transition: color 0.3s ease; }

/* ============================================
   BACKGROUND LAYERS (all fixed)
============================================= */
.bg-layer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Photos */
.bg-photo {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 60%;
}
.bg-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: filter 2s ease;
}
.bg-photo-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.bg-overlay-cold {
    background: linear-gradient(to bottom, #080c18 0%, rgba(8,12,24,0.8) 25%, rgba(8,12,24,0.35) 55%, rgba(8,12,24,0.5) 100%);
}
.bg-overlay-warm {
    background: linear-gradient(to bottom, #0a1008 0%, rgba(10,16,8,0.8) 25%, rgba(10,16,8,0.25) 55%, rgba(10,16,8,0.4) 100%);
}
.bg-london { opacity: 1; z-index: 1; }
.bg-lahore { opacity: 0; z-index: 2; }

/* Motif islamique */
.bg-pattern-islamic {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4a853' stroke-width='0.5' opacity='0.4'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40Z'/%3E%3Cpath d='M40 10 L70 40 L40 70 L10 40Z'/%3E%3Cpath d='M40 20 L60 40 L40 60 L20 40Z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
}

/* Calligraphie flottante */
.bg-calligraphy {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 4;
    opacity: 0;
}
.cal-letter {
    position: absolute;
    font-family: var(--font-urdu);
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.06;
    pointer-events: none;
    line-height: 1;
}
.cal-word {
    font-size: 3.5rem;
    opacity: 0.04;
}

/* ============================================
   NAVIGATION
============================================= */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px clamp(20px, 5vw, 60px);
    background: transparent; transition: background 0.4s ease;
}
#navbar.scrolled {
    background: rgba(8,12,24,0.92);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-urdu { font-family: var(--font-urdu); font-size: 1.8rem; color: var(--gold); line-height: 1; }
.logo-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #eee; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: #6a7089; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links a:hover { color: #eee; }
.nav-cta { background: var(--gold) !important; color: #0a0a0f !important; padding: 10px 22px; border-radius: 6px; font-weight: 600 !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,168,83,0.3); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #ccc; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ============================================
   HERO
============================================= */
.section-hero {
    position: relative; z-index: 1;
    min-height: 100vh; display: flex; align-items: center;
    padding: 0 clamp(24px, 8vw, 120px);
}
.hero-inner { max-width: 700px; }
.hero-tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.25em; color: #6b8cce; margin-bottom: 24px; opacity: 0; transform: translateY(20px); }
.hero-title { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin-bottom: 28px; }
.hero-title .line { display: block; font-size: clamp(2.8rem, 6vw, 5rem); color: #e0e2e8; opacity: 0; transform: translateY(40px); }
.hero-title em { font-style: italic; color: #6b8cce; }
.hero-subtitle { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #6a7089; max-width: 540px; margin-bottom: 36px; line-height: 1.8; opacity: 0; transform: translateY(20px); }
.hero-btn { display: inline-block; background: var(--gold); color: #0c0e14; padding: 15px 36px; border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; opacity: 0; transform: translateY(20px); }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(212,168,83,0.3); color: #0c0e14; }

/* ============================================
   SECTIONS
============================================= */
.section { position: relative; z-index: 1; padding: var(--section-padding) clamp(20px, 5vw, 60px); }
.section-content { max-width: var(--container-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: clamp(50px, 8vh, 90px); }
.section-tag { display: inline-block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 16px; padding: 6px 16px; border: 1px solid rgba(212,168,83,0.3); border-radius: 20px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.2; color: #e8e0d0; }
.section-title em { color: var(--green); font-style: italic; }

/* ============================================
   PROBLEM CARDS
============================================= */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: var(--container-width); margin: 0 auto; }
.problem-card { background: rgba(16,20,36,0.9); border: 1px solid #1e2235; border-radius: 14px; padding: 32px 24px; text-align: center; transition: transform 0.4s ease, border-color 0.4s ease; }
.problem-card:hover { transform: translateY(-5px); border-color: rgba(107,140,206,0.3); }
.problem-emoji { font-size: 2.2rem; margin-bottom: 16px; }
.problem-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: #d0d4de; margin-bottom: 10px; line-height: 1.4; }
.problem-card p { color: #6a7089; font-size: 0.9rem; line-height: 1.6; }

/* ============================================
   SHIFT
============================================= */
.section-shift { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.shift-content { max-width: 650px; }
.shift-urdu { font-family: var(--font-urdu); font-size: clamp(4rem, 10vw, 8rem); color: var(--gold); line-height: 1.3; margin-bottom: 20px; }
.shift-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #e8e0d0; margin-bottom: 20px; line-height: 1.3; }
.shift-title em { color: var(--green); font-style: italic; }
.shift-subtitle { font-size: 1.05rem; color: #8a8f78; line-height: 1.8; }

/* ============================================
   JOURNEY CARDS
============================================= */
.journey-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; max-width: var(--container-width); margin: 0 auto; }
.journey-card { background: rgba(21,28,16,0.75); border: 1px solid rgba(42,53,32,0.6); border-radius: 16px; padding: 36px 28px; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.journey-card:hover { transform: translateY(-6px); border-color: rgba(212,168,83,0.4); box-shadow: 0 16px 50px rgba(46,139,87,0.1); }
.journey-icon { font-family: var(--font-urdu); font-size: 2.2rem; color: var(--green); margin-bottom: 18px; line-height: 1.4; }
.journey-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #e8e0d0; margin-bottom: 10px; }
.journey-card p { color: #8a8f78; font-size: 0.9rem; line-height: 1.6; }

/* ============================================
   MODULES (What's inside)
============================================= */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; max-width: var(--container-width); margin: 0 auto; }
.module-card { background: rgba(16,22,12,0.7); border: 1px solid rgba(42,53,32,0.5); border-radius: 16px; padding: 32px 26px; transition: transform 0.4s ease, border-color 0.4s ease; }
.module-card:hover { transform: translateY(-4px); border-color: rgba(212,168,83,0.3); }
.module-level { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.module-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #e8e0d0; margin-bottom: 6px; }
.module-meta { font-size: 0.8rem; color: var(--green); margin-bottom: 16px; }
.module-card ul { list-style: none; }
.module-card li { padding: 6px 0; padding-left: 18px; position: relative; color: #8a9080; font-size: 0.85rem; line-height: 1.5; border-bottom: 1px solid rgba(255,255,255,0.03); }
.module-card li::before { content: '·'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ============================================
   STATS
============================================= */
.stats-row { display: flex; justify-content: center; gap: clamp(30px, 6vw, 80px); flex-wrap: wrap; max-width: var(--container-width); margin: 0 auto; text-align: center; }
.stat-item { min-width: 120px; }
.stat-number { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--gold); line-height: 1.2; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #6a7050; }

/* ============================================
   BEFORE / AFTER
============================================= */
.before-after { display: flex; gap: 0; max-width: 900px; margin: 0 auto; align-items: stretch; }
.ba-column { flex: 1; padding: 36px 30px; }
.ba-before { background: rgba(16,20,36,0.8); border-radius: 16px 0 0 16px; border: 1px solid #1e2235; border-right: none; }
.ba-after { background: rgba(21,28,16,0.8); border-radius: 0 16px 16px 0; border: 1px solid rgba(42,53,32,0.5); border-left: none; }
.ba-divider { display: flex; align-items: center; justify-content: center; width: 50px; background: linear-gradient(to bottom, rgba(16,20,36,0.8), rgba(21,28,16,0.8)); }
.ba-arrow { font-size: 1.5rem; color: var(--gold); }
.ba-label { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.1em; }
.ba-before .ba-label { color: #6a7089; }
.ba-after .ba-label { color: var(--green); }
.ba-column ul { list-style: none; }
.ba-column li { padding: 10px 0; padding-left: 20px; position: relative; font-size: 0.9rem; line-height: 1.5; border-bottom: 1px solid rgba(255,255,255,0.04); }
.ba-before li { color: #6a7089; }
.ba-before li::before { content: '✕'; position: absolute; left: 0; color: #5a4040; font-size: 0.7rem; }
.ba-after li { color: #b0b8a0; }
.ba-after li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: 0.75rem; }

/* ============================================
   INSTRUCTOR
============================================= */
.instructor-block { display: flex; gap: 40px; align-items: flex-start; max-width: 800px; margin: 0 auto; }
.instructor-avatar { flex-shrink: 0; }
.avatar-placeholder { width: 100px; height: 100px; border-radius: 50%; background: rgba(21,28,16,0.8); border: 2px solid rgba(212,168,83,0.3); display: flex; align-items: center; justify-content: center; font-family: var(--font-urdu); font-size: 2.5rem; color: var(--gold); }
.instructor-info h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #e8e0d0; margin-bottom: 16px; font-style: italic; }
.instructor-info p { color: #8a8f78; font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; }

/* ============================================
   TESTIMONIALS
============================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: var(--container-width); margin: 0 auto; }
.testi-card { background: rgba(16,22,12,0.6); border: 1px solid rgba(42,53,32,0.4); border-radius: 16px; padding: 30px 26px; transition: border-color 0.4s ease; }
.testi-card:hover { border-color: rgba(212,168,83,0.3); }
.testi-card blockquote { font-family: var(--font-display); font-size: 0.95rem; font-style: italic; line-height: 1.7; color: #d0d4c0; margin-bottom: 16px; }
.testi-card cite { color: var(--gold); font-size: 0.78rem; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================================
   FAQ
============================================= */
.faq-list { max-width: 750px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 28px 0; }
.faq-q { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #e0dcd0; margin-bottom: 12px; line-height: 1.4; }
.faq-a { color: #8a8f78; font-size: 0.92rem; line-height: 1.7; }

/* ============================================
   PRICING — £299
============================================= */
.pricing-single { max-width: 520px; margin: 0 auto; }
.pricing-card-main { background: rgba(21,28,16,0.85); border: 2px solid var(--gold); border-radius: 20px; padding: 48px 36px; text-align: center; position: relative; box-shadow: 0 0 80px rgba(212,168,83,0.06); }
.pricing-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; padding: 5px 22px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.pricing-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #e8e0d0; margin-top: 10px; margin-bottom: 12px; }
.pricing-desc { color: #8a8f78; font-size: 0.95rem; margin-bottom: 24px; line-height: 1.6; }
.pricing-amount { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--gold); margin-bottom: 28px; }
.pricing-amount span { font-size: 1.1rem; font-weight: 300; color: #8a8f78; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 10px 0; color: #b0b8a0; font-size: 0.92rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-left: 26px; position: relative; }
.pricing-features li::before { content: '✦'; position: absolute; left: 0; color: var(--green); font-size: 0.7rem; }
.pricing-btn { width: 100%; padding: 16px 0; background: var(--gold); color: #0c0e14; border: none; font-family: var(--font-body); font-size: 1rem; font-weight: 700; border-radius: 10px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pricing-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(212,168,83,0.35); }

/* ============================================
   CTA FINAL
============================================= */
.section-final { text-align: center; padding-bottom: clamp(100px, 15vh, 200px); }
.final-cta { max-width: 600px; margin: 0 auto; }
.final-urdu { font-family: var(--font-urdu); font-size: clamp(1.4rem, 3vw, 2rem); color: rgba(212,168,83,0.5); margin-bottom: 16px; line-height: 1.6; }
.final-cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #e8e0d0; margin-bottom: 16px; }
.final-cta p { color: #8a8f78; font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }

/* ============================================
   FOOTER
============================================= */
#footer { position: relative; z-index: 1; background: #060a04; border-top: 1px solid rgba(42,53,32,0.4); padding: 50px clamp(20px, 5vw, 60px) 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; max-width: var(--container-width); margin: 0 auto 36px; }
.footer-tagline { color: #4a5040; font-size: 0.85rem; margin-top: 10px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: #6a7050; margin-bottom: 6px; }
.footer-col a { color: #4a5040; font-size: 0.85rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(42,53,32,0.3); }
.footer-bottom p { font-size: 0.75rem; color: #3a4030; margin-bottom: 4px; }

/* Grain */
body::after { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; opacity: 0.02; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(8,12,24,0.97); flex-direction: column; justify-content: center; align-items: center; gap: 28px; z-index: 99; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.1rem; }
    .mobile-menu-btn { display: flex; z-index: 101; }
    .bg-photo { height: 45%; }
    .before-after { flex-direction: column; }
    .ba-before { border-radius: 16px 16px 0 0; border-right: 1px solid #1e2235; border-bottom: none; }
    .ba-after { border-radius: 0 0 16px 16px; border-left: 1px solid rgba(42,53,32,0.5); border-top: none; }
    .ba-divider { width: 100%; height: 40px; }
    .ba-arrow { transform: rotate(90deg); }
    .instructor-block { flex-direction: column; align-items: center; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.bg-photo img {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.bg-photo img.loaded {
    opacity: 1;
}

@media (max-width: 480px) {

    /* Réduire le padding des sections audience */
    .audience-page .section,
    .page-section {
        padding: 50px 16px;
    }

    /* Supprimer les espaces vides excessifs */
    .stats-row,
    .hero-stats {
        padding: 30px 16px;
    }

    /* Feature cards en 2 colonnes */
    .features-grid,
    .mastery-grid,
    .journey-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-card,
    .mastery-card,
    .journey-card {
        padding: 20px 14px;
    }

    .feature-icon {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .feature-card h3,
    .mastery-card h3,
    .journey-card h3 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .feature-card p,
    .mastery-card p,
    .journey-card p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    /* Fix navbar overlap sur mobile */
    html {
        scroll-padding-top: 80px;
    }
}
@media (max-width: 480px) {

    /* Pain point cards : réduire le padding */
    .pain-card,
    .problem-card {
        padding: 24px 20px;
    }

    .pain-card .emoji,
    .pain-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .pain-card h3,
    .problem-card h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .pain-card p,
    .problem-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}
