/* Elwood's Liquor & Tap — Custom Styles */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #fff;
}

/* Smooth focus for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Image lazy loading fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img[data-src].loaded {
    opacity: 1;
}

/* Prevent layout shift on hero */
.hero-bg {
    will-change: background-position;
}

/* Navbar transition */
#navbar {
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Counter animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Feature card image container */
.feature-card .aspect-\[16\/10\] {
    position: relative;
    overflow: hidden;
}

.feature-card .aspect-\[16\/10\]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

/* Gold divider animation on hover */
.feature-card:hover .w-12 {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* Mobile menu link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.mobile-link:hover {
    background: rgba(255, 107, 74, 0.1);
}

/* Map filter override for light mode restoration */
iframe[style*="invert"] {
    border-radius: 0 0 1rem 1rem;
}

/* Reduced motion for all transitions */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-bg {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    nav, #back-to-top, .reveal {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero-bg {
        display: none;
    }
}
