/* Custom styles for Windswept Valley Farm */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: #d1fae5;
    color: #064e3b;
}

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

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

/* Nav link hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    padding-left: 12px;
    color: #059669;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.2s ease;
    border-radius: 1px;
}

.mobile-nav-link:hover::before {
    width: 6px;
}

/* Hero animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        animation: fadeInUp 0.6s ease-out both;
    }
    
    .hero-headline {
        animation: fadeInUp 0.6s ease-out 0.1s both;
    }
    
    .hero-subheadline {
        animation: fadeInUp 0.6s ease-out 0.2s both;
    }
    
    .hero-cta {
        animation: fadeInUp 0.6s ease-out 0.3s both;
    }
    
    .hero-trust {
        animation: fadeInUp 0.6s ease-out 0.4s both;
    }
    
    .hero-image {
        animation: floatIn 0.8s ease-out 0.3s both;
    }
    
    .hero-float-card {
        animation: floatCard 0.6s ease-out 0.6s both;
    }
    
    .hero-season-badge {
        animation: floatBadge 0.6s ease-out 0.7s both;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBadge {
    from {
        opacity: 0;
        transform: translateY(-10px) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

/* Scroll reveal animations (below the fold only) */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 50%, #faf3d6 100%);
}

/* Print styles */
@media print {
    nav, #contact, .reveal-on-scroll {
        display: none !important;
    }
    
    body {
        color: #064e3b;
        background: white;
    }
}
