/* ============================================
   Thom's Tavern — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0d0a08;
    color: #d1ccc5;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #110e0a;
}
::-webkit-scrollbar-thumb {
    background: #3a3530;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6e655e;
}

/* --- Selection --- */
::selection {
    background: rgba(212, 154, 46, 0.3);
    color: #f5f3f0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* --- Navbar --- */
.nav-link {
    position: relative;
}

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

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

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(13, 10, 8, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 154, 46, 0.1);
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    position: relative;
}

/* --- Scroll Indicator Animation --- */
@keyframes scrollIndicator {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 48px;
        opacity: 0;
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* --- Reveal Animations --- */
/* Base state: always visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Animated state — applied via JS only */
.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.animated {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}

/* --- Gold shimmer on buttons --- */
button, .cta-primary {
    position: relative;
    overflow: hidden;
}

button::before, .cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

button:hover::before, .cta-primary:hover::before {
    left: 100%;
}

/* --- Form inputs --- */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* --- Image hover effects --- */
img {
    display: block;
    max-width: 100%;
}

/* --- Focus visible for accessibility --- */
:focus-visible {
    outline: 2px solid #d49a2e;
    outline-offset: 2px;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* --- Subtle grain overlay (optional, for texture) --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 9999;
}
