:root {
  --primary: #1a6b5a;
  --primary-light: #2a9d8f;
  --primary-dark: #0d4f42;
  --accent: #e9c46a;
  --warm: #f4a261;
  --coral: #e76f51;
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --border: #dfe6e9;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

/* ---------- UTILITY ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700; font-size: 1.25rem; color: var(--primary-dark);
  display: flex; align-items: center; gap: 8px;
}
.logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-light);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

/* ---------- HERO ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #f0faf7 0%, #fafaf8 50%, #fef9f0 100%);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-warm { background: var(--warm); color: #fff; }
.btn-warm:hover { background: var(--coral); color: #fff; }

/* ---------- DISCLAIMER BANNER ---------- */
.disclaimer-banner {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  margin: 24px auto;
  max-width: var(--max-w);
  font-size: 0.85rem;
  color: #5d4037;
  line-height: 1.6;
}
.disclaimer-banner strong { color: #e65100; }

/* ---------- SECTION STYLES ---------- */
.section { padding: 64px 0; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ---------- GUIDE CARDS (Landing) ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.2s;
  display: flex; flex-direction: column;
}
.guide-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.guide-card .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  width: fit-content;
}
.badge-live { background: #e8f5e9; color: #2e7d32; }
.badge-soon { background: #fff3e0; color: #e65100; }
.guide-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.guide-card p { color: var(--text-light); font-size: 0.9rem; flex: 1; margin-bottom: 16px; }

/* ---------- STAGE SELECTOR (Guide page) ---------- */
.stage-selector {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.stage-btn {
  flex: 1;
  padding: 16px 12px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.2s;
  text-align: center;
  line-height: 1.4;
}
.stage-btn:last-child { border-right: none; }
.stage-btn:hover { background: #f0faf7; color: var(--primary); }
.stage-btn.active {
  background: var(--primary);
  color: #fff;
}
.stage-btn .stage-num {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* ---------- GUIDE CONTENT AREA ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.guide-sidebar {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.guide-sidebar h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all 0.15s;
}
.toc-list a:hover { background: #f0faf7; color: var(--primary); }
.toc-list a.active { background: #e8f5e9; color: var(--primary-dark); font-weight: 600; }

.guide-content { min-width: 0; }

/* ---------- CONTENT SECTIONS (Guide) ---------- */
.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
}
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f5e9;
}
.content-section h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 24px 0 12px;
  font-weight: 600;
}
.content-section h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin: 20px 0 8px;
}
.content-section p { margin-bottom: 16px; color: var(--text); }
.content-section ul, .content-section ol {
  margin: 0 0 16px 24px;
  color: var(--text);
}
.content-section li { margin-bottom: 8px; }

.callout {
  border-left: 4px solid var(--primary-light);
  background: #f0faf7;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.95rem;
}
.callout-warn {
  border-left-color: var(--warm);
  background: #fff8f0;
}
.callout-danger {
  border-left-color: var(--coral);
  background: #fef0ec;
}
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- EXPANDABLE SECTIONS ---------- */
.expand-section { margin: 16px 0; }
.expand-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s;
}
.expand-toggle:hover { background: #f0faf7; }
.expand-toggle .arrow {
  transition: transform 0.2s;
  font-size: 0.8rem;
}
.expand-toggle.open .arrow { transform: rotate(90deg); }
.expand-body {
  display: none;
  padding: 16px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.expand-body.open { display: block; }

/* ---------- REGION TABS ---------- */
.region-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.region-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
}
.region-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.region-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.center-card {
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 12px;
}
.center-card h4 { margin: 0 0 6px; color: var(--primary-dark); }
.center-card .center-location { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; }
.center-card .center-specialty { font-size: 0.85rem; color: var(--text); margin-bottom: 8px; font-style: italic; }
.center-card .center-contact { font-size: 0.85rem; }
.center-card .center-contact a { font-weight: 600; }

/* ---------- CHECKLIST ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.checklist li:last-child { border-bottom: none; }
.check-box {
  width: 22px; height: 22px;
  border: 2px solid var(--primary-light);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.check-box.checked {
  background: var(--primary);
  border-color: var(--primary);
}
.check-box.checked::after { content: '\2713'; color: #fff; font-size: 14px; font-weight: 700; }
.checklist .check-label { font-size: 0.95rem; }
.checklist .check-timing {
  font-size: 0.8rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- FORUM / COMMUNITY ---------- */
.forum-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
}
.forum-post .post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.forum-post .post-body { font-size: 0.95rem; }
.forum-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
  margin-bottom: 12px;
}
.forum-form input[type="text"],
.forum-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- GLOSSARY ---------- */
.glossary-grid {
  columns: 2;
  column-gap: 32px;
}
.glossary-term {
  break-inside: avoid;
  margin-bottom: 16px;
}
.glossary-term dt {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}
.glossary-term dd {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-left: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #1a2332;
  color: #a0aec0;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand { font-size: 0.9rem; line-height: 1.7; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.footer-col a { display: block; color: #a0aec0; font-size: 0.85rem; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}
.footer-disclaimer {
  background: #151d29;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #718096;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; max-height: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .glossary-grid { columns: 1; }
  .stage-selector { flex-wrap: wrap; }
  .stage-btn { flex: 1 1 45%; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 12px;
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0 40px; }
  .content-section { padding: 24px; }
  .stage-btn { flex: 1 1 100%; }
}

/* ---------- HIDDEN BY STAGE ---------- */
[data-stage] { display: none; }
[data-stage].visible { display: block; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.content-section.visible { animation: fadeIn 0.3s ease; }
