/* Marlbrook Group. Palette: blueprint blue, chalk, tape yellow, graphite. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --blueprint: #17458f;
  --navy: #0f2a52;
  --chalk: #f7f9fc;
  --paper: #ffffff;
  --tape: #ffc72c;
  --graphite: #1d232b;
  --slate: #4a5665;
  --line: #c9d3e0;
  --good: #1f7a4d;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--chalk); color: var(--graphite); font: 1.0625rem/1.6 var(--body); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blueprint); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.2vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tape); color: var(--graphite); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; }
.brand-mark { width: 1.9rem; height: 1.9rem; flex: none; }
.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--graphite); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blueprint); text-decoration: underline; text-decoration-thickness: 2px; }
.nav a.btn { color: var(--graphite); text-decoration: none; }

/* Buttons */
.btn { display: inline-block; background: var(--tape); color: var(--graphite); font-weight: 700; text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 4px; border: 2px solid var(--graphite); box-shadow: 4px 4px 0 var(--graphite); transition: transform 120ms ease, box-shadow 120ms ease; font-size: 1.0625rem; cursor: pointer; font-family: var(--body); }
.btn:hover { color: var(--graphite); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--graphite); }
.btn-small { padding: 0.5rem 0.95rem; box-shadow: 3px 3px 0 var(--graphite); font-size: 1rem; }
.btn-quiet { background: transparent; border-color: var(--paper); color: var(--paper); box-shadow: none; }
.btn-quiet:hover { color: var(--paper); background: rgba(255, 255, 255, 0.12); transform: none; box-shadow: none; }

/* Hero: a blueprint sheet */
.hero { background-color: var(--blueprint); color: var(--paper);
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 2rem 2rem; }
.hero .wrap { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 8vw, 6rem); align-items: center; }
.hero p { font-size: 1.2rem; max-width: 34rem; }
.hero .lede-note { font-size: 1rem; opacity: 0.9; margin-top: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1.25fr 1fr; } }

/* Inspection tag in the hero */
.tag { background: var(--paper); color: var(--graphite); border: 2px solid var(--graphite); border-radius: 6px; padding: 1.4rem 1.4rem 1.1rem; box-shadow: 8px 8px 0 var(--navy); position: relative; }
.tag::before { content: ""; position: absolute; top: 0.8rem; right: 0.9rem; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--graphite); background: var(--blueprint); }
.tag h2 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.tag .tag-sub { color: var(--slate); font-size: 0.95rem; margin-bottom: 0.8rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.6rem 0; border-top: 1px dashed var(--line); }
.checks .result { font-weight: 700; color: var(--good); white-space: nowrap; }
.tag .tag-foot { font-size: 0.9rem; color: var(--slate); margin: 0.7rem 0 0; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-paper { background: var(--paper); border-block: 1px solid var(--line); }
.section-intro { font-size: 1.15rem; color: var(--slate); }

/* Findings ledger */
.ledger { border-top: 3px solid var(--graphite); margin-top: 2rem; }
.ledger-row { display: grid; gap: 0.4rem 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.ledger-row h3 { margin: 0; }
.ledger-row p { margin: 0; color: var(--slate); }
.ledger-figure { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--blueprint); }
.ledger-figure small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.9rem; color: var(--slate); line-height: 1.35; margin-top: 0.3rem; }
@media (min-width: 48rem) { .ledger-row { grid-template-columns: 1fr 1.4fr 13rem; align-items: start; } }
.ledger + p { margin-top: 1.5rem; }
.source { font-size: 0.9rem; color: var(--slate); margin-top: 1rem; max-width: 70ch; }

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; border-left: 4px solid var(--tape); padding: 0.2rem 0 0.2rem 1.2rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--blueprint); display: block; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--slate); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } .steps.four { grid-template-columns: repeat(4, 1fr); } }

