/* ============================================
   Tacos La Mexicana — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Navbar --- */
#navbar {
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

#navbar.scrolled {
    background: rgba(250, 250, 248, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .nav-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .nav-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 1.1rem;
}

/* --- Hero Animations --- */
.hero-tag {
    animation: slideUp 0.8s ease forwards;
}

.hero-title {
    animation: slideUp 0.8s ease 0.15s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    animation: slideUp 0.8s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: slideUp 0.8s ease 0.45s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta-alt {
    animation: slideUp 0.8s ease 0.55s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-image-wrapper {
    animation: fadeIn 1.2s ease 0.4s forwards;
    opacity: 0;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- Scroll Indicator --- */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* --- Scroll Reveal --- */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Menu Hover --- */
#menu section {
    transition: color 0.3s ease;
}

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

.gallery-img:hover {
    transform: scale(1.05);
}

/* --- Button Focus --- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #E8635B;
    outline-offset: 2px;
}

/* --- Selection --- */
::selection {
    background: rgba(232, 99, 91, 0.15);
    color: #1a1a1a;
}

/* --- 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;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .gallery-img {
        transform: none !important;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }

    #hero {
        padding-top: 80px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
    }
}
