/* ============================================
   Menominee County Farm & Food Exchange
   Custom Styles — Bold Editorial Design
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdeee9;
}
::-webkit-scrollbar-thumb {
    background: #ce5757;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a2525;
}

/* Selection */
::selection {
    background: #7f1e1e;
    color: #fdeee9;
}

/* ============================================
   Navbar
   ============================================ */
.nav-link-color {
    color: #7f1e1e;
}

#navbar.scrolled .nav-link-color {
    color: #671818;
}

#navbar.scrolled {
    background: rgba(254, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(127, 30, 30, 0.08);
}

/* ============================================
   Hero scroll indicator
   ============================================ */
.scroll-line {
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, #ce5757);
    position: absolute;
    top: -40%;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -40%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ============================================
   Marquee
   ============================================ */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ============================================
   Scroll reveal (below-fold only)
   Progressive enhancement — content is visible by default
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    /* Default state is visible; JS adds 'revealed' class for animation */
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Mobile menu
   ============================================ */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(127, 30, 30, 0.08);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ============================================
   Image aspect ratios
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Form focus states
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        line-height: 1.05;
    }
}
