/* Custom styles for Taqueria el Fogon y mas */

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

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

/* Selection color */
::selection {
    background-color: rgba(74, 158, 130, 0.3);
    color: #e8f5f0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1117;
}
::-webkit-scrollbar-thumb {
    background: #2c3645;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a9e82;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Media query for animation gating */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(74, 158, 130, 0.15);
}

/* Menu card hover effects */
.menu-card {
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.menu-card:hover {
    box-shadow: 0 8px 40px rgba(74, 158, 130, 0.08);
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4a9e82;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image aspect ratios */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Hero text shadow for readability */
.hero-title {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(rgba(74, 158, 130, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}
