/* Custom styles that complement Tailwind */

/* Smooth focus outlines for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #4a7a4a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #96be96;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6a9c6a;
}

/* Selection color */
::selection {
    background-color: #c5dbC5;
    color: #1a2b1a;
}

/* Subtle text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ensure hero text is readable on gradient */
.hero-gradient h1,
.hero-gradient p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Ensure all interactive elements have clear focus */
button, a, input, textarea, select {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Form focus ring */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 122, 74, 0.15);
}

/* Print styles */
@media print {
    nav, #contact-form, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .hero-gradient {
        background: #2f4f2f !important;
        color: #fff !important;
    }
}
