/* Custom styles for Just In Time Farm */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background-color: rgba(192, 96, 58, 0.25);
    color: #572b1c;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #dfaa68;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* Subtle pulse animation for scroll indicator */
@keyframes pulse-down {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* Image loading placeholder */
img {
    background-color: #f5dbb8;
}

/* Reduce motion preference */
@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; }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal, .animate-bounce { display: none !important; }
    body { color: #000; background: #fff; }
    .bg-terra-500, section.bg-terra-500 { background: #C0603A !important; }
}
