/* Custom styles for Katahdin Valley Health Center */

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

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 252, 250, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

/* Service card hover transitions */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #F5F0E8;
}

::-webkit-scrollbar-thumb {
    background: #8fb392;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a7a4f;
}

/* Selection color */
::selection {
    background: #2D5A3D;
    color: #F5F0E8;
}

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

/* Subtle pattern for decorative sections */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(45, 90, 61, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}
