/* ═══════════════════════════════════════════════
   NEEDLE OVER KNIFE — Global Styles
   ═══════════════════════════════════════════════ */

:root {
    /* Light mode (default) */
    --bg:          #f7f7f4;
    --bg-card:     #ffffff;
    --bg-card-alt: #f0eeea;
    --bg-elevated: #e8e6e1;
    --primary:     #1d6b43;
    --primary-l:   #228a55;
    --primary-d:   #155233;
    --accent:      #a8862e;
    --accent-l:    #c8a23a;
    --text:        #1a1a1a;
    --text-dim:    #4a4a46;
    --text-muted:  #8a8a84;
    --border:      #d8d6d0;
    --white:       #ffffff;
    --danger:      #c03030;
    --shadow:      0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg:   0 8px 48px rgba(0,0,0,0.12);
    --nav-bg:      rgba(247,247,244,0.92);
    --radius:      12px;
    --radius-sm:   8px;
    --radius-full: 50px;
    --transition:  0.25s ease;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display:'Playfair Display', Georgia, 'Times New Roman', serif;
    --max-w:       1200px;
    --nav-h:       72px;
}

/* Dark mode */
html.dark {
    --bg:          #070b09;
    --bg-card:     #0f1612;
    --bg-card-alt: #141c17;
    --bg-elevated: #1a2420;
    --primary:     #2a7d52;
    --primary-l:   #35a06a;
    --primary-d:   #1d5c3b;
    --accent:      #c8a45a;
    --accent-l:    #e0c47a;
    --text:        #e2e2de;
    --text-dim:    #a0a09a;
    --text-muted:  #6a6a64;
    --border:      #1e2a24;
    --white:       #ffffff;
    --danger:      #cc4444;
    --shadow:      0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg:   0 8px 48px rgba(0,0,0,0.5);
    --nav-bg:      rgba(7,11,9,0.92);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-l); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { color: var(--text-dim); }

.section-label {
    font-family: var(--font);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    line-height: 1.4;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-l); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,125,82,0.35); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--accent-l); color: var(--bg); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary-l); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: rgba(0,0,0,0.04); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(0,0,0,0.08); border-color: var(--primary); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ═══ NAVIGATION ═══ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
    height: var(--nav-h);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.5); }

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}
.nav-brand-icon { font-size: 1.4rem; }
.nav-brand-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}
.nav-brand-text .hl { color: var(--primary-l); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.nav-links .active { color: var(--primary-l); }
.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 0.45rem 1rem !important;
    margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--primary-l) !important; }

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 1rem;
    transition: all var(--transition);
    flex-shrink: 0;
    margin-left: 0.5rem;
    line-height: 1;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--accent); }

/* Light mode specific overrides */
/* ── Light mode defaults (no class needed — light is default) ── */

/* Elements that need white text on colored backgrounds */
.btn-primary { color: var(--white); }
.btn-accent { color: var(--white); }
.nav-cta { color: var(--white) !important; }
.whatsapp-float { color: var(--white); }
.step-number { color: var(--white); }
.comparison-table th { color: var(--white); }
.emergency-bar { color: var(--white); }
.emergency-bar a { color: var(--accent-l); }

