/* Jack's Collision Center - Service Hero V5
   Corrected hero image path.
   Load LAST. Remove V2, V3 and V4. */

.service-hero {
  position: relative;
  overflow: hidden;
  background-image: url("../images/hero-bg.webp") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  height: 500px;
  min-height: 0 !important;
  isolation: isolate;
}

.service-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 150px;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%221280%22%20height%3D%22140%22%20viewBox%3D%220%200%201280%20140%22%20preserveAspectRatio%3D%22none%22%3E%3Cg%20fill%3D%22%23CF282A%22%3E%3Cpath%20d%3D%22M0%20140h1280C573.08%20140%200%200%200%200z%22%20fill-opacity%3D%22.30%22/%3E%3Cpath%20d%3D%22M0%20140h1280C573.08%20140%200%2030%200%2030z%22%20fill-opacity%3D%22.50%22/%3E%3Cpath%20d%3D%22M0%20140h1280C573.08%20140%200%2060%200%2060z%22/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 150px;
  transform: scaleY(-1);
  transform-origin: center;
}

.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(
      100deg,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.47) 16%,
      rgba(0,0,0,.15) 31%,
      rgba(0,0,0,0) 48%
    ),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%2064%2064%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22rgba%28219%2C219%2C219%2C0.18%29%22%20d%3D%22M32%200%200%2032V0Zm0%2064L64%2032V0L0%2064Z%22/%3E%3C/svg%3E");
  background-size: 100% 100%, 4px auto;
  background-repeat: no-repeat, repeat;
  background-position: center, center bottom;
}

.service-hero > .container {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 36px !important;
  padding-bottom: 20px !important;
  text-align: center;
}

.service-hero .hero-card {
  width: 100%;
  max-width: 1050px;
  margin: 38px auto 0;
  text-align: center;
}

.service-hero .hero-logo {
  display: block;
  width: min(520px, 80vw);
  max-width: 520px;
  height: auto;
  margin: 0 auto 12px;
}

.service-hero .hero-card p,
.service-hero .hero-card .lead {
  color: #cf282a !important;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  font-style: italic;
  text-align: center;
  margin: 0 auto;
  text-shadow: none;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .service-hero {
    height: 430px;
    background-position: 62% center !important;
  }

  .service-hero::before {
    height: 125px;
    background-size: 100% 125px;
  }

  .service-hero .hero-card {
    margin-top: 30px;
  }

  .service-hero .hero-logo {
    width: min(470px, 82vw);
  }

  .service-hero .hero-card p,
  .service-hero .hero-card .lead {
    font-size: 23px;
  }
}

@media (max-width: 575.98px) {
  .service-hero {
    height: 340px;
    background-position: 72% center !important;
  }

  .service-hero::before {
    height: 90px;
    background-size: 100% 90px;
  }

  .service-hero > .container {
    padding-top: 25px !important;
    padding-bottom: 14px !important;
  }

  .service-hero .hero-card {
    margin-top: 22px;
  }

  .service-hero .hero-logo {
    width: min(365px, 86vw);
    margin-bottom: 8px;
  }

  .service-hero .hero-card p,
  .service-hero .hero-card .lead {
    font-size: 18px;
    white-space: normal;
  }
}
