/* ─── Custom Styles for Bad Billy's Auto Works ─── */

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

/* ─── Reveal Animations ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

.reveal[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

.reveal[data-reveal-delay="4"] {
    transition-delay: 0.4s;
}

/* Hidden state for reduced motion or JS-gated reveal */
.reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Navbar ─── */
#navbar.scrolled {
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(120, 31, 46, 0.08);
}

/* ─── Mobile Menu ─── */
.mobile-link {
    opacity: 1;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF8F4;
}

::-webkit-scrollbar-thumb {
    background: #D4C8BC;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9C8B7D;
}

/* ─── Selection ─── */
::selection {
    background: #781F2E;
    color: #fff;
}

/* ─── Focus styles ─── */
:focus-visible {
    outline: 2px solid #781F2E;
    outline-offset: 2px;
}

/* ─── Button hover lift ─── */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Image aspect ratio fallback ─── */
img {
    max-width: 100%;
    height: auto;
}

/* ─── Print styles ─── */
@media print {
    #navbar, #mobileMenu, .reveal-hidden {
        display: none !important;
    }
    
    body {
        background: white;
        color: #333;
    }
}
