/* Custom styles for Patients Primary Care */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #080f14;
}

::-webkit-scrollbar-thumb {
    background: #15232b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #f5f2eb;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(8, 15, 20, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 0 60px -20px rgba(13, 148, 136, 0.15);
}

.service-card:hover .w-14 {
    box-shadow: 0 0 20px -5px rgba(13, 148, 136, 0.4);
}

/* Gold accent card hover */
.group:hover .bg-gradient-to-br.from-brand-gold\/20 {
    box-shadow: 0 0 20px -5px rgba(212, 160, 23, 0.4);
}

/* Input autofill styling for dark theme */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0c1920 inset !important;
    -webkit-text-fill-color: #f5f2eb !important;
    caret-color: #f5f2eb !important;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

/* Reduced motion */
@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;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: rgba(13, 148, 136, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Image lazy loading fade */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Map filter override for light mode */
@media (prefers-color-scheme: light) {
    iframe[src*="google.com/maps/embed"] {
        filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1) !important;
    }
}
