/* =========================================================
   JM 24/7 BIG RIG BREAKDOWNS — Design tokens
   Palette: asphalt + steel + hazard amber, signal red for urgency only
   Type: Oswald (display/stencil) + Inter (body) + IBM Plex Mono (data/readout)
   ========================================================= */

:root {
  --asphalt-900: #101317;
  --asphalt-800: #191d22;
  --steel-700: #23282f;
  --steel-600: #2d333b;
  --steel-500: #4a525c;
  --steel-400: #6b7480;
  --paper: #f3efe6;
  --muted: #a2abb5;
  --amber: #ffb020;
  --amber-bright: #ffc655;
  --amber-dim: #8a5f16;
  --signal-red: #e0392f;
  --line: rgba(243, 239, 230, 0.1);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--asphalt-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.05;
  color: var(--paper);
}

h2.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

p.lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
}

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

/* ---------- Beacon (signature element) ---------- */
.beacon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.6);
  animation: beacon-pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes beacon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.35);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-call {
  background: var(--amber);
  color: var(--asphalt-900);
}
.btn-call:hover { background: var(--amber-bright); }

.btn-outline {
  background: transparent;
  border-color: var(--steel-500);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 19, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--steel-500);
  flex-shrink: 0;
  background: var(--steel-700);
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.55) translateY(6%); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand-text .brand-name .accent { color: var(--amber); }
.brand-text .brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--paper); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 11px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel-500);
  border-radius: var(--radius);
  color: var(--paper);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 80% -10%, rgba(255,176,32,0.10), transparent 60%),
    linear-gradient(180deg, var(--asphalt-900) 0%, #0c0e11 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 700;
  margin: 18px 0 20px;
}
.hero h1 span { color: var(--amber); }

.hero .lede { font-size: 18px; margin-bottom: 32px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-ctas .btn { padding: 17px 28px; font-size: 17px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero-meta strong { color: var(--paper); font-weight: 600; }

.hero-panel {
  background: var(--steel-700);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  position: relative;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,176,32,0.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-panel .panel-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display: block;
}

.dispatch-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.dispatch-line:last-of-type { border-bottom: none; }
.dispatch-line dt { color: var(--muted); }
.dispatch-line dd { margin: 0; font-family: var(--font-mono); font-weight: 600; text-align: right; }

.hero-panel .btn { margin-top: 20px; }

.road-divider {
  height: 46px;
  width: 100%;
  background-image: repeating-linear-gradient(90deg, var(--amber) 0 34px, transparent 34px 64px);
  background-position: center;
  background-repeat: repeat-x;
  background-size: auto 4px;
  background-color: #0c0e11;
  background-position-y: center;
  opacity: 0.9;
}

/* ---------- Marquee ---------- */
.marquee-strip {
  background: var(--asphalt-800);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.marquee-track span::before { content: "\25C6"; color: var(--amber); font-size: 9px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-alt { background: var(--asphalt-800); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--steel-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--amber-dim); transform: translateY(-3px); }
.service-card .icon {
  width: 42px;
  height: 42px;
  color: var(--amber);
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 16px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(100% - 6px);
  width: calc(28px * 2);
  border-top: 1px dashed var(--steel-500);
  display: none;
}
@media (min-width: 860px) {
  .step:not(:last-child)::after { display: block; }
}

/* ---------- Stats / diamond plate ---------- */
.stats-section {
  background-color: var(--asphalt-800);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.025) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.025) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,0.025) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,0.025) 25%, transparent 25%);
  background-position: 20px 0, 20px 0, 0 0, 0 0;
  background-size: 40px 40px;
  background-repeat: repeat;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 20px 10px;
}
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--amber);
  font-weight: 600;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Coverage ---------- */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.coverage-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}
.coverage-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--paper);
}
.coverage-list li svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }
.map-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(0.3) contrast(1.05);
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-cards { display: grid; gap: 16px; align-content: start; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--steel-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
}
.contact-card .icon { width: 22px; height: 22px; color: var(--amber); margin-top: 3px; flex-shrink: 0; }
.contact-card .title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card .value { font-size: 16px; font-weight: 600; }
.contact-card .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

.form-panel {
  background: var(--steel-700);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px;
}
.form-panel h3 { font-size: 20px; margin-bottom: 8px; }
.form-panel .lede { font-size: 14.5px; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12.5px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--asphalt-900);
  border: 1px solid var(--steel-500);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 12.5px; color: var(--steel-400); margin-top: 12px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #0b0d10;
  border-top: 1px solid var(--line);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand { display: flex; gap: 14px; margin-bottom: 16px; }
.footer-brand .brand-badge { width: 52px; height: 52px; }
footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--paper); font-size: 14.5px; }
.footer-col a:hover { color: var(--amber); }
.footer-status { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.footer-status span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--steel-400);
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--amber);
  padding: 14px 20px;
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--asphalt-900);
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-call { display: none; }
  .hero { padding-top: 68px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 58px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; }
}

/* Mobile nav drawer (standalone, outside header to avoid backdrop-filter containing-block trap) */
.mobile-drawer {
  display: none;
}
.mobile-drawer.open {
  display: block;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #101317;
  z-index: 500;
  overflow-y: auto;
}
.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 30px 24px;
  display: grid;
  gap: 22px;
}
.mobile-drawer a {
  text-decoration: none;
  color: var(--paper);
  font-size: 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.mobile-drawer a.btn { font-size: 16px; margin-top: 10px; }
