/* ============================================
   Food Plot Market — Custom Styles
   ============================================ */

/* Base & Resets */
*, *::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;
}

/* Selection */
::selection {
    background: rgba(13, 68, 62, 0.2);
    color: #0f443e;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #a1dbcb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6cc4b0;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #6cc4b0;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
}
.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #6cc4b0;
    margin: 4px auto 0;
    transition: width 0.3s ease;
}
.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
    width: 40px;
}

/* Scroll reveal base — content is VISIBLE by default */
.reveal {
    opacity: 1;
    transform: none;
    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);
}

/* Animation classes — applied by JS only */
@media (prefers-reduced-motion: no-preference) {
    .reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal.reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Staggered delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Header transparent state (on hero) */
#site-header.header-transparent {
    background: transparent;
}
#site-header.header-scrolled {
    background: rgba(5, 31, 28, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(208, 237, 228, 0.08);
}

/* Image hover effect */
img {
    max-width: 100%;
    height: auto;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #6cc4b0;
    outline-offset: 2px;
}

/* Form inputs */
input, textarea {
    font-family: 'Montserrat', system-ui, sans-serif;
}

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

/* Print styles */
@media print {
    #site-header, #back-to-top, #mobile-menu {
        display: none !important;
    }
    body {
        color: #1e293b;
        background: white;
    }
    .bg-teal-950, .bg-slate-50 {
        background: white !important;
    }
    .text-white, .text-teal-200 {
        color: #1e293b !important;
    }
}
