/* Halstead & Sons — a third-generation roofing firm's own site.
   Direction: solid, settled, confident — the visual language of a good sign-written van.
   Warm off-white paper, slate grey, clay-red accent, gold only for stars and on-dark
   accents. Display face: Oswald 600 (self-hosted, swap — never blocks render), the
   condensed lettering of trade signage; everything longer than a label stays in the
   system stack. Mobile designed first at 390px. */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/oswald-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F6F3EE;
  --card: #FFFFFF;
  --ink: #23272C;
  --muted: #5A626B;
  --line: #E3DDD2;
  --slate: #39424C;
  --slate-deep: #2C333B;
  --clay: #A6402C;
  --clay-deep: #8C3524;
  --gold: #E8A33D;
  --focus: #2563EB;
  --ba-focus: #2563EB;
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }  /* the hidden attribute must beat any display class */

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 4px;
}
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }

.kicker {
  font-family: var(--display);
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.7em;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 26px; height: 3px;
  background: var(--clay);
  margin-right: 10px;
  vertical-align: 0.22em;
}

/* Buttons — van-lettering caps */
.btn {
  display: inline-block;
  padding: 14px 22px 13px;
  border: 0;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-secondary:hover { background: rgba(35, 39, 44, 0.06); }
.btn-block { width: 100%; }

/* Header — slate band, sticky so the phone number never leaves the screen */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--slate-deep);
  color: #fff;
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 10px;
}
.wordmark {
  margin: 0;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.mark { color: var(--gold); flex: none; }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark-sub {
  font-family: system-ui, sans-serif;
  font-weight: 600; font-size: 0.66rem; color: #9AA5B0;
  letter-spacing: 0.12em; text-transform: uppercase;
}
@media (max-width: 479px) {
  .wordmark-sub { display: none; }  /* wraps badly; the hero kicker carries the location */
}
.btn-phone {
  background: var(--clay); color: #fff;
  padding: 10px 16px; border-radius: 4px;
  font-family: var(--display);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.btn-phone:hover { background: var(--clay-deep); }

/* Hero */
.hero { padding-block: 32px 44px; }
.hero-grid { display: grid; gap: 28px; }
.hero-slider {
  border-radius: 8px;
  box-shadow: 7px 7px 0 var(--slate);   /* mounted-photo offset, not a glow */
}
.hero-caption { color: var(--muted); font-size: 0.9rem; margin: 16px 2px 0; }
.hero-copy { max-width: 34rem; }
.hero-copy .hl {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 5px;
  text-underline-offset: 6px;
}
.lede { font-size: 1.1rem; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (min-width: 900px) {
  .hero { padding-block: 52px 64px; }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
  .hero-copy { max-width: none; }
  .hero-slider { box-shadow: 12px 12px 0 var(--slate); }
}

/* Stats bar — the about page, replaced */
.stats {
  background: var(--slate);
  color: #fff;
  border-top: 4px solid var(--clay);
}
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px 16px; padding-block: 30px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-n {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.5vw, 3rem);
  font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-star { color: var(--gold); font-size: 0.6em; vertical-align: 0.3em; margin-left: 3px; }
.stat-unit { font-size: 0.5em; font-weight: 600; margin-left: 2px; letter-spacing: 0.06em; }
.stat-l {
  font-size: 0.76rem; font-weight: 600; color: #C6CDD4;
  letter-spacing: 0.1em; text-transform: uppercase;
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
  .stat { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

/* Sections rhythm */
.work, .reviews, .process { padding-block: 60px; }

/* Recent work */
.work-grid { display: grid; gap: 22px; margin-top: 10px; }
.job {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.job:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(35, 39, 44, 0.13); }
.job-media { position: relative; }
.job-media img { width: 100%; }
.job-loc {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(35, 39, 44, 0.88); color: #fff;
  font-family: var(--display);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px 4px; border-radius: 3px;
}
.job-body { padding: 18px 20px 20px; }
.job-body h3 { margin-bottom: 0.2em; }
.job-meta {
  color: var(--clay); font-weight: 700; font-size: 0.95rem;
  margin-bottom: 0.7em; font-variant-numeric: tabular-nums;
}
.job-note { color: var(--muted); font-size: 0.95rem; margin: 0; }
.note-label {
  display: block;
  font-family: var(--display);
  color: var(--clay);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 3px;
}
@media (min-width: 720px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* Trust row */
.trust { background: #EFEAE1; border-block: 1px solid var(--line); padding-block: 40px; }
.badges {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: 1fr 1fr;
}
.badge {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 15px 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.badge-ico { color: var(--clay); flex: none; margin-top: 2px; }
.badge div { display: flex; flex-direction: column; gap: 2px; }
.badge strong { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; }
.badge span { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.worked-with { margin: 24px 0 0; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.worked-with-label {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay);
  margin-bottom: 4px;
}
@media (min-width: 900px) {
  .badges { grid-template-columns: repeat(4, 1fr); }
}

/* Reviews */
.review-grid { display: grid; gap: 20px; margin-top: 10px; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(35, 39, 44, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.review:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(35, 39, 44, 0.12); }
.review p:last-child { margin: 0; color: var(--ink); font-size: 0.98rem; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-head div { display: flex; flex-direction: column; line-height: 1.3; }
.review-meta { color: var(--muted); font-size: 0.85rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 600; flex: none;
}
.avatar-a { background: var(--slate); }
.avatar-b { background: var(--clay); }
.avatar-c { background: #4A6B57; }
.stars { color: var(--gold); letter-spacing: 2px; margin: 0 0 10px; font-size: 1.05rem; }
.star-off { color: var(--line); }
@media (min-width: 900px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Process */
.steps {
  list-style: none; counter-reset: step;
  margin: 10px 0 0; padding: 0;
  display: grid; gap: 18px;
}
.step {
  counter-increment: step;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 20px 16px; position: relative; padding-left: 68px;
}
.step::before {
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--clay); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 600; font-size: 1.1rem;
}
.step-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.step-head h3 { margin: 0 0 0.35em; }
.step-when {
  font-family: var(--display);
  color: var(--clay); font-weight: 600; font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 22px; }
}

.bio {
  margin-top: 30px;
  display: grid; gap: 18px;
  background: var(--slate); color: #fff;
  border-radius: 8px; overflow: hidden;
  border-left: 4px solid var(--clay);
}
.bio img { width: 100%; }
.bio p { margin: 0; padding: 0 22px 22px; font-size: 1.02rem; line-height: 1.65; }
@media (min-width: 720px) {
  .bio { grid-template-columns: 380px 1fr; align-items: center; }
  .bio p { padding: 24px 28px 24px 8px; }
}

/* Contact — the dark close: slate section, white form card */
.contact { background: var(--slate); color: #E7EBEF; padding-block: 60px 68px; }
.contact :focus-visible { outline-color: var(--gold); }
.contact .kicker { color: var(--gold); }
.contact .kicker::before { background: var(--gold); }
.contact h2 { color: #fff; }
.big-phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 600; letter-spacing: 0.01em;
  color: var(--gold); text-decoration: none;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.big-phone:hover { color: #F0BA66; }
.contact-grid { display: grid; gap: 40px; }
.hours { color: #C6CDD4; }
.email-line a { font-weight: 600; color: #fff; }
.area-title { color: #fff; margin-top: 28px; }
.area { color: #C6CDD4; margin: 0; }

.contact-form {
  background: var(--card); color: var(--ink);
  border-radius: 8px;
  padding: 26px; align-self: start;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.contact-form h3 { margin-bottom: 16px; }
.contact-form :focus-visible { outline-color: var(--focus); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid #C9C2B6; border-radius: 4px;
  background: #FDFCFA; color: var(--ink);
  font: inherit; padding: 11px 12px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px;
}
.field.invalid input { border-color: var(--clay); }
.field-error { color: var(--clay-deep); font-size: 0.88rem; margin: 6px 0 0; }
.form-done { text-align: center; padding: 12px 4px 4px; }
.form-done h3 { color: var(--clay); }
.form-done p { margin: 0; color: var(--muted); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Footer */
.foot { background: var(--slate-deep); color: #C6CDD4; font-size: 0.92rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.foot-inner { padding-block: 32px; }
.foot p { margin: 0 0 6px; }
.foot a { color: #fff; }
.foot-name {
  color: #fff; font-family: var(--display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.03em;
}
.foot-note { margin-top: 14px; font-size: 0.8rem; color: #8B96A1; }

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