/* Nature Theme CSS for Dires Lawn Service */

/* Custom animations and transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Service cards hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gallery item hover effects */
.gallery-item {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* FAQ animations */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(45deg);
}

/* Button hover effects */
button, .btn {
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Form focus effects */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
}

/* Cookie consent banner */
.cookie-consent-banner {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2d5016;
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .text-4xl {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-sage-green {
        color: #2d5016 !important;
    }
    
    .bg-sage-green\/10 {
        background-color: #f0f0f0 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for accessibility */
.focus\:ring-2:focus-visible {
    outline: 2px solid #4a7c59;
    outline-offset: 2px;
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.gradient-text {
    background: linear-gradient(135deg, #2d5016, #4a7c59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service detail cards */
.service-detail {
    position: relative;
    overflow: hidden;
}

.service-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2d5016, #4a7c59, #87a96b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-detail:hover::before {
    opacity: 1;
}

/* Team member cards */
.team-member {
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

/* Testimonial cards */
.testimonial {
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #87a96b;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Contact form enhancements */
.form-group {
    position: relative;
}

.form-label {
    transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-25px) scale(0.9);
    color: #4a7c59;
}

/* Hero section enhancements */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Navigation enhancements */
.nav-link {
    position: relative;
    overflow: hidden;
}

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

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

/* Footer enhancements */
.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    transform: translateX(5px);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #4a7c59;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success states */
.success {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
}

.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2d5016;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}