/* Custom styles that complement Tailwind */

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

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

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

::-webkit-scrollbar-thumb {
    background: #6b9673;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4d7a56;
}

/* Selection color */
::selection {
    background-color: #243d2b;
    color: #F9F8F5;
}

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

/* Print styles */
@media print {
    nav, button, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .heading-xl, .heading-lg, .heading-md {
        color: #000;
    }
}

/* Reduced motion preference */
@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 support */
@media (forced-colors: active) {
    .btn {
        border: 2px solid ButtonText;
    }
}

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

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

input:valid:not(:placeholder-shown) {
    border-bottom-color: #243d2b;
}

/* Loading state for buttons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Subtle hover effects for cards */
.group:hover .group-hover\:bg-forest-100 {
    background-color: #d1dccf;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
