/* Kingpost Home Services — brand: Navy #1F2A36, Copper #C0703A, Dark copper #A9552A, Cream #F4EFE6 */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); }

:root {
  --navy: #1F2A36;
  --navy-2: #2A3746;
  --copper: #C0703A;
  --copper-dk: #A9552A;
  --copper-dkr: #8C4421;
  --cream: #F4EFE6;
  --paper: #EAE2D4;
  --ink-soft: #4A5563;
  --line: #D6CCBB;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 700; letter-spacing: .005em; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--copper-dk); text-underline-offset: .18em; }
a:hover { color: var(--copper-dkr); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--cream); color: var(--navy); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.top { background: var(--navy); color: var(--cream); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand__mark { width: 2.75rem; height: 2.75rem; flex: none; }
.brand__words { display: flex; flex-direction: column; font-family: var(--display); line-height: .9; }
.brand__name { font-size: 1.875rem; font-weight: 800; letter-spacing: .06em; }
.brand__tag { font-size: .8125rem; font-weight: 600; letter-spacing: .32em; color: var(--copper); margin-top: .3rem; }

.nav { display: flex; align-items: center; gap: 1.75rem; font-weight: 500; font-size: 1rem; }
.nav a { color: var(--cream); text-decoration: none; }
.nav a:hover { color: #fff; text-decoration: underline; }
.nav__call { font-family: var(--display); font-size: 1.375rem; font-weight: 700; letter-spacing: .02em; }

@media (max-width: 720px) {
  .nav a:not(.nav__call) { display: none; }
  .brand__name { font-size: 1.625rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.5rem;
  font-family: var(--display); font-size: 1.3125rem; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; border-radius: 3px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--copper-dk); color: var(--cream); }
.btn--primary:hover { background: var(--copper-dkr); color: #fff; }
.btn--ghost { border-color: rgba(244, 239, 230, .55); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); color: #fff; }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn--dark:hover { background: var(--navy-2); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--cream); padding: 1rem 0 5.5rem; overflow: hidden; }
.hero__truss { display: block; width: min(100%, 75rem); margin: 0 auto; height: auto; }
.hero__body { text-align: center; margin-top: -.25rem; }
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.5rem); font-weight: 800; letter-spacing: -.005em; line-height: .95;
  max-width: 17ch; margin: 0 auto;
}
.hero__lede { max-width: 36rem; margin: 1.5rem auto 0; color: #D9D2C5; font-size: 1.1875rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .875rem; margin-top: 2.25rem; }

/* The one orchestrated moment: the copper king post drops into place on load. */
.hero__post { stroke-dasharray: 276; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero__post { animation: post-drop 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
  @keyframes post-drop { from { stroke-dashoffset: 276; } to { stroke-dashoffset: 0; } }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--cream); }

/* Services: a ruled two-column list, like a written work order */
.services {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem;
  border-top: 2px solid var(--navy);
}
.services li { padding: 1.375rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.services p { margin-top: .375rem; color: var(--ink-soft); max-width: 34rem; }
.services__note { margin-top: 2rem; max-width: 44rem; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--display); font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--copper-dk);
}
.steps p { margin-top: .5rem; color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* Area */
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; }
.area > div > p { margin-top: 1.25rem; color: var(--ink-soft); max-width: 30rem; }
.counties { margin: 0; border-top: 2px solid var(--navy); }
.counties > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 1.125rem 0; border-bottom: 1px solid var(--line); }
.counties dt { font-family: var(--display); font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.counties dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) {
  .area { grid-template-columns: 1fr; gap: 2rem; }
  .counties > div { grid-template-columns: 1fr; gap: .25rem; }
}

/* About */
.about { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.about__mark { width: 100%; height: auto; }
.about p { margin-top: 1.125rem; max-width: 40rem; color: #D9D2C5; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; gap: 1.5rem; } .about__mark { width: 5rem; } }

/* Roll-off cross-sell band */
.rolloff { background: var(--copper-dk); color: var(--cream); padding: 3rem 0; }
.rolloff__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.rolloff h2 { font-size: clamp(1.875rem, 3.2vw, 2.5rem); }
.rolloff p { margin-top: .625rem; max-width: 42rem; }

/* Estimate form */
.estimate { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; }
.estimate__intro p { margin-top: 1.125rem; color: var(--ink-soft); }
@media (max-width: 860px) { .estimate { grid-template-columns: 1fr; gap: 2rem; } }

.form { display: grid; gap: 1.125rem; background: #FBF8F3; border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 2rem; }
.form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
@media (max-width: 560px) { .form__pair { grid-template-columns: 1fr; } .form { padding: 1.5rem 1.25rem; } }
.form__row { display: grid; gap: .375rem; }
.form label { font-weight: 600; font-size: 1rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--navy);
  background: #fff; border: 1.5px solid #B9AE9C; border-radius: 3px; padding: .75rem .875rem; min-height: 3rem;
}
.form textarea { resize: vertical; min-height: 8rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(192, 112, 58, .45); }
.form [aria-invalid=true] { border-color: #A8321F; }
.check { display: flex; align-items: flex-start; gap: .75rem; font-weight: 500 !important; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--copper-dk); flex: none; }
.form .btn { justify-self: start; }
.form__status { font-weight: 600; }
.form__status.is-error { color: #A8321F; }
.form__status.is-ok { color: #2F6B3A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { background: var(--navy); color: #D9D2C5; padding: 3rem 0; font-size: 1rem; }
.foot__row { display: flex; gap: 3rem; flex-wrap: wrap; align-items: flex-start; }
.foot__row p + p { margin-top: .25rem; }
.foot a { color: var(--cream); }
.foot a:hover { color: #fff; }
.foot__name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--cream); }
.foot__copy { margin-left: auto; align-self: flex-end; color: #A9B1BB; }

/* Simple pages (thanks, 404) */
.simple { padding: 6rem 0 7rem; }
.simple h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 800; }
.simple p { margin-top: 1.25rem; max-width: 36rem; color: var(--ink-soft); }
.simple .btn { margin-top: 2rem; }
.nowrap { white-space: nowrap; }
.form__status:empty { display: none; }
