/* ============================================
   Bar - Hingetown | Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(199, 68, 32, 0.2);
    color: inherit;
}

/* --- Hero Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-sub {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-eyebrow,
    .hero-title,
    .hero-sub,
    .hero-ctas {
        opacity: 1;
        animation: none;
    }
    
    img {
        transition: none;
    }
}

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(253, 248, 240, 0.08);
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* --- Menu Hover Effects --- */
#drinks .space-y-6 > div:hover {
    border-color: rgba(253, 248, 240, 0.25);
    transition: border-color 0.3s ease;
}

#drinks .space-y-6 > div:hover .font-medium {
    color: #f5e4a8;
    transition: color 0.3s ease;
}

/* --- Contact Form --- */
#contactForm input:focus,
#contactForm textarea:focus {
    background: rgba(253, 248, 240, 0.08);
}

/* --- Image Hover --- */
#vibe img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Button Focus --- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(245, 228, 168, 0.6);
    outline-offset: 2px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2C1810;
}
::-webkit-scrollbar-thumb {
    background: #a8331a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c74420;
}
