/* ========================================
   Longbranch Saloon — Custom Styles
   ======================================== */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #C0623A;
    color: #FDFCF8;
}

/* Navbar */
.navbar-scrolled #navbar {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(42, 18, 8, 0.06);
}

.navbar-scrolled .nav-text {
    color: #4A1F0F;
}

.navbar-scrolled .nav-link {
    color: #6E2F18;
}

.navbar-scrolled .nav-link:hover {
    color: #C0623A;
}

.navbar-transparent .nav-text {
    color: #FDFCF8;
}

.navbar-transparent .nav-link {
    color: #EBC9B0;
}

.navbar-transparent .nav-link:hover {
    color: #F5E6DC;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-tag {
    animation: heroFadeUp 0.8s ease-out 0.2s both;
}

.hero-tag span:first-child {
    animation: heroFadeIn 0.6s ease-out 0.1s both;
}

#hero h1 {
    animation: heroFadeUp 0.8s ease-out 0.4s both;
}

#hero p {
    animation: heroFadeUp 0.8s ease-out 0.55s both;
}

#hero .flex.flex-wrap {
    animation: heroFadeUp 0.8s ease-out 0.7s both;
}

#hero .mt-16 {
    animation: heroFadeUp 0.8s ease-out 0.85s both;
}

#hero .relative.rounded-2xl {
    animation: slideInRight 1s ease-out 0.5s both;
}

/* Scroll Reveal Animations */
.scroll-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);
}

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

/* Reduced motion preference */
@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;
        transform: none;
    }
}

/* Drink Cards */
.drink-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s ease,
                border-color 0.5s ease;
}

.drink-card:hover {
    box-shadow: 0 20px 60px rgba(42, 18, 8, 0.2);
}

/* Image hover effects */
.rounded-2xl.overflow-hidden,
.rounded-xl.overflow-hidden {
    overflow: hidden;
}

.rounded-2xl.overflow-hidden img,
.rounded-xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.rounded-2xl.overflow-hidden:hover img,
.rounded-xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Mobile Menu */
.mobile-menu-open {
    overflow: hidden;
}

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

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.active .mobile-nav-link {
    animation: heroFadeUp 0.5s ease-out forwards;
}

#mobile-menu.active .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-nav-link:nth-child(3) { animation-delay: 0.3s; }
#mobile-menu.active .mobile-nav-link:nth-child(4) { animation-delay: 0.4s; }
#mobile-menu.active .mobile-nav-link:nth-child(5) { animation-delay: 0.5s; }

/* Hamburger Animation */
.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
    margin-right: 0;
}

/* Story Section Tags */
.story-tag {
    animation: heroFadeUp 0.6s ease-out both;
}

/* Food Section */
.food-tag {
    animation: heroFadeUp 0.6s ease-out both;
}

/* Visit Section */
.visit-tag {
    animation: heroFadeUp 0.6s ease-out both;
}

/* Decorative line animations */
@keyframes lineExpand {
    from { width: 0; opacity: 0; }
    to { width: 3rem; opacity: 1; }
}

/* Smooth focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C0623A;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #FAF7F0;
}

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

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

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #contact-form, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
