/* NOS Hotshot — design system.
   The brand was decided years ago and it is locked: it is the truck wrap.
   Red on black, hard edges, condensed caps. --red is sampled straight out of
   the logo file by tools/images.mjs (#f80000), tempered a hair for screen.
   Same bones as the Right Side Roofing site, inverted: this one is dark-first,
   because the truck is. */

@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --red: #f00d0d;
  --red-deep: #c00000;
  --ink: #0a0a0b;
  --ink-2: #141518;
  --ink-3: #1e2025;
  --line: #2b2e33;
  --paper: #ffffff;
  --muted: #a3a9b2;
  --max: 1180px;
  --radius: 12px;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* the wrap's carbon-fibre panel, rebuilt rather than borrowed */
  --carbon:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, rgba(0,0,0,0) 2px 4px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.028) 0 2px, rgba(0,0,0,0) 2px 4px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* height:auto matters: several images carry width/height attributes to reserve
   layout space, and without it the browser honours the literal height and
   stretches them. */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

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

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.22rem; letter-spacing: 0.03em; }
.kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 4px 11px;
  margin-bottom: 14px;
  transform: skewX(-10deg);
}
p.lede { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.slash { color: var(--red); }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--red);
}
.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.site-head .logo img { height: 40px; width: auto; }
.site-head nav { display: flex; gap: 2px; align-items: center; }
.site-head nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 11px;
  border-radius: 7px;
  letter-spacing: 0.02em;
}
.site-head nav a:hover { background: var(--ink-3); color: var(--red); }
.site-head .call {
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 15px;
  border-radius: 8px;
}
.menu-btn { display: none; background: none; border: 2px solid var(--red); color: var(--red); font-size: 1.1rem; border-radius: 8px; padding: 4px 10px; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  border: 3px solid #000;
  padding: 13px 26px;
  border-radius: 9px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 4px 4px 0 #000; }
.btn-red:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #000; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-white { background: #fff; color: var(--ink); border-color: #000; box-shadow: 4px 4px 0 var(--red); }
.btn-big { font-size: 1.2rem; padding: 18px 34px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 800px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(195deg, rgba(10, 10, 11, 0.3) 12%, rgba(10, 10, 11, 0.9) 72%);
}
.hero .wrap { padding-top: 84px; padding-bottom: 60px; width: 100%; }
/* White type over a white truck needs help — the shadow does it without
   flattening the photo behind a scrim. */
.hero h1 { text-shadow: 0 3px 20px rgba(0, 0, 0, 0.75); }
.hero .sub { max-width: 54ch; font-size: 1.14rem; margin: 18px 0 26px; color: #e2e5e9; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.hero .checks li { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* The rate, hero-sized — it was the first thing on the old site's masthead
   and it is the first thing a dispatcher wants. */
.rate-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
}
.rate-tag b { font-family: var(--display); font-size: clamp(1.7rem, 4.6vw, 2.5rem); letter-spacing: 0.01em; }
.rate-tag span { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* Sections */
section { padding: 78px 0; scroll-margin-top: 70px; }
.carbon { background-color: var(--ink-2); background-image: var(--carbon); }
.steel { background: var(--ink-3); }
.section-head { margin-bottom: 38px; max-width: 70ch; }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); }
.steel .card, .carbon .card { background: var(--ink); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Big number tiles (capacity) */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tile {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--ink);
}
.tile .n { font-family: var(--display); font-size: clamp(2rem, 5vw, 2.9rem); color: var(--red); line-height: 1; }
.tile .l { font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; margin-bottom: 8px; color: #fff; }
.tile .s { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* Hubs */
.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub {
  border: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--ink);
  text-align: center;
}
.hub .name { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.9rem); }
.hub .sub { color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.split .photo { border-radius: var(--radius); overflow: hidden; border: 4px solid #000; box-shadow: 10px 10px 0 var(--red); }

/* Checklist */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { padding-left: 34px; position: relative; font-weight: 700; }
.checks li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: #fff;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
}

/* Gallery. Five photos, run as 3-then-2 so the second row fills instead of
   trailing off. */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gal.cols-2 { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
.gal.cols-2 a { aspect-ratio: 16 / 9; }
.gal a { display: block; border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gal a:hover img { transform: scale(1.05); }
.gal .tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(10, 10, 11, 0.85);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, 0.96);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; object-fit: contain; }
.lightbox .cap { color: #c9ced5; font-size: 0.95rem; text-align: center; max-width: 60ch; }
.lightbox button {
  position: absolute;
  background: var(--red);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox .x { top: 18px; right: 18px; }
.lightbox .prev { left: 14px; top: 50%; }
.lightbox .next { right: 14px; top: 50%; }

/* Forms */
form.lead { display: grid; gap: 14px; }
form.lead .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 700; font-size: 0.9rem; display: grid; gap: 6px; color: #fff; }
input, select, textarea {
  font: inherit;
  padding: 11px 13px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: #6f757e; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form-note { font-size: 0.85rem; color: var(--muted); }

.notice {
  background: var(--ink);
  border: 2px dashed var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.95rem;
  color: #fff;
}
.notice pre {
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.86rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  color: #dfe3e8;
}

/* Band CTA */
.band { background: var(--red); color: #fff; padding: 56px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { max-width: 22ch; }
.band p { font-weight: 700; margin-top: 8px; }
.band .btn { border-color: #000; background: #000; color: #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4); }

/* Footer */
footer.site-foot { background: #000; color: var(--muted); padding: 52px 0 110px; font-size: 0.95rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 30px; }
.site-foot h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-foot a { color: #d3d7dd; text-decoration: none; }
.site-foot a:hover { color: var(--red); }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot .fine { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; color: #767c85; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot .logo img { height: 38px; margin-bottom: 14px; }
.site-foot .sib a { color: var(--red); }

/* Mobile action bar */
.actionbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1.4fr 1fr;
  background: #000;
  border-top: 3px solid var(--red);
}
.actionbar a {
  text-align: center;
  padding: 14px 4px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.98rem;
}
.actionbar a + a { border-left: 1px solid var(--line); }
.actionbar a.hot { background: var(--red); }

/* Responsive */
@media (max-width: 940px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .gal { grid-template-columns: 1fr 1fr; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .hubs { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { min-height: min(82vh, 700px); }
  .hero::after { background: linear-gradient(192deg, rgba(10, 10, 11, 0.25) 10%, rgba(10, 10, 11, 0.88) 66%); }
  .site-head nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    border-bottom: 3px solid var(--red);
  }
  .site-head nav.open { display: flex; }
  .menu-btn { display: block; }
  .site-head .call { display: none; }
  .site-head .logo img { height: 32px; }
  .grid.cols-3, .grid.cols-2, .tiles, form.lead .row, .gal.cols-2 { grid-template-columns: 1fr; }
  .actionbar { display: grid; }
  section { padding: 56px 0; }
  .site-foot .cols { grid-template-columns: 1fr; }
}
