/* Additional custom styles */

/* Ensure all text has proper contrast */
.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

/* Button hover effects */
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.3);
}

/* Smooth transitions */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #2e8b57;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .cta-button, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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

/* Reduced motion support */
@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 responsiveness */
@media (max-width: 768px) {
    .stat-card {
        position: relative;
        margin-top: 1rem;
        margin-left: 0;
    }
    
    #hero .stat-card:first-child {
        margin-left: 0;
        margin-bottom: 1rem;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .font-serif {
        font-size: 2.25rem;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Form validation styles */
input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown) {
    border-color: #2e8b57;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1d5434;
}

/* Selection color */
::selection {
    background-color: #2e8b57;
    color: white;
}
