/* Wexley & Sons Renovations */

:root {
  --paper: #f5f2eb;
  --paper-2: #ebe6da;
  --sheet: #fffdf8;
  --ink: #22252a;
  --ink-2: #51565d;
  --rule: rgba(34, 37, 42, 0.2);
  --rule-soft: rgba(34, 37, 42, 0.07);
  --accent: #b8451a;
  --accent-dark: #97360f;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gut: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: auto; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
svg { display: block; width: 100%; height: auto; }
.nowrap { white-space: nowrap; }

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

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 14px 18px; z-index: 50; }
.skip:focus { left: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 600 18px/1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  border: 2px solid var(--ink); border-radius: 0; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 19px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 80px; }

.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; white-space: nowrap; flex: none; }
.brand-name { font-weight: 800; font-size: 23px; letter-spacing: -0.02em; }
.brand-sub { font-size: 17px; color: var(--ink-2); }

.nav { display: flex; gap: 26px; flex: none; }
.nav a { white-space: nowrap; font-size: 17px; font-weight: 500; text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 22px; flex: none; }
.phone { font: 500 18px/1 var(--mono); text-decoration: none; white-space: nowrap; padding: 14px 0; }
.phone:hover { color: var(--accent); }
.phone-label { color: var(--ink-2); }

.menu-btn {
  display: none; min-height: 48px; padding: 0 18px;
  font: 600 17px/1 var(--sans); color: var(--ink);
  background: transparent; border: 2px solid var(--ink); cursor: pointer;
}

/* ---------- hero ---------- */

.hero { padding: 48px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }

.eyebrow, .sheet {
  font: 500 17px/1.3 var(--mono); letter-spacing: 0.02em; color: var(--ink-2);
}
.eyebrow { margin-bottom: 26px; }
.sheet { margin-bottom: 16px; }
.sheet::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--accent); vertical-align: middle; margin-right: 12px; }

