/* Custom styles for Kids First Pediatrics */

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

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

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

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

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(253, 244, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(107, 29, 54, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

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

#mobile-menu-btn.active #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active #line2 {
    opacity: 0;
}

#mobile-menu-btn.active #line3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Service card hover effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(107, 29, 54, 0.1);
}

/* Fade in animation for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    img {
        transition: none;
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(253, 214, 138, 0.3);
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .service-card {
        display: none;
    }
}
