/* ========================================
   AWUJO ENI ORISA — PREMIUM ENHANCEMENTS
   Layered on top of styles.css / page-styles.css.
   Does not redeclare tokens — reuses the
   existing --gold / --forest / --ease vars.
   ======================================== */

/* ---- Scroll progress bar ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    z-index: 100000;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.6);
}

/* ---- Custom cursor glow (fine-pointer devices only) ---- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.10) 0%, rgba(201, 168, 76, 0) 70%);
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: opacity 0.4s var(--ease);
    opacity: 0;
}
.cursor-glow.active { opacity: 1; }

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    pointer-events: none;
    z-index: 100001;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
    opacity: 0;
    mix-blend-mode: difference;
}
.cursor-dot.active { opacity: 0.9; }
.cursor-dot.hovering {
    width: 40px;
    height: 40px;
    background: rgba(201, 168, 76, 0.35);
}

@media (pointer: coarse), (hover: none) {
    .cursor-glow, .cursor-dot { display: none !important; }
}

/* ---- Button shine sweep ---- */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-out);
    z-index: 1;
    pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn > * { position: relative; z-index: 2; }

/* ---- Nav link underline draw ---- */
.nav-link {
    position: relative;
}
.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}
.has-dropdown .nav-link::before { bottom: -2px; }

/* ---- Elevated card hover (about images, gallery, cards, testimonials) ---- */
.about-img-main, .about-img-secondary,
.gallery-item, .event-card, .event-list-card,
.value-card, .team-card, .donation-card, .support-card,
.podcast-episode-card, .simes-card {
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.about-img-main:hover, .about-img-secondary:hover,
.gallery-item:hover,
.value-card:hover, .team-card:hover,
.donation-card:hover, .support-card:hover,
.podcast-episode-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* Image zoom-on-hover inside cards/galleries */
.gallery-item img, .about-img-placeholder img, .team-card img, .event-card img {
    transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }
.about-img-main:hover img, .about-img-secondary:hover img { transform: scale(1.05); }

/* ---- Stat / number pop on reveal ---- */
.hero-stat-value, .stat-value, .counter {
    display: inline-block;
}

/* ---- Refined reveal: staggered children (auto, no markup change needed) ---- */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.revealed > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.revealed > *:nth-child(n+7) { transition-delay: 0.46s; }

/* ---- Section dividers with drawn gold line ---- */
.section-label {
    position: relative;
}

/* ---- Skeleton shimmer for lazily-loading images ---- */
img[data-src] {
    background: linear-gradient(100deg, var(--cream-dark) 30%, var(--parchment) 50%, var(--cream-dark) 70%);
    background-size: 200% 100%;
    animation: premiumShimmer 1.6s ease-in-out infinite;
}
@keyframes premiumShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}.active {
    transform: scaleY(1);
    transform-origin: top;
}

/* ---- Focus states (accessibility, still premium) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Form field polish ---- */
.cta-form input,
.contact-form input,
.contact-form textarea,
.share-form input,
.share-form textarea {
    transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.25s var(--ease);
}
.cta-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.share-form input:focus,
.share-form textarea:focus {
    box-shadow: 0 0 0 4px var(--gold-dim);
}

/* ---- Back to top: smoother spring ---- */
.back-to-top {
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease);
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: var(--shadow-gold);
}

/* ---- Testimonial dots polish ---- */
.testimonial-dot {
    transition: transform 0.35s var(--ease-bounce), background 0.35s var(--ease), width 0.35s var(--ease);
}
.testimonial-dot.active { transform: scale(1.15); }

/* ---- Filter buttons (events page) polish ---- */
.filter-btn {
    transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
}
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn.active { box-shadow: var(--shadow-gold); }

/* ---- Progress bars (project progress) ---- */
.project-progress-fill {
    transition: width 1.4s var(--ease-out);
}

/* ---- Reduced motion: strip the new effects too ---- */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress,
    .cursor-glow,
    .cursor-dot { display: none !important; }

    .btn::after { display: none; }

    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .gallery-item:hover img,
    .about-img-main:hover img,
    .about-img-secondary:hover img {
        transform: none;
    }
}

/* ---- Small-screen refinements ---- */
@media (max-width: 480px) {
    .cursor-glow, .cursor-dot { display: none !important; }
    .scroll-progress { height: 2px; }
}

/* ---- Print: strip decorative chrome ---- */
@media print {
    .navbar, .back-to-top, .mobile-overlay, #preloader,
    .scroll-progress, .cursor-glow, .cursor-dot,
    .hero-particles { display: none !important; }
}

