/* Custom styles for Wichita Greenhouse */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent flash of hidden content - default state is visible */
/* JavaScript adds .revealed class for scroll animations */

/* Floating animations for hero decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 10s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 12s ease-in-out infinite;
}

/* Infinite scroll for photo strip */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Scroll reveal - progressive enhancement */
/* Default state: all elements are visible (no opacity:0) */
/* JS adds .revealed class for animation */

.reveal {
    /* Default: fully visible, no animation */
    opacity: 1;
    transform: none;
    transition: none;
}

/* When JS adds .revealed, enable animation */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Nav active state */
.nav-link.active {
    background-color: rgba(22, 101, 52, 0.08);
    color: #166534;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-scrolled .nav-link {
    color: #14532d !important;
}

.nav-scrolled .nav-link:hover {
    background-color: rgba(22, 101, 52, 0.08) !important;
    color: #166534 !important;
}

.nav-scrolled .font-serif {
    color: #14532d !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delay,
    .animate-float-slow,
    .animate-scroll {
        animation: none;
    }

    .reveal.revealed {
        transition: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf9f0;
}

::-webkit-scrollbar-thumb {
    background: #bbf7d0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #86efac;
}

/* Selection color */
::selection {
    background-color: #bbf7d0;
    color: #052e16;
}