/* Light mode shadows and backgrounds */
.navbar { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.hero-badge { color: var(--primary); background: rgba(29,107,67,0.1); border-color: rgba(29,107,67,0.2); }
.condition-card { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.condition-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.philosophy-card { background: var(--white); border-color: var(--border); box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.yt-banner { background: var(--white); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.video-card { background: var(--white); box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.toc { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

/* Footer — uses CSS variables, works in both modes automatically */

/* ── Dark mode overrides ── */
html.dark .navbar { box-shadow: none; }
html.dark .navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
html.dark .hero-badge { background: rgba(42,125,82,0.15); border-color: rgba(42,125,82,0.25); color: var(--primary-l); }
html.dark .hero::before { background: radial-gradient(circle, rgba(42,125,82,0.08) 0%, transparent 70%); }
html.dark .nav-links a:hover { background: rgba(255,255,255,0.05); }
html.dark .theme-toggle { background: rgba(255,255,255,0.06); }
html.dark .lang-toggle { background: rgba(255,255,255,0.06); }
html.dark .btn-ghost { background: rgba(255,255,255,0.06); }
html.dark .condition-card { box-shadow: none; }
html.dark .condition-card:hover { box-shadow: var(--shadow); }
html.dark .philosophy-card { background: var(--bg-elevated); box-shadow: none; }
html.dark .yt-banner { background: var(--bg-elevated); box-shadow: none; }
html.dark .video-card { background: var(--bg-card); box-shadow: none; }
html.dark .toc { box-shadow: none; }
html.dark .toc-toggle { background: var(--bg-elevated); }
html.dark .medanta-logo { filter: brightness(1.3) contrast(0.9); }
html.dark .hl { color: var(--primary-l) !important; }

/* Smooth theme transition */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px;
    margin-left: 0.8rem;
    flex-shrink: 0;
}
.lang-btn {
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-muted);
    transition: all var(--transition);
    letter-spacing: 0.03em;
}
.lang-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    font-size: 1.2rem;
    color: var(--text);
}

/* ═══ HERO ═══ */
.hero {
    padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(42,125,82,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(42,125,82,0.15);
    color: var(--primary-l);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(42,125,82,0.25);
}
.hero h1 { margin-bottom: 0.4rem; position: relative; }
.hero h1 .hl { color: var(--primary-l); }
.hero h1 .strike {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    text-decoration-thickness: 3px;
}
.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-dim);
    max-width: 620px;
    margin: 1rem auto 1.8rem;
    font-weight: 300;
    line-height: 1.7;
}
.hero-doctor {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.2rem;
}
.hero-credentials {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══ STATS BAR ═══ */
.stats-bar {
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat { text-align: center; }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
}
.medanta-logo {
    height: 40px;
    width: auto;
    filter: brightness(1.3) contrast(0.9);
    display: inline-block;
}

/* ═══ SECTIONS ═══ */
section { padding: 5rem 1.5rem; }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { font-weight: 300; }
.section-alt { background: var(--bg-card); }
.section-dark { background: var(--bg-card-alt); }

/* ═══ PHILOSOPHY ═══ */
.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.philosophy-content p {
    font-size: 1.1rem;
    line-height: 1.85;
    font-weight: 300;
}
.philosophy-content strong { color: var(--text); font-weight: 500; }
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.philosophy-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.philosophy-card .icon { font-size: 2rem; margin-bottom: 0.8rem; }
.philosophy-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.philosophy-card p { font-size: 0.85rem; }

/* ═══ CONDITIONS GRID ═══ */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}
.condition-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: all var(--transition);
    text-decoration: none;
    display: block;
}
.condition-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.condition-card .card-icon { font-size: 2.2rem; margin-bottom: 1rem; width: 48px; height: 48px; }
.condition-card .card-icon svg { width: 100%; height: 100%; }
.condition-card h3 { color: var(--text); margin-bottom: 0.5rem; }
.condition-card p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.8rem; }
.condition-card .card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--primary-l);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.condition-card .card-tag::after { content: '\2192'; }

/* ═══ HOW IT WORKS ═══ */
.steps {
    max-width: 950px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.step { text-align: center; padding: 1.5rem; }
.step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; }

/* ═══ ABOUT CARD ═══ */
.about-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
}
.about-profile {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}
.about-avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-l));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-display);
}
.about-avatar-img {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 20px rgba(42,125,82,0.3);
}
.about-profile h3 { margin-bottom: 0.2rem; }
.about-profile .role {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.about-quals {
    text-align: left;
    margin-top: 1.2rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.about-quals li {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 0.3rem 0 0.3rem 1.2rem;
    position: relative;
}
.about-quals li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-l);
    font-weight: 700;
    font-size: 0.75rem;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; line-height: 1.8; }
.about-training { margin-top: 1.2rem; }
.about-training li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.about-training .pin { color: var(--accent); font-size: 0.9rem; flex-shrink: 0; margin-top: 3px; }

