/* Restore the Right — design system */
:root {
  --navy: #0b1626;
  --navy-mid: #13233b;
  --navy-light: #1c3456;
  --ink: #16181c;
  --muted: #5a6270;
  --gold: #c6a15b;
  --gold-deep: #9a7840;
  --gold-soft: #ead9b0;
  --cream: #f4efe4;
  --paper: #fbf8f2;
  --white: #ffffff;
  --line: #e6ddc9;
  --line-strong: #d3c7a8;
  --success: #245c45;
  --success-bg: #e8f3ec;
  --warn: #8a5a12;
  --warn-bg: #f8efd8;
  --danger: #7a2b2b;
  --danger-bg: #f7e8e8;
  --info: #1d4a73;
  --info-bg: #e7eef6;
  --shadow: 0 18px 50px rgba(11, 22, 38, 0.12);
  --shadow-sm: 0 8px 24px rgba(11, 22, 38, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --header-h: 78px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 18px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 46rem; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.cream { background: var(--cream); }
.section.navy {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--cream);
}
.section.navy h2, .section.navy h3 { color: var(--white); }
.section.navy p, .section.navy li { color: #d7deea; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
}
.brand img {
  width: 44px; height: 44px; object-fit: contain;
  background: var(--white); border-radius: 50%;
  border: 1px solid var(--line);
  padding: 3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.brand-tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

nav.primary { display: flex; align-items: center; gap: 4px; }
nav.primary a {
  color: var(--navy);
  text-decoration: none;
  padding: 8px 11px;
  font-size: 0.95rem;
  border-radius: 8px;
}
nav.primary a:hover, nav.primary a.active { background: var(--cream); color: var(--navy); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--cream) !important;
  padding: 9px 16px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--navy-light) !important; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(198,161,91,0.18), transparent 50%),
    linear-gradient(180deg, #0b1626 0%, #12243d 58%, #16304d 100%);
  color: var(--cream);
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--paper));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.kicker::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p { color: #d5deea; font-size: 1.14rem; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(234,217,176,0.22);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
}
.hero-card h3 { color: var(--gold-soft); font-size: 1.05rem; margin-bottom: 10px; }
.hero-card ol { margin: 0; padding-left: 18px; color: #d7deea; }
.hero-card li { margin: 8px 0; font-size: 0.98rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-light); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(234,217,176,0.4);
}
.btn-ghost.dark {
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-ghost.dark:hover { background: var(--cream); }
.btn-wide { width: 100%; }

/* Cards / grids */
.grid-3, .grid-2, .grid-4 {
  display: grid; gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold-soft);
  font-family: var(--serif); font-weight: 600; margin-bottom: 14px;
}
.icon-pill {
  display: inline-block;
  background: var(--cream);
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 12px;
}

/* Notice banners */
.banner {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid;
  font-size: 0.98rem;
  margin: 16px 0;
}
.banner.warn { background: var(--warn-bg); border-color: #e2c888; color: #5c3d0c; }
.banner.danger { background: var(--danger-bg); border-color: #e3b6b6; color: var(--danger); }
.banner.info { background: var(--info-bg); border-color: #c5d6e8; color: var(--info); }
.banner.success { background: var(--success-bg); border-color: #b7d4c4; color: var(--success); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream); font-weight: 650; color: var(--navy); }
tr:last-child td { border-bottom: 0; }

/* Timeline */
.timeline { border-left: 2px solid var(--gold); padding-left: 22px; margin: 8px 0 0; }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -29px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold);
}
.tl-date { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px dashed var(--line);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  color: var(--success); font-weight: 700;
}

/* Forms */
label { display: block; font-weight: 650; font-size: 0.95rem; margin: 14px 0 6px; color: var(--navy); }
.label-hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; display: block; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="url"], select, textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold-deep);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.req { color: var(--danger); }
.choice {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
}
.choice input { margin-top: 5px; }
.choice.block { flex-direction: column; gap: 4px; }

/* Wizard */
.wizard-shell { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.steps {
  position: sticky; top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li {
  padding: 9px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex; gap: 10px; align-items: center;
}
.steps li .dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 0.75rem; flex: none;
}
.steps li.active { background: var(--cream); color: var(--navy); font-weight: 650; }
.steps li.active .dot { background: var(--navy); color: var(--gold-soft); border-color: var(--navy); }
.steps li.done { color: var(--success); }
.steps li.done .dot { background: var(--success); color: #fff; border-color: var(--success); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.hidden { display: none !important; }
.progress-bar { height: 6px; background: var(--cream); border-radius: 99px; overflow: hidden; margin: 0 0 18px; }
.progress-bar > span { display: block; height: 100%; background: var(--gold); width: 10%; }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 650; color: var(--navy); }
.faq details p { margin: 10px 0 4px; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c9d2df;
  padding: 48px 0 28px;
  margin-top: 20px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.fineprint {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 28px; padding-top: 18px;
  font-size: 0.82rem; color: #93a0b3; max-width: 70rem;
}

/* Page hero (interior) */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 48px 0 36px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #c9d2df; max-width: 44rem; }

/* Eligibility result */
.result-box { padding: 20px; border-radius: var(--radius); margin-top: 16px; }
.result-box.pass { background: var(--success-bg); border: 1px solid #b7d4c4; }
.result-box.stop { background: var(--danger-bg); border: 1px solid #e3b6b6; }
.result-box.caution { background: var(--warn-bg); border: 1px solid #e2c888; }

/* Print packet */
@media print {
  .site-header, .site-footer, .wizard-nav, .steps, .menu-toggle, .no-print { display: none !important; }
  .wizard-shell { display: block; }
  .panel { box-shadow: none; border: 0; }
  body { background: #fff; }
}

@media (max-width: 980px) {
  .hero-grid, .wizard-shell, .foot-grid, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  nav.primary {
    display: none;
    position: absolute; right: 20px; top: var(--header-h);
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; flex-direction: column; padding: 10px;
    min-width: 220px; box-shadow: var(--shadow);
  }
  nav.primary.open { display: flex; }
  .nav-cta { margin: 6px 0 0; }
  .steps { position: static; }
}
