/* Custom styles for Boom Island Brewing Company */

/* Base styles */
html {
    scroll-padding-top: 80px;
}

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

/* Gold shimmer animation for hero text */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-gold-gradient {
    background: linear-gradient(90deg, #e8c97a, #f5d98a, #c9952e, #d4a84b, #e8c97a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Scroll reveal - progressive enhancement, hidden by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Only enable animations when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .js-enabled .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .js-enabled .reveal-delay-1 { transition-delay: 0.1s; }
    .js-enabled .reveal-delay-2 { transition-delay: 0.2s; }
    .js-enabled .reveal-delay-3 { transition-delay: 0.3s; }
    .js-enabled .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(4, 7, 4, 0.95) !important;
    border-bottom-color: rgba(74, 128, 74, 0.2) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080d08;
}
::-webkit-scrollbar-thumb {
    background: #1f3a1f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #284a28;
}

/* Selection color */
::selection {
    background: rgba(201, 149, 46, 0.3);
    color: #faf8f4;
}

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

/* Smooth transitions for all interactive elements */
a, button {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Print styles */
@media print {
    .grain::after { display: none; }
    body { background: white; color: black; }
    nav { display: none; }
}
