header .max-width {
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  padding: 0 25px;
  gap: 24px;
}
header .max-width .logo {
  flex: 0 0 175px;
  width: 175px;
  margin-right: 0;
}
header .max-width .desktop-links {
  margin-top: 0;
  align-items: center;
}
header .max-width .desktop-links .modal-buttons a {
  display: inline-flex;
  width: auto;
  max-width: none;
  align-items: center;
  justify-content: center;
  transform-origin: center;
}
header .max-width .desktop-links .desktop-nav {
  align-items: center;
}
header .max-width .desktop-links .desktop-nav > li {
  height: 48px;
  display: flex;
  align-items: center;
}
body .site-wrap header .max-width .desktop-links .desktop-nav > li > a {
  display: flex !important;
  height: 48px;
  min-height: 48px;
  align-items: center;
  padding-block: 0;
  line-height: 1;
}
header .max-width .desktop-links .desktop-nav li a::after {
  content: "";
}

/* Keep the current page or parent section visible without hovering. */
header .max-width .desktop-links .desktop-nav li a[aria-current]::after,
body .site-wrap footer .home-text-link[aria-current]::after {
  width: 100%;
  background: var(--fox-orange);
}

#body-nav :is(.mobile_head, .sub-menu) a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--fox-orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}
.submenu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}
.submenu-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #063f52;
  border-bottom: 2px solid #063f52;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: center;
  transition: transform 180ms ease;
}
.submenu-toggle:is(:hover, :focus-visible)::before {
  transform: translateY(-3px) rotate(45deg) scale(1.2);
}
.dropdwn.is-open .submenu-toggle::before,
.submenu-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(225deg);
}
.dropdwn.is-open .submenu-toggle:is(:hover, :focus-visible)::before,
.submenu-toggle[aria-expanded="true"]:is(:hover, :focus-visible)::before {
  transform: translateY(1px) rotate(225deg) scale(1.2);
}
.dropdown-content {
  top: 100%;
  left: 0;
  margin-top: 0;
  padding: 12px 8px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 24px #005d7620;
}
body .site-wrap header .max-width .desktop-links .dropdown-content a {
  width: max-content;
  min-height: 44px;
  align-items: center;
  line-height: 1.4;
  padding: 8px 0;
}
.dropdwn.is-open .dropdown-content,
.dropdown-content:focus-within {
  display: block;
}
.mobile-header {
  justify-content: space-between;
}
.mobile-header .nav-buttons .nav-icon,
.mobile-header .nav-buttons .nav-icon.active {
  width: 44px;
  height: 44px;
  background-size: 28px auto;
  background-position: center;
}
.mobile-header .nav-buttons .call-btn {
  width: 44px;
  height: 44px;
  background-size: 20px;
  background-position: center;
}
.show-nav #body-nav .mobile_head {
  padding: 12px 0;
}
.show-nav #body-nav .mobile_head a {
  flex: 1;
  text-align: left;
  padding: 12px 0;
}
.show-nav #body-nav .mobile_head .mm-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
}
.show-nav #body-nav .mobile_body {
  z-index: 1;
}
@media (min-width: 1200px) and (max-width: 1399px) {
  header .max-width {
    gap: 12px;
  }
  header .max-width .logo {
    flex-basis: 145px;
    width: 145px;
  }
  header .max-width .desktop-links .desktop-nav li a {
    margin: 0 5px;
    font-size: 13px;
  }
  .submenu-toggle {
    width: 24px;
  }
}

/* The legacy promotion wrapper covers the viewport; only its card takes clicks. */
#ac-wrapper {
  pointer-events: none;
}
#ac-wrapper #popup {
  pointer-events: auto;
}
.show-nav #ac-wrapper {
  visibility: hidden;
}

/* A native button with an animated hamburger-to-close transition. */
.mobile-header .nav-buttons .nav-icon,
.mobile-header .nav-buttons .nav-icon.active {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
}
.nav-icon > span {
  position: absolute;
  left: 8px;
  top: 21px;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: #222533;
}
.nav-icon > span:first-child {
  transform: translateY(-8px);
}
.nav-icon > span:last-child {
  transform: translateY(8px);
}
.nav-icon.active > span:first-child {
  transform: rotate(45deg);
}
.nav-icon.active > span:nth-child(2) {
  opacity: 0;
}
.nav-icon.active > span:last-child {
  transform: rotate(-45deg);
}
@media (max-width: 1199px) {
  #body-nav {
    background: #fff;
    transition: none;
  }
  body.show-nav {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-icon > span {
    transition:
      transform 240ms ease,
      opacity 180ms ease;
  }
  .show-nav #body-nav .mobile-wrapper {
    animation: fox-menu-open 300ms ease-out;
  }
  .show-nav #body-nav .mobile_body {
    animation: fox-submenu-open 220ms ease-out;
  }
}
@keyframes fox-menu-open {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fox-submenu-open {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Keep the primary header booking action within the blue CTA family. */
body .site-wrap header .modal-buttons .solid-btn[href="/book-a-job"] {
  background-color: var(--fox-blue) !important;
  border-color: var(--fox-blue) !important;
  color: #fff !important;
}

body
  .site-wrap
  header
  .modal-buttons
  .solid-btn[href="/book-a-job"]:is(:hover, :focus-visible, :active) {
  background-color: var(--fox-blue) !important;
  border-color: var(--fox-blue) !important;
  color: #fff !important;
}
