/* PATCHED home banner dimensions §4.1 */

html[data-motorcycle-towing-page] #motorcycle-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: clamp(560px, 78vh, 980px) !important;
  height: clamp(560px, 78vh, 980px) !important;
  max-height: none !important;
  padding: 0 !important;
}

html[data-motorcycle-towing-page] #motorcycle-hero #main-banner.banner__image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  /* PAGE-OWNED BANNER IMAGE */
  background-image: url('../img/banner/motorcycle-towing/motorcycle-towing-banner.webp') !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

html[data-motorcycle-towing-page] #motorcycle-hero .banner__content-shell--fixed {
  position: absolute !important;
  top: 62% !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  margin: 0 auto !important;
  pointer-events: none !important;
}

html[data-motorcycle-towing-page] #motorcycle-hero .banner__content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  pointer-events: auto !important;
}

html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  min-height: 400px;
  padding: 0;
  border-radius: 18px;
  background:
    linear-gradient(215deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 48%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.24) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  min-height: 100%;
  padding: 28px 32px 26px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html[data-motorcycle-towing-page] #motorcycle-hero .banner__content h1,
html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__title {
  flex-shrink: 0;
  min-height: auto;
  margin: 0 0 16px !important;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

html[data-motorcycle-towing-page] #motorcycle-hero .banner__content p,
html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__text {
  flex-shrink: 0;
  min-height: auto;
  margin: 0 !important;
  font-size: clamp(1rem, 1.35vw, 1.125rem) !important;
  line-height: 1.55 !important;
  max-width: none !important;
}

html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__actions {
  flex-shrink: 0;
  margin-top: auto !important;
  padding-top: 24px !important;
  gap: 16px !important;
}

html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__actions .cmn--btn,
html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__actions .cmn--btn2 {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  html[data-motorcycle-towing-page] #motorcycle-hero .banner__content-shell--fixed {
    top: auto !important;
    bottom: 6% !important;
    transform: none !important;
  }

  html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card {
    height: auto;
    min-height: 360px;
  }

  html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__panel {
    padding: 22px 20px 20px;
  }

  html[data-motorcycle-towing-page] #motorcycle-hero .banner__content h1,
  html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__title {
    font-size: clamp(1.45rem, 5vw, 2rem) !important;
  }
}

@media (max-width: 640px) {
  html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card {
    min-height: 300px;
  }

  html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__actions .cmn--btn,
  html[data-motorcycle-towing-page] #motorcycle-hero .banner-glass-card__actions .cmn--btn2 {
    width: 100%;
    justify-content: center !important;
  }
}

/* --- Mobile/tablet: full banner image visible, glass card below --- */
@media (max-width: 1760px) {
  html[data-motorcycle-towing-page] #motorcycle-hero {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }

  html[data-motorcycle-towing-page] #motorcycle-hero #main-banner.banner__image {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: calc(100% / 1.83) !important;
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    inset: auto !important;
  }

  html[data-motorcycle-towing-page] #motorcycle-hero .banner__content-shell--fixed {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    padding: 18px 16px 0 !important;
  }
}
/* === v3 desktop-to-980 containment: image stays fully visible while viewport shrinks === */
/* === v3 desktop scaling: cover fills banner above 1544px (smooth, no jump) === */
@media (min-width: 1545px) {
  html[data-motorcycle-towing-page] #motorcycle-hero #main-banner.banner__image {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}

