/* Custom styles for SSS Farms */

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.2s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #a8a8a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #737373;
}

/* Selection color */
::selection {
    background: #e8551f;
    color: #ffffff;
}

/* Header scroll state */
.header-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.header-scrolled #site-header a.text-charcoal-900 {
    color: #171717 !important;
}

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

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

/* Floating stat cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* Subtle parallax on hero image */
#hero img {
    will-change: transform;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #e8551f;
    outline-offset: 2px;
}

/* Button hover lift effect */
button:hover, a:hover {
    transform: translateY(-1px);
}
button:active, a:active {
    transform: translateY(0);
}

/* Image hover zoom without overflow */
.rounded-2xl.overflow-hidden img,
.rounded-xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

/* Reduced motion preferences */
@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;
    }
    .rounded-2xl.overflow-hidden img,
    .rounded-xl.overflow-hidden img {
        transition: none;
    }
}

/* Print styles */
@media print {
    header, footer, #back-to-top, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .bg-charcoal-900, .bg-charcoal-950 {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}
