/* Custom Styles for Taqueria Las Cazuelas */

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

/* Base font styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* At rest, elements are visible (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero parallax-like effect on scroll */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(61, 10, 10, 0.4) 100%);
    pointer-events: none;
}

/* Menu card hover effects */
.bg-white:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #821d1d;
}

/* Selection color */
::selection {
    background: #fce7e7;
    color: #6b1a1a;
}

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

/* Mobile menu button animation */
#mobile-menu-btn svg {
    transition: transform 0.3s ease;
}

#mobile-menu-btn.active svg {
    transform: rotate(90deg);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(130, 29, 29, 0.08);
}

/* Decorative divider animation */
.w-24.h-px {
    transition: width 0.6s ease;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Gallery grid responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-2 .col-span-2 {
        grid-column: span 2;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .scroll-reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
