:root {
  --ink: #15181c;
  --night: #0c0e10;
  --steel: #5a616a;
  --line: #d3d8de;
  --paper: #eff1f3;
  --white: #fff;
  --red: #d71920;
  --red-dark: #a9121a;
  --header-height: 72px;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", Arial, Helvetica, sans-serif;
  --gutter: max(24px, calc((100% - 1160px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.02; }
h1 { font-size: clamp(44px, 6.4vw, 78px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 26px; }
p { margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  min-height: var(--header-height); padding: 0 var(--gutter);
  color: var(--white); background: rgba(12, 14, 16, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; width: 40px; height: 40px; place-items: center;
  background: var(--red); border-radius: 3px;
  font: 700 26px/1 var(--display);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font: 700 22px/1 var(--display); letter-spacing: 0.04em; }
.brand-text small { color: #aab0b7; font-size: 12px; }
.primary-nav { display: flex; justify-content: center; gap: 34px; }
.primary-nav a { position: relative; color: #e4e6e9; font-size: 15px; font-weight: 500; }
.primary-nav a::after {
  position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 160ms ease; content: "";
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.header-cta {
  padding: 9px 18px; background: var(--red); border-radius: 3px;
  font-size: 15px; font-weight: 600;
}
.header-cta:hover { background: var(--red-dark); }
.icon-button {
  display: none; width: 44px; height: 44px; padding: 0; color: var(--white);
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px; cursor: pointer;
}
.icon-button svg { width: 24px; height: 24px; margin: auto; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 2px solid transparent;
  border-radius: 3px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.button-primary { color: var(--white); background: var(--red); border-color: var(--red); }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.button-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.button-light { color: var(--red-dark); background: var(--white); }
.button-light:hover { background: var(--night); color: var(--white); }

/* Hero */
.hero {
  position: relative; display: grid; align-items: center;
  min-height: min(86vh, 800px); overflow: hidden;
  color: var(--white); background: var(--night) url("hero-headlight.png") center right / cover no-repeat;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 10, 0.94) 0%, rgba(8, 9, 10, 0.78) 40%, rgba(8, 9, 10, 0.1) 75%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; margin-left: var(--gutter); padding: 80px 0 120px; }
.hero-copy { max-width: 560px; margin-top: 24px; color: #d6dade; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.check-tag {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 40px;
  width: 300px; padding: 20px 22px;
  background: rgba(12, 14, 16, 0.82); border-top: 4px solid var(--red);
  backdrop-filter: blur(6px);
}
.check-tag h2 { font-size: 24px; }
.check-tag ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; }
.check-tag li { padding: 7px 0 7px 26px; border-top: 1px solid rgba(255, 255, 255, 0.14); position: relative; }
.check-tag li::before {
  position: absolute; left: 2px; top: 11px; width: 12px; height: 7px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg); content: "";
}

/* Brand strip */
.brand-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px;
  padding: 22px var(--gutter); color: var(--white); background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-strip p { color: #8f969e; font-size: 15px; }
.brand-strip ul { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; padding: 0; list-style: none; }
.brand-strip li { font: 600 22px/1 var(--display); letter-spacing: 0.05em; }

/* Sections */
.section { padding: 96px var(--gutter); }
.section-dark { color: var(--white); background: #1a1d21; }

.split { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.6fr; gap: 64px; }
.split-head { align-self: start; position: sticky; top: calc(var(--header-height) + 32px); }
.split-head p { margin-top: 16px; color: var(--steel); max-width: 34ch; }

.part-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.part-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 32px; align-items: end;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.part-list p { grid-column: 1; max-width: 52ch; color: var(--steel); }
.part-list a {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  padding: 10px 16px; color: var(--red-dark); border: 2px solid var(--red);
  border-radius: 3px; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.part-list a:hover { color: var(--white); background: var(--red); }

.process-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin: 48px 0 0; padding: 0; list-style: none;
}
.process-list li { padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, 0.2); }
.process-list span { display: block; color: var(--red); font: 700 54px/1 var(--display); }
.process-list h3 { margin-top: 14px; font-size: 24px; }
.process-list p { margin-top: 10px; color: #c2c7cd; font-size: 16px; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.why-grid article { padding-left: 20px; border-left: 4px solid var(--red); }
.why-grid p { margin-top: 10px; color: var(--steel); }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px; padding: 56px var(--gutter); color: var(--white); background: var(--red);
}
.cta-band h2 { max-width: 720px; font-size: clamp(30px, 3.6vw, 42px); }

/* Contact */
.section-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; background: var(--white); }
.contact-copy p { max-width: 46ch; margin-top: 16px; color: var(--steel); }
.contact-list { max-width: 480px; margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--steel); }
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--red); }

.quote-form { display: grid; gap: 16px; padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.quote-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; color: var(--ink);
  background: var(--white); border: 1px solid #c3c9d0; border-radius: 3px; font-weight: 400;
}
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  border-color: var(--red); outline: 3px solid rgba(215, 25, 32, 0.18); outline-offset: 0;
}
.quote-form .button { width: fit-content; }
.form-status { min-height: 1.6em; font-weight: 600; }
.form-status.is-error { color: var(--red-dark); }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 28px var(--gutter); color: var(--white); background: var(--night);
}
.site-footer p { font: 700 20px/1 var(--display); letter-spacing: 0.04em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer nav a { color: #b9bec4; font-size: 15px; }
.site-footer nav a:hover { color: var(--white); }

/* Tablet */
@media (max-width: 1040px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .icon-button { display: grid; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-height) 0 auto 0; display: none;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: rgba(12, 14, 16, 0.98); border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .primary-nav a::after { display: none; }

  .check-tag { position: relative; right: auto; bottom: auto; width: auto; margin: -64px var(--gutter) 0; }
  .hero { display: block; min-height: 0; }
  .hero-content { padding: 72px 0 96px; position: relative; }
  .check-tag { background: #15181c; }

  .split, .section-contact { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --header-height: 66px; }
  body { font-size: 16px; }
  .hero { background-position: 62% center; }
  .hero-shade { background: rgba(8, 9, 10, 0.78); }
  .hero-copy { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .section { padding: 64px var(--gutter); }
  .part-list li { grid-template-columns: 1fr; }
  .part-list a { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
  .process-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 22px; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .cta-band .button { width: 100%; }
}

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