/* ===================================
   Taqueria La Sarita — Custom Styles
   =================================== */

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(13, 148, 136, 0.15);
    color: #134e4a;
}

/* --- Clip Path for Hero --- */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* --- Hero Animations --- */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-anim:nth-child(1) { transition-delay: 0.1s; }
.hero-anim:nth-child(2) { transition-delay: 0.2s; }
.hero-anim:nth-child(3) { transition-delay: 0.3s; }
.hero-anim:nth-child(4) { transition-delay: 0.4s; }

/* --- Navbar --- */
#navbar {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(13, 148, 136, 0.1);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 1;
}

/* --- Menu Categories --- */
.menu-category {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Gallery Items --- */
.gallery-item {
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item:nth-child(2) {
    aspect-ratio: auto;
}

/* --- Scroll Reveal (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);
    }
}

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

/* --- Smooth Image Loading --- */
img {
    background-color: #e2e8f0;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    .gallery-item,
    iframe {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
