/* Shared mobile / responsive fixes for Peugeot Motocycles site */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.site,
.site__inner,
.site-content,
main {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

/* Prevent saved desktop inline widths from breaking small screens */
.hero-slider .swiper-slide,
.hero-swiper .swiper-slide {
  max-width: 100%;
}

/* ===== Hero slider: full banner (no crop) + no black mobile ===== */
/* Clear fixed header (70px desktop / 60px tablet-mobile) */
body.home .site__inner {
  padding-top: 70px;
}

@media only screen and (max-width: 1023px) {
  body.home .site__inner {
    padding-top: 60px;
  }
}

#hero_2.hero-slider,
.home #hero_2.hero-slider,
section#hero_2.hero-slider {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #0b0b0b;
  overflow: hidden;
  position: relative;
}

/*
  Fade Swiper stacks slides absolutely, so the container needs
  an intrinsic height. Banner assets are 1920x656 (and 900x308).
*/
#hero_2 .hero-swiper,
#hero_2 .swiper-container.hero-swiper {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1920 / 656;
  position: relative;
}

#hero_2 .swiper-wrapper {
  height: 100% !important;
}

#hero_2 .swiper-slide {
  width: 100% !important;
  height: 100% !important;
  background: #0b0b0b;
  overflow: hidden;
}

#hero_2 .swiper-slide picture {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
}

/* Full image visible — aspect ratio matches banner so nothing crops */
#hero_2 .swiper-slide img.hero-banner-img,
#hero_2 .swiper-slide img.loaded,
#hero_2 .swiper-slide > img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* CTA overlay */
#hero_2 .hero__inner,
#hero_2 .hero__text,
#hero_2 .hero__text.wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  z-index: 2;
  pointer-events: none;
  background: transparent !important;
}

#hero_2 .hero__inner:after {
  display: none !important;
  content: none !important;
}

#hero_2 .hero__text__wrap,
#hero_2 .hero__text__wrap.vpos--middle,
#hero_2 .hero__text__wrap.vpos--top,
#hero_2 .hero__text__wrap.hpos--left,
#hero_2 .hero__text__wrap.hpos--far-left {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 10% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: 92% !important;
  padding: 0 !important;
  text-align: center !important;
  pointer-events: auto;
}

/* Title is baked into banner art on desktop */
#hero_2 .hero__text__wrap h2 {
  display: none !important;
}

#hero_2 .hero__text__wrap .btn,
#hero_2 .hero__text__wrap .btn--primary {
  display: inline-block !important;
  margin: 0 !important;
  pointer-events: auto;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #fff !important;
  box-shadow: none !important;
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  height: auto !important;
  min-height: 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  padding: 10px 22px !important;
  letter-spacing: 0.06em;
}

#hero_2 .hero__text__wrap .btn--primary:hover,
#hero_2 .hero__text__wrap .btn--primary:focus,
#hero_2 .hero__text__wrap .btn--primary:active,
#hero_2 .hero__text__wrap .btn--primary:visited {
  background: rgba(255, 255, 255, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: #fff !important;
  color: #fff !important;
}

#hero_2 .swiper-pagination {
  bottom: 14px !important;
  z-index: 5;
}

.hero-slider .hero__text__wrap img,
.hero-swiper .hero__text__wrap img {
  max-width: 180px;
  width: auto;
  height: auto;
}

@media only screen and (max-width: 1023px) {
  #hero_2 .hero__text__wrap,
  #hero_2 .hero__text__wrap.vpos--middle,
  #hero_2 .hero__text__wrap.vpos--top {
    bottom: 14% !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 94% !important;
    padding: 0 !important;
  }
}

@media only screen and (max-width: 767px) {
  #hero_2.hero-slider,
  section#hero_2.hero-slider {
    min-height: 0 !important;
    height: auto !important;
  }

  #hero_2 .hero-swiper,
  #hero_2 .swiper-container.hero-swiper {
    aspect-ratio: 900 / 308;
  }

  #hero_2 .hero__text__wrap h2 {
    display: block !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 0 0 10px !important;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  }

  #hero_2 .hero__text__wrap {
    bottom: 16% !important;
  }

  #hero_2 .hero__text__wrap p {
    margin: 0 !important;
  }

  #hero_2 .hero__text__wrap .btn,
  #hero_2 .hero__text__wrap .btn--primary {
    font-size: 11px !important;
    line-height: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 16px !important;
    letter-spacing: 0.04em;
  }
}

@media only screen and (max-width: 419px) {
  #hero_2.hero-slider,
  section#hero_2.hero-slider {
    height: auto !important;
    min-height: 0 !important;
  }

  #hero_2 .hero__text__wrap {
    bottom: 18% !important;
    top: auto !important;
  }

  #hero_2 .hero__text__wrap h2 {
    font-size: 16px !important;
  }

  #hero_2 .hero__text__wrap .btn,
  #hero_2 .hero__text__wrap .btn--primary {
    font-size: 10px !important;
    line-height: 1 !important;
    height: auto !important;
    padding: 7px 12px !important;
  }
}

/* Forms / Gravity Forms / custom selects */
.gform_wrapper,
.gform_body,
.gform_fields,
.gfield,
.ginput_container,
.ginput_container input,
.ginput_container select,
.ginput_container textarea,
.customSelect,
.customSelectInner,
span.customSelect {
  max-width: 100% !important;
  box-sizing: border-box;
}

.ginput_container input,
.ginput_container select,
.ginput_container textarea,
.medium,
.large {
  width: 100% !important;
  max-width: 100% !important;
}

/* Content rows */
.content-media-row__content,
.content-media-row__media,
.site-content,
.site__inner,
.wrap {
  max-width: 100%;
}

