/* Mills River Brewery — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5fc;
}
::-webkit-scrollbar-thumb {
    background: #d9b2e0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c082cc;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #442447 0%, #6d3673 25%, #86458f 50%, #a05aad 75%, #572c5b 100%);
}

/* Floating bubbles */
.hero-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.12);
    animation: float-bubble linear infinite;
}

.bubble-1 {
    width: 80px;
    height: 80px;
    left: 10%;
    bottom: -80px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble-2 {
    width: 40px;
    height: 40px;
    left: 25%;
    bottom: -40px;
    animation-duration: 9s;
    animation-delay: 2s;
}

.bubble-3 {
    width: 60px;
    height: 60px;
    left: 50%;
    bottom: -60px;
    animation-duration: 14s;
    animation-delay: 1s;
}

.bubble-4 {
    width: 30px;
    height: 30px;
    left: 70%;
    bottom: -30px;
    animation-duration: 10s;
    animation-delay: 3s;
}

.bubble-5 {
    width: 50px;
    height: 50px;
    left: 85%;
    bottom: -50px;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

@keyframes float-bubble {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-110vh) scale(0.5);
        opacity: 0;
    }
}

/* Mobile menu */
.menu-line {
    display: block;
}

#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 5rem;
    margin-left: 0;
    margin-right: 0;
}

.mobile-link {
    transition: color 0.2s;
}

.mobile-link:hover {
    color: #f5a623;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(250, 245, 252, 0.95);
    backdrop-blur-md;
    box-shadow: 0 2px 20px rgba(68, 36, 71, 0.1);
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* These are progressive enhancement — content is visible by default */
@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-start {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left.hidden-start {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right.hidden-start {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Beer card hover */
.beer-card:hover .w-14 {
    transform: scale(1.1) rotate(-3deg);
}

.beer-card .w-14 {
    transition: transform 0.3s ease;
}

/* Event card hover */
.event-card:hover {
    border-color: #d9b2e0;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Subtle pattern overlay for sections */
.bg-plum-50::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(129, 69, 143, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

section {
    position: relative;
}
