/* Highfield Roofing Co. concept site. Palette, type and motion follow brief.md.
   Dusk #0F1C26 · Cream #F7F1E3 · Gold #E9A23B (decorative on cream) · Dark gold #7A4E0E · Slate #3A4A58 · Mist #B8C4CE · Brick #8A4028 */

:root {
  --dusk: #0F1C26;
  --cream: #F7F1E3;
  --gold: #E9A23B;
  --gold-dk: #7A4E0E;
  --slate: #3A4A58;
  --mist: #B8C4CE;
  --brick: #8A4028;

  --font-d: "Sofia Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-b: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --strip-h: 36px;
  --head-h: 92px;
  --pad: 20px;
  --max: 1200px;
  --body: 16px;
  /* 42px at 390, 76px at 1440 */
  --t-h1: clamp(42px, 29.37px + 3.238vw, 76px);
  --t-h2: clamp(32px, 24.5px + 1.9vw, 52px);
  --space: clamp(48px, 7vw, 104px);
}

@media (min-width: 861px) {
  :root { --head-h: 72px; --pad: 48px; }
}
@media (min-width: 1100px) {
  :root { --body: 17px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--dusk);
  font: 400 var(--body)/1.6 var(--font-b);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--gold-dk); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: 3px; }
.dark :focus-visible, .strip :focus-visible, .sw-copy :focus-visible, .sw-hint :focus-visible, .sw-route :focus-visible { outline-color: var(--gold); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 1000;
  background: var(--dusk); color: var(--cream); padding: 12px 18px; border-radius: 2px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--font-d); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.01em; color: var(--dusk);
}
h1 { font-size: var(--t-h1); line-height: 0.98; }
h2 { font-size: var(--t-h2); line-height: 1; }
h3 { font-size: clamp(24px, 21px + 0.7vw, 30px); line-height: 1.05; font-weight: 700; }
.eyebrow {
  font: 600 13px/1.3 var(--font-b); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dk);
}
.dark .eyebrow, .stack .eyebrow { color: var(--gold); }
.lede { font-size: calc(var(--body) + 2px); max-width: 60ch; }

/* ---------- top strip + header ---------- */
.strip {
  position: relative; z-index: 410;
  height: var(--strip-h);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 8px;
  background: var(--dusk); color: var(--cream);
  font: 400 12px/15px var(--font-b);
}
.strip a { color: var(--gold); font-weight: 600; white-space: nowrap; }
@media (min-width: 861px) { .strip { font-size: 14px; line-height: 20px; } }

