/* Accessible Agendas — "Civic Record" theme
   All text/background pairs meet WCAG 2.1 AA contrast (4.5:1, or 3:1 for large text). */

:root {
  --ink: #1B2A4A;        /* navy: text, dark bands */
  --brick: #A23B1F;      /* accent: primary buttons, numerals */
  --brick-dark: #7E2D17;
  --paper: #F7F6F2;      /* page background */
  --sand: #E9E4D8;       /* tags, scan band */
  --line: #D9D5CA;       /* borders */
  --muted: #4A5468;      /* secondary text */
  --white: #FFFFFF;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --focus: 3px solid #A23B1F;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--ink); }
a:hover { color: var(--brick); }

:focus-visible { outline: var(--focus); outline-offset: 3px; }
main:focus { outline: none; }

h1, h2, h3 { line-height: 1.15; margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 600px) { .wrap { padding: 0 1rem; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: .75rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1.125rem;
  padding: 1rem 1.75rem; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; line-height: 1.2; text-align: center;
}
.btn-sm { font-size: 1rem; padding: .75rem 1.25rem; }
.btn-brick { background: var(--brick); color: var(--white); }
.btn-brick:hover { background: var(--brick-dark); color: var(--white); }
.btn-navy { background: var(--ink); color: var(--white); }
.btn-navy:hover { background: #0F1A30; color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.main-nav a { text-decoration: none; font-size: 1rem; }
.main-nav a:hover { text-decoration: underline; }
@media (max-width: 900px) { .main-nav { display: none; } }

/* Hero */
.hero { padding-block: 5.5rem; }
.hero-row { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-art { flex: 1 1 400px; min-width: 0; }
.eyebrow {
  font-size: .875rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--brick); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.05; }
.lead { font-size: 1.25rem; line-height: 1.55; max-width: 560px; margin-top: 1.5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* Hero illustration: annotated agenda */
.doc-card {
  margin: 0; background: var(--white); border: 1px solid var(--line); padding: 2rem;
  box-shadow: 0 12px 32px rgba(27, 42, 74, .10);
}
.doc-card figcaption {
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.doc-line { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.doc-title { font-family: var(--serif); font-size: 1.375rem; font-weight: 700; line-height: 1.3; }
.tag { flex: none; font-size: .75rem; font-weight: 600; padding: .25rem .5rem; background: var(--sand); color: var(--ink); }
.tag-dark { background: var(--ink); color: var(--white); }
.doc-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9375rem; border: 1px solid var(--line); }
.doc-table th { background: var(--ink); color: var(--white); text-align: left; padding: .5rem .75rem; font-weight: 600; }
.doc-table td { padding: .5rem .75rem; }

/* Deadline band */
.deadline-band { background: var(--ink); color: var(--white); }
.deadline-inner { display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center; padding-block: 1.75rem; font-size: 1.0625rem; }
.deadline-inner strong { font-family: var(--serif); font-size: 1.25rem; }

/* Sections */
.section { padding-block: 5rem 3rem; }
.section-intro { font-size: 1.125rem; margin: .75rem 0 2rem; }
.section > .wrap > h2 { margin-bottom: 2.5rem; }
.section > .wrap > h2:has(+ .section-intro) { margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.step-num { display: block; font-family: var(--serif); font-size: 2.75rem; font-weight: 700; color: var(--brick); line-height: 1; }
.steps h3 { margin: .75rem 0 .5rem; }

/* Who we serve */
.who-list { list-style: none; margin: 0; padding: 0; }
.who-list li { background: var(--white); border: 1px solid var(--line); padding: 1.25rem; font-weight: 500; }

/* Pricing */
.price-card { background: var(--white); border: 1px solid var(--line); padding: 2rem; }
.price-card.featured { background: var(--ink); border-color: var(--ink); color: var(--white); }
.price { font-family: var(--serif); font-size: 3rem; font-weight: 700; margin: .75rem 0; line-height: 1.1; }
.price span { font-size: 1.25rem; font-weight: 400; }
.price-note { margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); }

/* Scan band + forms */
.scan-band { background: var(--sand); margin-top: 3rem; }
.scan-inner { padding-block: 5rem; }
.scan-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; max-width: 900px; margin-top: 1.75rem; }
.field { display: flex; flex-direction: column; gap: .375rem; flex: 1 1 280px; }
.field label { font-size: .9375rem; font-weight: 600; }
.field input {
  font: inherit; font-size: 1.125rem; padding: .875rem 1rem;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink); border-radius: 0;
}
.field input:focus-visible { outline: var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { width: 100%; font-size: .9375rem; color: var(--muted); }

/* Messages (scan.php) */
.notice { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--ink); padding: 2rem; max-width: 760px; }
.notice.error { border-left-color: var(--brick); }
.notice h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.notice p + p { margin-top: 1rem; }
.error-list { margin: 1rem 0 0; padding-left: 1.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; padding-block: 2rem 2.5rem; font-size: .9375rem; color: var(--muted); }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--ink); }

/* Inner pages and the remediation test page */
.page-title { font-size: clamp(2.25rem, 4.5vw, 3rem); }
.section .notice { padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.upload-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; max-width: 900px; margin-bottom: 3.5rem; }
.field { min-width: 0; }
.field input { max-width: 100%; min-width: 0; }
.field input[type="file"] { font-size: 1rem; padding: .75rem; }
.jobs-title { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.jobs-title + .form-note { margin: -.5rem 0 1rem; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: .9375rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--ink); color: var(--white); font-weight: 600; }
.data-table tbody th { font-weight: 600; }
.data-table td:first-child { white-space: nowrap; }
.data-table tr.is-new { background: #FBF8F0; }
.job-meta { display: block; font-weight: 400; color: var(--muted); font-size: .875rem; margin-top: .25rem; }
.job-error { display: block; color: var(--brick-dark); font-size: .875rem; margin-top: .375rem; max-width: 36ch; }
.file-links a { display: inline-block; margin: 0 .75rem .25rem 0; }

.status { display: inline-block; font-weight: 600; font-size: .8125rem; padding: .2rem .55rem; border: 1px solid currentColor; white-space: nowrap; }
.status-ok   { color: #1D5A32; background: #E6F2EA; }
.status-warn { color: #7A4A00; background: #FBF0D9; }
.status-fail { color: var(--brick-dark); background: #F8E6E1; }
.status-wait { color: var(--ink); background: var(--sand); }
