/* LintelWorks — Post and beam.
   Layout idea: one dark beam sits over each working surface; content stands in the opening below.
   Left-aligned throughout. Single light theme by choice. */
:root {
  color-scheme: light;
  --plaster: #F2F3EF;
  --surface: #FFFFFF;
  --ink: #16201B;
  --ink-2: #55605A;
  --line: #D5D9D1;
  --beam: #18372C;
  --go: #1F6F4A;
  --go-tint: #E3EFE7;
  --ask: #F2B33D;
  --ask-ink: #7A4206;
  --ask-tint: #FCF1D8;
  --never: #55605A;
  --never-tint: #E9EBE7;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 6px;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-press: 150ms;
  --t-enter: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--beam); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ask); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.005em; }
h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: 0; font-stretch: 105%; }
p { margin: 0; max-width: 62ch; }
ul, ol { margin: 0; padding-left: 1.2em; }
li + li { margin-top: 0.35em; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink); max-width: 56ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.86rem; line-height: 1.45; }
.fig { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* ---------- structure ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--beam { background: var(--beam); color: #F2F3EF; }
.section--beam a:not(.btn) { color: #F2F3EF; }
.section--beam .lead { color: #F2F3EF; }
.section--beam .muted { color: #B9C7BE; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack--lg { gap: 28px; }
.stack--sm { gap: 8px; }
.grid-2 { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.grid-2--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-2--wide-left { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- page head (inner pages) ---------- */
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head .stack { max-width: 820px; gap: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--font-body);
  color: #fff; background: var(--beam);
  border: 1px solid var(--beam); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-press) var(--ease), background var(--t-press) var(--ease);
}
.btn:hover { background: #0F2A21; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--beam); border-color: var(--beam); }
.btn--ghost:hover { background: rgba(24, 55, 44, 0.07); }
.btn--ask { background: var(--ask); border-color: var(--ask); color: var(--ink); }
.btn--ask:hover { background: #E9A728; }
.btn--light { background: #F2F3EF; border-color: #F2F3EF; color: var(--beam); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.textlink { font-weight: 600; }

/* ---------- beam card: the signature. The beam overhangs its posts like a real lintel. ---------- */
.beam-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 34px 28px 28px;
  margin: 0 8px;
}
.beam-card::before {
  content: ""; position: absolute; top: 0; left: -9px; right: -9px; height: 8px;
  background: var(--beam); border-radius: 1px;
}
.beam-card > .stack { height: 100%; }
.beam-card--ask::before { background: var(--ask); }
.beam-card--flush { padding: 8px 0 0; overflow: hidden; }
@media (max-width: 520px) { .beam-card { padding: 30px 20px 22px; } }

/* plain card: use where the beam would be noise */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card--plaster { background: var(--plaster); }

/* ---------- tiers: shape + word + colour, never colour alone ---------- */
.tier {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 8px; border-radius: 4px;
  font: 600 0.84rem/1.3 var(--font-body); white-space: nowrap;
}
.tier--go { background: var(--go-tint); color: var(--go); }
.tier--ask { background: var(--ask-tint); color: var(--ask-ink); }
.tier--never { background: var(--never-tint); color: var(--never); }
.tier .icon { width: 1.05em; height: 1.05em; stroke-width: 2; }

/* three-tier explainer */
.tiers { display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tiers > div { padding: 24px; display: grid; gap: 12px; align-content: start; }
.tiers > div + div { border-left: 1px solid var(--line); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tiers > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- worker flow rows: arrives / handled / asks you ---------- */
.flow { display: grid; gap: 0; border-top: 1px solid var(--line); }
.flow-row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.flow-row h3 { margin-bottom: 6px; }
.flow-label { font: 600 0.84rem/1.3 var(--font-body); color: var(--ink-2); margin-bottom: 4px; }
@media (max-width: 860px) { .flow-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; } }

/* ---------- facts bar ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts > div { padding: 18px 20px; display: grid; gap: 2px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts strong { font: 600 1rem/1.3 var(--font-display); font-stretch: 105%; }
.facts span { font-size: 0.86rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { border-left: 0; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- steps: a real sequence, so it is numbered ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; counter-reset: step; }
.steps > li { margin: 0; counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 4px solid var(--beam); }
.steps > li::before { content: counter(step); font: 600 0.95rem/1 var(--font-mono); color: var(--ink-2); }
.steps .when { font: 600 0.86rem/1.3 var(--font-body); color: var(--go); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- prices ---------- */
.price { font: 600 2.1rem/1 var(--font-display); font-stretch: 105%; letter-spacing: -0.02em; }
.price small { font: 500 0.95rem/1.3 var(--font-body); color: var(--ink-2); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { margin: 0; display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.ticks .icon { color: var(--go); margin-top: 0.22em; stroke-width: 2; }
.ticks--never .icon { color: var(--never); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.97rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table thead th { font: 600 0.86rem/1.3 var(--font-body); color: var(--ink-2); background: var(--plaster); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 600; }
@media (max-width: 620px) { table.table { min-width: 0; font-size: 0.9rem; } .table th, .table td { padding: 12px 10px; overflow-wrap: anywhere; } .table .tier { white-space: normal; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 1.08rem/1.35 var(--font-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.6rem/1 var(--font-body); color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { margin-bottom: 18px; }

/* ---------- notes and example markers ---------- */
.note { border-left: 4px solid var(--beam); background: var(--surface); padding: 18px 20px; display: grid; gap: 8px; border-radius: 0 var(--radius) var(--radius) 0; }
.note--ask { border-left-color: var(--ask); background: var(--ask-tint); }
.example-tag { display: inline-block; font: 600 0.78rem/1.3 var(--font-body); color: var(--ink-2); border: 1px dashed #9AA39C; border-radius: 4px; padding: 2px 8px; }

/* ---------- document preview (an email, a quote, a PO) ---------- */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 0.95rem; line-height: 1.5; display: grid; gap: 8px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.84rem; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font: 600 0.92rem/1.3 var(--font-body); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid #9AA39C; border-radius: var(--radius);
}
.field textarea { min-height: 112px; resize: vertical; }
.field .hint { font-size: 0.84rem; color: var(--ink-2); }
.form-status { font-weight: 600; color: var(--go); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(242, 243, 239, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg, .brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; font: 500 0.97rem/1.2 var(--font-body); }
.nav a:hover { background: rgba(24, 55, 44, 0.07); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--beam); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-phone { font: 600 0.97rem/1.2 var(--font-body); color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-login { font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; }
.nav-toggle { display: none; width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 26px; height: 26px; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 1340px) { .header-login { display: none; } }
@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px var(--gutter) 20px; background: var(--plaster); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--beam); padding-left: 12px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
}

/* mobile sticky bar: Call / Book */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(242, 243, 239, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  body { padding-bottom: 76px; }
  body.is-portal .mobile-bar { display: none; }
  body.is-portal { padding-bottom: 0; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--beam); color: #DDE5DF; padding: 56px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #F2F3EF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { color: #F2F3EF; margin-bottom: 12px; font-size: 0.95rem; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-grid li { margin: 0; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(242, 243, 239, 0.2); display: flex; flex-wrap: wrap; gap: 8px 24px; color: #B9C7BE; font-size: 0.86rem; }
.footer-legal p { max-width: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- pages (hash routed) ---------- */
[data-page] { display: none; }
[data-page].is-active { display: block; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero .grid-2 { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero h1 { font-stretch: 114%; font-size: clamp(2.1rem, 4.3vw, 3.3rem); }
.hero-copy { display: grid; gap: 24px; }
.hero-reassure { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 860px) { .hero .grid-2 { grid-template-columns: 1fr; } }

/* animation slots keep their footprint before scripts mount */
[data-anim="hero"] { min-height: 420px; }
[data-anim="goods-in"] { min-height: 320px; }
[data-anim="tiers"] { min-height: 260px; }
[data-vignette] { min-height: 284px; }

/* ---------- dialog (guided check, booking) ---------- */
.dialog-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(22, 32, 27, 0.55); display: none; align-items: flex-end; justify-content: center; padding: 0; }
.dialog-backdrop.is-open { display: flex; }
.dialog { background: var(--plaster); width: 100%; max-width: 920px; max-height: 92%; overflow: auto; border-top: 8px solid var(--beam); border-radius: 0; padding: 24px var(--gutter) 32px; display: grid; gap: 20px; }
@media (min-width: 760px) { .dialog-backdrop { align-items: center; padding: 24px; } .dialog { border-radius: 0 0 var(--radius) var(--radius); padding: 28px 32px 32px; } }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-close { width: 44px; height: 44px; margin: -8px -8px 0 0; background: none; border: 0; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 9px 16px; border: 1px solid #9AA39C; background: var(--surface); border-radius: var(--radius); font: 500 0.97rem/1.3 var(--font-body); color: var(--ink); cursor: pointer; transition: background var(--t-press) var(--ease), border-color var(--t-press) var(--ease); }
.chip:hover { border-color: var(--beam); }
.chip[aria-pressed="true"] { background: var(--beam); border-color: var(--beam); color: #fff; }
.progress { display: flex; gap: 6px; }
.progress span { height: 4px; flex: 1; background: var(--line); }
.progress span.is-done { background: var(--beam); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Keep sticky navigation clear of keyboard and in-page destinations. */
[id] { scroll-margin-top: 5rem; }
.sr-only:focus-visible {
  position: fixed;
  z-index: 101;
  top: .75rem;
  left: .75rem;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  padding: .5rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
}
