/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Scroll Reveal ─── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Navigation ─── */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background: rgba(253, 252, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08), 0 4px 24px rgba(45, 90, 61, 0.06);
}

.nav-link { position: relative; }

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    position: relative;
}
.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6aaa7a;
    transition: width 0.3s ease;
}
.mobile-nav-link:hover::after {
    width: 100%;
}

/* ─── Hero ─── */
.hero-bg {
    background:
        url('https://images.pexels.com/photos/25070489/pexels-photo-25070489.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080')
        center center / cover no-repeat;
    filter: brightness(0.7);
}

.hero-overlay {
    background:
        linear-gradient(180deg,
            rgba(29, 58, 40, 0.55) 0%,
            rgba(37, 71, 49, 0.45) 40%,
            rgba(29, 58, 40, 0.70) 100%);
}

.hero-badge {
    animation: heroFadeDown 0.8s 0.2s both;
}

.hero-badge svg {
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #6aaa7a;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    animation: heroFadeUp 0.9s 0.3s both;
}

.hero p {
    animation: heroFadeUp 0.9s 0.5s both;
}

.hero .flex {
    animation: heroFadeUp 0.9s 0.65s both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ─── Bubbles ─── */
.hero-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-bubbles span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.06);
}

.b1 { width: 18px; height: 18px; bottom: 25%; left: 8%; animation: bubbleFloat 7s ease-in-out infinite; }
.b2 { width: 10px; height: 10px; bottom: 30%; left: 10%; animation: bubbleFloat 5s ease-in-out infinite 1s; }
.b3 { width: 14px; height: 14px; bottom: 20%; left: 9%; animation: bubbleFloat 6s ease-in-out infinite 2s; }
.b4 { width: 8px; height: 8px; bottom: 35%; left: 11%; animation: bubbleFloat 4s ease-in-out infinite 0.5s; }
.b5 { width: 12px; height: 12px; bottom: 28%; left: 7%; animation: bubbleFloat 5.5s ease-in-out infinite 1.5s; }

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-32px) scale(1.15); opacity: 1; }
}

/* ─── Scroll Indicator ─── */
.hero-scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: scrollBounce 2.5s ease-in-out infinite;
    transition: border-color 0.3s;
}
.hero-scroll-indicator:hover {
    border-color: rgba(255,255,255,0.5);
}
@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ─── Beer Cards ─── */
.beer-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.beer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(45, 90, 61, 0.12);
}

/* ─── Buttons ─── */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }

/* ─── Section Divider ─── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 90, 61, 0.15), transparent);
}

/* ─── Focus Styles ─── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #6aaa7a;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── Responsive Tweaks ─── */
@media (max-width: 767px) {
    .hero h1 { font-size: 2.75rem; }
    .hero p { font-size: 1.05rem; }
}

@media (min-width: 768px) {
    .hero h1 { font-size: 4rem; }
}

@media (min-width: 1024px) {
    .hero h1 { font-size: 5rem; }
}

@media (min-width: 1280px) {
    .hero h1 { font-size: 5.5rem; }
}
