/* Place the first Elementor section behind the shared utility bar. */
body:is(.home, .elementor-page:has(#content .elementor[data-elementor-type="wp-page"] > section:first-child)) #masthead {
  display: flow-root;
  height: 0;
}
body:is(.home, .elementor-page:has(#content .elementor[data-elementor-type="wp-page"] > section:first-child)) #masthead .elementor-6245 > .elementor-top-section.elementor-sticky--active {
  position: relative !important;
  inset: auto !important;
}
body:is(.home, .elementor-page:has(#content .elementor[data-elementor-type="wp-page"] > section:first-child)) #masthead .elementor-6245 > .elementor-sticky__spacer {
  display: none !important;
}

/* Compact the desktop and tablet navigation once it is pinned. */
body:is(.home, .elementor-page:has(#content .elementor[data-elementor-type="wp-page"] > section:first-child)) #masthead .elementor-element-5f17c201.elementor-sticky--active.elementor-sticky--effects > .elementor-container {
  min-height: 84px;
}
body:is(.home, .elementor-page:has(#content .elementor[data-elementor-type="wp-page"] > section:first-child)) #masthead .elementor-element-5f17c201.elementor-sticky--active.elementor-sticky--effects .hfe-site-logo-img {
  width: auto !important;
  max-height: 124px;
  margin-block: -23px;
}

/* Bring the main navigation closer to the utility bar before scrolling. */
body:is(.home, .elementor-page:has(#content .elementor[data-elementor-type="wp-page"] > section:first-child)) #masthead .elementor-element-5f17c201:not(.elementor-sticky--active):not(.elementor-sticky__spacer) {
  margin-top: -48px;
}

/* Apply the Vertizant blue when the main navigation is pinned. */
body:is(.home, .elementor-page:has(#content .elementor[data-elementor-type="wp-page"] > section:first-child)) #masthead :is(.elementor-element-5f17c201, .elementor-element-ee5e6fb).elementor-sticky--active.elementor-sticky--effects {
  background-color: #033655 !important;
}

/* Remove the first section’s top margin so the utility bar has a backdrop. */
body.elementor-page:not(.home):has(#masthead > .elementor-6245) #content .elementor[data-elementor-type="wp-page"] > section:first-child {
  margin-top: 0;
}

/* Preserve the footer logo footprint and crop only the transparent canvas. */
#colophon .elementor-element-0135190 img {
  transform: translateX(-6%);
  aspect-ratio: 2740 / 624;
  object-fit: cover;
}

/* Keep the wordmark proportionate on wide desktop screens. */
@media (min-width: 1600px) {
  body:is(.home, .elementor-page:has(#content .elementor[data-elementor-type="wp-page"] > section:first-child)) #masthead .elementor-element-5f17c201.elementor-sticky--active.elementor-sticky--effects > .elementor-container {
    min-height: 96px;
  }
  body:is(.home, .elementor-page:has(#content .elementor[data-elementor-type="wp-page"] > section:first-child)) #masthead .elementor-element-5f17c201.elementor-sticky--active.elementor-sticky--effects .hfe-site-logo-img {
    max-height: 156px;
    margin-block: -33px;
  }
}
