/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

/* Ensure all text meets WCAG AA contrast */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F7F0F8;
}
::-webkit-scrollbar-thumb {
    background: #D9BDD9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A55DBD;
}

/* Selection color */
::selection {
    background: #D9BDD9;
    color: #2F1732;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #582A5C;
    outline-offset: 2px;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(88, 42, 92, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Service card hover effect */
.group:hover .group-hover\\:bg-white\\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Button micro-interactions */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Form input focus ring */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(88, 42, 92, 0.1);
}

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.05);
}
