/* Custom styles for The New VIP Auto Sales */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar active state */
.nav-link.active {
    background-color: rgb(225 245 232);
    color: rgb(20 110 58);
}

/* Mobile menu link hover */
.mobile-link:hover {
    background-color: rgb(225 245 232);
}

/* Form focus ring */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(93, 191, 128, 0.2);
}

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

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

/* Ensure content is visible without JS */
.no-js .reveal,
:root:not(.js) .reveal {
    opacity: 1;
    transform: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgb(254 253 248);
}
::-webkit-scrollbar-thumb {
    background: rgb(195 234 206);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(149 214 170);
}

/* Selection color */
::selection {
    background-color: rgb(195 234 206);
    color: rgb(20 110 58);
}
