/* Custom styles for WB Automotive LLC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #d9aeb8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c07e8e;
}

/* Selection color */
::selection {
    background: #ffd45c;
    color: #2a1218;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #ffd45c;
    outline-offset: 2px;
}

/* Subtle hover lift for cards */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Prevent content flash on load for reveal elements when JS is available */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
}

/* Nav backdrop blur fallback */
@supports not (backdrop-filter: blur(12px)) {
    nav.bg-white\/90 {
        background: rgba(255, 255, 255, 0.98);
    }
}