.site-head {
  position: sticky; top: 0; z-index: 400;
  height: var(--head-h);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 44px 48px;
  grid-template-areas: "brand alt" "nav phone";
  align-items: center;
  column-gap: 12px;
  padding: 0 var(--pad);
  background: var(--cream);
  border-bottom: 1px solid var(--mist);
}
.wordmark {
  grid-area: brand;
  font: 800 24px/1 var(--font-d); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--dusk); text-decoration: none; white-space: nowrap;
}
.site-head nav { grid-area: nav; display: flex; gap: 0; margin-left: -6px; min-width: 0; }
.site-head nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font: 600 14px/1 var(--font-b); color: var(--dusk); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-head nav a:hover { color: var(--gold-dk); }
.site-head nav a[aria-current="page"] { border-bottom-color: var(--gold-dk); }
.site-head .btn-phone { grid-area: phone; justify-self: end; padding: 0 12px; font-size: 14px; white-space: nowrap; }
.alt {
  grid-area: alt; justify-self: end;
  display: none; align-items: center; justify-content: center;
  min-width: 92px; padding: 6px 10px; border-radius: 2px;
  background: var(--dusk); color: var(--mist);
  font: 600 14px/1 var(--font-b); letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.motion .alt { display: inline-flex; }
@media (min-width: 861px) {
  .site-head {
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: 1fr;
    grid-template-areas: "brand nav phone alt";
    column-gap: 24px;
  }
  .wordmark { font-size: 28px; }
  .site-head nav { margin-left: 16px; gap: 8px; }
  .site-head nav a { padding: 0 14px; font-size: 16px; }
  .site-head .btn-phone { padding: 0 20px; font-size: 16px; }
}

/* ---------- buttons ---------- */
.btn, .sw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 24px;
  background: var(--gold); color: var(--dusk);
  border: 1px solid var(--gold); border-radius: 2px;
  font: 600 16px/1 var(--font-b); text-decoration: none; cursor: pointer;
  transition: filter 180ms ease-out, background-color 180ms ease-out;
}
.btn:hover, .sw-btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost, .sw-btn--ghost {
  background: transparent; color: var(--dusk); border-color: var(--dusk);
}
.btn-ghost:hover, .sw-btn--ghost:hover { filter: none; background: rgba(15, 28, 38, 0.08); }
.dark .btn-ghost, .sw-btn--ghost { color: var(--cream); border-color: var(--cream); }
.dark .btn-ghost:hover, .sw-btn--ghost:hover { background: rgba(247, 241, 227, 0.1); }
.sw-btn--primary { background: var(--gold); color: var(--dusk); border-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- shared layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--space) 0; }
.section.no-top { padding-top: 0; }
.dark { background: var(--dusk); color: var(--cream); }
.dark h1, .dark h2, .dark h3 { color: var(--cream); }
.after { position: relative; z-index: 300; background: var(--cream); }
.after.dark { background: var(--dusk); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 8px 12px; border: 1px solid var(--gold); border-radius: 2px;
  font: 600 13px/1 var(--font-b); color: var(--cream);
}
.rule { display: block; height: 2px; background: var(--gold); width: 100%; }

.lift { transition: transform 180ms ease-out, box-shadow 180ms ease-out; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lift:hover { transform: translateY(-6px); box-shadow: 0 18px 28px -18px rgba(15, 28, 38, 0.45); }
}

/* ---------- HOME: film via scrub engine ---------- */
.motion .sw-root {
  --sw-bg: var(--dusk); --sw-ink: var(--cream); --sw-ink-soft: var(--mist);
  --sw-accent: var(--gold);
  --sw-font-display: var(--font-d); --sw-font-body: var(--font-b);
}
.motion #world { margin-top: calc(-1 * (var(--strip-h) + var(--head-h))); }
.motion #world::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; top: var(--head-h);
  z-index: 15; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(15, 28, 38, 0.10) 100%);
}
.motion .stack { display: none; }
.sw-topbar, .sw-scrollbar, .sw-copy__num, .sw-copylayer::before { display: none; }
.sw-stage { top: var(--head-h); }
/* the engine's sizing sits in @layer sw, so the unlayered img{height:auto} reset was shrinking the stills (posters) */
.sw-scene__still { height: 100%; }
/* the clipless end scene must sit exactly where leg 3's last frame sits: no engine push-in or shift, so the seam does not jump */
.sw-scene:last-child .sw-scene__still { transform: none !important; }

