/* TechBench — stylesheet
   Palette verified against WCAG 2.2 with tools/contrast.py before use. Ratios in comments are
   measured, not estimated. Do not change a colour without re-running the check. */

:root {
  --ink:      #14181C;  /* 17.84:1 on white */
  --muted:    #4B5560;  /*  7.59:1 on white */
  --brand:    #0E4F54;  /*  9.27:1 on white */
  --brand-dk: #0A3C40;  /* 12.12:1 on white */
  --accent:   #9A3412;  /*  7.31:1 on white */
  --bg:       #FFFFFF;
  --surface:  #F2F5F7;
  --border:   #767F88;  /*  4.07:1 on white — meets 1.4.11 non-text contrast */

  --measure: 68ch;
  --gap: 1rem;
  --radius: 6px;

  /* System font stack: no web font request, no FOUT, no layout shift, no third-party origin. */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

/* Focus: visible on every interactive element, never removed. */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff;
  padding: .75rem 1rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--gap); padding-block: .875rem;
}
.brand {
  font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em;
  color: var(--brand); text-decoration: none; margin-right: auto;
}
.brand span { color: var(--accent); }

.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--ink); text-decoration: none;
  display: inline-block; padding: .625rem .25rem; /* ≥44px touch target with line-height */
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--brand-dk); border-bottom-color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand-dk); border-bottom-color: var(--brand); font-weight: 600; }

.tel {
  display: inline-block; padding: .625rem 1rem; min-height: 44px;
  background: var(--brand); color: #fff; text-decoration: none;
  border-radius: var(--radius); font-weight: 600; white-space: nowrap;
}
.tel:hover, .tel:focus-visible { background: var(--brand-dk); }

/* ---------- hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero .wrap { padding-block: clamp(2rem, 6vw, 3.5rem); }
.hero h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 .75rem; max-width: 20ch; }
.hero p  { font-size: clamp(1.0625rem, 2vw, 1.2rem); max-width: 52ch; margin: 0 0 1.5rem; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .75rem 1.35rem;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }      /* 7.31:1 */
.btn-primary:hover, .btn-primary:focus-visible { background: #7C2A0E; }
.btn-secondary { background: transparent; color: var(--brand-dk); border-color: var(--brand); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--brand); color: #fff; }

/* ---------- content ---------- */
main { padding-block: clamp(2rem, 5vw, 3rem); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 2.5rem; }
h3 { font-size: 1.15rem; margin-top: 1.75rem; }
p, li { max-width: var(--measure); }
a { color: var(--brand); }
a:hover, a:focus-visible { color: var(--brand-dk); }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.card h3 { margin-top: 0; }
.card h3 a { text-decoration: none; }
.card h3 a:hover, .card h3 a:focus-visible { text-decoration: underline; }
.card p { color: var(--muted); margin-bottom: 0; }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }

.callout {
  border-left: 4px solid var(--brand); background: var(--surface);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.75rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */
.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: .625rem .75rem;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.field .error { display: block; color: var(--accent); font-weight: 600; margin-top: .35rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }

/* Honeypot: hidden from sighted users AND from assistive technology, since no human should
   ever fill it. aria-hidden + tabindex=-1 are set in the markup. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; border: 1px solid; }
.status-ok   { background: var(--surface); border-color: var(--brand);  color: var(--ink); }
.status-bad  { background: var(--surface); border-color: var(--accent); color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; }
.site-footer .wrap { padding-block: 2rem; }
.site-footer h2 { font-size: 1rem; margin: 0 0 .5rem; }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }

.disclosure {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .9375rem; max-width: none;
}
.disclosure strong { color: var(--ink); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
