/* Southern Oregon Illegal Immigration Hotline — design system v2 */

:root {
  --navy-950: #0c1728;
  --navy-900: #12213a;
  --navy-800: #1a2f4f;
  --navy-700: #24406b;
  --navy-600: #2f538a;
  --navy-100: #e3eaf3;
  --slate-600: #46586e;
  --slate-500: #5d7089;
  --slate-300: #9aa7b8;
  --line: #d7dce3;
  --paper: #eef1f5;
  --white: #ffffff;
  --gold: #b08a2e;
  --gold-light: #d9b45a;
  --red-600: #b3372f;
  --red-50: #fdf1f0;
  --green-600: #2e7d4f;
  --green-50: #eef7f1;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 920px;
  --shadow-1: 0 1px 3px rgba(12, 23, 40, 0.08);
  --shadow-2: 0 8px 28px rgba(12, 23, 40, 0.12);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: #1d2530;
  background:
    linear-gradient(180deg, rgba(36, 64, 107, 0.05), rgba(36, 64, 107, 0) 320px),
    var(--paper);
}

/* ---------- Masthead ---------- */

.gov-banner {
  background: var(--navy-950);
  color: #b7c5d6;
  font-size: 12px;
  padding: 6px 0;
  letter-spacing: 0.3px;
}
.gov-banner .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  position: relative;
}
.masthead::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 45%, var(--gold) 100%);
}
.masthead .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.wordmark {
  border: 3px double var(--navy-800);
  padding: 12px 16px;
  text-align: center;
  line-height: 1.25;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
}
.wordmark .wm-line1 {
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--slate-600);
  text-transform: uppercase;
}
.wordmark .wm-line2 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy-800);
  text-transform: uppercase;
}

.masthead .titles h1 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.3;
  letter-spacing: 0.2px;
}
.masthead .titles p {
  font-size: 12.5px;
  color: var(--slate-500);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ---------- Nav ---------- */

.site-nav {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.site-nav .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
}
.site-nav a {
  color: #cfd9e6;
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  padding: 11px 14px;
  display: inline-block;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--white); background: var(--navy-700); }
.site-nav a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

/* ---------- Content ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  background:
    radial-gradient(1100px 300px at 85% -40%, rgba(176, 138, 46, 0.18), rgba(176, 138, 46, 0) 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #e8eef6;
  border-radius: 4px;
  padding: 44px 40px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.hero h2 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}
.hero .lede {
  font-size: 16.5px;
  color: #c3cfdf;
  max-width: 640px;
  line-height: 1.65;
}
.hero .hero-kicker {
  font-size: 11.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 13px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  border-radius: 3px;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, #9a7726 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(176, 138, 46, 0.35);
}
.btn-primary:hover { background: linear-gradient(180deg, #c29434 0%, #8e6d20 100%); }
.btn-solid {
  background: var(--navy-600);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(47, 83, 138, 0.3);
}
.btn-solid:hover { background: var(--navy-700); }
.btn-outline {
  background: transparent;
  color: #d5deea;
  border-color: rgba(213, 222, 234, 0.45);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(213, 222, 234, 0.75); }
.btn-outline-light {
  background: var(--white);
  color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn-outline-light:hover { background: #eef2f7; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  box-shadow: var(--shadow-1);
}
.callout strong { color: var(--navy-800); }
.callout .tel {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-800);
  white-space: nowrap;
}

.section-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy-800);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin: 36px 0 18px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-600);
  border-radius: 3px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-1);
}
.step-card .num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.step-card h3 {
  font-size: 15px;
  color: var(--navy-800);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.step-card p {
  font-size: 13.5px;
  color: var(--slate-600);
  line-height: 1.6;
}

.notice {
  background: var(--red-50);
  border: 1px solid #ecd2cf;
  border-left: 4px solid var(--red-600);
  border-radius: 3px;
  padding: 14px 18px;
  font-size: 14px;
  color: #6e3530;
  margin: 28px 0;
}

/* ---------- Prose pages (faq/privacy/terms) ---------- */

.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-1);
  padding: 36px 40px;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy-800);
  margin: 30px 0 10px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li {
  font-size: 15.5px;
  color: #33404f;
  margin-bottom: 10px;
}
.prose ul { padding-left: 24px; margin-bottom: 14px; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.faq-item p { font-size: 15px; color: #33404f; }

/* ---------- Wizard ---------- */

.wizard-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-1);
  padding: 32px 36px;
}

