/* Custom styles for Green Roots Turf Care and Landscaping */

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

/* Custom animation for floating elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Scroll reveal animation - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-float {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 500px;
}

/* Navbar background transition */
#navbar.scrolled {
    background: rgba(253, 244, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(100, 42, 57, 0.1);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d97282;
    border-radius: 5px;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav, #contact, footer, .animate-float {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
