/* SASSA Status Check — Modern responsive stylesheet */
:root {
  --brand: #0b6b3a;
  --brand-dark: #084d2a;
  --brand-light: #e8f5ee;
  --accent: #f5a623;
  --accent-dark: #c47f0d;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-card: #ffffff;
  --danger: #b91c1c;
  --ok: #15803d;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 4px 14px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 40px -20px rgba(15,23,42,.25);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1120px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; color: white; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  color: var(--ink-soft); font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px;
}
.nav-menu a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav-menu a.active { color: var(--brand); background: var(--brand-light); }
.nav-cta {
  background: var(--brand); color: white !important;
  padding: 10px 16px !important; border-radius: 10px !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(11,107,58,.10), transparent 60%),
    radial-gradient(700px 400px at -10% 20%, rgba(245,166,35,.10), transparent 60%),
    linear-gradient(180deg, #ffffff, #f7fbf8);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-light); color: var(--brand-dark);
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--brand); border-radius: 999px; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-top: 8px; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
p { margin: 0 0 14px; color: var(--ink-soft); }
strong { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 20px;
  font-weight: 600; font-size: 15px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: white; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn-accent { background: var(--accent); color: #1a1200; }
.btn-accent:hover { background: var(--accent-dark); color: white; text-decoration: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 16px; }

/* Card */
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-light); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 20px;
}

/* Status check tool */
.tool-card {
  background: white; border: 1px solid var(--line);
  border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-lg);
}
.tool-card h2 { margin-top: 0; font-size: 22px; }
.tool-form { display: grid; gap: 14px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px;
  background: white; color: var(--ink);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11,107,58,.12);
}
.field .error { color: var(--danger); font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-result {
  margin-top: 16px; padding: 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-soft);
  display: none;
}
.check-result.show { display: block; }
.check-result.ok { border-color: #bbf7d0; background: #f0fdf4; }
.check-result.warn { border-color: #fde68a; background: #fffbeb; }
.check-result.err { border-color: #fecaca; background: #fef2f2; }
.check-result h4 { margin: 0 0 6px; }
.check-result p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Feature list */
.feature-list { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.feature-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  color: var(--ink-soft); font-size: 15px;
}
.feature-list li::before {
  content: '✓'; color: var(--brand); font-weight: 800;
  background: var(--brand-light); border-radius: 999px;
  width: 22px; height: 22px; display: grid; place-items: center; font-size: 13px;
}

/* Grant grid */
.grant-card {
  padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: white; transition: transform .15s, box-shadow .15s;
  display: block; color: inherit;
}
.grant-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.grant-card h3 { margin: 8px 0 4px; font-size: 18px; }
.grant-card .amount { font-weight: 700; color: var(--brand); font-size: 14px; }
.grant-card p { font-size: 14.5px; margin-bottom: 0; }

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 24px; border-radius: 16px;
  background: linear-gradient(135deg, #0b6b3a, #084d2a);
  color: white;
}
.stats .stat { text-align: left; }
.stats .stat .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stats .stat .lbl { font-size: 13px; opacity: .85; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: none; }

/* Callout */
.callout {
  padding: 18px 20px; border-left: 4px solid var(--brand);
  background: var(--brand-light); border-radius: 8px;
  color: var(--ink); margin: 20px 0;
}
.callout.warn { border-color: var(--accent); background: #fff7e6; }
.callout.err { border-color: var(--danger); background: #fef2f2; }
.callout p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px; background: white;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 22px; color: var(--brand); font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 18px; border: 1px solid var(--line); border-radius: 12px;
  background: white;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand); color: white;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; font-size: 14.5px; }

/* Breadcrumbs */
.crumbs {
  padding: 14px 0; color: var(--muted); font-size: 13px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 8px; opacity: .5; }

/* Content page hero */
.page-hero {
  padding: 40px 0 24px;
  background: linear-gradient(180deg, #fbfdfb, #ffffff);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 3.4vw, 40px); }
.page-hero .lead { max-width: 70ch; }

/* Content prose */
.prose { max-width: 780px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 6px; }
.prose p { line-height: 1.8; }

/* Sidebar layout */
.with-sidebar {
  display: grid; grid-template-columns: 1fr 280px; gap: 40px;
}
.sidebar {
  position: sticky; top: 96px; align-self: start;
}
.sidebar .card { padding: 20px; }
.sidebar h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { border-top: 1px solid var(--line); }
.sidebar ul li:first-child { border-top: none; }
.sidebar ul li a { display: block; padding: 10px 0; color: var(--ink-soft); font-size: 14.5px; }
.sidebar ul li a:hover { color: var(--brand); text-decoration: none; }

/* Footer */
.site-footer {
  background: #0b1220; color: #cbd5e1;
  padding: 56px 0 24px; margin-top: 64px;
}
.site-footer h4 { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: #94a3b8; font-size: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid #1e293b;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #64748b; font-size: 13px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--brand-light); color: var(--brand-dark);
}
.badge.gold { background: #fff7e6; color: #92400e; }
.badge.red { background: #fee2e2; color: #991b1b; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .hero { padding: 44px 0 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-menu {
    position: fixed; top: 68px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--line);
    padding: 12px 20px; flex-direction: column; align-items: stretch; gap: 4px;
    transform: translateY(-120%); transition: transform .2s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 12px 14px; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { padding: 20px; gap: 16px; }
  .tool-card { padding: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
