:root {
  --logo-blue: #19355e;
  --logo-red: #c52126;
  --logo-yellow: #fcb019;
}

/* Keep the header branding compact and switch menus before links can collide. */
.header-brand {
  gap: 0;
  min-width: 245px;
}

.header-brand .brand-logo {
  width: 145px;
  height: 145px;
  margin-right: -18px;
  transform: translateY(40px);
}

@media (max-width: 1120px) {
  html,
  body {
    overflow-x: clip;
    touch-action: pan-y;
  }

  .parallax {
    background-attachment: scroll !important;
  }

  .site-header .menu-toggle {
    display: block;
  }

  .site-header nav {
    color: #fff;
    background: #111416;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* The logo extends below the fixed header. Reserve that space so the
       first link (Home) remains visible when the hamburger menu opens. */
    padding: 62px 20px 20px;
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    box-shadow: 0 15px 30px #0000004d;
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav > a {
    border-bottom: 1px solid #2b2e30;
    padding: 14px 6px;
  }

  .site-header nav > .language-switch {
    align-self: flex-start;
    margin: 12px 0 2px;
    padding: 5px;
  }

  .site-header .nav-phone {
    justify-content: center;
    margin-top: 10px;
  }

  .header-brand {
    min-width: 0;
  }

  .header-brand .brand-logo {
    width: 126px;
    height: 126px;
    margin-right: -17px;
    transform: translateY(29px);
  }
}

/* Hero refinements */
.hero-actions .button.ghost {
  display: none !important;
}

.hero-content > .eyebrow:not(.transition-announcement) {
  visibility: hidden;
}

.hero-content > .transition-announcement {
  color: var(--logo-blue) !important;
  background: var(--logo-yellow);
  border: 0;
  border-radius: 22px;
  width: fit-content;
  max-width: 680px;
  margin: 0 0 24px;
  padding: 10px 15px;
  text-transform: none;
  letter-spacing: .25px;
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 900;
  line-height: 1.35;
  display: block !important;
  box-shadow: 0 7px 18px #0005;
}

.hero h1 em {
  color: #fff !important;
}

.hero .location {
  color: var(--logo-yellow) !important;
}

/* Keep the full hero artwork visible while scrolling. The diagonal treatment
   deliberately extends below the section edge so its ends never look clipped. */
.hero {
  min-height: 940px;
  background-position: center top !important;
}

.hero::after {
  top: 0;
  bottom: -180px;
  opacity: .42;
}

@media (max-width: 900px) {
  .hero {
    min-height: 820px;
    background-position: 64% top !important;
  }

  .hero::after {
    bottom: -140px;
    opacity: .34;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 0;
    background-position: 64% top !important;
  }
}

/* Match section headings to the blue used in the logo. */
.services .section-heading > p {
  color: #fff !important;
  text-shadow: 0 2px 5px #0008;
}

.services .section-heading h2,
.types .section-heading h2 {
  color: var(--logo-blue) !important;
}

/* Yellow, high-contrast mission panel. */
.mission-card {
  color: #111820 !important;
  background: var(--logo-yellow) !important;
}

.mission-card span {
  color: #fff !important;
  background: var(--logo-blue) !important;
}

/* Final CTA brand-color treatment. */
.final-cta h2 .cta-contact {
  color: #fff !important;
  text-shadow: 0 2px 5px #0006;
}

.final-cta h2 .cta-contact,
.final-cta h2 .cta-united,
.final-cta h2 .cta-fire {
  display: block;
}

.final-cta h2 .cta-united,
.final-cta h2 .cta-brand-blue,
.final-cta h2 .cta-fire {
  color: var(--logo-blue) !important;
}

.final-cta h2 .cta-brand-red {
  color: var(--logo-red) !important;
  font-style: normal;
}
.final-cta h2 .cta-brand-red-amp {
    color: var(--logo-red) !important;
}
.final-cta-copy > p strong:first-child {
  color: var(--logo-red) !important;
}

.final-cta .cta-call {
  display: none !important;
}

/* Plain service-area statement: no panel or border. */
.service-area {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Footer logo type colors. */
.footer-brand strong {
  color: var(--logo-blue) !important;
}

.footer-brand b {
  color: var(--logo-red) !important;
}

.footer-socials {
  gap: 12px !important;
}

.footer-socials .social-links {
  flex-flow: row wrap;
  gap: 10px;
  display: flex;
}

.footer-socials .social-link {
  color: var(--logo-blue);
  background: #eef3f8;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-weight: 800;
  display: inline-flex;
}

.footer-socials .social-link:hover {
  color: #fff;
  background: var(--logo-blue);
  text-decoration: none;
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 620px) {
  .site-header nav {
    top: 70px;
    padding-top: 52px;
  }

  .header-brand .brand-logo {
    width: 112px;
    height: 112px;
    margin-right: -14px;
    transform: translateY(26px);
  }

  .hero-content > .transition-announcement {
    max-width: 350px;
    margin-bottom: 20px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .footer-socials .social-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Give the logo and company name a clear, consistent separation. */
.header-brand {
  column-gap: 24px;
}

.header-brand .brand-logo {
  margin-right: 0;
}

.header-brand b {
  color: #fff !important;
}

.brand .brand-amp {
  color: var(--logo-red) !important;
}

.footer-brand b {
  color: var(--logo-blue) !important;
}

@media (max-width: 1120px) {
  .header-brand {
    column-gap: 18px;
  }
}

@media (max-width: 620px) {
  .header-brand {
    column-gap: 14px;
  }
}

/* Final, explicit CTA colors: Fire/Safety blue; ampersand red. */
#final-cta-title .cta-fire {
  color: var(--logo-blue) !important;
}

#final-cta-title .cta-fire > .cta-brand-blue {
  color: var(--logo-blue) !important;
}

#final-cta-title .cta-fire > .cta-brand-red,
#final-cta-title .cta-fire > .cta-brand-red-amp {
  color: var(--logo-red) !important;
  font-style: normal;
  display: inline;
}
