*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', system-ui, sans-serif; color: #374151; background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── NAV ─────────────────────────────────────── */
.nav-scrolled { position: sticky; top: 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.nav-scrolled.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); box-shadow: 0 1px 12px rgba(0,0,0,.08); }

/* mobile hamburger animation */
#mobile-toggle[aria-expanded="true"] #bar1 { transform: translateY(5px) rotate(45deg); }
#mobile-toggle[aria-expanded="true"] #bar2 { opacity: 0; }
#mobile-toggle[aria-expanded="true"] #bar3 { transform: translateY(-5px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────── */
.hero-section {
    background: linear-gradient(145deg, #1f2937 0%, #2d3748 50%, #1f2937 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(232,96,74,.18) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(232,96,74,.10) 0%, transparent 50%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none;
}

/* floating stat cards subtle drift */
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
.absolute.-bottom-6.-left-5 { animation: floatA 4s ease-in-out infinite; }
.absolute.-top-4.-right-4  { animation: floatB 5s ease-in-out infinite; }

/* ── STATS ───────────────────────────────────── */
.stats-section {
    background: #fff;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    padding: 3rem 0;
}
.stat-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    border: 1px solid #f3f4f6;
    transition: transform .3s, box-shadow .3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }

/* ── SERVICES ────────────────────────────────── */
.services-section { background: #fafbfc; }
.service-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
    border: 1px solid #f3f4f6;
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }

/* ── ABOUT ───────────────────────────────────── */
.about-section { background: #fff; }

/* ── PATIENT INFO ────────────────────────────── */
.patients-section { background: #f3f4f6; }
.info-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
    border: 1px solid #e5e7eb;
    transition: transform .3s, box-shadow .3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

/* ── CTA ─────────────────────────────────────── */
.cta-section {
    background: linear-gradient(145deg, #1f2937 0%, #2d3748 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(232,96,74,.25) 0%, transparent 65%);
    pointer-events: none;
}

/* ── CONTACT ─────────────────────────────────── */
.contact-section { background: #fff; }

/* ── REVEAL (progressive enhancement) ────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Non-JS default: hidden state overridden by JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 767px) {
    .hero-section { padding-bottom: 4rem; }
    .hero-section h1 { font-size: 2.2rem; }
    .stats-section { margin-top: -20px; padding: 2rem 0; }
    .stat-card { padding: 1.25rem .75rem; }
    .stat-num { font-size: 2rem !important; }
    .absolute.-bottom-6.-left-5,
    .absolute.-top-4.-right-4 { display: none; }
}