/* Model range slider alignment on all sizes */
.models-slider-container .models-slider .swiper-slide.model > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  margin-bottom: 30px;
}

.models-slider-container .models-slider .swiper-slide.model img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
  margin-bottom: 0;
}

.models-slider-container .models-slider .swiper-slide.model > h2 {
  margin-top: 0;
}

.models-slider-container .models-slider .swiper-slide.model .specs {
  flex-wrap: wrap;
}

.models-slider-container .models-slider .swiper-slide.model .spec .value {
  word-break: break-word;
}

@media only screen and (max-width: 1023px) {
  .home section.range-slider,
  section.range-slider {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-bottom: 40px;
  }

  .models-slider-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .models-slider-container .models-slider .swiper-slide.model > a {
    height: 220px;
    margin-bottom: 20px;
  }

  .models-slider-container .models-slider .swiper-slide.model img {
    max-height: 220px;
  }

  .models-slider-container .models-slider .swiper-slide.model h2 span.variant,
  .models-slider-container .models-slider .swiper-slide.model h3 span.variant {
    font-size: 18px !important;
    letter-spacing: 2px !important;
    line-height: 1.3 !important;
  }

  .models-slider-container .models-slider .swiper-slide.model .spec .value {
    font-size: 16px !important;
  }

  .models-slider-container .models-slider .swiper-slide.model .specs .spec {
    flex: 1 1 45%;
    min-width: 120px;
    margin-bottom: 12px;
  }

  /* Content + image rows: image on top, readable text below */
  section.content-media-row,
  section.content-media-row.content-media-row--light,
  section.content-media-row.content-media-row--white,
  section.content-media-row.flex-grid--reverse {
    display: flex !important;
    flex-direction: column-reverse !important;
    flex-wrap: nowrap !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  section.content-media-row > .flex-grid__item,
  section.content-media-row.flex-grid > .flex-grid__item {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    height: auto !important;
    position: relative !important;
    float: none !important;
  }

  section.content-media-row .content-media-row__media {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    padding-top: 0 !important;
    margin: 0 !important;
    z-index: 0 !important;
    overflow: hidden !important;
  }

  section.content-media-row .content-media-row__media:after {
    display: none !important;
  }

  section.content-media-row .content-media-row__media .background-image,
  section.content-media-row .content-media-row__media video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
  }

  section.content-media-row .content-media-row__content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 24px 20px 28px !important;
    margin: 0 !important;
    text-align: left !important;
    background: #fff !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  section.content-media-row .content-media-row__content h2 {
    color: #000 !important;
    font-size: 20px !important;
    letter-spacing: 2px !important;
    line-height: 1.3 !important;
    margin: 0 0 12px !important;
    word-wrap: break-word;
  }

  section.content-media-row .content-media-row__content p {
    color: #555 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin: 0 0 16px !important;
  }

  .site-footer__inner.flex-grid > .flex-grid__item {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 30px;
  }

  .site-footer {
    padding: 40px 20px !important;
  }

  .mv-post-columns-slider,
  .multi-column-content-slider {
    height: auto !important;
    min-height: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .page section.hero,
  section.hero {
    min-height: 220px;
    background-size: cover !important;
    background-position: center !important;
  }

  /* Stack model/spec grids */
  .flex-grid.specs,
  .product-details,
  .model-details {
    flex-wrap: wrap;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}

@media only screen and (max-width: 767px) {
  section.content-media-row .content-media-row__media {
    height: 200px !important;
    min-height: 200px !important;
  }

  section.content-media-row .content-media-row__content {
    padding: 20px 16px 24px !important;
  }

  section.content-media-row .content-media-row__content h2 {
    font-size: 18px !important;
    letter-spacing: 1.5px !important;
  }

  section.content-media-row .content-media-row__content p {
    font-size: 14px !important;
  }

  .models-slider-container .models-slider .swiper-slide.model > a {
    height: 180px;
  }

  .models-slider-container .models-slider .swiper-slide.model img {
    max-height: 180px;
  }

  .models-slider-container .models-slider .swiper-slide.model h2 span.variant,
  .models-slider-container .models-slider .swiper-slide.model h3 span.variant {
    font-size: 16px !important;
    letter-spacing: 1.5px !important;
  }

  .models-slider-container .models-slider .swiper-slide.model .specs .spec {
    flex: 1 1 100%;
  }

  .btn,
  .btn--primary,
  .btn--action {
    max-width: 100%;
    white-space: normal;
  }

  .gform_wrapper li,
  .gform_fields > li {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media only screen and (max-width: 419px) {
  .models-slider-container .models-slider .swiper-slide.model > a {
    height: 150px;
    margin-bottom: 16px;
  }

  .models-slider-container .models-slider .swiper-slide.model img {
    max-height: 150px;
  }

  .home section.range-slider,
  section.range-slider {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Finance page – Bangladesh models sidebar */
.form-finance__models-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-finance__model-card {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-finance__model-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.form-finance__model-card .form-finance__bike-image {
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.form-finance__model-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

.form-finance__model-price {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}

.form-finance__cost-column {
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

@media only screen and (max-width: 767px) {
  .form-finance__models-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
  }

  .form-finance__model-card {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
    border-bottom: none;
    padding-bottom: 0;
  }

  .form-finance__cost-column {
    position: static;
  }
}

/* Finance page hero banner */
.finance-page-hero {
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #0b0b0b;
}

.finance-page-hero:before,
.finance-page-hero:after,
#row_5a56d0b3c6a3e:before,
#row_5a56d0b3c6a3e:after {
  display: none !important;
  content: none !important;
}

.finance-page-hero picture {
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 656;
  line-height: 0;
}

.finance-page-hero .finance-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media only screen and (max-width: 767px) {
  .finance-page-hero picture {
    aspect-ratio: 900 / 308;
  }
}
