/* ─── Custom Styles for Jacobsen-Kitchens ─── */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ─── Floating Stat Cards ─── */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.5s; }
.card-3 { animation-delay: 3s; }
.card-4 { animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS is disabled or prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ─── Navbar Scroll State ─── */
#navbar.scrolled {
    background: rgba(250, 244, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(107, 58, 110, 0.08);
}

/* ─── Mobile Menu Transition ─── */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Focus Styles ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F5C518;
    outline-offset: 2px;
}

/* ─── Selection ─── */
::selection {
    background: #e8cdd9;
    color: #2e1830;
}
