/* Custom styles for Texas Avenue Tavern */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Smooth nav transition */
#navbar.scrolled {
    background: rgba(26, 28, 35, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Nav link active state */
.nav-link.active {
    color: #E07A5F !important;
    background: rgba(224, 122, 95, 0.1) !important;
}

/* Scroll reveal base - content is always visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animate {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.animate.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #3D405B;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(224, 122, 95, 0.3);
    color: #fff;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

/* Subtle hover glow on coral elements */
.bg-coral-500:hover {
    box-shadow: 0 0 40px rgba(224, 122, 95, 0.4);
}

/* 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;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
    
    #hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}
