/* Quality Ride Auto Sales — Custom Styles */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF9;
}
::-webkit-scrollbar-thumb {
    background: #d4a0aa;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9f1a3e;
}

/* Selection */
::selection {
    background: #fce7eb;
    color: #5a1f2b;
}

/* Navigation active state */
.nav-link.active {
    color: #7B2D3B;
}

/* Vehicle card hover lift */
.vehicle-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.vehicle-card:hover {
    transform: translateY(-4px);
}

/* Feature card hover */
.feature-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Scroll reveal animations — progressive enhancement */
/* Content is visible by default; JS adds the animated state */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Mobile menu animation */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger animation */
#menuBtn.active #bar1 {
    transform: translateY(3px) rotate(45deg);
}
#menuBtn.active #bar2 {
    opacity: 0;
}
#menuBtn.active #bar3 {
    transform: translateY(-3px) rotate(-45deg);
}

/* Smooth focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, #contactForm, .feature-card, .vehicle-card, .testimonial-card {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
