/* ═══════════════════════════════════════════
   Old Hangtown Beer Works — Custom Styles
   Premium Dark Luxury · Emerald + Cream
   ═══════════════════════════════════════════ */

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

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

body {
    background-color: #050c0a;
    color: #fdf9ed;
}

::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fefdf8;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050c0a;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* ── Navbar ── */
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(253, 249, 237, 0.6);
    letter-spacing: 0.025em;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: rgba(253, 249, 237, 0.95);
}

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

/* ── Gold Button ── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: linear-gradient(135deg, #d4a843 0%, #c4923a 50%, #a06e2e 100%);
    color: #050c0a;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    color: #050c0a;
}

/* ── Outline Button ── */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: transparent;
    color: rgba(253, 249, 237, 0.8);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: rgba(212, 168, 67, 0.6);
    color: #fdf9ed;
    background: rgba(212, 168, 67, 0.05);
    transform: translateY(-2px);
}

/* ── Floating Stat Cards ── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.5s; }
.card-3 { animation-delay: -3s; }
.card-4 { animation-delay: -4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ── Reveal Animations ── */
.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[data-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile Menu ── */
.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(253, 249, 237, 0.7);
    border-bottom: 1px solid rgba(212, 168, 67, 0.08);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #d4a843;
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
    background: rgba(5, 12, 10, 0.9);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(212, 168, 67, 0.08);
}

/* ── Back to Top ── */
#back-to-top {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .floating-card {
        display: none;
    }

    #hero {
        min-height: 100vh;
    }

    .font-display {
        line-height: 1.1;
    }
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Image placeholder fallback ── */
img {
    max-width: 100%;
    height: auto;
}
