/* ─── RESET & TOKENS ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #0e1b2e;
  --navy-mid:     #142339;
  --navy-light:   #1e3254;
  --gold:         #c9922a;
  --gold-light:   #e8a83a;
  --gold-pale:    #f5e9d0;
  --cream:        #f7f4ef;
  --text-primary: #1a1a2e;
  --text-muted:   #6b7280;
  --border:       #e5e7eb;
  --card-bg:      #ffffff;
  --surface:      #f7f4ef;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
  --radius:       12px;
  --radius-sm:    8px;
  --font-display: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Satoshi', 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --navy:         #0a1628;
  --navy-mid:     #0f1f3d;
  --navy-light:   #1a2f52;
  --cream:        #0e1b2e;
  --text-primary: #f0ece4;
  --text-muted:   #9ca3af;
  --border:       #1e3254;
  --card-bg:      #0f1f3d;
  --surface:      #0a1628;
  --gold-pale:    #2a1e07;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background 0.3s, color 0.3s;
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.navbar-gold-bar { height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-icon { width: 32px; height: 32px; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: #fff; letter-spacing: -0.01em; }
.brand-sub  { font-size: 0.68rem; color: rgba(255,255,255,0.55); }
.nav-center { flex: 1; display: flex; justify-content: center; }
.portal-link { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.portal-link:hover { color: var(--gold-light); }
.theme-toggle {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 6px 8px; color: rgba(255,255,255,0.8);
  cursor: pointer; display: flex; align-items: center; flex-shrink: 0; transition: background 0.2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  padding: 64px 24px 56px;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.badge {
  display: inline-block;
  background: rgba(201,146,42,0.18); border: 1px solid rgba(201,146,42,0.4);
  color: var(--gold-light); font-family: var(--font-display); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.12em; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.72); max-width: 640px; margin-bottom: 40px; line-height: 1.7; }
.hero-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.stat { padding: 0 32px 0 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--gold-light); line-height: 1; margin-bottom: 4px; }
.stat-label { display: block; font-size: 0.67rem; font-weight: 600; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); }
.stat-divider { width: 1px; height: 38px; background: rgba(255,255,255,0.15); margin-right: 32px; }

/* ─── DISCLAIMER BAR ─── */
.disclaimer-section { padding: 20px 24px 0; }
.disclaimer-bar {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--gold-pale); border: 1px solid rgba(201,146,42,0.3);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: 0.84rem; color: var(--text-primary); line-height: 1.65;
}
.disclaimer-bar svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.disclaimer-bar strong { color: var(--text-primary); }

/* ─── PROGRAMS SECTION ─── */
.programs-section { padding: 32px 24px 64px; }
.container { max-width: 1100px; margin: 0 auto; }

/* ─── PROGRAM CARD ─── */
.program-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.program-card:hover { box-shadow: var(--shadow-lg); }

/* Paused card — muted appearance */
.program-card.paused {
  opacity: 0.82;
  border-color: rgba(180,83,9,0.3);
}
.program-card.paused:hover { box-shadow: var(--shadow); }

/* ─── PROGRAM HEADER ─── */
.program-header {
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.program-card.paused .program-header {
  background: rgba(180,83,9,0.04);
}

.program-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px;
}

