/* =========================================================
   SALAFI MAKTAB — Stylesheet  v3
   ========================================================= */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Design Tokens ── */
:root {
    --bg:           #0b1810;
    --bg-2:         #0f1e13;
    --bg-card:      rgba(20, 38, 24, 0.75);
    --gold:         #c9a462;
    --gold-lt:      #e2c07f;
    --gold-dim:     rgba(201, 164, 98, 0.12);
    --gold-border:  rgba(201, 164, 98, 0.22);
    --gold-glow:    rgba(201, 164, 98, 0.18);
    --cream:        #f4ede0;
    --cream-60:     rgba(244, 237, 224, 0.60);
    --cream-35:     rgba(244, 237, 224, 0.35);

    --serif:  'Cormorant Garamond', Georgia, serif;
    --sans:   'Inter', system-ui, sans-serif;
    --arabic: 'Amiri', serif;

    --nav-h:  70px;
    --ease:   cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Navbar backgrounds (overridden in light mode) */
    --nav-bg:        rgba(11, 24, 16, 0.82);
    --nav-mobile-bg: rgba(11, 24, 16, 0.97);
}

/* ── Light Mode ── */
[data-theme="light"] {
    --bg:            #ede5d0;
    --bg-2:          #e3d9c0;
    --bg-card:       rgba(243, 238, 225, 0.95);
    --gold:          #8a6b2a;
    --gold-lt:       #a07e38;
    --gold-dim:      rgba(138, 107, 42, 0.10);
    --gold-border:   rgba(138, 107, 42, 0.22);
    --gold-glow:     rgba(138, 107, 42, 0.10);
    --cream:         #1c1510;
    --cream-60:      rgba(28, 21, 16, 0.62);
    --cream-35:      rgba(28, 21, 16, 0.40);
    --nav-bg:        rgba(237, 229, 212, 0.95);
    --nav-mobile-bg: rgba(237, 229, 212, 0.99);
}
[data-theme="light"] .about-watermark { color: rgba(138, 107, 42, 0.42); }

/* ── Base ── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Canvas ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Keyframes ── */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0);     }
}
@keyframes revealRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0);    }
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes chevronBounce {
    0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.45; }
    50%       { transform: translateX(-50%) translateY(7px); opacity: 0.75; }
}
@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(201,164,98,0.35); }
    50%       { box-shadow: 0 0 0 8px rgba(201,164,98,0);    }
}
@keyframes shimmerLine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(400%);  }
}

/* ── Reveal helpers (used inline via style="--delay:Xs") ── */
.reveal-up {
    animation: revealUp 0.75s cubic-bezier(0,0,0.2,1) var(--delay, 0s) both;
}
.reveal-left {
    animation: revealLeft 0.8s cubic-bezier(0,0,0.2,1) var(--delay, 0s) both;
}
.reveal-right {
    animation: revealRight 0.8s cubic-bezier(0,0,0.2,1) var(--delay, 0s) both;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gold-border);
    animation: revealUp 0.6s cubic-bezier(0,0,0.2,1) both;
    transition: background 0.3s var(--ease);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.25s;
}
.nav-logo:hover { opacity: 0.8; }

.logo-arabic  { font-family: var(--arabic); font-size: 1.5rem; color: var(--gold); }
.logo-divider { width: 1px; height: 20px; background: var(--gold-border); }
.logo-english { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--cream); letter-spacing: 0.02em; }

.nav-links { display: flex; list-style: none; gap: 0.2rem; margin-left: auto; }

