/* Custom styles for Junction Auto & Truck Sales */

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

/* Navbar transition */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Vehicle cards */
.vehicle-card {
    position: relative;
    overflow: hidden;
}

/* Selection color */
::selection {
    background: #c5dfc9;
    color: #1B4332;
}

/* Subtle scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #c5dfc9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #98c49e;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .vehicle-card img {
        transition: none;
    }
    
    .vehicle-card:hover img {
        transform: none;
    }
}

/* Scroll reveal animations (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);
    }
}

/* Print styles */
@media print {
    #navbar,
    .vehicle-card,
    iframe {
        display: none;
    }
}
