/* Custom styles for Yard 65 Brewery */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #064e3b;
}
::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.1);
}

.navbar-scrolled .font-heading,
.navbar-scrolled .text-emerald-900 {
    color: #064e3b !important;
}

.navbar-scrolled a:not(.bg-emerald-700):not(.bg-emerald-400) {
    color: #374151 !important;
}

.navbar-scrolled .mobile-link {
    color: #064e3b !important;
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Beer card hover glow */
.group:hover .bg-emerald-800\/50 {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

/* Image hover zoom container */
.rounded-2xl.overflow-hidden {
    position: relative;
}

.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.1), transparent);
    border-radius: inherit;
    pointer-events: none;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Selection color */
::selection {
    background: #10b981;
    color: #fefdf8;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #navbar, #backToTop, #contactForm {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
