/* Hesketh & Son — one-page site. No JS, no external requests. */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2-variations'),
       url('fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0 0 1rem 0; }
img { max-width: 100%; }

/* ---------- variables ---------- */
:root {
  --navy: #0A2540;
  --text: #111827;
  --charcoal: #1F2937;
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --accent: #0F766E;
  --accent-hover: #0A5F5A;
  --muted: #6B7280;
  --border: #E5E7EB;
}

/* ---------- base ---------- */
html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  font-size: clamp(0.945rem, 0.78rem + 0.6vw, 1.05rem);
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 2.5rem; }
}

h1, h2, h3, .wordmark {
  color: var(--navy);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 1.9rem + 1.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6875rem, 1.5rem + 0.8vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

p { color: var(--text); }

a {
  color: var(--accent);
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.2rem);
  color: var(--charcoal);
  max-width: 48rem;
}

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

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--accent);
}

/* ---------- sections ---------- */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

section#situation,
section#how-it-works,
section#firm,
section#pricing,
section#reserve {
  border-top: 1px solid var(--border);
}

#example h2 {
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.5rem;
}

section#example {
  border-top: 1px solid var(--border);
}

/* ---------- steps ---------- */
.steps {
  list-style: decimal;
  padding-left: 1.5rem;
  max-width: 48rem;
}

.steps li {
  margin-bottom: 1.25rem;
  padding-left: 0.25rem;
}

.steps li strong {
  color: var(--navy);
}

/* ---------- details / example ---------- */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 0.25rem 0;
}

summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.details-body {
  margin-top: 1.25rem;
}

/* ---------- evidence tag ---------- */
.evidence-tag {
  display: inline-block;
  border-left: 3px solid var(--accent);
  padding-left: 0.5rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.875rem;
  color: var(--charcoal);
  margin-right: 0.25rem;
}

.mono-inline {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- demo mapping grid ---------- */
.mapping-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 1.25rem 0;
}

.mapping-row {
  display: contents;
}

.mapping-grid [role="columnheader"],
.mapping-grid [role="cell"] {
  background: var(--surface);
  padding: 1rem;
  font-size: 0.95rem;
}

.mapping-header [role="columnheader"] {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mapping-grid .tender-text {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--charcoal);
  line-height: 1.55;
}

.cell-label {
  display: none;
}

@media (max-width: 768px) {
  .mapping-grid {
    grid-template-columns: 1fr;
  }
  .mapping-header {
    display: none;
  }
  .cell-label {
    display: block;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
  }
}

/* ---------- pricing table ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin: 1.25rem 0;
  font-feature-settings: "tnum";
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- form ---------- */
.intake-form {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.form-field input {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  color: var(--text);
}

.form-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.intake-form .btn {
  align-self: flex-start;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
  max-width: 48rem;
}
