/* KZ Construction — one stylesheet for the whole site. */

/* Archivo (SIL Open Font License), self-hosted: latin subset, variable width + weight. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
}

:root {
  --ink: #0f2342;
  --ink-2: #16305a;
  --steel: #5b6470;
  --line: #d9dcdf;
  --line-dark: #26406a;
  --paper: #f5f5f3;
  --white: #ffffff;
  --hivis: #f3b61f;
  --hivis-dark: #d99c00;
  --error: #b42318;

  --wide: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Archivo", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--hivis); color: var(--ink); padding: 10px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

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

/* ---------- logo lockup ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  color: var(--white);
}
.logo-kz {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 38px;
  letter-spacing: -0.02em;
}
.logo-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0.42em;
  margin-top: 4px;
  margin-right: -0.42em; /* cancels the trailing letter-space so it centres */
  text-transform: uppercase;
}
.logo-rule {
  width: 100%;
  height: 3px;
  background: var(--hivis);
  margin-top: 5px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none; color: #c5d0e0;
  /* 44px tap height without changing the text; the nav centres it vertically */
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .nav-phone { color: var(--white); white-space: nowrap; }
.nav .nav-phone { display: inline-flex; align-items: center; gap: 8px; }
.nav .nav-phone svg { color: var(--hivis); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--hivis); color: var(--ink); }
.btn-primary:hover { background: var(--hivis-dark); }
.btn .arrow { font-size: 18px; line-height: 1; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}
.section h1,
.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- landing ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 104px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(105deg, transparent 20%, #000 75%);
          mask-image: linear-gradient(105deg, transparent 20%, #000 75%);
}
.hero .wrap { position: relative; }
.hero .section-label { color: var(--hivis); }
.hero h1 {
  max-width: 14em;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: .95;
  text-transform: uppercase;
}
.hero-lede { max-width: 52ch; margin: 26px 0 36px; font-size: clamp(17px, 1.6vw, 20px); color: #b8c4d6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* While there is no intro line, the buttons keep the gap it gave them. */
.hero h1 + .hero-actions { margin-top: 36px; }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--white); }

.services { background: var(--paper); }
.services h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  border-top: 2px solid var(--ink);
}
.service-list li {
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 22px;
  text-transform: uppercase;
  overflow-wrap: break-word; /* a label longer than its column wraps, never spills into the next */
}

/* Placeholder text the owner still has to write. Loud on purpose. */
.todo { background: #ff7b6f; color: #000; padding: 0 4px; font-weight: 700; }

/* ---------- estimate form ---------- */
.estimate { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.estimate::before {
  /* survey grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(105deg, transparent 20%, #000 75%);
          mask-image: linear-gradient(105deg, transparent 20%, #000 75%);
}
.estimate .wrap { position: relative; }
.estimate .section-label { color: var(--hivis); }
.estimate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
@media (min-width: 960px) { .estimate-grid { grid-template-columns: 4fr 7fr; gap: 72px; } }
.estimate-aside p { color: #b8c4d6; max-width: 40ch; }
.direct {
  margin-top: 63px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.direct dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8fa0b8;
}
.direct dd { margin: 4px 0 20px; font-size: 19px; font-weight: 600; }
.direct a { text-decoration: none; }
.direct a:hover { color: var(--hivis); }

.form-card {
  background: var(--white);
  color: var(--ink);
  padding: clamp(24px, 4vw, 44px);
  border-top: 6px solid var(--hivis);
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 22px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field .req { color: var(--hivis-dark); }
.field .opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--steel); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #b8bdc3;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field select {
  -webkit-appearance: none;
          appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f2342' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background-color: var(--white);
  box-shadow: inset 0 -3px 0 var(--hivis);
}
.field.invalid input, .field.invalid select { border-color: var(--error); }
.yesno { margin: 0; padding: 0; border: 0; min-width: 0; }
.yesno legend {
  margin-bottom: 7px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.yesno label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-right: 10px;
  padding: 0 20px 0 16px;
  border: 1px solid #b8bdc3;
  background: var(--paper);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.yesno label:hover { border-color: var(--ink); }
.yesno input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.yesno label:has(input:checked) { border-color: var(--ink); background: var(--white); box-shadow: inset 0 -3px 0 var(--hivis); }
/* `.field input:focus` above strips the outline from these radios too; put the
   site-wide keyboard focus ring back, on the whole pill. */
.yesno label:has(input:focus-visible) { outline: 3px solid var(--hivis); outline-offset: 2px; }
.field .hint { margin: 6px 0 0; font-size: 13px; color: var(--steel); }
.field .err { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--error); display: none; }
.field.invalid .err { display: block; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--hivis);
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
}
.form-foot p { margin: 0; font-size: 13.5px; color: var(--steel); max-width: 36ch; }
.form-foot .btn { min-width: 220px; }

/* ---------- thank-you ---------- */
.thanks { min-height: 56vh; display: flex; align-items: center; }
.thanks p { color: var(--steel); max-width: 52ch; font-size: 18px; }

/* ---------- footer ---------- */
.site-footer {
  background: #0a1830;
  color: #9fb0c8;
  font-size: 14.5px;
  padding: 56px 0 36px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-contact { display: grid; }
.footer-contact a {
  text-decoration: none; color: var(--white);
  /* 44px tap height each; the gap was folded into the targets so they do not overlap */
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer-contact a:hover { color: var(--hivis); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  font-size: 13px;
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .nav .nav-phone .label { display: none; }
  /* icon-only: 44px square tap area around the 14px icon; the negative
     margins take the extra 30px back out so nothing else in the header moves */
  .nav .nav-phone { min-width: 44px; justify-content: center; margin: 0 -15px; }
  .form-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
