:root {
  --ink: #111827;
  --muted: #566171;
  --line: #d7dce3;
  --paper: #f5f6f8;
  --panel: #ffffff;
  --accent: #dc2626;
  --accent-dark: #991b1b;
  --teal: #0f766e;
  --gold: #d69e2e;
  --steel: #243447;
  --shadow: 0 14px 34px rgba(17, 24, 39, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

a,
button {
  touch-action: manipulation;
}

img {
  max-width: 100%;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .06);
}

.siteHeaderInner,
.sectionInner,
.footerInner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.siteHeaderInner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: max(10px, env(safe-area-inset-top)) 0 10px;
}

.brandLink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brandLogo {
  width: min(225px, 46vw);
  max-height: 52px;
  object-fit: contain;
}

.brandText {
  display: none;
  min-width: 0;
}

.brandText strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.brandText span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.siteNav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.siteNav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 10px;
  color: #263244;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.siteNav a:hover,
.siteNav a[aria-current="page"] {
  background: #eef2f7;
  color: var(--accent-dark);
}

.siteNav .portalLink {
  color: #ffffff;
  background: var(--teal);
}

.siteNav .portalLink:hover,
.siteNav .portalLink[aria-current="page"] {
  color: #ffffff;
  background: #115e59;
}

.hero {
  min-height: min(680px, calc(100vh - 78px));
  display: flex;
  align-items: stretch;
  position: relative;
  color: #ffffff;
  background: #111827;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 16, 28, .92) 0%, rgba(10, 16, 28, .76) 38%, rgba(10, 16, 28, .26) 72%, rgba(10, 16, 28, .12) 100%),
    url("fire-apparatus-service-bay.png") center / cover no-repeat;
}

.hero .sectionInner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  padding: 58px 0 74px;
}

.heroContent {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #f8c76c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(38px, 8vw, 76px);
  line-height: .98;
}

.heroLead {
  max-width: 650px;
  margin: 18px 0 0;
  color: #e7ebf1;
  font-size: 20px;
  line-height: 1.45;
}

.heroActions,
.buttonRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 15px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btnPrimary {
  color: #ffffff;
  background: var(--accent);
}

.btnPrimary:hover {
  background: var(--accent-dark);
}

.btnSecondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .08);
}

.btnSecondary:hover {
  background: rgba(255, 255, 255, .16);
}

.btnPlain {
  color: var(--teal);
  background: #e7f4f2;
}

.heroStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 48px;
}

.stat {
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  padding: 16px;
  background: rgba(17, 24, 39, .54);
}

.stat strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: #d7dce3;
  font-size: 13px;
  font-weight: 800;
}

.band {
  padding: 58px 0;
}

.bandWhite {
  background: #ffffff;
}

.bandDark {
  color: #ffffff;
  background: var(--steel);
}

.bandDark .sectionLead,
.bandDark .muted {
  color: #d7dce3;
}

.pageHero {
  color: #ffffff;
  background: linear-gradient(135deg, #121a27 0%, #243447 66%, #4a1d1d 100%);
}

.pageHero .sectionInner {
  padding: 52px 0;
}

.pageHero h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.pageHero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #e5e7eb;
  font-size: 19px;
}

.sectionHeader {
  max-width: 820px;
  margin-bottom: 24px;
}

.sectionHeader h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 43px);
  line-height: 1.08;
}

.sectionLead,
.muted {
  color: var(--muted);
}

.sectionLead {
  margin: 12px 0 0;
  font-size: 18px;
}

.serviceGrid,
.featureGrid,
.proofGrid,
.contactGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 16px;
}

.serviceCard,
.featurePanel,
.proofCard,
.contactPanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .05);
}

.serviceCard {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  text-decoration: none;
}

.serviceCard:hover {
  border-color: #b7c2d0;
  box-shadow: var(--shadow);
}

.serviceKicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.serviceCard h3,
.featurePanel h3,
.proofCard h3,
.contactPanel h3 {
  margin: 9px 0 0;
  font-size: 22px;
  line-height: 1.18;
}

.serviceCard p,
.featurePanel p,
.proofCard p,
.contactPanel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.serviceArrow {
  display: inline-block;
  margin-top: 20px;
  color: var(--teal);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 34px;
  align-items: start;
}

.featurePanel,
.proofCard,
.contactPanel {
  padding: 22px;
}

.checkList {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.checkList li {
  position: relative;
  padding-left: 25px;
}

.checkList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px #d9f0ed;
}

.callout {
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 20px;
  background: #fff7ed;
}

.callout p {
  margin: 0;
  color: #4b5563;
}

.processList {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.processList li {
  counter-increment: process;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.processList li::before {
  content: counter(process);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
}

.processList strong {
  display: block;
  font-size: 18px;
}

.processList span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.contactForm {
  display: grid;
  gap: 13px;
}

.formRow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: block;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 5px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c7ced8;
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  min-height: 138px;
  resize: vertical;
}

button {
  border: 0;
}

:focus-visible {
  outline: 4px solid #fbbf24;
  outline-offset: 2px;
}

.siteFooter {
  color: #d7dce3;
  background: #111827;
  border-top: 5px solid var(--accent);
}

.footerInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
}

.footerLogo {
  width: min(220px, 70vw);
  max-height: 54px;
  object-fit: contain;
  padding: 5px;
  border-radius: 8px;
  background: #ffffff;
}

.footerLinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footerLinks a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.copyright {
  margin: 10px 0 0;
  color: #aeb7c4;
  font-size: 13px;
}

@media (min-width: 980px) {
  .brandText {
    display: block;
  }
}

@media (max-width: 820px) {
  .siteHeader {
    position: static;
  }

  .siteHeaderInner {
    align-items: flex-start;
    flex-direction: column;
  }

  .siteNav {
    justify-content: flex-start;
  }

  .heroStats,
  .split,
  .footerInner,
  .formRow {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(10, 16, 28, .94) 0%, rgba(10, 16, 28, .80) 58%, rgba(10, 16, 28, .58) 100%),
      url("fire-apparatus-service-bay.png") center / cover no-repeat;
  }

  .footerLinks {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .siteHeaderInner,
  .sectionInner,
  .footerInner {
    width: min(100% - 28px, 1180px);
  }

  .siteNav a {
    padding: 8px 9px;
  }

  .hero .sectionInner {
    padding: 42px 0 54px;
  }

  .heroLead,
  .pageHero p,
  .sectionLead {
    font-size: 17px;
  }
}
