/**
 * animations.css - Animations, Transitions & Lightbox
 *
 * CSS-driven scroll reveal states (GSAP applies classes),
 * lightbox/modal overlay for review photos, and all
 * @keyframes definitions.
 *
 * @package LibrandiOutdoorPower
 * @since 1.1.0
 */


/* ==========================================================
   Scroll Reveal
   GSAP adds .is-visible when elements enter the viewport.
   The initial hidden state is CSS-only so there is no flash
   of unstyled content if JS fails to load.
   ========================================================== */
.js-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out),
                transform 0.7s var(--ease-out);
}
.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger-ready variants */
.js-reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s var(--ease-out),
                transform 0.7s var(--ease-out);
}
.js-reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.js-reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s var(--ease-out),
                transform 0.7s var(--ease-out);
}
.js-reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.js-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s var(--ease-out),
                transform 0.7s var(--ease-out);
}
.js-reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}


/* ==========================================================
   Lightbox / Modal Overlay
   Used by the testimonial photo viewer and future gallery.
   ========================================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-slow) var(--ease),
                visibility var(--duration-slow) var(--ease);
    cursor: zoom-out;
}
.lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transform: scale(0.92);
    transition: transform var(--duration-slow) var(--ease-spring);
}
.lightbox-overlay.is-active img {
    transform: scale(1);
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: var(--color-white);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: background var(--duration) var(--ease);
}
.lightbox-close:hover {
    background: rgba(255,255,255,.2);
}


/* ==========================================================
   Keyframes
   ========================================================== */

/* Mobile nav slide-down */
@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gentle float for decorative elements (future use) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Pulse for attention (used on seasonal badge, future) */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}
