/* Custom Styles for Herrera's Mexican & Sea Food */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    /* Fallback if Tailwind fails */
    background-color: #1a0d12;
    color: #F3E5AB;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 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; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Reveal Utility */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Transition */
#navbar.scrolled {
    background-color: rgba(26, 13, 18, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Gold Accent Utilities */
.text-amber-gold {
    color: #D4AF37;
}

.bg-amber-gold {
    background-color: #D4AF37;
}

.border-amber-gold {
    border-color: #D4AF37;
}

.hover\:text-amber-gold:hover {
    color: #D4AF37;
}

.hover\:bg-amber-gold:hover {
    background-color: #D4AF37;
}

.hover\:border-amber-gold:hover {
    border-color: #D4AF37;
}

/* Image Aspect Ratios */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

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

#mobile-menu.opacity-0 {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#mobile-menu.opacity-100 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Focus Styles for Accessibility */
button:focus, a:focus, input:focus, textarea:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

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