/* Base & Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F4;
}
::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Navbar Transition */
#navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

/* Nav Links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2DD4BF;
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Hero */
#hero {
    position: relative;
}

/* Produce Cards */
.produce-card {
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.produce-card:hover {
    transform: translateY(-4px);
}

/* Season Cards */
.season-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.season-card:hover {
    transform: translateY(-4px);
}

/* Scroll Reveal Animations */
/* Default: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Mobile Menu Animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobileMenu.open {
    max-height: 400px;
    padding: 0;
}

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

/* Button Ripple */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Selection */
::selection {
    background: #CCFBF1;
    color: #0A2540;
}

/* Focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #2DD4BF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form */
input, textarea {
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #2DD4BF;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print */
@media print {
    #navbar, #mobileMenu { display: none; }
    body { color: #000; background: #fff; }
}
