/* Custom styles for Taco Burrito Mexico */

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

/* Custom selection color */
::selection {
    background-color: #FF6B50;
    color: #1E232C;
}

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

h1, h2, h3, h4, .font-fredoka {
    font-family: 'Fredoka', sans-serif;
}

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

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

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

::-webkit-scrollbar-track {
    background: #1E232C;
}

::-webkit-scrollbar-thumb {
    background: #FF6B50;
    border-radius: 5px;
}

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

/* Menu tab active state */
.menu-tab.active {
    background: linear-gradient(135deg, #FF6B50, #FF4F30) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 80, 0.3);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(30, 35, 44, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Prevent FOUC on page load */
@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;
    }
    
    .floating-card,
    .floating-card-delayed,
    .floating-card-slow {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, .floating-card, .blob, #hero .absolute {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
