/* ============================================
   LUXERIDE MOTORS — Custom Styles
   ============================================ */

/* --- Base & Smooth Scroll --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* --- Selection Color --- */
::selection {
    background-color: rgba(212, 168, 67, 0.3);
    color: #f5f0f7;
}

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

::-webkit-scrollbar-track {
    background: #1d0818;
}

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

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

/* --- Reveal Animations (Progressive Enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* --- Nav Active State --- */
.nav-link.active {
    color: #D4A843 !important;
}

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

/* --- Form Input Autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1d0818 inset !important;
    -webkit-text-fill-color: #f5f0f7 !important;
}

/* --- Mobile Menu Transition --- */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Image Loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Print Styles --- */
@media print {
    header, footer, #contact-form, .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .reveal {
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
