/* ============================================
   OLD 31 TAVERN — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

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

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

/* ---------- Navbar Transition ---------- */
#navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled #nav-logo-text,
#navbar.scrolled .font-serif.text-2xl {
    color: #fefcf8;
}

#navbar.scrolled #nav-logo-sub,
#navbar.scrolled .font-sans.text-\\[10px\\] {
    color: #f8c3c9;
}

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

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

/* ---------- Menu Item Hover ---------- */
#menu ul li {
    transition: padding-left 0.2s ease;
}

#menu ul li:hover {
    padding-left: 8px;
}

/* ---------- Button Focus ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f1959f;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Selection ---------- */
::selection {
    background: #9c2530;
    color: #fefcf8;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9c2530;
}

/* ---------- Subtle image shimmer ---------- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---------- Print ---------- */
@media print {
    #navbar, #mobile-menu, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
