/* ============================================
   Top Out Taproom — Custom Styles
   Classic & Elegant | Forest Green + Off-White
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-forest-950: #0c1f17;
    --color-forest-900: #1B4332;
    --color-forest-800: #284e2c;
    --color-cream-50: #FDFCFA;
    --color-cream-100: #FAF7F0;
    --color-gold-400: #D4A373;
    --color-gold-500: #C4925A;
}

/* --- Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* --- Buttons --- */
.btn-gold {
    background: linear-gradient(135deg, #D4A373 0%, #C4925A 100%);
    color: #1B4332;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 163, 115, 0.4);
}

.btn-outline {
    border: 1.5px solid rgba(253, 252, 250, 0.3);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: rgba(212, 163, 115, 0.6);
    background: rgba(212, 163, 115, 0.08);
}

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

#navbar.scrolled {
    background: rgba(12, 31, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #D4A373;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

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

/* --- Hero Badge --- */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

/* --- Hero Headline --- */
#hero h1 {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

#hero p {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

#hero .flex.flex-col.sm\:flex-row {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

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

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Back to Top --- */
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:not(.visible) {
    transform: translateY(20px);
}

/* --- Selection --- */
::selection {
    background: rgba(212, 163, 115, 0.3);
    color: #1B4332;
}

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

::-webkit-scrollbar-track {
    background: #0c1f17;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #284e2c;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #D4A373;
    outline-offset: 2px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 br {
        display: none;
    }

    .font-serif.text-4xl {
        font-size: 2.25rem;
    }

    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}
