/* Custom styles for California Auto Gallery */

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

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

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

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

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

/* Animation utilities */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(128, 0, 32, 0.1);
}

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