/* Custom styles for Tractor Lift Brewing */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
    background: #2A2A2A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A962;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

nav.scrolled .menu-line {
    background: #fff;
}

/* Hero text animation - only for below-fold content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Beer card hover glow */
.beer-card:hover {
    box-shadow: 0 20px 60px rgba(114, 47, 55, 0.15), 0 0 0 1px rgba(201, 169, 98, 0.2);
}

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

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .beer-card {
        transition: none;
    }
    .beer-card img {
        transition: none;
    }
    .beer-card:hover img {
        transform: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A962;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(114, 47, 55, 0.6);
    color: #F4C2C2;
}
