/* Custom styles for El Taco Spot */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Body */
body {
    overflow-x: hidden;
}

/* Navbar scroll state */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(61, 139, 61, 0.08);
}

/* Hero blob animations */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 25px) scale(1.08); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -20px); }
}

.blob-1 { animation: float-slow 12s ease-in-out infinite; }
.blob-2 { animation: float-medium 9s ease-in-out infinite; }
.blob-3 { animation: float-fast 7s ease-in-out infinite; }

/* Floating shapes */
@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.floating {
    animation: float-shape 5s ease-in-out infinite;
}

/* Hero entrance animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

#hero h1 {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

#hero p {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

#hero .flex-col {
    animation: fadeUp 0.8s ease-out 0.8s both;
}

/* CTA section blobs */
.cta-blob {
    animation: float-slow 15s ease-in-out infinite;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
.mobile-link {
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.mobile-link:hover {
    border-bottom-color: rgba(61, 139, 61, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
    background: #97c797;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #66a866;
}

/* Selection color */
::selection {
    background-color: rgba(61, 139, 61, 0.2);
    color: #1d461d;
}

/* Image lazy load fade-in */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

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

/* Reduce motion for accessibility */
@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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    html {
        scroll-padding-top: 90px;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    html {
        scroll-padding-top: 100px;
    }
}
