/* Custom styles for Tacos Amlo */

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

/* Selection color */
::selection {
    background-color: rgba(223, 85, 42, 0.2);
    color: #3e110a;
}

/* Hero animations - only run with JS */
.hero-eyebrow {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtext {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.fade-up {
    transform: translateY(0);
}

.reveal.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Menu item hover */
.menu-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: padding-left 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    padding-left: 8px;
}

/* Gallery scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link,
.nav-scrolled .mobile-link {
    color: #3e2311;
}

.nav-scrolled #bar1,
.nav-scrolled #bar2,
.nav-scrolled #bar3 {
    background-color: #3e2311;
}

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

.mobile-menu-open #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow,
    .hero-headline,
    .hero-subtext,
    .hero-ctas {
        opacity: 1;
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .animate-scroll {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .menu-item:hover {
        padding-left: 0;
    }
}

/* Mobile menu links animation */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

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

/* Thin scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #e6c4b0;
    border-radius: 3px;
}

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