@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lato:wght@400;700;900&display=swap');

:root {
  --green: #1865F2;
  --green: #1CAC78;
  --teal: #1CAC78;
  --teal-dark: #0e7c55;
  --teal-light: #d4f5e5;
  --teal-mid: #4dd9a0;
  --navy: #1b1b1b;
  --navy-soft: #2d2d2d;
  --off-white: #f7f7f7;
  --white: #ffffff;
  --text: #1b1b1b;
  --text-muted: #6b6b6b;
  --border: #e5e5e5;
  --card-bg: #ffffff;
  --hero-bg: #1b1b1b;
  --accent-blue: #1865F2;
  --accent-orange: #F26D1B;
  --accent-purple: #7C3AED;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Lato', sans-serif; font-weight: 700; line-height: 1.2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAV ─────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: 'Lato', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 14px;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--teal-dark); border-bottom-color: var(--teal); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  height: auto !important;
  border-bottom: none !important;
  margin-left: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ─── HERO ─────────────────────────────── */
.hero-wrap { background: var(--hero-bg); }
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 5.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-text { }
.hero-eyebrow {
  display: inline-block;
  background: rgba(28,172,120,0.2);
  color: var(--teal-mid);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
  font-weight: 900;
}
.hero-text h1 em { font-style: normal; color: var(--teal-mid); }
.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.25rem;
  max-width: 460px;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero stats panel */
.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2rem;
}
.hero-panel-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}
.hero-lesson-list { list-style: none; }
.hero-lesson-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.hero-lesson-list li:last-child { border-bottom: none; }
.lesson-num {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(28,172,120,0.25);
  color: var(--teal-mid);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-panel-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ─── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-teal-outline { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-teal-outline:hover { background: var(--teal-light); }

/* ─── SECTIONS ─────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--off-white); }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}
.section-title { font-size: clamp(1.75rem, 2.8vw, 2.25rem); margin-bottom: 0.75rem; color: var(--text); }
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin-bottom: 3rem; line-height: 1.75; }

/* ─── TOPIC / LESSON CARDS ─────────────────────────────── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.topic-card {
  background: var(--white);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.topic-card:hover { background: #fafffe; }

.topic-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Color bar instead of emoji icon */
.topic-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Lato', sans-serif;
  color: white;
}
.num-1 { background: var(--teal); }
.num-2 { background: var(--accent-blue); }
.num-3 { background: var(--accent-orange); }
.num-4 { background: #E53E3E; }
.num-5 { background: var(--accent-purple); }
.num-6 { background: #D69E2E; }
.num-7 { background: #2D9CDB; }

.topic-card h3 { font-family: 'Lato', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.topic-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

.topic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.topic-card-footer a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.topic-card-footer a:hover { color: var(--teal); }
.topic-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ─── CORNERSTONES ─────────────────────────────── */
.cornerstones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.cornerstone {
  padding: 2rem 1.75rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
}
.cornerstone .cs-num {
  font-family: 'Lato', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.cornerstone h3 { font-size: 1rem; margin-bottom: 0.5rem; font-family: 'Lato', sans-serif; font-weight: 700; }
.cornerstone p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ─── ABOUT SECTION ─────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 3/4; }
.about-photo-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.875rem 1.1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 160px;
}
.about-text h2 { font-size: 2rem; margin-bottom: 1.25rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.8; }

/* ─── ARTICLE PAGE ─────────────────────────────── */
.article-hero {
  background: var(--hero-bg);
  padding: 4.5rem 2rem;
}
.article-hero-inner { max-width: 740px; margin: 0 auto; }
.article-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-breadcrumb a { color: var(--teal-mid); }
.article-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.article-hero p { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 560px; line-height: 1.75; }

.article-body {
  max-width: 740px;
  margin: 3.5rem auto;
  padding: 0 2rem;
}
.article-body h2 {
  font-size: 1.5rem;
  margin: 3rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.article-body h3 { font-size: 1.1rem; margin: 1.75rem 0 0.4rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--text); }
.article-body p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 1.5rem; color: var(--text-muted); margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.5rem; line-height: 1.75; }
.article-body strong { color: var(--text); }

.vocab-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.vocab-table th { background: var(--text); color: var(--white); padding: 10px 16px; text-align: left; font-weight: 600; font-family: 'Lato', sans-serif; letter-spacing: 0.02em; font-size: 0.82rem; text-transform: uppercase; }
.vocab-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.vocab-table tr:last-child td { border-bottom: none; }
.vocab-table tr:nth-child(even) td { background: var(--off-white); }

.callout {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.93rem;
  color: #0a4d35;
  line-height: 1.7;
}
.callout strong { color: var(--teal-dark); }

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.article-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.article-nav a:hover { color: var(--teal); }

/* ─── QUIZ TOPIC GRID ─────────────────────────────── */
.quiz-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 3rem; }
.quiz-topic-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.quiz-topic-card:hover { border-color: var(--teal); box-shadow: 0 2px 12px rgba(28,172,120,0.15); }
.qtc-icon { font-size: 1.4rem; flex-shrink: 0; }
.quiz-topic-card h4 { font-size: 0.93rem; font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 2px; }
.quiz-topic-card p { font-size: 0.78rem; color: var(--text-muted); }

/* ─── QUIZ ENGINE ─────────────────────────────── */
#quiz-engine { display: none; }
.quiz-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
}
.q-progress { display: flex; gap: 5px; margin-bottom: 2rem; }
.q-dot { flex: 1; height: 4px; border-radius: 99px; background: var(--border); transition: background 0.3s; }
.q-dot.done { background: var(--teal); }
.q-dot.active { background: var(--teal-mid); }
.q-num { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; }
.q-text { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.75rem; line-height: 1.45; font-family: 'Lato', sans-serif; color: var(--text); }
.q-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.25rem; }
.q-opt {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 13px 18px;
  font-size: 0.93rem;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: all 0.12s;
  line-height: 1.5;
}
.q-opt:hover:not(:disabled) { border-color: var(--teal); background: #f0fdf8; }
.q-opt.correct { background: #f0fdf8; border-color: var(--teal); color: var(--teal-dark); font-weight: 500; }
.q-opt.wrong { background: #fff5f5; border-color: #FC8181; color: #9B2C2C; }
.q-opt.reveal { background: #f0fdf8; border-color: var(--teal); color: var(--teal-dark); }
.q-feedback {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  display: none;
}
.q-feedback.correct { background: #f0fdf8; color: #0a4d35; display: block; border-left: 3px solid var(--teal); }
.q-feedback.wrong { background: #fff5f5; color: #9B2C2C; display: block; border-left: 3px solid #FC8181; }
.q-next { width: 100%; }
.q-score { text-align: center; padding: 2.5rem 2rem; display: none; }
.q-score .score-big { font-size: 4.5rem; font-weight: 900; color: var(--teal); font-family: 'Lato', sans-serif; line-height: 1; }
.q-score .score-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; margin-top: 4px; }
.q-score .score-msg { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; font-family: 'Lato', sans-serif; }
.q-score .score-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 360px; margin-left: auto; margin-right: auto; }
.q-back { font-size: 0.85rem; color: var(--teal); cursor: pointer; background: none; border: none; font-family: 'Inter', sans-serif; margin-top: 1rem; display: inline-block; font-weight: 500; }

/* ─── BUDGET CALC ─────────────────────────────── */
.calc-tabs { display: flex; gap: 0; margin-bottom: 2.5rem; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.calc-tab {
  padding: 9px 22px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  border-right: 1.5px solid var(--border);
}
.calc-tab:last-child { border-right: none; }
.calc-tab.active { background: var(--text); color: var(--white); font-weight: 600; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.calc-field { margin-bottom: 0.9rem; }
.calc-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.input-dollar { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 7px; overflow: hidden; background: var(--white); transition: border-color 0.15s; }
.input-dollar:focus-within { border-color: var(--teal); }
.input-dollar span { padding: 9px 11px; background: var(--off-white); border-right: 1.5px solid var(--border); font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.input-dollar input { flex: 1; border: none; padding: 9px 12px; font-size: 0.9rem; font-family: 'Inter', sans-serif; color: var(--text); outline: none; background: transparent; }

.calc-results { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 1.75rem; position: sticky; top: 72px; }
.calc-results h3 { font-size: 1rem; margin-bottom: 1rem; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--text); }
.results-hint { font-size: 0.875rem; color: var(--text-muted); }
.results-income { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.results-bar-group { margin-bottom: 1.25rem; }
.results-bar-label { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.bar-track { height: 8px; background: var(--off-white); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.bar-fill { height: 100%; border-radius: 99px; transition: width 0.4s ease; }
.bar-needs { background: var(--teal); }
.bar-wants { background: var(--accent-blue); }
.bar-savings { background: var(--text); }
.bar-over { background: #FC8181; }
.results-bar-amount { font-size: 0.75rem; color: var(--text-muted); }
.bar-target { color: #aaa; }
.results-remaining { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.875rem; }
.results-verdict { margin-top: 1rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }
.results-verdict ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.results-verdict li { margin-bottom: 0.35rem; }

/* 50/30/20 rule blocks */
.rule-block { border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; }
.rule-needs { background: #f0fdf8; border: 1.5px solid #9ae6c8; }
.rule-wants { background: #eff6ff; border: 1.5px solid #bfdbfe; }
.rule-savings { background: var(--off-white); border: 1.5px solid var(--border); }
.rule-block-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.rule-pct { font-size: 1.5rem; font-weight: 900; font-family: 'Lato', sans-serif; color: var(--text); min-width: 52px; }
.rule-label { font-size: 0.875rem; font-weight: 600; flex: 1; }
.rule-amount { font-size: 1rem; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.rule-block ul { list-style: none; padding: 0; }
.rule-block ul li { font-size: 0.8rem; color: var(--text-muted); padding: 3px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.rule-block ul li:last-child { border: none; }
.rule-tip { background: var(--white); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.65; }

/* ─── ABOUT PAGE ─────────────────────────────── */
.about-page-body { max-width: 800px; margin: 3rem auto; padding: 0 2rem; }
.about-page-body h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
.about-page-body p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.97rem; line-height: 1.8; }

/* ─── RESOURCES ─────────────────────────────── */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.resource-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 1.5rem; transition: box-shadow 0.15s, border-color 0.15s; }
.resource-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); border-color: #ccc; }
.resource-card h4 { font-family: 'Inter', sans-serif; font-size: 0.93rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.resource-card p { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.65; }
.resource-card a { font-size: 0.82rem; font-weight: 600; color: var(--teal-dark); }
.resource-card a:hover { color: var(--teal); }
.resource-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 4px; background: var(--off-white); color: var(--text-muted); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--border); }

/* ─── CONTACT ─────────────────────────────── */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 7px;
  font-size: 0.9rem; font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); transition: border-color 0.15s; outline: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--teal); }
.form-field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-success { display: none; text-align: center; padding: 2rem; background: #f0fdf8; border-radius: 12px; color: #0a4d35; border: 1.5px solid #9ae6c8; }
.form-success.show { display: block; }

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  padding: 3rem 2rem 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .nav-logo { font-size: 1.15rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; max-width: 260px; }
.footer-col h5 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--teal-mid); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; font-size: 0.8rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom a { color: var(--teal-mid); }

/* ─── CTA STRIP ─────────────────────────────── */
.cta-strip {
  background: var(--teal);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-strip h2 { color: white; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.cta-strip p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 460px; margin-left: auto; margin-right: auto; font-size: 1rem; }
.cta-strip-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-panel { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .cornerstones { grid-template-columns: 1fr; gap: 1rem; }
  .calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topics-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 2rem 1.5rem; gap: 0; z-index: 99; }
  .nav-links li { width: 100%; }
  .nav-links a { height: 44px; border-bottom: 1px solid var(--border) !important; padding: 0; width: 100%; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  nav { position: relative; }
  .resources-grid { grid-template-columns: 1fr; }
  .calc-tabs { width: 100%; }
  .calc-tab { flex: 1; text-align: center; }
}
