/* Garage Doors Cape Town — archetype K "diagnostic worksheet" (card t_38fc4934).
 *
 * Art direction: a workshop worksheet rather than a billboard. A light paper
 * ground, hard 1px rules, one safety-orange accent, numbered sections, a ruled
 * worksheet hero with one wide band inside it, a symptom strip, a numbered
 * process stepper, and ruled spec rows instead of a card grid. No sticky action
 * bar and no tabbed panel: those are archetypes I and F.
 *
 * Fonts are self-hosted (Archivo, Inter — SIL OFL 1.1) and referenced only from
 * this file. Nothing here calls a font CDN.
 */

/* ---------- tokens ---------- */
:root {
  --ground: #f7f6f3;
  --surface: #eceae4;
  --ink: #14171a;
  --ink-soft: #3a4149;
  --ink-faint: #626874;
  --rule: #d8d5ce;
  --rule-strong: #14171a;
  --accent: #e4570f;
  --accent-btn: #c1440b;   /* button fill: white text reaches 5.1:1 (--accent is 3.7:1, decoration only) */
  --accent-text: #8f3409;
  --accent-tint: #fdefe7;
  --on-dark: #f7f6f3;
  --on-dark-soft: #c6c8cb;
  --maxw: 1120px;
  --gutter: 20px;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- fonts ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.05rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
h4 { font-size: 0.95rem; letter-spacing: 0.01em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
figcaption {
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding-top: 0.5em;
  line-height: 1.4;
}
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--on-dark);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--on-dark); }

/* ---------- masthead ---------- */
.site-header {
  background: var(--ground);
  border-bottom: 1px solid var(--rule-strong);
}
.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo img { width: 44px; height: 44px; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  max-width: 15ch;
  line-height: 1.15;
}
.main-nav { margin-left: auto; }
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li { margin: 0; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }
.header-cta { padding: 10px 16px; font-size: 0.88rem; }

/* ---------- worksheet hero (the archetype's signature block) ---------- */
.worksheet { padding: 26px 0 0; }
.sheet {
  border: 1px solid var(--rule-strong);
  background: var(--ground);
  padding: 26px 26px 0;
}
.sheet-readout {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sheet-readout::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  flex: none;
}
.sheet h1 { max-width: 22ch; }
.sheet-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 1.2em;
}
.sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.sheet-band {
  border-top: 1px solid var(--rule-strong);
  margin: 0 -26px;
}
.sheet-band img { width: 100%; height: auto; }
.sheet-band figcaption { padding: 10px 26px 16px; font-size: 0.76rem; }

/* ---------- sections ---------- */
.section { padding: 52px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.surface-band { background: var(--surface); }
.section-intro { max-width: 66ch; color: var(--ink-soft); margin-bottom: 1.6em; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.55em;
}
.eyebrow--accent { color: var(--accent); }
.section-title { max-width: 30ch; margin-bottom: 0.5em; }

/* ---------- symptom strip ---------- */
.symptom-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule-strong);
}
.symptom { margin: 0; border-right: 1px solid var(--rule); }
.symptom:last-child { border-right: 0; }
.symptom a {
  display: block;
  height: 100%;
  padding: 20px 18px 22px;
  text-decoration: none;
  color: var(--ink);
  background: var(--ground);
}
.symptom a:hover { background: var(--accent-tint); }
.symptom-no {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.symptom-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  margin-bottom: 8px;
}
.symptom-detail { display: block; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- numbered stepper ---------- */
.step-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.step:first-child { border-top: 2px solid var(--rule-strong); }
.step-no {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--rule-strong);
  line-height: 1;
  padding-top: 4px;
}
.step-body h3 { margin-bottom: 0.35em; }
.step-body p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.step-figure img { width: 100%; height: auto; border: 1px solid var(--rule-strong); }

/* ---------- ruled spec rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.rows li {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 2fr auto;
  gap: 8px 26px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.row-key {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}
.row-key a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
.row-key a:hover { color: var(--accent-text); }
.row-meta { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }
.row-cue {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  white-space: nowrap;
}

/* ---------- proof list ---------- */
.proof { list-style: none; margin: 0; padding: 0; }
.proof li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  font-size: 0.98rem;
}
.proof li:first-child { border-top: 1px solid var(--rule); }
.proof-no {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-text);
  letter-spacing: 0.06em;
  padding-top: 3px;
}

