/* Custom styles for Three Rangers Brewing Company */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base state — content is VISIBLE by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal active state — applied by JS only */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion — disable animations entirely */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* Hero text styling */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Beer card hover effects */
#beers .group:hover {
    transform: translateY(-4px);
}

#beers .group {
    transition: transform 0.4s ease, background-color 0.4s ease;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #d1fae5;
}

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #065f46;
    color: #fefdf8;
}

/* Subtle gradient on the hero section */
#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(2, 44, 34, 0.4), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Star rating animation */
.star {
    transition: transform 0.2s ease;
}

/* Form input transitions */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Map container */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