.nav-link {
    display: block;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--cream-60);
    text-decoration: none;
    letter-spacing: 0.05em;
    border-radius: 6px;
    transition: color 0.25s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 14px; height: 1.5px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-search-btn {
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.nav-search-btn:hover { background: var(--gold); color: var(--bg); }

/* ── Theme Toggle ── */
.theme-toggle {
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.theme-toggle:hover { background: var(--gold); color: var(--bg); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
/* Dark mode: sun visible, moon hidden */
.icon-sun  { opacity: 1; transform: scale(1) rotate(0deg); }
.icon-moon { opacity: 0; transform: scale(0.4) rotate(90deg); }
/* Light mode: moon visible, sun hidden */
[data-theme="light"] .icon-sun  { opacity: 0; transform: scale(0.4) rotate(-90deg); }
[data-theme="light"] .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: 0.5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: 0.3s; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* ── Hero top (title area) ── */
.hero-top {
    flex-shrink: 0;
    padding-top: calc(var(--nav-h) + 2.5rem);
    padding-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-top-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}
.eyebrow-line {
    width: 36px; height: 1px;
    background: var(--gold);
    opacity: 0.5;
}
.eyebrow-text {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-title {
    font-family: var(--serif);
    display: flex;
    align-items: baseline;
    gap: 0.45em;
    line-height: 1;
}
.t1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 400;
    color: var(--cream-60);
}
.t2 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 600;
    font-style: italic;
    color: var(--gold);
    position: relative;
}
/* Subtle shimmer underline on title */
.t2::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

/* ── Hero body (2-col grid) ── */
.hero-body {
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 2;
}

.hero-body-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem 1.5rem;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 3rem;
    align-items: center;
}

/* ── Quotes column ── */
.quotes-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.carousel { position: relative; }

.quote-slide { display: none; }
.quote-slide.active {
    display: block;
    animation: fadeSlideIn 0.5s cubic-bezier(0,0,0.2,1) both;
}

.quote-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 2rem 2.25rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

/* Gold left bar */
.quote-card::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    border-radius: 2px;
}

/* Subtle inner glow on hover */
.quote-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--gold-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.quote-card:hover {
    border-color: rgba(201,164,98,0.45);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 40px rgba(201,164,98,0.1);
    transform: translateY(-3px);
}
.quote-card:hover::after { opacity: 1; }

.qmark {
    font-family: var(--serif);
    font-size: 5.5rem;
    line-height: 0.45;
    color: var(--gold);
    opacity: 0.2;
    display: block;
    margin-bottom: 0.6rem;
}

.quote-body { margin-bottom: 1.5rem; }
.quote-body p {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--cream-60);
    font-style: italic;
    margin-bottom: 0.6rem;
}
.quote-body p:first-child { color: var(--cream); font-style: normal; font-size: 1.1rem; }

.quote-footer {
    border-top: 1px solid var(--gold-border);
    padding-top: 1.1rem;
}

.shaykh-badge { display: flex; align-items: center; gap: 0.85rem; }

.shaykh-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--arabic);
    font-size: 1.2rem;
    color: var(--gold);
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.quote-card:hover .shaykh-avatar { background: var(--gold); color: var(--bg); border-color: var(--gold); }

.shaykh-name  { display: block; font-size: 0.88rem; font-weight: 600; color: var(--gold-lt); margin-bottom: 0.1rem; }
.shaykh-source { display: block; font-size: 0.73rem; color: var(--cream-35); font-style: italic; }

/* ── Carousel controls ── */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.ctrl-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    flex-shrink: 0;
}
.ctrl-btn svg { width: 15px; height: 15px; }
.ctrl-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); transform: scale(1.1); }
.ctrl-btn:active { transform: scale(0.94); }

.dots { display: flex; gap: 0.5rem; align-items: center; }
.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: none;
    border: 1.5px solid var(--gold-border);
    cursor: pointer;
    transition: all 0.35s var(--bounce);
    padding: 0;
}
.dot.active { background: var(--gold); border-color: var(--gold); width: 22px; border-radius: 4px; animation: goldPulse 2.5s ease-in-out infinite; }
.dot:hover:not(.active) { border-color: var(--gold); background: var(--gold-dim); }

/* ── Video column ── */
.video-col { display: flex; align-items: center; }

.video-card {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--gold-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,164,98,0.05);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 100px rgba(0,0,0,0.65), 0 0 60px rgba(201,164,98,0.12), 0 0 0 1px rgba(201,164,98,0.18);
    border-color: rgba(201,164,98,0.4);
}

.video-label {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--cream-35);
    border-bottom: 1px solid var(--gold-border);
}
.video-label-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: goldPulse 2.5s ease-in-out infinite;
}