/* ---------- split + band ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.split figure img { border: 1px solid var(--rule-strong); }
.band { margin: 0; }
.band img { width: 100%; height: auto; }
.band figcaption { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter) 0; }

/* ---------- article prose ---------- */
article.container { max-width: 820px; padding-top: 26px; padding-bottom: 20px; }
article .section { padding: 34px 0 0; }
article .section + .section { border-top: 0; }
article .section:first-of-type { padding-top: 6px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 68ch; }
.tick-list { list-style: none; padding-left: 0; }
.tick-list li { position: relative; padding-left: 22px; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 2px;
  background: var(--accent);
}
.link-list { list-style: none; padding-left: 0; columns: 2; column-gap: 32px; }
.link-list li { break-inside: avoid; }
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--ink-faint);
  padding-top: 16px;
  padding-bottom: 4px;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); }
.breadcrumbs a:hover { color: var(--accent-text); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.faq-layout figure img { border: 1px solid var(--rule-strong); }
.faq-grid { border-top: 2px solid var(--rule-strong); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-question {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: " +"; color: var(--accent-text); font-weight: 700; }
details[open] .faq-question::after { content: " –"; }
.faq-answer { padding: 0 0 16px; }
.faq-answer p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- CTA ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--on-dark);
  padding: 46px 0;
  margin-top: 34px;
}
.cta-banner a { color: var(--on-dark); }
.cta-container { max-width: 820px; }
.cta-title { color: var(--on-dark); max-width: 26ch; }
.cta-text { color: var(--on-dark-soft); max-width: 60ch; }
.cta-button-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cta-banner .btn-primary { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.cta-banner .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cta-banner .btn-secondary { border-color: var(--on-dark-soft); color: var(--on-dark); }
.cta-banner .btn-secondary:hover { background: var(--on-dark); color: var(--ink); }

/* ---------- lead form ---------- */
.lead-form {
  border: 1px solid var(--rule-strong);
  background: var(--ground);
  padding: 22px;
  margin-bottom: 1.5em;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  padding: 11px 12px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--ink); outline: none; }
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { font-weight: 600; margin: 12px 0 0; }
.form-note { font-size: 0.84rem; color: var(--ink-faint); margin: 14px 0 0; }
.cf-turnstile { margin: 16px 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 46px 0 24px;
  margin-top: 0;
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--on-dark);
  margin-bottom: 0.8em;
}
.footer-text { font-size: 0.9rem; color: var(--on-dark-soft); max-width: 34ch; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5em; }
.footer-links a { font-size: 0.9rem; text-decoration: none; color: var(--on-dark-soft); }
.footer-links a:hover { color: var(--on-dark); }
.footer-contact-item { font-size: 0.9rem; color: var(--on-dark-soft); margin-bottom: 0.5em; }
.footer-confirm { font-size: 0.8rem; color: #8d9199; }
.preferred-source { margin-top: 30px; padding-top: 20px; border-top: 1px solid #33383d; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #33383d;
}
.footer-copyright p { font-size: 0.82rem; color: var(--on-dark-soft); margin: 0 0 4px; }
.footer-credit-line { color: #8d9199; }
.footer-legal { font-size: 0.82rem; display: flex; gap: 10px; align-items: center; }
.footer-legal a { text-decoration: none; }
.footer-credits {
  font-size: 0.74rem;
  color: #7e828a;
  margin: 18px 0 0;
  line-height: 1.6;
}
.footer-credits a { color: #a5a9b1; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .symptom-strip { grid-template-columns: repeat(2, 1fr); }
  .symptom:nth-child(2) { border-right: 0; }
  .symptom:nth-child(1),
  .symptom:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .step-layout,
  .split,
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .link-list { columns: 1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead { gap: 12px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; }
  .nav-menu { gap: 2px 14px; }
  .header-cta { margin-left: auto; }
  .symptom-strip { grid-template-columns: 1fr; }
  .symptom { border-right: 0; border-bottom: 1px solid var(--rule); }
  .symptom:last-child { border-bottom: 0; }
  .rows li { grid-template-columns: 1fr; gap: 4px; }
  .row-cue { white-space: normal; }
  .sheet { padding: 20px 18px 0; }
  .sheet-band { margin: 0 -18px; }
  .sheet-band figcaption { padding: 10px 18px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 40px 0; }
  .step { grid-template-columns: 44px 1fr; gap: 12px; }
}

@media print {
  .site-header, .site-footer, .cta-banner { display: none; }
}

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