/* Custom styles for Dr. Robert M. Od — Farmington Primary Care */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #a3b8cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7694b0;
}

/* Navbar active state */
.nav-link.active {
    color: #1e3a5f;
    background: #f0f4f8;
}

/* Mobile nav link */
.mobile-nav-link {
    border-radius: 0.75rem;
}

/* Service card hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card {
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Map styling */
iframe[src*="google.com/maps"] {
    filter: saturate(0.8) contrast(1.05);
}

/* Ensure navbar doesn't overlap content */
section[id] {
    scroll-margin-top: 80px;
}
