/* ============================================
   STONEWALL BAR & LOUNGE — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 77, 46, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #388448;
    transition: width 0.25s ease;
    border-radius: 1px;
}

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

#navbar.scrolled .nav-link {
    color: #1a4d2e;
}

#navbar.scrolled .nav-link::after {
    background: #1a4d2e;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    translate: 0 0;
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    translate: 0 -100%;
    opacity: 0;
    pointer-events: none;
}

.menu-line:last-child {
    width: 1.25rem;
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(0.25rem, 0.25rem);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.125rem, -0.125rem);
    width: 1.25rem;
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link:active {
    color: #388448;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

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

.rounded-2xl.overflow-hidden img {
    display: block;
}

/* --- Form --- */
input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #a3ccaa;
}

/* --- Selection --- */
::selection {
    background: #a3ccaa;
    color: #0c2717;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #76b380;
}
