/* SHP Hero Gap Fix 1.0.2 — sitewide. Do not edit the theme. */

.hero {
  overflow: hidden !important;
}

@media (max-width: 768px) {
  section.hero .hero__media img.hero__bg,
  section.hero img.hero__bg,
  img.hero__bg,
  .hero__bg {
    transform: none !important;
    /*
      Theme assets/script.js writes translate3d(0, ±18px, 0) on .hero__bg
      on every scroll. Oversized cover so a residual transform cannot
      uncover the hero background at the join with .info-line.
    */
    top: -24px !important;
    bottom: -24px !important;
    height: calc(100% + 48px) !important;
    min-height: calc(100% + 48px) !important;
    max-height: none !important;
    left: 0 !important;
    width: 100% !important;
  }

  /*
    Lock the hero to the small viewport. 100svh first where supported.
    -webkit-fill-available is a stable iOS small-viewport fallback when
    svh is flaky during the Chrome/Safari toolbar animation. Never use
    100dvh. 100vh is a last-resort fallback only.
  */
  .hero,
  .hero__shell {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    min-height: -webkit-fill-available;
    height: -webkit-fill-available;
    max-height: -webkit-fill-available;
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
  }

  /* If 1px of the hero background peeks, match the dark-blue strip. */
  .hero {
    background-color: rgb(27, 47, 56) !important;
  }

  /*
    The shaking line is the compositor edge of .info-line (the dark-blue
    Sherwin-Williams ticker) against the hero and the light-gray
    .services section. Theme CSS gives .info-line a box-shadow and
    .info-line__track will-change:transform plus a translateX animation.
    On iOS Chrome those layers make the section edge jitter during
    scroll. 100svh does not fix this.
  */
  .info-line {
    box-shadow: none !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .info-line__track {
    will-change: auto !important;
  }
}
