/* ============================================
   Mueller's Big Dipper — Custom Styles
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5DC;
}
::-webkit-scrollbar-thumb {
    background: #7bb87b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1B5E20;
}

/* ---- Selection ---- */
::selection {
    background: #1B5E20;
    color: #F5F5DC;
}

/* ---- Navigation ---- */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

.nav-scrolled .font-display,
.nav-scrolled a:not(.btn-primary):not(.btn-secondary) {
    color: #1B5E20 !important;
}

.nav-link {
    color: #1B5E20 !important;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-menu.hidden {
    animation: slideUp 0.25s ease forwards;
}

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

/* ---- Hero ---- */
.hero {
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

/* Hero entrance animations — only below-the-fold feel, but hero itself is visible on load */
.hero-badge {
    opacity: 1;
    animation: fadeSlideUp 0.7s ease 0.2s both;
}

.hero-headline {
    opacity: 1;
    animation: fadeSlideUp 0.7s ease 0.4s both;
}

.hero-subtext {
    opacity: 1;
    animation: fadeSlideUp 0.7s ease 0.6s both;
}

.hero-ctas {
    opacity: 1;
    animation: fadeSlideUp 0.7s ease 0.8s both;
}

.hero-scroll {
    opacity: 1;
    animation: fadeSlideUp 0.7s ease 1s both;
}

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

/* ---- Badge Chip ---- */
.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(27, 94, 32, 0.08);
    color: #1B5E20;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(27, 94, 32, 0.15);
}

.badge-chip-ch {
    background: rgba(245, 245, 220, 0.15);
    color: #7bb87b;
    border-color: rgba(245, 245, 220, 0.2);
}

/* ---- Buttons ---- */
.btn-primary {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* ---- Product Cards ---- */
.product-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 0.75rem;
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.06);
    border: 1px solid rgba(27, 94, 32, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(27, 94, 32, 0.12);
    transform: translateY(-4px);
}

/* ---- Feature Pills ---- */
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 245, 220, 0.12);
    color: #F5F5DC;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(245, 245, 220, 0.2);
}

/* ---- Card Glow ---- */
.card-glow {
    border: 1px solid rgba(27, 94, 32, 0.08);
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #7bb87b;
    outline-offset: 3px;
    border-radius: 0.5rem;
}

/* ---- Utility ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---- Mobile Menu Button Animation ---- */
.mobile-menu-btn.active #menuIcon line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active #menuIcon line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active #menuIcon line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
