/* 
 * Custom Styles for Best damn Taco Truck
 * Complementary to Tailwind CSS
 */

:root {
    --color-brand-teal: #0F4C5C;
    --color-brand-slate: #2F3E4F;
    --color-brand-accent: #E85D04;
    --color-brand-sand: #F4F1EA;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-brand-cream);
    color: var(--color-brand-slate);
}

/* 
 * Animation Utilities
 * These are progressive enhancement - content is visible by default, 
 * JS adds the animated classes for the reveal effect.
 */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

/* 
 * Mobile Menu Transitions
 */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

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

::-webkit-scrollbar-track {
    background: var(--color-brand-sand);
}

::-webkit-scrollbar-thumb {
    background: var(--color-brand-teal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-slate);
}

/* 
 * Focus states for accessibility
 */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-brand-accent);
    outline-offset: 4px;
}

/* 
 * Pattern Background for SVG
 */
.pattern-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f4c5c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 
 * Reduced Motion
 */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    .reveal-on-scroll.is-hidden {
        opacity: 1;
        transform: translateY(0);
    }
    html {
        scroll-behavior: auto;
    }
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
    }
}
