/* Custom styles for Dr. Blair Tull Medical Practice */

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

/* Navigation scroll behavior */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(20, 32, 48, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: box-shadow 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2ab078;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { transition-delay: 0.25s; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

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

/* Selection color */
::selection {
    background: #bdf0d8;
    color: #0c131b;
}
