/* Custom styles for Mustard Seed Farm */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #091016;
}
::-webkit-scrollbar-thumb {
    background: #1a343e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #264a57;
}

/* Selection color */
::selection {
    background: #4a9a72;
    color: #f0f4f8;
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.5s ease, background 0.5s ease;
}

#navbar.scrolled {
    backdrop-filter: blur(12px);
    background: rgba(9, 16, 22, 0.85);
}

/* Service card hover effects */
.service-card {
    transition: background-color 0.5s ease, transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(74, 154, 114, 0.2);
}

/* Testimonial quote marks */
blockquote::before,
blockquote::after {
    content: none;
}

/* Scroll reveal base styles (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card {
        transition: background-color 0.2s ease;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Hero decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Asymmetric card float */
.lg:block .absolute.-bottom-6.-left-6 {
    animation: float 6s ease-in-out infinite;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-midnight-950,
    .bg-midnight-900 {
        background: white !important;
    }
    
    .text-white,
    .text-midnight-100,
    .text-midnight-200 {
        color: black !important;
    }
}
