/* Custom styles for Neville Jim Pediatric Therapy */

/* Prevent FOUC on page load */
html { opacity: 1; }

/* Smooth image loading */
img { 
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Custom selection color */
::selection {
    background: #a61839;
    color: #fff;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle, rgba(166, 24, 57, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(166, 24, 57, 0.12);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-primary:active::after {
    width: 200px;
    height: 200px;
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(166, 24, 57, 0.1);
}

/* Testimonial card */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(166, 24, 57, 0.08);
    line-height: 1;
    pointer-events: none;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(166, 24, 57, 0.1);
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #contactForm button { display: none; }
    body { color: #000; background: #fff; }
    .bg-burgundy-950 { background: #3f0711 !important; color: #fff !important; }
}
