/* ===== Custom Styles for Westfield Pediatrics ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff9fb;
}
::-webkit-scrollbar-thumb {
    background: #f4a8b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec6e8e;
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(161, 19, 55, 0) 0%, rgba(161, 19, 55, 0) 100%);
    transition: background 0.5s ease;
    pointer-events: none;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(110, 17, 44, 0.08);
}

/* Mobile menu animations */
.menu-line {
    display: block;
}

/* Active link styling */
a.active {
    color: #a11337;
    position: relative;
}

a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #a11337;
    border-radius: 1px;
}

/* Subtle entrance animations for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a11337;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
