/* Custom styles for Medina's Auto Sales */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2efe9;
}
::-webkit-scrollbar-thumb {
    background: #9cc188;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #72a257;
}

/* Selection color */
::selection {
    background: #72a257;
    color: #0f1b0a;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}
#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

/* Hamburger animation */
#mobile-menu-btn.active #menu-open {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active #menu-mid {
    opacity: 0;
}
#mobile-menu-btn.active #menu-close {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #72a257;
    outline-offset: 2px;
    border-radius: 4px;
}
