/* Custom overrides and enhancements */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b7b8d;
}

/* Selection color already set in HTML head */

/* Print styles */
@media print {
    nav, #contact-form, #form-success, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .gradient-hero {
        background: #1a2530 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

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

/* Subtle pattern overlay for sections */
.bg-mint-50 {
    background-color: #f4fbf8;
}

/* Button ripple-like effect on hover */
button[type="submit"]:hover {
    transform: translateY(-1px);
}
button[type="submit"]:active {
    transform: translateY(0);
}

/* Ensure select dropdown styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7b8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Reduce motion preference support for navbar */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .card-hover {
        transition: none;
    }
    .card-hover:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(26, 37, 48, 0.1);
    }
}