.sw-copy {
  top: auto; right: auto;
  left: var(--pad); bottom: clamp(24px, 5vh, 56px);
  width: min(48vw, 580px);
  padding: 26px 30px 28px;
  background: var(--dusk); /* solid card: text contrast never depends on the frame behind */
  border: 0; border-left: 2px solid var(--gold);
  border-radius: 0;
  color: var(--cream);
}
.sw-copy__eyebrow {
  display: block; margin: 0;
  font: 600 13px/1.3 var(--font-b); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.sw-copy__title {
  margin: 12px 0 0;
  font-family: var(--font-d); font-weight: 800; text-transform: uppercase;
  font-size: clamp(42px, min(29.37px + 3.238vw, 8.2vh), 76px);
  line-height: 0.98; letter-spacing: 0.01em;
  color: var(--cream); text-shadow: none;
}
.sw-word { display: inline-block; white-space: nowrap; }
.sw-char { display: inline-block; will-change: transform, opacity; }
.sw-copy__body {
  margin: 14px 0 0; max-width: none;
  font: 400 var(--body)/1.6 var(--font-b);
  color: var(--cream); text-shadow: none;
}
.sw-copy__tags { margin: 18px 0 0; gap: 8px; }
.sw-copy__tags li {
  padding: 8px 12px; border: 1px solid var(--gold); border-radius: 2px; background: transparent;
  font: 600 13px/1 var(--font-b); color: var(--cream);
}
.sw-copy__cta { margin-top: 22px; gap: 12px; }

.sw-hint {
  left: auto; right: 96px; bottom: 28px; transform: none;
  flex-direction: row; gap: 12px; padding: 10px 14px;
  background: rgba(15, 28, 38, 0.88); border-radius: 2px;
  color: var(--cream); font: 600 12px/1 var(--font-b); letter-spacing: 0.14em;
}
.sw-hint i { border-color: var(--cream); }
.sw-hint i::after { background: var(--gold); }

.sw-route {
  background: rgba(15, 28, 38, 0.88); border-radius: 2px; padding: 14px 8px; gap: 14px;
}
.sw-route::before { background: var(--gold); }
.sw-route__dot { width: 24px; height: 24px; }
.sw-route__dot i { background: var(--mist); }
.sw-route__dot.is-active i { background: var(--gold); box-shadow: 0 0 0 5px rgba(233, 162, 59, 0.28); }
.sw-route__label {
  background: var(--dusk); color: var(--cream); border: 1px solid var(--gold); border-radius: 2px;
  backdrop-filter: none; font: 600 13px/1 var(--font-b);
}

@media (max-width: 860px) {
  .sw-copy {
    left: 16px; right: 16px; width: auto; max-width: none;
    bottom: calc(16px + env(safe-area-inset-bottom));
    padding: 18px 18px 20px;
  }
  .sw-hint, .sw-route { display: none; }
}

/* ---------- HOME: reduced-motion / no-JS static stack ---------- */
.stack .chapter { background: var(--dusk); color: var(--cream); }
.stack figure img { width: 100%; height: auto; }
.stack .card { max-width: var(--max); margin: 0 auto; padding: 32px var(--pad) 56px; }
.stack .card-in { display: grid; gap: 14px; padding-left: 20px; border-left: 2px solid var(--gold); }
.stack .card h2 { font-size: var(--t-h1); line-height: 0.98; color: var(--cream); }
.stack .card .lede { max-width: 52ch; }
.stack .card .btn-row { margin-top: 10px; }

/* ---------- HOME: what we do ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.tile { display: grid; }
.tile-in { display: grid; gap: 10px; align-content: start; padding: 0 0 22px; background: var(--cream); }
.tile-in h3 { margin-top: 14px; }
.tile-in p { color: var(--slate); max-width: 36ch; }
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; } }
@media (min-width: 1100px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 40px; } }

/* ---------- HOME: reviews ---------- */
.reviews { display: grid; gap: 32px; }
.review { padding: 0; border-top: 1px solid var(--mist); padding-top: 24px; }
.review blockquote p { font: 400 calc(var(--body) + 2px)/1.6 var(--font-b); max-width: 44ch; color: var(--dusk); }
.review figcaption { margin-top: 14px; font: 700 22px/1.1 var(--font-d); letter-spacing: 0.02em; text-transform: uppercase; color: var(--dusk); }
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--gold-dk); }
.stars svg { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- CTA band + footer ---------- */
.cta-band { padding: var(--space) 0; }
.cta-band .wrap { display: grid; gap: 24px; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { max-width: 52ch; }

.site-foot { padding: 48px 0 32px; background: var(--dusk); color: var(--cream); position: relative; z-index: 300; }
.site-foot .cols { display: grid; gap: 28px; padding-bottom: 32px; }
.site-foot .brandline { font: 800 28px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.site-foot a { color: var(--cream); }
.site-foot .label { font: 600 12px/1.3 var(--font-b); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin-bottom: 6px; }
.site-foot .credit {
  border-top: 1px solid rgba(184, 196, 206, 0.35); padding-top: 20px;
  font: 400 14px/1.5 var(--font-b); color: var(--mist);
}
@media (min-width: 861px) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- SERVICES ---------- */
.page-hero { padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 6vw, 80px); }
.page-hero .wrap { display: grid; gap: 28px; align-items: center; }
.page-hero h1 { max-width: 14ch; }
.page-hero .ph-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
@media (min-width: 900px) { .page-hero .wrap { grid-template-columns: 5fr 7fr; gap: 56px; } }
.service-grid { display: grid; gap: 0 56px; grid-template-columns: 1fr; }
.service { padding: 28px 0; border-top: 2px solid var(--gold); display: grid; gap: 8px; align-content: start; }
.service p { max-width: 46ch; color: var(--slate); }
.price { font: 600 16px/1.4 var(--font-b); color: var(--brick); margin-top: 6px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- WORK ---------- */
.page-title { padding: clamp(32px, 5vw, 72px) 0 0; }
.page-title .wrap { display: grid; gap: 16px; }
.page-title .lede { color: var(--slate); }
.job-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
.job { display: grid; }
.job-in { background: var(--cream); display: grid; align-content: start; }
.job img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.job h3 { font: 600 20px/1.3 var(--font-b); letter-spacing: 0; text-transform: none; padding: 14px 0 0; }
@media (min-width: 700px) { .job-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .job-grid { grid-template-columns: repeat(12, 1fr); gap: 44px 28px; }
  .job:nth-child(1) { grid-column: span 7; }
  .job:nth-child(2) { grid-column: span 5; }
  .job:nth-child(3) { grid-column: span 5; }
  .job:nth-child(4) { grid-column: span 7; }
  .job:nth-child(5), .job:nth-child(6) { grid-column: span 6; }
  .job:nth-child(1) img, .job:nth-child(4) img { aspect-ratio: 16 / 9; }
  .job:nth-child(2) img, .job:nth-child(3) img { aspect-ratio: 5 / 3.9; }
  .job:nth-child(5) img, .job:nth-child(6) img { aspect-ratio: 3 / 2; }
}
.steps { display: grid; gap: 0; counter-reset: step; grid-template-columns: 1fr; }
.steps li { counter-increment: step; padding: 24px 0; border-top: 2px solid var(--gold); display: grid; gap: 6px; align-content: start; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font: 800 38px/1 var(--font-d); color: var(--gold-dk);
}
.steps p { color: var(--slate); max-width: 30ch; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0 32px; } }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; padding-top: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.contact-left { display: grid; gap: 28px; align-content: start; }
.contact-details { display: grid; gap: 24px; align-content: start; }
.contact-details dt { font: 600 12px/1.3 var(--font-b); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: 4px; }
.contact-details dd { font-size: calc(var(--body) + 1px); overflow-wrap: anywhere; }
.contact-details a { color: var(--dusk); }
.phone-big {
  font: 800 clamp(40px, 29px + 3vw, 64px)/1 var(--font-d); letter-spacing: 0.02em; color: var(--dusk);
  text-decoration: none; display: inline-block; padding: 4px 0;
}
.phone-big:hover { color: var(--gold-dk); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact-form { display: grid; gap: 20px; padding: clamp(20px, 3vw, 36px); background: var(--dusk); color: var(--cream); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font: 600 15px/1.3 var(--font-b); color: var(--cream); padding: 0; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: 400 16px/1.4 var(--font-b); color: var(--dusk);
  background: var(--cream); border: 1px solid var(--mist); border-radius: 2px;
}
.field textarea { min-height: 120px; resize: vertical; }
.radios { display: flex; gap: 12px; margin-top: 4px; }
.radios label {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px;
  border: 1px solid var(--mist); border-radius: 2px; cursor: pointer; font-weight: 600;
}
.radios input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.contact-form .btn { justify-self: start; }
.thanks {
  padding: 18px 20px; background: var(--cream); color: var(--dusk); border-left: 2px solid var(--gold);
  font: 600 calc(var(--body) + 1px)/1.5 var(--font-b);
}
.van { max-width: 1040px; margin: 0 auto; padding: var(--space) var(--pad); }
.van img { width: 100%; height: auto; }
.van figcaption { margin-top: 12px; font: 400 16px/1.5 var(--font-b); color: var(--slate); }

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