/* Custom styles for Lopez Diesel Repair Inc */

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

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation for users who prefer motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal.revealed:nth-child(6) { transition-delay: 0.5s; }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(154, 34, 56, 0.08);
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Subtle hover effects on cards */
.group:hover .group-hover\:bg-burgundy-100 {
    background-color: rgb(244 154 170 / 0.5);
}

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

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

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

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

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #9a2238;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #f9c5cc;
    color: #6c1d32;
}