/* Coverage tags */
.coverage-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: 100px;
}
.coverage-tag.statewide {
  background: rgba(201,146,42,0.15);
  color: var(--gold);
  border: 1px solid rgba(201,146,42,0.3);
}
.coverage-tag.county {
  background: rgba(59,130,246,0.12);
  color: #2563eb;
  border: 1px solid rgba(59,130,246,0.25);
}
.coverage-tag.rural {
  background: rgba(139,92,246,0.12);
  color: #7c3aed;
  border: 1px solid rgba(139,92,246,0.25);
}
[data-theme="dark"] .coverage-tag.county { color: #60a5fa; border-color: rgba(59,130,246,0.3); }
[data-theme="dark"] .coverage-tag.rural  { color: #a78bfa; border-color: rgba(139,92,246,0.3); }

/* Status tags */
.status-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 4px 12px; border-radius: 100px;
}
.status-tag.active {
  background: rgba(34,197,94,0.12);
  color: #15803d;
  border: 1px solid rgba(34,197,94,0.25);
}
.status-tag.paused {
  background: rgba(234,179,8,0.12);
  color: #a16207;
  border: 1px solid rgba(234,179,8,0.3);
}
[data-theme="dark"] .status-tag.active { color: #4ade80; }
[data-theme="dark"] .status-tag.paused { color: #fbbf24; }

.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.status-tag.active .status-dot { background: #22c55e; }
.status-tag.paused .status-dot { background: #f59e0b; }

.program-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--text-primary); letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.program-admin {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px;
}
.program-desc {
  font-size: 0.96rem; color: var(--text-primary); line-height: 1.7;
  max-width: 700px;
}
.program-card.paused .program-desc { color: var(--text-muted); }

/* ─── PAUSED NOTICE ─── */
.paused-notice {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0 32px;
  background: rgba(234,179,8,0.09);
  border: 1px solid rgba(234,179,8,0.35);
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.875rem; color: var(--text-primary); line-height: 1.65;
  margin-top: 20px;
}
.paused-notice svg { color: #f59e0b; flex-shrink: 0; margin-top: 1px; }
.paused-notice strong { color: #a16207; }
[data-theme="dark"] .paused-notice strong { color: #fbbf24; }

/* ─── PROGRAM BODY ─── */
.program-body { padding: 28px 32px; }

/* ─── DETAILS GRID ─── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.detail-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.detail-block.highlight-block {
  border-color: rgba(201,146,42,0.35);
  background: var(--gold-pale);
}

.detail-label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 10px;
}
.detail-label svg { flex-shrink: 0; color: var(--gold); }

.detail-value {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px; line-height: 1.35;
}
.detail-value.highlight { color: var(--gold); }

.detail-note {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.65;
  margin-top: 8px;
}

/* ─── DETAIL LIST ─── */
.detail-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 7px;
}
.detail-list li {
  font-size: 0.875rem; color: var(--text-primary); line-height: 1.55;
  padding-left: 16px; position: relative;
}
.detail-list li::before {
  content: '·';
  position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700; font-size: 1.1rem; line-height: 1.3;
}
.detail-list strong { color: var(--text-primary); font-weight: 600; }

/* Bonus list — star bullets */
.detail-list.bonus li::before {
  content: '★';
  font-size: 0.72rem; line-height: 1.5; color: var(--gold);
}

/* ─── LOAN TAGS ─── */
.loan-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.loan-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  background: var(--navy-light); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.1);
}
[data-theme="dark"] .loan-tag {
  background: rgba(30,50,84,0.9);
  border-color: rgba(255,255,255,0.12);
}

/* ─── COUNTIES GRID ─── */
.counties-grid {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px;
}
.counties-grid span {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(139,92,246,0.1); color: #7c3aed;
  border: 1px solid rgba(139,92,246,0.2);
}
[data-theme="dark"] .counties-grid span {
  background: rgba(139,92,246,0.15); color: #a78bfa;
  border-color: rgba(139,92,246,0.3);
}

/* ─── INCOME TABLE ─── */
.income-table-wrap { overflow-x: auto; margin-bottom: 4px; }
.income-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.84rem;
}
.income-table td {
  padding: 7px 12px; border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.income-table tr:last-child td { border-bottom: none; }
.income-table td:first-child { color: var(--text-muted); }
.income-table td:last-child { font-weight: 600; text-align: right; color: var(--text-primary); }
.income-table tr:hover td { background: var(--gold-pale); }

/* ─── ASK LENDER BOX ─── */
.ask-lender {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(14,27,46,0.06); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: 0.875rem; color: var(--text-primary); line-height: 1.65;
  margin-bottom: 16px;
}
.ask-lender svg { color: var(--navy-light); flex-shrink: 0; margin-top: 1px; }
.ask-lender em { font-style: italic; color: var(--text-muted); }
[data-theme="dark"] .ask-lender {
  background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .ask-lender svg { color: var(--gold); }

/* ─── PROGRAM LINK ─── */
.program-link { margin-top: 4px; }
.program-link a {
  font-size: 0.875rem; font-weight: 600; color: var(--gold);
  text-decoration: none; transition: color 0.2s;
}
.program-link a:hover { color: var(--gold-light); text-decoration: underline; }

/* ─── HOW WE USE THESE TOGETHER ─── */
.together-section {
  padding: 0 24px 64px;
}
.together-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.together-text h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; color: var(--text-primary); letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.together-text p {
  font-size: 0.925rem; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 14px;
}
.together-list {
  list-style: none; padding: 0; margin: 0 0 20px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.together-list li {
  font-size: 0.9rem; color: var(--text-primary);
  padding-left: 18px; position: relative; line-height: 1.6;
}
.together-list li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--gold); font-weight: 700;
}
.together-list strong { font-weight: 600; }
.together-footer {
  font-size: 0.84rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 0 !important;
  font-style: italic;
}

/* ─── COMPARISON CARD ─── */
.comparison-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.comparison-title {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 16px;
}
.comparison-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.comparison-table th {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); padding: 8px 10px 10px;
  border-bottom: 2px solid var(--border); text-align: left;
}
.comparison-table td {
  padding: 10px 10px; border-bottom: 1px solid var(--border);
  color: var(--text-primary); vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(201,146,42,0.05); }
.comparison-table td strong { font-weight: 600; }

/* Highlight cell — gold */
.highlight-cell {
  color: var(--gold); font-weight: 700;
  font-family: var(--font-display);
}

/* Paused row — muted */
.paused-row td { color: var(--text-muted); }
.paused-row td strong { color: var(--text-muted); font-weight: 500; }

.paused-inline {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  padding: 1px 7px; border-radius: 100px; vertical-align: middle;
  background: rgba(234,179,8,0.15); color: #a16207;
  border: 1px solid rgba(234,179,8,0.3); margin-left: 4px;
}
[data-theme="dark"] .paused-inline { color: #fbbf24; }

/* ─── CTA ─── */
.cta-section { padding: 0 24px 64px; }
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 16px; padding: 48px 40px; text-align: center;
  max-width: 720px; margin: 0 auto; box-shadow: var(--shadow-lg);
}
.cta-icon { font-size: 2.5rem; margin-bottom: 16px; }
.cta-box h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btn {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  padding: 13px 28px; border-radius: 8px; text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.cta-btn:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ─── FOOTER ─── */
.footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 24px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 0.76rem; color: rgba(255,255,255,0.35);
}
.footer-inner a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-inner a:hover { color: var(--gold); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .together-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .comparison-card { max-width: 100%; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 20px 44px; }
  .hero-stats { flex-direction: column; gap: 14px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }

  .disclaimer-section { padding: 16px 20px 0; }
  .programs-section { padding: 24px 20px 48px; }
  .together-section { padding: 0 20px 48px; }
  .cta-section { padding: 0 20px 48px; }

  .program-header { padding: 22px 22px 18px; }
  .program-body { padding: 22px 22px; }
  .paused-notice { margin: 0 22px; margin-top: 16px; }

  .details-grid { grid-template-columns: 1fr; gap: 14px; }
  .together-inner { padding: 28px 22px; }

  .cta-box { padding: 36px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .navbar-inner { padding: 0 16px; }
  .brand-sub { display: none; }
}

@media (max-width: 480px) {
  .programs-section, .together-section, .cta-section { padding-left: 16px; padding-right: 16px; }
  .disclaimer-section { padding-left: 16px; padding-right: 16px; }
  .program-header { padding: 18px 18px 14px; }
  .program-body { padding: 18px 18px; }
  .paused-notice { margin: 0 18px; margin-top: 14px; }
  .program-title { font-size: 1.4rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 8px 7px; }
  .together-inner { padding: 22px 18px; }
}
