/* Custom styles for Canelo's Tacos */

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

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

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

::-webkit-scrollbar-thumb {
    background: #f3bca3;
    border-radius: 5px;
}

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

/* Navigation active state */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(212, 84, 42, 0.1);
}

/* Mobile menu animation */
#mobileMenu.open {
    max-height: 400px;
}

#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
    margin-left: 0;
}

/* Image hover effects */
.aspect-square img,
.aspect-[4/5] img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #f3bca3;
    box-shadow: 0 0 0 3px rgba(243, 188, 163, 0.3);
}

/* Button hover lift effect */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
