/* Helping Handyman: jobsite-sign look. Hi-vis yellow, near-black ink, square corners. */

:root {
  --ink: #15130f;
  --paper: #fffdf5;
  --sand: #f3eedd;
  --white: #ffffff;
  --yellow: #ffd21f;
  --muted: #4a463d;
  --rule-dark: #5a564c;
  --on-dark-muted: #d8d3c4;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(56px, 8vw, 96px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
input, select, textarea, button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--yellow); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.005em;
}
h2.display { font-size: clamp(46px, 7vw, 84px); }
.kicker { font-weight: 700; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 26px;
  font-weight: 700; font-size: 20px; line-height: 1.1; text-decoration: none; text-align: center;
  border: 3px solid var(--ink); cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ink:hover { box-shadow: 4px 4px 0 var(--muted); }
.on-dark .btn-yellow:hover { box-shadow: 4px 4px 0 var(--paper); }
.btn:active { transform: none; box-shadow: none; }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: 17px; }

/* ---------- preview ribbon (remove at launch) ---------- */
.preview-note {
  background: var(--sand); color: var(--ink);
  font-size: 14px; font-weight: 600; text-align: center; padding: 8px var(--gutter);
  border-bottom: 2px solid var(--ink);
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 68px; }
.brand {
  font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: 0.02em;
  text-transform: uppercase; text-decoration: none; color: var(--paper); padding: 8px 0; white-space: nowrap;
}
.brand span { color: var(--yellow); }
.nav { display: flex; gap: 0 26px; font-weight: 600; font-size: 16px; }
.nav a { color: var(--paper); text-decoration: none; padding: 12px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--paper); border: 2px solid var(--paper); font-weight: 700; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--ink); border-top: 1px solid var(--rule-dark);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-size: 18px; }
  .brand { font-size: 23px; }
}
@media (max-width: 480px) {
  .header-call .long { display: none; }
}
@media (min-width: 481px) {
  .header-call .short { display: none; }
}