h1 {
  font-weight: 800; font-size: clamp(2.9rem, 6.4vw, 5.6rem); line-height: 0.96; letter-spacing: -0.035em;
  max-width: 11ch; text-wrap: balance;
}
.lede { margin-top: 30px; font-size: clamp(1.15rem, 1.5vw, 1.32rem); line-height: 1.5; max-width: 34em; color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-hours { margin-top: 18px; font: 400 17px/1.4 var(--mono); color: var(--ink-2); }

/* plan */

.plan-sheet {
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  border: 1px solid var(--rule);
  padding: clamp(8px, 1vw, 14px);
  overflow: hidden;
}
.plan text, .map text { font-family: var(--mono); fill: var(--ink); }
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: square; stroke-linejoin: miter; }
.plan .wall--in { stroke-width: 4.5; }
.plan .wall--new { stroke: var(--accent); }
.plan .glass { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.plan .glass--new { stroke: var(--accent); }
.plan .removed { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 5; }
.plan .door { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.plan .fx * { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.plan .fx .dash { stroke-dasharray: 4 4; stroke-width: 1; }
.plan .fx .arrow { stroke-width: 1.6; }
.plan .hatch-line { stroke: var(--accent); stroke-width: 1.4; opacity: 0.38; }
.plan .dim path:not(.wall) { fill: none; stroke: var(--ink-2); stroke-width: 1.1; }
.plan .dim text { font-size: 12.5px; letter-spacing: 0.05em; fill: var(--ink-2); }
.plan .dim--new path:not(.wall) { stroke: var(--accent); }
.plan .dim--new text { fill: var(--accent); }
.plan .lbl text { font-size: 13px; letter-spacing: 0.09em; font-weight: 500; }
.plan .lbl .lbl--new { fill: var(--accent-dark); }
.plan .tag circle { fill: var(--accent); }
.plan .tag text { fill: #fff; font-size: 13px; font-weight: 500; }
.plan .north circle, .plan .north path { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.plan .north text { font-size: 12px; fill: var(--ink-2); }

.plan-key { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.plan-key a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; font-size: 17px; text-decoration: none; }
.plan-key a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.key {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 500 17px/1 var(--mono);
}

/* promises */

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 3px solid var(--ink); }
.promises li { padding: 22px 28px 26px 0; }
.promises li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.promises strong { display: block; font-weight: 800; font-size: 22px; letter-spacing: -0.015em; margin-bottom: 4px; }
.promises span { color: var(--ink-2); font-size: 17px; line-height: 1.45; display: block; max-width: 28em; }

/* ---------- sections ---------- */

.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec--rule { border-top: 1px solid var(--rule); }
.sec--tint { background: var(--paper-2); }

h2 { font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.quote-copy h2 { text-wrap: wrap; }
h3 { font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }

.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-intro { color: var(--ink-2); max-width: 34em; }

/* cards */

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.card { display: flex; flex-direction: column; padding: 28px 28px 30px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.card:first-child { padding-left: 0; }
.card:last-child { padding-right: 0; border-right: 0; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; }
.card .icon { width: 120px; }
.icon * { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.icon .i-wall { stroke-width: 3.5; stroke-linecap: square; }
.icon .i-dash { stroke-dasharray: 7 6; stroke-width: 2.5; }
.icon .i-solid { fill: var(--ink); }
.icon .i-new { stroke: var(--accent); }
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 26px; }
.facts { margin-top: auto; border-top: 1px solid var(--rule); }
.facts div { padding: 11px 0 12px; border-bottom: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--ink-2); font-size: 17px; line-height: 1.35; }
.facts dd { font: 500 17px/1.5 var(--mono); }

/* steps */

.steps { border-top: 3px solid var(--ink); }
.step {
  display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 3.6fr) minmax(0, 6fr);
  gap: clamp(20px, 3vw, 48px); align-items: start;
  padding: 34px 0 38px; border-bottom: 1px solid var(--rule);
}
.step-num { font-weight: 800; font-size: clamp(5rem, 9vw, 8.2rem); line-height: 0.8; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.step:last-child .step-num { color: var(--accent); }
.step-title { padding-top: 4px; }
.step-when { margin-top: 10px; font: 400 17px/1.4 var(--mono); color: var(--ink-2); }
.step-body { padding-top: 6px; max-width: 36em; font-size: 19px; }

/* quote */

.quote-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.plain { margin-top: 44px; border-top: 3px solid var(--ink); }
.plain div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.plain dt { font-weight: 800; font-size: 23px; line-height: 1.15; letter-spacing: -0.015em; }

.sheet-card { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(22px, 3vw, 40px); box-shadow: 10px 10px 0 rgba(34, 37, 42, 0.08); }
.sheet-card-head { padding-bottom: 20px; border-bottom: 3px solid var(--ink); }
.sheet-card-no { font: 500 17px/1.4 var(--mono); color: var(--ink-2); }
.sheet-card-job { font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; margin-top: 6px; }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-bottom: 1px dashed var(--rule); }
.lines li span:last-child { font: 500 17px/1.5 var(--mono); white-space: nowrap; }
.lines .total { border-bottom: 3px solid var(--accent); padding: 18px 0 16px; font-weight: 800; font-size: 21px; }
.lines .total span:last-child { font-size: 21px; font-weight: 500; }
.sheet-card-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 26px; }
.sheet-card-foot dt { font: 400 17px/1.3 var(--mono); color: var(--ink-2); }
.sheet-card-foot dd { font-weight: 600; line-height: 1.3; margin-top: 2px; }
.sheet-card-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); font: 400 17px/1.4 var(--mono); color: var(--ink-2); }

/* area */

.area-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.map-fig { border: 1px solid var(--rule); background: var(--sheet); padding: clamp(8px, 1.4vw, 18px); }
.map .contour { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.16; }
.map .river-wide { fill: none; stroke: var(--ink); stroke-width: 9; opacity: 0.08; stroke-linecap: round; }
.map .river { fill: none; stroke: var(--ink); stroke-width: 1.3; opacity: 0.55; }
.map .road { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.map .reach { fill: rgba(184, 69, 26, 0.05); stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 7 6; }
.map .town rect { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; }
.map .yard { fill: var(--accent); }
.map .map-lbl text { font-size: 11.5px; letter-spacing: 0.08em; paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; stroke-linejoin: round; }
.map .map-lbl .map-lbl--yard { fill: var(--accent-dark); font-weight: 500; }
.map .scale { fill: none; stroke: var(--ink); stroke-width: 1.2; }

.area-copy h2 { margin-bottom: 24px; }
.towns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 30px 0 26px; border-top: 3px solid var(--ink); }
.towns li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
.towns li:first-child::after { content: "our yard"; font: 400 17px/1 var(--mono); color: var(--accent-dark); margin-left: 12px; }
.area-note { color: var(--ink-2); }

.licence {
  margin-top: clamp(48px, 6vw, 80px); padding: 24px 28px;
  border: 1px solid var(--rule); border-left: 6px solid var(--ink);
  background: var(--sheet); font-size: 17px; line-height: 1.6; color: var(--ink-2);
}
.licence strong { color: var(--ink); }

/* form */

.form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.form-copy h2 { margin-bottom: 24px; }
.form-copy p { max-width: 26em; }
.form-call { margin-top: 28px; padding-top: 24px; border-top: 3px solid var(--ink); color: var(--ink-2); }
.form-call a { font: 500 22px/1.6 var(--mono); color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.form-call a:hover { color: var(--accent); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(22px, 3.2vw, 44px); }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  display: block; width: 100%; min-height: 54px; padding: 12px 14px;
  font: 400 18px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 0;
}
.field textarea { resize: vertical; }
.field ::placeholder { color: #8a8e94; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.field .check { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px; margin: 0; font-weight: 500; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; }
.check:hover { border-color: var(--accent); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.form-end { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font: 400 17px/1.4 var(--mono); color: var(--ink-2); flex: 1 1 14em; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #e9e5db; padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: 40px; }
.footer-brand { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; color: #fff; max-width: 14em; }
.footer-h { font: 500 17px/1.3 var(--mono); color: #b9b4a8; margin-bottom: 10px; }
.site-footer p { font-size: 17px; }
.site-footer a { text-decoration: none; border-bottom: 1px solid rgba(233, 229, 219, 0.35); }
.site-footer a:hover { color: #fff; border-bottom-color: #f08a5c; }
.footer-fine { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(233, 229, 219, 0.22); color: #b9b4a8; max-width: 60em; }

/* ---------- mobile call bar ---------- */

.callbar { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; order: 3; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 3px solid var(--ink); padding: 6px var(--gut) 14px;
  }
  .nav.is-open a { padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 19px; font-weight: 600; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card:first-child, .card:last-child { padding: 28px; }
  .card:nth-child(odd) { padding-left: 0; }
  .card:nth-child(even) { padding-right: 0; border-right: 0; }
}

@media (max-width: 900px) {
  .hero-grid, .sec-head, .quote-grid, .area-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head { align-items: start; }
  .hero { padding-top: 36px; }
  .hero-grid { gap: 36px; }
  .step { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .step-body { grid-column: 2; padding-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .map-fig { order: 2; }
}

@media (max-width: 700px) {
  body { padding-bottom: 68px; }
  .site-header { position: static; }
  .header-row { min-height: 72px; gap: 14px; position: relative; }
  .header-cta { display: none; }
  .brand { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
  .brand-name { font-size: 21px; }

  .hero { padding-top: 30px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(2.75rem, 13.2vw, 3.6rem); }
  .lede { margin-top: 20px; font-size: 18px; }
  .hero-actions { display: none; }
  .hero-hours { margin-top: 16px; }
  .plan .lbl, .plan .dim, .plan .north { display: none; }
  .plan-sheet { padding: 0; aspect-ratio: 490 / 364; }
  .plan { width: 120.4%; max-width: none; margin: -17.96% 0 0 -11.84%; }
  .plan .tag circle { r: 15px; }
  .plan .tag text { font-size: 17px; transform: translateY(1px); }
  .plan-key { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }

  .promises { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .promises li, .promises li + li { padding: 18px 0 20px; border-left: 0; }
  .promises li + li { border-top: 1px solid var(--rule); }

  .cards { grid-template-columns: minmax(0, 1fr); }
  .card, .card:first-child, .card:last-child, .card:nth-child(odd), .card:nth-child(even) { padding: 26px 0 30px; border-right: 0; }

  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 0 30px; }
  .step-num { font-size: 5.4rem; }
  .step-body { grid-column: auto; font-size: 18px; }

  .br-wide { display: none; }
  .quote-copy h2 { text-wrap: balance; }
  .plain div { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .sheet-card { box-shadow: 6px 6px 0 rgba(34, 37, 42, 0.08); }
  .sheet-card-foot { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lines li { gap: 14px; }

  .towns { grid-template-columns: minmax(0, 1fr); }
  .licence { padding: 20px 18px; }

  .form { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-end .btn { width: 100%; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer { padding: 56px 0 36px; }
  .footer-grid > div:last-child p { line-height: 2.3; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--paper); border-top: 2px solid var(--ink);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 60px; font: 600 18px/1 var(--sans); text-decoration: none; }
  .callbar-call { color: var(--ink); font-family: var(--mono); font-weight: 500; }
  .callbar-quote { background: var(--accent); color: #fff; }
}
