/* Leonard Builders — structure-stage wireframe kit.
   Grayscale only. Real copy, real layout; type, color and photography are
   decided in the next phase. Ported from the Claude Design "Industry"
   prototype (project c7e6d0ba-7fa6-41ce-8e50-507688b50682) and made
   responsive. Swap these tokens for branded styles once Peter signs off. */

:root {
  --bg: #f2f2f3;
  --ink: #2b2b2d;      /* headings */
  --body: #424244;     /* body copy */
  --mute: #5d5d60;     /* links, secondary */
  --faint: #7a7a7d;    /* labels */
  --label: #98989b;    /* eyebrows / section labels */
  --line: #b7b7ba;     /* borders */
  --hair: #d4d4d7;     /* hairlines, grid gaps */
  --surface: #f5f5f8;  /* tinted band */
  --band: #e7e7ea;     /* darker band */
  --white: #fff;
  --max: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Barlow", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
  font-weight: 600;
}

a { color: var(--mute); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; }

[x-cloak] { display: none !important; }

/* ── wireframe stage banner ─────────────────────────────────────────── */
.wf-banner {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 16px;
}

/* ── page frame: white content column on the grey ground ────────────── */
.site {
  max-width: var(--max);
  margin: 32px auto;
  background: var(--white);
  border: 1px solid var(--line);
}
@media (max-width: 1240px) {
  .site { margin: 0 auto; border-left: none; border-right: none; }
}

/* ── header ─────────────────────────────────────────────────────────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 40px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 132px;
  height: 34px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  flex: none;
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  margin-left: 8px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nav a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }
.hdr-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.hdr-phone {
  font-size: 16px;
  font-weight: 600;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  background: none;
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--mute); }
.mobnav { display: none; }

@media (max-width: 960px) {
  .hdr { padding: 14px 20px; flex-wrap: wrap; }
  .nav, .hdr-cta { display: none; }
  .burger { display: flex; }
  .mobnav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 16px 4px 6px;
    border-top: 1px solid var(--hair);
  }
  .mobnav a { color: var(--mute); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
  .mobnav .hdr-phone { font-size: 20px; margin-top: 4px; }
}

/* ── sections ───────────────────────────────────────────────────────── */
.sec { padding: 40px; border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: none; }
.sec.flush { padding: 0; }
.sec.tint { background: var(--surface); }
.sec.band { background: var(--band); }
@media (max-width: 720px) { .sec { padding: 28px 20px; } }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 12px;
}
.h-xl { font-size: 40px; line-height: 1.08; }
.h-lg { font-size: 32px; line-height: 1.12; }
.h-md { font-size: 26px; }
.h-sm { font-size: 20px; }
.lead { font-size: 17px; color: var(--body); margin-top: 12px; }
.body { font-size: 15px; color: var(--body); }
.muted { color: var(--mute); }
.faint { color: var(--faint); }
@media (max-width: 720px) {
  .h-xl { font-size: 30px; }
  .h-lg { font-size: 26px; }
  .h-md { font-size: 22px; }
}

/* ── buttons + links ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--mute); color: #fff; border-color: var(--mute); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-secondary { border-color: var(--mute); color: var(--mute); background: transparent; }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }
.link {
  font-size: 14px;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
}

/* ── blueprint frame (registration ticks) ───────────────────────────── */
.blueprint { position: relative; border: 1px solid var(--line); }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px; color: var(--label);
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* ── photo placeholder (diagonal hatch + caption chip) ──────────────── */
.ph {
  border: 1px solid var(--line);
  background-image:
    linear-gradient(to top right, transparent calc(50% - 0.5px), var(--hair) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--hair) 50%, transparent calc(50% + 0.5px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
}
.ph-cap {
  font-size: 12px;
  color: var(--mute);
  background: var(--white);
  padding: 4px 8px;
  text-align: center;
}
.ph.on-tint .ph-cap { background: var(--surface); }
.ph.on-band .ph-cap { background: var(--band); }

/* ── generic grids ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

/* section header row (title left, optional link right) */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

/* ── stat strip ─────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.stat { background: var(--surface); padding: 24px 20px; }
.stat-num { font-size: 42px; font-weight: 600; line-height: 1; }
.stat-label { font-size: 15px; color: var(--body); margin-top: 6px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ── service cards ──────────────────────────────────────────────────── */
.card { display: flex; flex-direction: column; }
.card .ph { border: none; border-bottom: 1px solid var(--line); aspect-ratio: 4/3; }
.card-body { padding: 18px 20px 22px; }
.card-title { font-size: 20px; font-weight: 600; }
.card-text { font-size: 15px; color: var(--body); margin-top: 6px; }
.card-link { margin-top: 14px; }

/* ── numbered steps ─────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.step { background: var(--white); padding: 22px 18px; }
.step-n { font-size: 13px; color: var(--label); }
.step-t { font-size: 19px; font-weight: 600; margin-top: 4px; }
.step-d { font-size: 14px; color: var(--body); margin-top: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ── horizontal project rail ────────────────────────────────────────── */
.rail { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 6px; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--hair); }
.tile { flex: none; width: 300px; }
.tile .ph { aspect-ratio: 3/2; }
.tile-title { font-size: 15px; font-weight: 600; margin-top: 10px; }
.tile-meta { font-size: 14px; color: var(--mute); }
.rail-nav { display: flex; align-items: center; gap: 14px; }
.rail-btn {
  width: 40px; height: 40px; border: 1px solid var(--mute); color: var(--mute);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: transparent; cursor: pointer;
}
.rail-btn.active { background: var(--mute); color: #fff; }
@media (max-width: 640px) { .tile { width: 250px; } }

/* ── testimonials ───────────────────────────────────────────────────── */
.quote-lg { font-size: 21px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.quote-by { font-size: 15px; color: var(--mute); margin-top: 18px; }

/* ── feature cards (why choose us) ──────────────────────────────────── */
.feature { padding: 26px 24px; }
.feature-ico { width: 28px; height: 28px; border: 1px solid var(--line); margin-bottom: 16px; }
.feature-t { font-size: 19px; font-weight: 600; }
.feature-d { font-size: 15px; color: var(--body); margin-top: 8px; }

/* ── contact form (real, spam-protected) ───────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.form-grid .span2 { grid-column: span 2; }
.field { display: block; }
.field > span { font-size: 13px; color: var(--body); }
.field input, .field textarea, .field select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  margin-top: 6px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.field textarea { height: 120px; padding: 12px 14px; }
.field-error { color: #b23b3b; font-size: 12px; margin-top: 4px; display: block; }
.form-note { font-size: 15px; color: var(--mute); margin-top: 6px; }
.form-success {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px 22px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
}

/* ── footer ─────────────────────────────────────────────────────────── */
.ftr {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  font-size: 14px;
  color: var(--body);
}
.ftr a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.ftr-col-head {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.ftr-links { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px) { .ftr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr { grid-template-columns: 1fr; } }

/* ── connected-cell matrix (service "what's included / what we build") ─ */
.matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.matrix > div { background: var(--white); padding: 20px; }
.matrix.on-tint > div { background: var(--surface); }
.matrix-t { font-size: 19px; font-weight: 600; }
.matrix-d { font-size: 14px; color: var(--mute); margin-top: 4px; }
@media (max-width: 900px) { .matrix { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .matrix { grid-template-columns: 1fr; } }

/* ── CTA band: text left, actions right ─────────────────────────────── */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* small helpers */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 24px; }
.stack { display: flex; flex-direction: column; }
.divider { height: 1px; background: var(--band); margin: 22px 0; }
