/* Custom styles for Estacion Mexico Bar & Grill */

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

/* Ensure all interactive elements are accessible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate when JS adds the class and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Start state is visible; JS doesn't need to reveal it */
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion - no animations at all */
@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 !important;
        transform: none !important;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(45, 21, 29, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(126, 61, 82, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2d151d 0%, #522a37 100%);
}

/* Subtle text shadow for legibility */
.font-serif {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2d151d;
}
::-webkit-scrollbar-thumb {
    background: #7e3d52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #984a62;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Form focus ring for non-Tailwind browsers */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5);
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #f9f5f7;
}
