/* Custom styles for Whitlock Brewing Co */

/* Base font loading */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

/* Prevent FOIT */
html { font-family: 'Inter', system-ui, sans-serif; }

/* Selection color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #fff;
}

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for all interactive elements */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ensure hero content is always visible */
#hero h1,
#hero p,
#hero a {
    opacity: 1 !important;
    transform: none !important;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Beer card shimmer effect */
.beer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.beer-card:hover::before {
    left: 100%;
}

.beer-card {
    position: relative;
    overflow: hidden;
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Reduced motion preferences */
@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;
    }
    
    .marquee-track {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-white/60,
    .text-white/70,
    .text-white/50,
    .text-white/40 {
        color: #fff;
    }
    
    .border-white/10 {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Print styles */
@media print {
    nav, .marquee-track, #mobile-menu-btn, .reveal {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .bg-midnight-900,
    .bg-midnight-800 {
        background: #fff !important;
    }
    
    .text-white,
    .text-white/70,
    .text-white/60 {
        color: #000 !important;
    }
    
    .text-mint-400 {
        color: #059669 !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 8rem 0;
    }
}
