/* Custom styles for Autentica Comida Oaxaquena */

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

/* Selection color */
::selection {
    background-color: rgba(56, 161, 114, 0.3);
    color: #d0dce8;
}

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

::-webkit-scrollbar-track {
    background: #0a0f1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #38a172;
}

/* Hero image parallax feel */
#hero {
    background-attachment: fixed;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 161, 114, 0.1);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 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; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu toggle animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .group img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

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

/* Subtle hover glow on cards */
.group:hover {
    box-shadow: 0 0 60px rgba(56, 161, 114, 0.08);
}

/* Gallery image hover */
.col-span-2 img,
.col-span-2 row-span-2 img {
    transition: transform 0.7s ease;
}

/* Fade-in for scroll sections (progressive enhancement) */
.fade-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .fade-section {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .fade-section.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
