:root {
    --navy: #0d1b2a;
    --deep-blue: #1b2a4a;
    --steel: #415a77;
    --slate: #778da9;
    --light: #e0e1dd;
    --white: #f8f9fa;
    --accent: #2FA98C;
    --accent-light: #45C0A2;
    --accent-glow: rgba(47, 169, 140, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--navy); color: var(--light); overflow-x: hidden; }
a { color: inherit; }

/* ── NAV ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; background: rgba(13, 27, 42, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(65, 90, 119, 0.15); transition: background 0.3s ease; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; color: var(--white); text-decoration: none; letter-spacing: -0.01em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.7rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--slate); text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { font-size: 0.82rem; font-weight: 600; color: var(--navy) !important; background: var(--accent); padding: 0.5rem 1.25rem; border-radius: 6px; transition: background 0.2s ease; }
.nav-cta:hover { background: var(--accent-light) !important; color: var(--navy) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--slate); margin: 5px 0; transition: all 0.3s ease; }

/* ── HERO (index) ── */
.hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; padding: 8rem 2rem 3rem; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg canvas { width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; color: var(--white); line-height: 1.12; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-subtitle { font-size: clamp(1.02rem, 2.1vw, 1.25rem); font-weight: 300; color: var(--slate); line-height: 1.6; max-width: 640px; margin: 0 auto; }
.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }

/* ── PAGE HEADER (condition pages) ── */
.page-header { position: relative; padding: 9rem 2rem 3rem; max-width: 880px; margin: 0 auto; }
.page-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.85rem; }
.page-eyebrow a { color: var(--steel); text-decoration: none; }
.page-eyebrow a:hover { color: var(--accent); }
.page-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; color: var(--white); line-height: 1.12; margin-bottom: 1rem; letter-spacing: -0.02em; }
.page-lead { font-size: 1.1rem; line-height: 1.7; color: var(--slate); max-width: 720px; }

/* ── SECTIONS ── */
section { padding: 3.5rem 2rem; max-width: 1080px; margin: 0 auto; }
section.tight { max-width: 820px; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 500; color: var(--white); margin-bottom: 1.1rem; line-height: 1.2; }
.section-text { font-size: 1.02rem; line-height: 1.8; color: var(--slate); max-width: 720px; }
.section-text + .section-text { margin-top: 1.1rem; }
.section-text strong { color: var(--white); font-weight: 600; }
.divider { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.divider hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--steel), transparent); }

/* ── PAIN-TYPE BOXES (index) ── */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.5rem; }
.pain-box { display: flex; flex-direction: column; background: rgba(27, 42, 74, 0.5); border: 1px solid rgba(65, 90, 119, 0.25); border-radius: 12px; padding: 1.6rem 1.4rem; text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease; position: relative; overflow: hidden; }
.pain-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); opacity: 0; transition: opacity 0.25s ease; }
.pain-box:hover { border-color: rgba(47, 169, 140, 0.45); transform: translateY(-3px); background: rgba(27, 42, 74, 0.7); }
.pain-box:hover::before { opacity: 1; }
.pain-box-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 0.9rem; }
.pain-box-title { font-size: 1rem; font-weight: 600; color: var(--white); line-height: 1.25; margin-bottom: 0.4rem; }
.pain-box-desc { font-size: 0.8rem; line-height: 1.55; color: var(--slate); flex-grow: 1; }
.pain-box-more { font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-top: 0.9rem; letter-spacing: 0.02em; }

