/* Custom styles for RedLine Automotive Care */

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Default state for reveal elements (visible without JS) */
.reveal {
    opacity: 1;
    transform: none;
}

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

/* Nav active state */
.nav-link.active {
    color: #e85a2f;
    background-color: #fdf0eb;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e8a845;
    border-radius: 5px;
}

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

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

/* Button press effect */
button:active, a:active {
    transform: translateY(0px) scale(0.98);
}

/* Selection color */
::selection {
    background-color: #f8c4b0;
    color: #7a271a;
}
