/* Custom styles for Dr. Michelle Gallagher Medical Practice */

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

/* Service card border animation */
.service-card {
    border: 1px solid transparent;
}

/* Navbar transition */
nav {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

nav.scrolled {
    background-color: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(139, 47, 47, 0.06);
}

nav.scrolled .menu-line {
    background-color: #1f2937;
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 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);
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #d97a7a !important;
    box-shadow: 0 0 0 3px rgba(217, 122, 122, 0.15) !important;
}

/* Selection color */
::selection {
    background-color: rgba(139, 47, 47, 0.15);
    color: #3a1010;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #e6a5a5;
}