/* ── INFO / FEATURE GRID ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.feature { background: rgba(27, 42, 74, 0.35); border: 1px solid rgba(65, 90, 119, 0.2); border-radius: 10px; padding: 1.6rem; }
.feature-title { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.feature-text { font-size: 0.85rem; line-height: 1.65; color: var(--slate); }

/* ── PROCESS STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.25rem; }
.step { padding: 0.5rem 0.25rem; }
.step-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--accent); opacity: 0.7; margin-bottom: 0.5rem; }
.step-title { font-size: 0.92rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.step-text { font-size: 0.8rem; line-height: 1.6; color: var(--slate); }

/* ── SURGICAL OPTIONS LIST ── */
.options { list-style: none; margin-top: 1.75rem; display: grid; gap: 0.75rem; }
.option { background: rgba(27, 42, 74, 0.4); border: 1px solid rgba(65, 90, 119, 0.2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 1.1rem 1.4rem; }
.option-name { font-size: 0.98rem; font-weight: 600; color: var(--white); margin-bottom: 0.3rem; }
.option-desc { font-size: 0.88rem; line-height: 1.65; color: var(--slate); }

/* ── CALLOUT ── */
.callout { margin-top: 2rem; padding: 1.4rem 1.75rem; background: rgba(27, 42, 74, 0.5); border: 1px solid rgba(47, 169, 140, 0.2); border-left: 3px solid var(--accent); border-radius: 8px; }
.callout-title { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.callout-text { font-size: 0.9rem; line-height: 1.7; color: var(--slate); }

/* ── RELATED LINKS ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.related-card { background: rgba(27, 42, 74, 0.4); border: 1px solid rgba(65, 90, 119, 0.2); border-radius: 10px; padding: 1.2rem 1.3rem; text-decoration: none; display: block; transition: border-color 0.25s ease, transform 0.25s ease; }
.related-card:hover { border-color: rgba(47, 169, 140, 0.4); transform: translateY(-2px); }
.related-name { font-size: 0.92rem; font-weight: 600; color: var(--white); }
.related-desc { font-size: 0.8rem; color: var(--slate); margin-top: 0.3rem; line-height: 1.5; }

/* ── CONSULT ── */
.consult { text-align: center; padding: 4.5rem 2rem; max-width: 760px; margin: 0 auto; }
.consult .section-text { margin: 0 auto 1.75rem; }
.consult-btn { display: inline-block; font-size: 0.95rem; font-weight: 600; color: var(--navy); background: var(--accent); padding: 0.85rem 2.25rem; border-radius: 8px; text-decoration: none; transition: background 0.25s ease, transform 0.2s ease; }
.consult-btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.consult-note { font-size: 0.78rem; color: var(--steel); margin-top: 1.1rem; line-height: 1.6; }

/* ── CONSULT FORM (index) ── */
.consult-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; text-align: left; margin-top: 2rem; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.45rem; }
.form-field input, .form-field select, .form-field textarea { font-family: inherit; font-size: 0.92rem; color: var(--white); background: rgba(27, 42, 74, 0.55); border: 1px solid rgba(65, 90, 119, 0.35); border-radius: 8px; padding: 0.8rem 1rem; transition: border-color 0.2s ease; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select option { background: var(--deep-blue); color: var(--white); }
.form-submit { grid-column: 1 / -1; justify-self: center; font-size: 0.95rem; font-weight: 600; color: var(--navy); background: var(--accent); border: none; cursor: pointer; padding: 0.9rem 2.5rem; border-radius: 8px; transition: background 0.25s ease; }
.form-submit:hover { background: var(--accent-light); }

/* ── FOOTER ── */
footer { text-align: center; padding: 2.5rem 2rem; font-size: 0.78rem; color: var(--steel); border-top: 1px solid rgba(65, 90, 119, 0.15); margin-top: 2rem; }
footer a { color: var(--slate); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer p + p { margin-top: 0.5rem; }
.footer-fine { font-size: 0.72rem; opacity: 0.75; max-width: 760px; margin: 0.75rem auto 0; line-height: 1.6; }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 64px; left: 0; right: 0; background: rgba(13, 27, 42, 0.97); padding: 1.5rem 2rem; gap: 1.1rem; border-bottom: 1px solid rgba(65, 90, 119, 0.2); }
    .nav-toggle { display: block; }
    .pain-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .consult-form { grid-template-columns: 1fr; }
    .hero { padding: 7rem 1.5rem 3rem; }
    section { padding: 3rem 1.5rem; }
    .page-header { padding: 8rem 1.5rem 2.5rem; }
}
