:root {
  --ink: #08090b;
  --graphite: #111317;
  --slate: #181b20;
  --steel: #222832;
  --line: #2b313b;
  --line-strong: #3c4551;
  --bone: #f4f6f8;
  --muted: #a5adb8;
  --muted-2: #737d8a;
  --ember: #f15a24;
  --ember-dark: #b73816;
  --safety: #71c287;
  --signal: #ffd166;
  --radius: 8px;
  --container: 1220px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(241, 90, 36, 0.07), transparent 420px),
    radial-gradient(circle at 78% 8%, rgba(113, 194, 135, 0.08), transparent 330px),
    var(--ink);
  color: var(--bone);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--bone);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.concept-bar {
  background: #0d1014;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 9px 18px;
  text-align: center;
  font-size: 13px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 9, 11, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 168px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.primary-nav a,
.text-link,
.equipment-card a {
  text-decoration: none;
}

.primary-nav a:hover,
.text-link:hover,
.equipment-card a:hover {
  color: var(--ember);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ember);
  border-radius: 4px;
  color: var(--bone);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--slate);
  color: var(--bone);
  padding: 9px 10px;
  font: inherit;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.section {
  padding: 86px 0;
}

.hero {
  min-height: calc(100vh - 122px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 46px;
  align-items: center;
}

.eyebrow,
.label,
.service-index {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--signal);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 800;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-lede {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--ember);
  color: #190904;
}

.button.primary:hover {
  background: #ff7445;
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--bone);
  background: rgba(255, 255, 255, 0.03);
}

.button.secondary:hover,
.button.tertiary:hover {
  border-color: var(--ember);
}

.button.tertiary {
  border-color: transparent;
  color: var(--muted);
}

.dispatch-board,
.service-card,
.equipment-card,
.map-panel,
.safety-points,
.quote-panel,
.owner-panel {
  border: 1px solid var(--line);
  background: rgba(17, 19, 23, 0.86);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dispatch-board {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.board-media {
  aspect-ratio: 16 / 10;
  background: var(--slate);
}

.board-media img,
.equipment-card img,
.map-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.board-grid > div {
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.board-grid > div:nth-child(2n) {
  border-right: 0;
}

.board-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.board-grid strong,
.dispatch-list strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--bone);
}

.board-grid p,
.trust-grid p,
.service-card p,
.equipment-card p,
.coverage-copy p,
.safety-grid p,
.quote-panel p,
.owner-panel p,
.site-footer p,
.site-footer li {
  color: var(--muted);
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(24, 27, 32, 0.78);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid > div {
  min-height: 145px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.trust-grid > div:last-child {
  border-right: 1px solid var(--line);
}

.metric {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 32px;
  color: var(--bone);
  margin-bottom: 8px;
}

.badge-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
}

.badge-cluster img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  filter: saturate(0.9);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading.compact {
  grid-template-columns: minmax(0, 760px);
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--ember);
  background: rgba(34, 40, 50, 0.78);
}

.service-card.featured {
  background:
    linear-gradient(135deg, rgba(241, 90, 36, 0.18), transparent 58%),
    rgba(17, 19, 23, 0.92);
}

.service-index {
  color: var(--ember);
  margin-bottom: 36px;
}

.service-card h3 {
  margin-top: auto;
}

.equipment-section {
  background: #0b0d10;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.equipment-card {
  overflow: hidden;
}

.equipment-card img {
  aspect-ratio: 16 / 10;
}

.equipment-card div {
  padding: 22px;
}

.equipment-card a,
.text-link {
  color: var(--signal);
  font-weight: 800;
}

.coverage-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.map-panel {
  overflow: hidden;
  aspect-ratio: 1 / 0.95;
  background: var(--slate);
}

.dispatch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.dispatch-list a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
}

.dispatch-list a:hover {
  border-color: var(--ember);
}

.dispatch-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.safety-section {
  background: linear-gradient(180deg, #101318, #090a0c);
}

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.safety-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.safety-points > div {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.safety-points > div:nth-child(2n) {
  border-right: 0;
}

.safety-points > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.safety-points h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--safety);
}

.quote-panel,
.owner-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.owner-cta {
  padding: 0 0 86px;
}

.owner-panel {
  background:
    linear-gradient(135deg, rgba(241, 90, 36, 0.18), rgba(113, 194, 135, 0.08)),
    var(--graphite);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: #07080a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px 220px;
  gap: 36px;
}

.footer-logo {
  width: 170px;
  margin-bottom: 18px;
}

.site-footer h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ember);
}

:focus-visible {
  outline: 3px solid rgba(241, 90, 36, 0.78);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-shell {
    min-height: 76px;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 1px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0d1014;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .coverage-grid,
  .safety-grid,
  .quote-panel,
  .owner-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .service-grid,
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .quote-actions {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .concept-bar {
    font-size: 12px;
  }

  .brand img {
    width: 132px;
  }

  .section {
    padding: 58px 0;
  }

  h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions,
  .quote-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-grid {
    gap: 30px;
  }

  .board-grid,
  .trust-grid,
  .service-grid,
  .equipment-grid,
  .dispatch-list,
  .safety-points {
    grid-template-columns: 1fr;
  }

  .board-grid > div,
  .trust-grid > div,
  .safety-points > div {
    border-right: 0;
  }

  .board-grid > div:nth-last-child(-n + 2),
  .safety-points > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .board-grid > div:last-child,
  .safety-points > div:last-child {
    border-bottom: 0;
  }

  .trust-grid > div:last-child {
    border-right: 0;
  }

  .service-card {
    min-height: 190px;
  }

  .quote-panel,
  .owner-panel {
    padding: 24px;
  }

  .owner-cta {
    padding-bottom: 58px;
  }
}

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