/* Detroit Medical Center — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0f6;
}
::-webkit-scrollbar-thumb {
    background: #d4b8d6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ba8dbf;
}

/* Service card hover effects */
.service-card {
    will-change: transform;
}

/* Testimonial card subtle animation */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(107, 76, 110, 0.12);
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    .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; }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #6B4C6E;
    outline-offset: 2px;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(107, 76, 110, 0.1);
}

/* Counter animation */
.stat-number {
    display: inline-block;
}

/* Print styles */
@media print {
    nav, #contact, .cta-section, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
