/* Custom styles for F&C Family Farm */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf7f0;
}
::-webkit-scrollbar-thumb {
    background: #a1c087;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #78a059;
}

/* Selection color */
::selection {
    background: #2f4b22;
    color: #fdfcfa;
}

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

/* Base transitions for nav */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 252, 250, 0.97);
    box-shadow: 0 1px 20px rgba(47, 75, 34, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Nav text color transition */
#navbar:not(.scrolled) #nav-text,
#navbar:not(.scrolled) #nav-text-2,
#navbar:not(.scrolled) #nav-text-3,
#navbar:not(.scrolled) #nav-text-4 {
    color: #fdfcfa;
}

#navbar.scrolled #nav-text,
#navbar.scrolled #nav-text-2,
#navbar.scrolled #nav-text-3,
#navbar.scrolled #nav-text-4 {
    color: #2f4b22;
}

#navbar:not(.scrolled) .nav-link::after {
    background: #fdfcfa;
}

#navbar.scrolled .nav-link::after {
    background: #2f4b22;
}

/* Hamburger animation */
#hamburger line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

#mobile-toggle.active #hamburger line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
#mobile-toggle.active #hamburger line:nth-child(2) {
    opacity: 0;
}
#mobile-toggle.active #hamburger line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile menu background */
#mobile-menu {
    background: rgba(253, 252, 250, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#mobile-menu .mobile-link {
    color: #2f4b22;
    transition: color 0.2s ease;
}

#mobile-menu .mobile-link:hover {
    color: #55803a;
}

/* Print styles */
@media print {
    nav, .hero-bg, #contact-form, iframe {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        color: #000;
    }
}

/* 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 !important;
        transform: none !important;
    }
    .stat-card {
        animation: none !important;
    }
}
