/* Custom styles for Bare Bones Brewery */

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

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #0d1327;
    color: #f0f3f9;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1327;
}
::-webkit-scrollbar-thumb {
    background: #273969;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #415faa;
}

/* Selection */
::selection {
    background: #d49a0e;
    color: #0d1327;
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }

/* Scroll reveal - progressive enhancement with JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 19, 39, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(39, 57, 105, 0.3);
}

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

/* Mobile menu backdrop */
#mobileMenu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Image aspect ratio utilities */
.aspect-cover {
    object-fit: cover;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Geometric accent shapes */
.geo-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #d49a0e 0%, #f2cc5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover glow */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(212, 154, 14, 0.1);
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Hero image parallax-like effect on scroll */
.hero-image-shift {
    will-change: transform;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}

/* Map filter override for light mode consideration */
/* The invert filter on the iframe makes the map dark-themed to match the site */
