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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* Focus states */
*:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #22c55e;
    color: white;
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Navbar shadow on scroll */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form input transitions */
input, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Service card hover effect */
#services .group {
    position: relative;
    overflow: hidden;
}

#services .group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #22c55e;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#services .group:hover::before {
    transform: scaleX(1);
}

/* Button press effect */
button:active {
    transform: scale(0.98);
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, #quote, .bg-green-600 {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

/* Testimonial card styling */
#testimonials .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonials .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section spacing */
section {
    position: relative;
}

/* Hero gradient fix */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-green-50 {
    --tw-gradient-from: #f0fdf4;
    --tw-gradient-to: rgb(240 253 244 / 0);
}

.to-white {
    --tw-gradient-to: #ffffff;
}

/* CTA section gradient */
.from-green-600 {
    --tw-gradient-from: #16a34a;
    --tw-gradient-to: rgb(22 163 74 / 0);
}

.to-green-700 {
    --tw-gradient-to: #15803d;
}
