/* Custom styles and overrides */
html {
    scroll-behavior: smooth;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3d7a52;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #3d7a52;
    outline-offset: 2px;
}

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

/* Image lazy loading placeholder */
img {
    background: linear-gradient(90deg, #f0f4eb 0%, #e8f0e4 50%, #f0f4eb 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[lazy="loaded"] {
    animation: none;
    background: none;
}

/* Print styles */
@media print {
    nav, .btn-primary, .btn-outline {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #2d5a3d;
    }
    
    .stat-card {
        border: 2px solid #2d5a3d;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .relative.group:hover .group-hover\\:scale-110 {
        transform: none;
    }
}
