/* Custom styles for Castillo's Truck & Trailer Wash */

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

/* Service card image reveal */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card img {
    transition: opacity 0.5s ease;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(10, 15, 26, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Ensure content is visible without JS */
@supports not (animation: reveal 0.8s ease) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #b82d2d;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d44040;
    outline-offset: 2px;
}

/* Button hover lift effect */
button, a {
    transition: all 0.2s ease;
}

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