/* ============================================
   Dr. Shawl Cardiology — Premium Dark Luxury
   ============================================ */

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #110f0e; }
::-webkit-scrollbar-thumb { background: #3d3932; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #565045; }

/* --- Gold shimmer line animation --- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201,165,114,0), transparent);
    transition: background 0.4s ease;
}
.service-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(201,165,114,0.5), transparent);
}

/* --- Info Cards --- */
.info-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201,165,114,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Navbar transition --- */
#nav.scrolled {
    background: rgba(17,15,14,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(61,57,50,0.5);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* --- Mobile menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* --- Pulse animation for floating badge --- */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.pulse-dot {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* --- Smooth image loading --- */
img {
    image-rendering: auto;
}

/* --- Focus styles --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid rgba(201,165,114,0.6);
    outline-offset: 2px;
    border-radius: 4px;
}