/* ═══ TESTIMONIALS ═══ */
.testimonials-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 3px solid var(--primary);
}
.testimonial-card .quote {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-card .quote::before { content: '\201C'; color: var(--primary); font-size: 1.5rem; line-height: 0; vertical-align: -0.3em; margin-right: 0.2rem; }
.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.testimonial-condition {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ═══ VIDEO EMBEDS ═══ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.video-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.video-card .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-card .video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-card .video-info {
    padding: 1rem;
}
.video-card .video-info h4 {
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.3rem;
}
.video-card .video-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Condition page videos */
.condition-videos {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.condition-videos h2 {
    border-bottom: none !important;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* ═══ YOUTUBE SECTION ═══ */
.yt-banner {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
}
.yt-icon { font-size: 3rem; margin-bottom: 1rem; }
.yt-banner h3 { margin-bottom: 0.5rem; }
.yt-banner > p { max-width: 500px; margin: 0 auto 1.5rem; }
.yt-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
}
.yt-stat strong { display: block; font-size: 1.4rem; color: var(--accent); font-family: var(--font-display); }
.yt-stat span { font-size: 0.8rem; color: var(--text-muted); }

/* ═══ CONTACT ═══ */
.contact-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.contact-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.contact-item .icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.contact-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.contact-item p { font-size: 0.88rem; }
.contact-item a { color: var(--primary-l); }

.emergency-bar {
    max-width: 900px;
    margin: 2rem auto 0;
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    padding: 1.2rem 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--white);
    font-size: 0.95rem;
    flex-wrap: wrap;
    text-align: center;
}
.emergency-bar a { color: var(--accent-l); font-weight: 600; }

/* ═══ FLOATING TABLE OF CONTENTS ═══ */
.toc-wrapper {
    position: fixed;
    top: calc(var(--nav-h) + 1.5rem);
    left: 1rem;
    z-index: 100;
    max-width: 240px;
    max-height: calc(100vh - var(--nav-h) - 3rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.toc-toggle {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    text-align: left;
}
.toc-toggle:hover { border-color: var(--primary); color: var(--text); }
.toc-toggle::before { content: '\2630 '; }

.toc {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}
.toc-title {
    font-family: var(--font);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.toc-list {
    list-style: none;
}
.toc-list li {
    margin: 0;
}
.toc-list a {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: all var(--transition);
    line-height: 1.35;
}
.toc-list a:hover {
    color: var(--text);
    background: rgba(0,0,0,0.03);
    border-left-color: var(--border);
}
.toc-list a.active {
    color: var(--primary-l);
    border-left-color: var(--primary-l);
    background: rgba(42,125,82,0.08);
    font-weight: 500;
}

/* Shift condition content right to accommodate TOC */
.has-toc .condition-content {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Tablet: collapsible */
@media (max-width: 1100px) {
    .toc-wrapper {
        left: 0.5rem;
        max-width: 220px;
    }
    .toc-toggle { display: block; }
    .toc { display: none; margin-top: 0.4rem; }
    .toc.open { display: block; }
    .has-toc .condition-content {
        max-width: 900px;
    }
}

/* Mobile: bottom of hero, full width, collapsible */
@media (max-width: 768px) {
    .toc-wrapper {
        position: relative;
        top: auto;
        left: auto;
        max-width: 100%;
        margin: -1rem 1.5rem 1rem;
    }
    .toc-toggle { display: block; }
    .toc { display: none; }
    .toc.open { display: block; }
    .has-toc .condition-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ═══ CONDITION PAGE ═══ */
.condition-hero {
    padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.condition-hero .breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.condition-hero .breadcrumb a { color: var(--text-muted); }
.condition-hero .breadcrumb a:hover { color: var(--primary-l); }
.condition-hero h1 { margin-bottom: 0.6rem; }
.condition-hero .hero-desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    font-weight: 300;
}

.condition-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.condition-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.condition-content h2:first-child { margin-top: 0; }
.condition-content p { margin-bottom: 1rem; line-height: 1.8; }
.condition-content ul, .condition-content ol {
    margin: 1rem 0 1rem 1.5rem;
    list-style: disc;
}
.condition-content li {
    font-size: 0.95rem;
    color: var(--text-dim);
    padding: 0.3rem 0;
    line-height: 1.6;
}
.condition-content ol { list-style: decimal; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.comparison-table th {
    background: var(--primary-d);
    color: var(--white);
    padding: 0.8rem 1rem;
    text-align: left;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.comparison-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}
.comparison-table tr:hover td { background: rgba(42,125,82,0.05); }
.comparison-table .check { color: var(--primary-l); font-weight: 700; }
.comparison-table .cross { color: var(--danger); }

.condition-cta-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2.5rem;
}
.condition-cta-box h3 { margin-bottom: 0.5rem; }
.condition-cta-box p { margin-bottom: 1.2rem; }
.condition-cta-box .btn + .btn { margin-left: 0.8rem; }

/* ═══ FOOTER ═══ */
.site-footer {
    background: var(--bg-card-alt);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.footer-brand-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-socials a:hover { color: var(--accent); }

.footer-col h4 {
    font-family: var(--font);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.footer-col a {
    display: block;
    color: var(--text-dim);
    font-size: 0.88rem;
    padding: 0.2rem 0;
}
.footer-col a:hover { color: var(--primary-l); }

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: var(--white);
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    transition: all var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(37,211,102,0.4);
    color: var(--white);
}
.whatsapp-float svg { width: 22px; height: 22px; fill: currentColor; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    .nav-inner {
        padding: 0 1rem;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.2rem;
        overflow-y: auto;
        max-height: calc(100vh - var(--nav-h));
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 32px rgba(0,0,0,0.6);
        z-index: 1001;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }
    .nav-links a:hover, .nav-links a:active {
        background: rgba(0,0,0,0.04);
    }
    .nav-cta {
        margin-left: 0 !important;
        margin-top: 0.8rem;
        text-align: center;
        justify-content: center;
        padding: 0.85rem 1rem !important;
        font-size: 1rem !important;
        border-radius: var(--radius-sm) !important;
    }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
    }
    .lang-toggle { margin-left: auto; margin-right: 0.6rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .philosophy-grid { grid-template-columns: 1fr; }
    .conditions-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .emergency-bar { flex-direction: column; }
    .yt-stats { gap: 2rem; }

    .condition-cta-box .btn { display: block; width: 100%; margin: 0.5rem 0; }
    .condition-cta-box .btn + .btn { margin-left: 0; }

    .hero { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 3rem; }
    section { padding: 3.5rem 1.5rem; }

    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 0.85rem; border-radius: 50%; }
}

@media (max-width: 400px) {
    .nav-brand-text { font-size: 1.05rem; }
    .lang-btn { padding: 0.2rem 0.5rem; font-size: 0.72rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
