/* Custom styles for Certified Lawn & Power */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2f7f0;
}
::-webkit-scrollbar-thumb {
    background: #9cc096;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #71a06e;
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(45, 79, 49, 0.12);
}

/* Brand card hover effect */
.brand-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px -8px rgba(45, 79, 49, 0.12);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in {
        opacity: 1;
        transform: none;
    }
    .service-card,
    .brand-card {
        transition: none;
    }
}

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

/* Apply float to specific cards on desktop */
@media (min-width: 1024px) {
    #hero .col-span-2:first-child {
        animation: float 6s ease-in-out infinite;
    }
    #hero .rounded-3xl:nth-child(2) {
        animation: float 5s ease-in-out infinite 0.5s;
    }
    #hero .rounded-3xl:nth-child(3) {
        animation: float 7s ease-in-out infinite 1s;
    }
    #hero .rounded-3xl:nth-child(4) {
        animation: float 5.5s ease-in-out infinite 1.5s;
    }
    #hero .rounded-3xl:nth-child(5) {
        animation: float 6.5s ease-in-out infinite 0.8s;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(252, 253, 249, 0.95) !important;
    box-shadow: 0 1px 3px rgba(45, 79, 49, 0.08);
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #e3eddf 0%, #f2f7f0 100%);
}
