/* Accessible homepage hero copy. The clean images retain the original artwork;
   all informational text is selectable, scalable HTML layered in the same place. */
.homePageSlider .home-hero-slide,
.homePageSlider .home-hero-slide__link {
  position: relative;
  display: block;
  width: 100%;
}

.homePageSlider .home-hero-slide__link {
  color: inherit;
  text-decoration: none;
}

.homePageSlider .home-hero-slide__image {
  width: 100%;
  height: auto;
}

.homePageSlider .home-hero-copy {
  position: absolute;
  z-index: 1;
  top: 34.5%;
  left: 8.75%;
  max-width: 56%;
  color: #fff;
  pointer-events: none;
}

.homePageSlider .home-hero-copy--statement {
  top: 42.5%;
  left: 6%;
  max-width: 35%;
}

.homePageSlider .home-hero-heading {
  margin: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(32px, 3.35vw, 64px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.homePageSlider .home-hero-heading strong {
  font-weight: 700;
}

.homePageSlider .home-hero-description {
  margin: 0.35em 0 2.05em;
  color: inherit;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(15px, 1.25vw, 24px);
  font-weight: 400;
  line-height: 1.45;
}

.homePageSlider .home-hero-cta {
  box-sizing: border-box;
  width: clamp(310px, 26.6vw, 510px);
  min-height: clamp(58px, 4.5vw, 86px);
  padding: 0.75em 1.5em;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(15px, 1.1vw, 21px);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.homePageSlider .home-hero-slide__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

/* Between the desktop and mobile header breakpoints the original hero keeps its
   negative top offset. Move only the two linked copies below the fixed header. */
@media only screen and (min-width: 993px) and (max-width: 1210px) {
  .homePageSlider .home-hero-slide--service .home-hero-copy,
  .homePageSlider .home-hero-slide--preowned .home-hero-copy {
    top: calc(34.5% + 38px);
  }
}

@media only screen and (max-width: 767.98px) {
  .homePageSlider .home-hero-copy {
    top: calc(34.5% + 12px);
    max-width: 57%;
  }

  .homePageSlider .home-hero-copy--statement {
    top: calc(42.5% + 12px);
    max-width: 42%;
  }

  .homePageSlider .home-hero-heading {
    font-size: clamp(16px, 3.35vw, 26px);
    line-height: 1.22;
  }

  .homePageSlider .home-hero-description {
    margin: 0.25em 0 0.8em;
    font-size: clamp(10px, 1.8vw, 14px);
    line-height: 1.3;
  }

  .homePageSlider .home-hero-cta {
    width: min(49vw, 310px);
    min-height: 32px;
    padding: 0.45em 0.75em;
    font-size: clamp(10px, 1.8vw, 14px);
  }
}

/* 576px also covers fractional CSS viewports created by Windows display scaling. */
@media only screen and (max-width: 576px) {
  #pills-tab .nav-link {
    min-height: 60px;
    padding: 10px 3px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(9px, 2.8vw, 11px);
    line-height: 1.25;
    text-align: center;
  }

  .homePageSlider .home-hero-copy {
    /* Preserve the original banner position; move only the linked HTML copy
       below the fixed mobile header and above the overlaid search tabs. */
    top: calc(34.5% + 12px);
    left: 9%;
    max-width: 82%;
  }

  .homePageSlider .home-hero-copy--statement {
    top: 48%;
    left: 18%;
    max-width: 64%;
  }

  .homePageSlider .home-hero-heading {
    font-size: clamp(12px, 4vw, 17px);
    line-height: 1.12;
  }

  .homePageSlider .home-hero-description {
    max-width: 100%;
    margin: 0.2em 0 0.55em;
    font-size: clamp(7px, 2.25vw, 10px);
    line-height: 1.18;
  }

  .homePageSlider .home-hero-cta {
    width: min(72vw, 310px);
    max-width: 100%;
    min-height: 24px;
    padding: 0.35em 0.7em;
    font-size: clamp(8px, 2.25vw, 10px);
    line-height: 1.15;
    white-space: normal;
  }
}

@media (forced-colors: active) {
  .homePageSlider .home-hero-copy {
    padding: 0.5rem;
    background: Canvas;
    color: CanvasText;
  }

  .homePageSlider .home-hero-cta {
    border-color: ButtonText;
  }
}