/* ---------- hero ---------- */
.hero { background: var(--yellow); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px; align-items: stretch; padding-top: clamp(36px, 6vw, 64px);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(74px, 13.6vw, 184px); line-height: 0.86; }
.hero-lead { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; font-weight: 500; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-photo {
  position: relative; min-height: 420px;
  border: 4px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); background: var(--ink);
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px;
  margin-top: clamp(40px, 6vw, 64px); padding: 22px 0 40px; border-top: 4px solid var(--ink);
}
.facts dt { font-family: var(--display); font-weight: 700; font-size: 30px; text-transform: uppercase; line-height: 1.05; }
.facts dd { font-weight: 500; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { min-height: 300px; box-shadow: 8px 8px 0 var(--ink); margin-right: 8px; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-yellow { background: var(--yellow); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 40px; margin-bottom: 36px;
}
.section-head p { max-width: 27em; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.service {
  background: var(--white); border: 2px solid var(--ink); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.service:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.service svg { width: 34px; height: 34px; }
.service h3 { font-family: var(--display); font-weight: 700; font-size: 30px; text-transform: uppercase; line-height: 1; }
.service p { font-size: 16px; color: var(--muted); flex-grow: 1; }
.service .from { font-weight: 700; color: var(--ink); font-size: 18px; flex-grow: 0; }

/* ---------- prices ---------- */
.prices-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; }
.prices-intro { display: flex; flex-direction: column; gap: 18px; }
.prices-intro h2 { color: var(--yellow); }
.prices-intro p { color: var(--on-dark-muted); }
.prices-intro strong { color: var(--paper); }
.price-list { border-top: 2px solid var(--paper); border-bottom: 2px solid var(--paper); }
.price-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--rule-dark);
}
.price-list li:last-child { border-bottom: 0; }
.price-list .job { font-weight: 700; font-size: 22px; line-height: 1.2; }
.price-list .what { color: var(--on-dark-muted); font-size: 16px; }
.price-list .amount { font-family: var(--display); font-weight: 700; font-size: 34px; white-space: nowrap; color: var(--yellow); }
@media (max-width: 860px) { .prices-grid { grid-template-columns: 1fr; } }

/* ---------- work ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px;
}
.work-item { position: relative; border: 2px solid var(--ink); background: var(--ink); overflow: hidden; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.work-item:hover img { transform: scale(1.03); }
.work-item.feature { grid-row: span 2; }
.work-item figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 15px; padding: 7px 12px;
}
.work-item .tag {
  position: absolute; right: 0; top: 0; background: var(--paper); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.work-item.feature .tag { background: var(--yellow); }
@media (max-width: 860px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .work-item.feature { grid-column: span 2; grid-row: span 2; }
}

/* ---------- references ---------- */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ref { background: var(--white); border: 2px solid var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.ref blockquote { font-size: 20px; line-height: 1.4; font-weight: 500; flex-grow: 1; }
.ref figcaption { font-weight: 700; font-size: 16px; }
.ref.placeholder { border-style: dashed; background: transparent; }
.ref.placeholder blockquote { color: var(--muted); }

/* ---------- areas ---------- */
.areas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; align-items: start; }
.areas-grid h2 { margin-bottom: 14px; }
.towns { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1.1; }
.towns li { border: 2px solid var(--ink); padding: 8px 18px; background: var(--white); }
@media (max-width: 860px) { .areas-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 18px; }
.contact-copy h2 { font-size: clamp(54px, 8vw, 104px); line-height: 0.9; }
.contact-copy .lead { font-size: 22px; font-weight: 500; line-height: 1.35; }
.big-phone {
  font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: 1;
  color: var(--ink); text-decoration: none; align-self: flex-start;
  border-bottom: 5px solid var(--ink); padding-bottom: 2px;
}
.big-phone:hover { border-bottom-color: transparent; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: var(--white); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 18px; }
.form-body { display: flex; flex-direction: column; gap: 18px; }
.form-body > .btn { align-self: flex-start; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 700; font-size: 16px; }
.field .hint { font-weight: 500; color: var(--muted); }
.field input[type='text'], .field input[type='tel'], .field input[type='email'], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
.field [aria-invalid='true'] { border-color: #a3200f; box-shadow: inset 0 0 0 1px #a3200f; }
.field-msg { color: #a3200f; font-weight: 600; font-size: 15px; min-height: 0; }
.field-msg:empty { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 104px; padding: 18px; text-align: center;
  background: var(--paper); border: 2px dashed var(--ink); cursor: pointer;
}
.drop:hover, .drop.over { background: var(--yellow); }
.drop strong { font-size: 18px; }
.drop span { font-size: 15px; color: var(--muted); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; height: 84px; border: 2px solid var(--ink); background: var(--sand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .doc { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 700; font-size: 14px; }
.thumb button {
  position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; padding: 0;
  background: var(--ink); color: var(--paper); border: 2px solid var(--white); border-radius: 50%;
  font-weight: 700; font-size: 16px; line-height: 1; cursor: pointer;
}
.form-note { font-size: 15px; color: var(--muted); }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.form-status.bad { color: #a3200f; }
.form-done { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; }
.form-done h3 { font-family: var(--display); font-weight: 800; font-size: 44px; text-transform: uppercase; line-height: 1; }
.form [hidden] { display: none; }

/* ---------- engineering teaser ---------- */
.teaser {
  border: 3px solid var(--ink); padding: 28px; background: var(--white);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px;
}
.teaser h2 { font-family: var(--display); font-weight: 700; font-size: 34px; text-transform: uppercase; line-height: 1.05; }
.teaser div { flex: 1 1 420px; min-width: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0 56px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .name { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
.footer-brand p { color: var(--on-dark-muted); }
.footer-brand a { font-weight: 700; padding: 8px 0; align-self: flex-start; }
.legal { max-width: 32em; color: var(--on-dark-muted); font-size: 15px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- phone-width call bar ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ink); border-top: 3px solid var(--ink);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 56px;
    font-weight: 700; font-size: 18px; text-decoration: none;
  }
  .callbar .call { background: var(--yellow); color: var(--ink); }
  .callbar .send { background: var(--ink); color: var(--paper); }
  body { padding-bottom: 59px; }
}

/* ---------- engineering page ---------- */
.eng .site-header .brand span { color: var(--paper); }
.eng-hero { background: var(--paper); border-bottom: 4px solid var(--ink); }
.eng-hero .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 40px 64px; align-items: end; }
.eng-hero h1 { font-size: clamp(54px, 9vw, 124px); line-height: 0.9; }
.eng-hero .hero-lead { margin-top: 22px; }
.eng-hero .rule { width: 96px; height: 10px; background: var(--yellow); border: 2px solid var(--ink); margin-bottom: 22px; }
.card { background: var(--white); border: 3px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card dt { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card dd { font-weight: 700; font-size: 19px; }
.eng-services { border-top: 3px solid var(--ink); }
.eng-services li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 40px; align-items: baseline;
  padding: 22px 0; border-bottom: 2px solid var(--ink);
}
.eng-services h3 { font-family: var(--display); font-weight: 700; font-size: 32px; text-transform: uppercase; line-height: 1.05; }
.eng-services p { color: var(--muted); }
@media (max-width: 860px) {
  .eng-hero .wrap { grid-template-columns: 1fr; }
  .eng-services li { grid-template-columns: 1fr; }
}

/* ---------- motion ---------- */
.reveal-ready { opacity: 0; transform: translateY(18px); }
.reveal-ready.seen { opacity: 1; transform: none; transition: opacity 500ms ease, transform 500ms ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready { opacity: 1; transform: none; }
  .btn, .service, .work-item img { transition: none; }
}