.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }

.video-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(2px);
    transition: opacity 0.35s, backdrop-filter 0.35s;
}
.video-overlay.hidden { opacity: 0; pointer-events: none; backdrop-filter: blur(0px); }

.play-btn {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--bg);
    transition: all 0.3s var(--bounce);
    box-shadow: 0 8px 32px rgba(201,164,98,0.55);
}
.play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.play-btn:hover { transform: scale(1.12); background: var(--gold-lt); box-shadow: 0 16px 50px rgba(201,164,98,0.7); }

.video-controls-bar {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 1.25rem;
    background: var(--bg-2);
}
.vc-btn {
    width: 28px; height: 28px;
    border: none; background: none;
    color: var(--cream-60);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 5px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.vc-btn svg { width: 15px; height: 15px; }
.vc-btn:hover { color: var(--gold); background: var(--gold-dim); }

.vc-progress-wrap { flex: 1; display: flex; align-items: center; }
.vc-progress-bar {
    width: 100%; height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    position: relative; cursor: pointer;
}
.vc-progress-bar:hover .vc-progress-thumb { opacity: 1; }
.vc-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gold), var(--gold-lt));
    border-radius: 3px; width: 0%;
    pointer-events: none;
}
.vc-progress-thumb {
    position: absolute; top: 50%; right: 0;
    transform: translate(50%, -50%);
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--gold-lt); opacity: 0;
    transition: opacity 0.2s; pointer-events: none;
    box-shadow: 0 0 6px rgba(201,164,98,0.6);
}
.vc-time {
    font-size: 0.7rem; color: var(--cream-35);
    font-variant-numeric: tabular-nums;
    white-space: nowrap; flex-shrink: 0;
}

/* ── Scroll indicator ── */
.scroll-indicator-wrapper {
    position: absolute;
    bottom: 1.75rem; left: 50%;
    transform: translateX(-50%);
    z-index: 10; pointer-events: none;
    animation: chevronBounce 2.4s ease-in-out infinite;
}
.scroll-chevron {
    width: 22px; height: 22px;
    color: var(--gold); opacity: 0.55;
    display: block;
}
@media (max-width: 768px) { .scroll-indicator-wrapper { display: none; } }

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* ── Watermark ── */
.about-watermark {
    position: absolute;
    font-family: var(--arabic);
    font-size: min(45vw, 520px);
    color: rgba(201, 164, 98, 0.55);
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ── Diagonal gold rule across screen ── */
.about-rule {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 50%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--gold-border) 25%,
        var(--gold-border) 75%,
        transparent 100%
    );
    transform: translateY(-50%) rotate(-8deg);
    transform-origin: center;
    pointer-events: none;
    z-index: 1;
}

/* ── Hadith — top left ── */
.about-hadith {
    position: absolute;
    top: clamp(4rem, 8vh, 7rem);
    left: clamp(1.5rem, 5vw, 5rem);
    max-width: min(600px, 55vw);
    z-index: 2;
}

.hadith-quotemark {
    font-family: var(--serif);
    font-size: clamp(5rem, 12vw, 11rem);
    line-height: 0.5;
    color: var(--gold);
    opacity: 0.18;
    display: block;
    margin-bottom: 0.8rem;
    user-select: none;
}

.hadith-text {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 500;
    color: var(--cream);
    line-height: 1.45;
    margin-bottom: 1.5rem;
}

.hadith-source { display: flex; align-items: center; gap: 0.85rem; }
.hadith-source-line { flex-shrink: 0; width: 28px; height: 1px; background: var(--gold); opacity: 0.6; }
.hadith-source-label { font-size: 0.82rem; color: var(--gold); font-style: italic; letter-spacing: 0.04em; opacity: 0.8; }

/* ── Hadith — top right ── */
.about-hadith-right {
    top: clamp(4rem, 8vh, 7rem);
    left: auto;
    right: clamp(1.5rem, 5vw, 5rem);
    text-align: right;
}

.about-hadith-right .hadith-quotemark {
    text-align: right;
}

