/* Bradleyfarms — Custom Styles */

/* Base typography refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #4d804d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Header scroll state */
#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(15, 28, 15, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

#mobile-menu.hidden {
    animation: slideUp 0.2s ease-in forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f3;
}
::-webkit-scrollbar-thumb {
    background: #9cc49c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6fa06f;
}

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

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

/* Reduce motion for animations */
@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 {
    #site-header, #mobile-menu, .animate-bounce { display: none; }
    body { color: #1e331e; background: white; }
    a { color: #2d4a2d; }
}
