/* Custom styles for Anzalone Dental */

/* Scroll-triggered animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .testimonial-card {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .service-card.revealed,
    .testimonial-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card:nth-child(2).revealed,
    .testimonial-card:nth-child(2).revealed { transition-delay: 0.1s; }
    .service-card:nth-child(3).revealed,
    .testimonial-card:nth-child(3).revealed { transition-delay: 0.2s; }
    .service-card:nth-child(4).revealed { transition-delay: 0.15s; }
    .service-card:nth-child(5).revealed { transition-delay: 0.2s; }
    .service-card:nth-child(6).revealed { transition-delay: 0.25s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Subtle hover lift on cards */
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    }
    .service-card.revealed:hover {
        transform: translateY(-4px);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}