/* The estimate sheet */
.estimates { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 62rem) { .estimates.three { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.estimate { background: var(--paper); border: 2px solid var(--graphite); border-radius: 4px; box-shadow: 8px 8px 0 var(--line); max-width: 34rem; }
.estimate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 2px solid var(--graphite); background: var(--chalk); }
.estimate-head h3 { margin: 0; font-size: 1.9rem; font-weight: 700; }
.estimate-head span { font-size: 0.95rem; color: var(--slate); }
.estimate-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 1rem; padding: 0.9rem 1.25rem; font-size: 0.95rem; border-bottom: 1px solid var(--line); margin: 0; }
.estimate-meta dt { color: var(--slate); }
.estimate-meta dd { margin: 0; font-weight: 600; }
.lines { list-style: none; margin: 0; padding: 0.4rem 1.25rem; }
.lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dotted var(--line); }
.lines li span:last-child { white-space: nowrap; color: var(--slate); }
.lines li.zero span:last-child { color: var(--good); font-weight: 700; }
.estimate-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.25rem; border-top: 2px solid var(--graphite); }
.estimate-total strong { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.estimate-total span { color: var(--slate); }
.estimate-foot { padding: 0 1.25rem 1.25rem; }

/* Terms list */
.terms { display: grid; gap: 1.25rem 2.5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.terms li { border-top: 3px solid var(--blueprint); padding-top: 0.8rem; }
.terms h3 { margin-bottom: 0.3rem; }
.terms p { margin: 0; color: var(--slate); }
@media (min-width: 48rem) { .terms { grid-template-columns: repeat(2, 1fr); } }

/* Trades */
.trades { columns: 2; column-gap: 2rem; padding: 0; margin: 1.5rem 0 0; list-style: none; max-width: 44rem; }
.trades li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
@media (min-width: 48rem) { .trades { columns: 4; max-width: none; } }

/* FAQ */
.faq { margin-top: 1.5rem; max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: 1.1rem; list-style-position: outside; }
.faq details p { color: var(--slate); padding-bottom: 0.5rem; }

/* Closing band */
.band { background: var(--navy); color: var(--paper); }
.band .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1.5rem; align-items: center; }
.band p { margin: 0; opacity: 0.92; }
@media (min-width: 48rem) { .band .wrap { grid-template-columns: 1.6fr auto; } }

/* Page header for inner pages */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); color: var(--navy); }
.page-head p { font-size: 1.2rem; color: var(--slate); margin: 0; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.7rem, 3.6vw, 2.25rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; max-width: 62ch; }
.prose li { margin-bottom: 0.4rem; }

/* Compare table */
.table-scroll { overflow-x: auto; margin-top: 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; background: var(--paper); }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--graphite); font-family: var(--display); font-size: 1.25rem; }
td.yes { color: var(--good); font-weight: 700; }
td.no { color: var(--slate); }

/* Forms */
.form { background: var(--paper); border: 2px solid var(--graphite); border-radius: 4px; padding: 1.5rem; max-width: 36rem; box-shadow: 8px 8px 0 var(--line); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field .hint { display: block; font-weight: 400; color: var(--slate); font-size: 0.92rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 2px solid var(--slate); border-radius: 4px; background: var(--paper); color: var(--graphite); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blueprint); outline: 3px solid var(--tape); outline-offset: 1px; }
.hp { position: absolute; left: -5000px; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 4px; border: 2px solid var(--graphite); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e6f4ec; border-color: var(--good); }
.form-status.err { background: #fff4d6; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Footer */
.site-footer { background: var(--graphite); color: #d6dde6; font-size: 0.97rem; }
.site-footer .wrap { padding-block: 2.5rem; display: grid; gap: 1.5rem; }
.site-footer a { color: var(--paper); }
.site-footer p { margin: 0 0 0.4rem; max-width: 46ch; }
.site-footer .foot-brand { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--paper); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1.6fr 1fr 1fr; } }

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