.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.progress .pseg {
  flex: 1;
  height: 7px;
  background: #e4e8ee;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.progress .pseg.done { background: linear-gradient(90deg, var(--navy-600), var(--navy-700)); }
.progress-labels {
  display: flex;
  margin-bottom: 26px;
  font-size: 11.5px;
  color: var(--slate-500);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.progress-labels span { flex: 1; }
.progress-labels span.active { color: var(--navy-700); font-weight: 700; }

.step-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy-800);
  margin-bottom: 4px;
}
.step-sub {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 24px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.field .req { color: var(--red-600); }
.field .hint {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--slate-500);
  letter-spacing: 0;
}

.field input[type="text"],
.field input[type="date"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  font-size: 16px;
  font-family: var(--sans);
  color: #1d2530;
  background: #fdfdfe;
  border: 1px solid #b9c2ce;
  border-radius: 3px;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2346586e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy-600);
  outline-offset: 0;
  border-color: var(--navy-600);
  background: var(--white);
}
.field .count {
  font-size: 12px;
  color: var(--slate-300);
  text-align: right;
  margin-top: 3px;
}
.field .count.ok { color: var(--green-600); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--red-600);
  background: var(--red-50);
}
.field .err {
  display: none;
  font-size: 12.5px;
  color: var(--red-600);
  margin-top: 4px;
}
.field.invalid .err { display: block; }

.evidence-box {
  border: 2px dashed #9fb0c6;
  border-radius: 4px;
  background: #f2f5f9;
  padding: 24px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.evidence-box.has-file {
  border-style: solid;
  border-color: var(--green-600);
  background: var(--green-50);
}
.evidence-box input[type="file"] { display: none; }
.evidence-box label.evidence-btn {
  display: inline-block;
  background: var(--navy-700);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 26px;
  cursor: pointer;
  border-radius: 3px;
}
.evidence-box label.evidence-btn:hover { background: var(--navy-600); }
.evidence-box .ev-status {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--slate-600);
}
.evidence-box.has-file .ev-status { color: var(--green-600); font-weight: 600; }
.evidence-box .ev-req {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 8px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.wizard-nav .btn { min-width: 130px; }

.summary-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.summary-table th, .summary-table td {
  text-align: left;
  font-size: 14px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.summary-table th {
  width: 32%;
  color: var(--slate-500);
  font-weight: 600;
  background: #f6f8fb;
}
.summary-table tr:nth-child(even) td { background: #fbfcfd; }

.certify {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-600);
  border-radius: 3px;
  padding: 16px 18px;
  margin-bottom: 8px;
}
.certify input[type="checkbox"] { margin-top: 4px; transform: scale(1.25); }
.certify label { font-size: 14px; color: #33404f; }

.confirm-panel {
  text-align: center;
  padding: 34px 20px;
}
.confirm-panel .ref {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--navy-800);
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  display: inline-block;
  padding: 16px 34px;
  margin: 18px 0 20px;
  border-radius: 3px;
}
.confirm-panel h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy-800);
}
.confirm-panel p { color: var(--slate-600); font-size: 15px; max-width: 520px; margin: 0 auto 10px; }
.confirm-panel .warn {
  font-size: 13px;
  color: var(--red-600);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: #8fa0b6;
  font-size: 12.5px;
  padding: 34px 0 44px;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.site-footer .fbrand {
  font-family: var(--serif);
  color: #c9d4e3;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer a { color: #a9b8cb; }
.site-footer .disclaimer {
  border-top: 1px solid #263853;
  margin-top: 16px;
  padding-top: 14px;
  line-height: 1.7;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .gov-banner .inner { justify-content: center; }
  .gov-banner .inner span:first-child { display: none; }
  .masthead .inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 18px 16px 14px;
  }
  .site-nav .inner { justify-content: center; }
  .site-nav a { padding: 10px 11px; font-size: 12.5px; }
  main { padding: 22px 14px 48px; }
  .hero { padding: 28px 20px 26px; border-radius: 3px; }
  .hero h2 { font-size: 22px; }
  .hero .lede { font-size: 15px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; padding: 15px 20px; font-size: 16px; }
  .callout { padding: 14px 16px; }
  .callout .tel { font-size: 17px; }
  .steps-grid { grid-template-columns: 1fr; }
  .prose { padding: 24px 18px; }
  .prose h2 { font-size: 19px; }
  .wizard-shell { padding: 22px 16px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .progress-labels { font-size: 9.5px; letter-spacing: 0.2px; }
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; padding: 15px 20px; font-size: 16px; }
  .summary-table th { width: 38%; }
  .confirm-panel .ref { font-size: 24px; letter-spacing: 2px; padding: 14px 20px; }
  .certify { flex-direction: column; gap: 8px; }
  .site-footer { padding: 26px 0 36px; }
}

@media (max-width: 380px) {
  .wordmark { padding: 10px 12px; }
  .wordmark .wm-line2 { font-size: 12px; }
  .site-nav a { padding: 9px 8px; font-size: 11.5px; }
}
