/* Custom styles for Angry Elk Brewing Company */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #3d6e34;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #30572a;
}

/* Selection color */
::selection {
    background: #3d6e34;
    color: #faf9f6;
}

/* Hero parallax feel */
#hero {
    scroll-snap-align: start;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(61, 110, 52, 0.1);
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Subtle breathing animation for stat cards */
@keyframes breathe {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-6px) scale(1.01); }
}

/* Apply float to floating cards */
.absolute.-top-6.-left-8,
.absolute.-bottom-4.-right-6 {
    animation: breathe 4s ease-in-out infinite;
}

.absolute.top-1/2.-right-12 {
    animation: breathe 5s ease-in-out infinite 0.5s;
}

/* Beer card hover glow */
.group:hover .bg-cream-100 {
    box-shadow: 0 20px 60px -15px rgba(31, 57, 28, 0.2);
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #3d6e34;
    box-shadow: 0 0 0 3px rgba(61, 110, 52, 0.15);
}

/* 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;
    }
}

/* Print styles */
@media print {
    #navbar, .reveal-on-scroll {
        display: block !important;
        opacity: 1 !important;
    }
}