.about-hadith-right .hadith-source {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* ── Paragraph — bottom right ── */
.about-para {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(560px, 75vw);
    text-align: center;
    z-index: 2;
}

.about-para-rule {
    width: 28px; height: 1.5px;
    background: var(--gold);
    margin: 0 auto 1.1rem;
    opacity: 0.6;
    position: relative;
    overflow: hidden;
}
/* Shimmer on rule */
.about-para-rule::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmerLine 2.5s ease-in-out infinite 1s;
}

.about-para p {
    font-family: var(--serif);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 2;
    color: var(--cream-60);
    font-style: italic;
    margin-bottom: 2rem;
}

.about-cta {
    display: flex;
    justify-content: center;
}

/* ── Library CTA Buttons ── */
.lib-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2.2rem;
    border-radius: 14px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bg);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 55%, var(--gold) 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    box-shadow: 0 6px 28px rgba(201,164,98,0.35),
                0 0 0 1px rgba(201,164,98,0.1),
                inset 0 1px 0 rgba(255,255,255,0.15);
    animation: fadeSlideIn 0.8s cubic-bezier(0,0,0.2,1) both;
}

.lib-cta-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s var(--ease);
}

.lib-cta-btn:hover {
    background-position: 100% 0%;
    box-shadow: 0 12px 40px rgba(201,164,98,0.5),
                0 0 0 1px rgba(201,164,98,0.25),
                inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.lib-cta-btn:hover::before {
    left: 140%;
}

.lib-cta-btn:active {
    transform: translateY(0) scale(0.98);
}

.lib-cta-btn svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.lib-cta-btn:hover svg {
    transform: translateX(4px);
}

/* Hero section button */
.hero-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    padding: 0 2rem;
    animation: fadeSlideIn 0.8s cubic-bezier(0,0,0.2,1) 0.6s both;
}

/* About section button */
.about-cta {
    margin-top: 2rem;
    animation: fadeSlideIn 0.8s cubic-bezier(0,0,0.2,1) 0.5s both;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .hero-section { height: auto; min-height: 100vh; overflow-y: auto; }
    .hero-body { flex: none; }
    .hero-body-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 4rem; }
    .quotes-col { order: -1; }
    .video-card { max-width: 600px; margin: 0 auto; }
}

/* ── Mobile nav drawer ── */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--gold-border);
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.25rem;
    z-index: 999;
    animation: revealUp 0.3s cubic-bezier(0,0,0.2,1) both;
}
.nav-links.mobile-open .nav-link {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gold-border);
}
.nav-links.mobile-open .nav-link:last-child { border-bottom: none; }

/* Hamburger → X animation */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-links, .nav-search-btn { display: none; }
    .hamburger { display: flex; margin-left: auto; }

    .hero-top { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 1rem; }
    .hero-top-inner, .hero-body-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero-title { flex-direction: column; gap: 0; }
    .t1 { font-size: 2rem; }
    .t2 { font-size: 2.6rem; }

    .about-section {
        height: auto;
        min-height: 100vh;
        padding: 5rem 0 2rem;
        display: flex;
        flex-direction: column;
    }

    .about-hadith {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 0 1.25rem 3rem;
        max-width: none;
    }
    .about-hadith-right {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 0 1.25rem 3rem;
        text-align: left;
    }
    .about-hadith-right .hadith-source {
        flex-direction: row;
    }
    .hadith-text { font-size: 1.5rem; }

    .about-para {
        position: relative;
        bottom: auto;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 0 1.25rem 2.5rem;
        max-width: none;
        text-align: center;
    }
    .about-para-rule { margin-left: auto; margin-right: auto; }
    .about-watermark { font-size: 65vw; }
    .about-rule { display: none; }

    .lib-cta-btn {
        font-size: 0.78rem;
        padding: 0.85rem 1.8rem;
    }
    .hero-cta {
        margin-top: 2rem;
        padding: 0 1.25rem;
    }
    .about-cta {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quote-card { padding: 1.5rem 1.5rem 1.25rem; }
    .quote-body p { font-size: 0.95rem; }
    .t2 { font-size: 2.2rem; }
}
