/* Custom styles for Taquitos 2 Carnales */

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

/* Base font setup */
body {
    font-family: 'Instrument Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Serif font for headings */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Navbar scroll behavior */
#navbar.scrolled {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(22, 163, 74, 0.1);
}

/* Mobile menu animations */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

#mobile-menu.hidden {
    animation: slideUp 0.2s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #16a34a;
    transition: width 0.3s ease;
}

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

/* Menu card image container */
.menu-card-img {
    will-change: transform;
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hero decorative elements */
.hero-gradient {
    background: linear-gradient(135deg, #052e16 0%, #14532d 25%, #166534 50%, #15803d 75%, #16a34a 100%);
}

/* Cream background utility */
.cream-bg {
    background-color: #fdfcfa;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #86efac;
}

/* Selection color */
::selection {
    background-color: #bbf7d0;
    color: #052e16;
}

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

/* Map filter for dark theme */
.dark-map {
    filter: invert(1) hue-rotate(180deg) saturate(0.5) brightness(0.8);
}

/* Line decoration animation */
.line-decoration {
    transition: width 0.5s ease;
}

/* Subtle hover lift for cards */
.menu-card {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .fade-in {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-gradient {
        background: #166534 !important;
        color: #fff !important;
    }
}
