/* Home page specific styles */

/* ========== HERO BANNER (single image, full-bleed, natural aspect) ========== */
.home-banner {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.home-banner__link {
  display: block;
  width: 100%;
  max-width: 100%;
}

.home-banner picture,
.home-banner video {
  display: block;
  width: 100%;
  max-width: 100%;
}

.home-banner__media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

/* Video mode: fill viewport strip */
.home-banner.is-video {
  height: min(88vh, 820px);
  min-height: 480px;
}

.home-banner.is-video picture {
  display: none;
}

.home-banner:not(.is-video) > .home-banner__link > video {
  display: none;
}

.home-banner.is-video .home-banner__media,
.home-banner.is-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Slider mode (2+ banners) */
.home-banner--slider {
  position: relative;
}

.home-banner__slides {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
}

.home-banner--slider .home-banner__slide {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 0;
}

.home-banner--slider .home-banner__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.home-banner--slider .home-banner__slide:not(.is-active) .home-banner__link {
  pointer-events: none;
}

.home-banner__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.home-banner__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-banner__dot.is-active {
  background: var(--white);
  transform: scale(1.15);
}

.home-banner__dot:hover,
.home-banner__dot:focus-visible {
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}

@media (min-width: 768px) {
  .home-banner__dots {
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-banner--slider .home-banner__slide {
    transition: none;
  }
}

@media (min-width: 768px) {
  .home-banner.is-video {
    height: min(78vh, 900px);
    min-height: 560px;
  }
}

/* ========== PERFECT SUZUKI ========== */
.perfect-suzuki {
  padding: 36px 0 28px;
  background: var(--white);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@media (min-width: 768px) {
  .perfect-suzuki {
    padding: 48px 0 32px;
  }
}

.perfect-suzuki__title {
  margin: 0 0 20px;
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .perfect-suzuki__title {
    margin-bottom: 28px;
    font-size: 28px;
    text-align: left;
  }
}

/* Tabs: scroll horizontal en mobile */
.model-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  margin: 0 0 24px;
  border-bottom: 1px solid #e5e5e5;
  touch-action: pan-x;
}

.model-tabs::-webkit-scrollbar {
  display: none;
}

.model-tabs__btn {
  flex: 0 0 auto;
  position: relative;
  padding: 14px 12px 16px;
  font-family: var(--font-bold);
  font-size: 15px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #8a8a8a;
  border: none;
  border-radius: 0;
  background: transparent;
  transition: color var(--transition);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.model-tabs__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: transparent;
  transition: background var(--transition);
}

.model-tabs__btn:hover {
  color: var(--primary-blue);
  background: transparent;
}

.model-tabs__btn.is-active {
  color: var(--primary-blue);
  background: transparent;
}

.model-tabs__btn.is-active::after {
  background: var(--primary-blue);
}

@media (min-width: 768px) {
  .model-tabs {
    flex-wrap: wrap;
    overflow: visible;
    overscroll-behavior-x: auto;
    touch-action: auto;
    margin-bottom: 36px;
    justify-content: flex-start;
  }

  .model-tabs__btn {
    padding: 14px 22px 16px;
    font-size: 14px;
  }
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media (min-width: 1024px) {
  .model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 28px;
  }
}

.model-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.model-card.is-hidden,
.model-card[hidden] {
  display: none !important;
}

.model-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: transparent;
}

.model-card__image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.model-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
  width: 100%;
}

.model-card__info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.model-card__title {
  margin: 0 0 6px;
  font-family: var(--font-bold);
  font-size: 15px;
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1.25;
  color: #111;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.model-card__price {
  margin: 0;
  font-family: var(--font-bold);
  font-size: 14px;
  font-weight: normal;
  color: #111;
  line-height: 1.3;
}

.model-card__arrow {
  flex-shrink: 0;
  display: block;
  width: 28px;
  height: 28px;
  margin-top: 0;
  position: relative;
  color: var(--primary-blue);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.model-card__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-35%, -50%) rotate(45deg);
}

.model-card__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-55%, -50%);
}

.model-card__arrow:hover,
.model-card__arrow:focus-visible {
  background: var(--black);
  color: #fff;
  outline: none;
}

@media (min-width: 768px) {
  .model-card__title {
    font-size: 16px;
  }

  .model-card__price {
    font-size: 14px;
  }

  .model-card__arrow {
    width: 28px;
    height: 28px;
  }

  .model-card__arrow::before {
    width: 9px;
    height: 9px;
  }
}

/* ========== CMS FEATURE CARDS ========== */
.cms-block {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.cms-block--full {
  margin-top: 4px;
}

.cms-block__media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .cms-block__media {
    aspect-ratio: 1920 / 738;
  }
}

.cms-block__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 36px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.28) 55%, transparent 100%);
}

.cms-block__content-inner {
  max-width: var(--container);
  margin-inline: auto;
}

.cms-block__content h2 {
  margin: 0 0 10px;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: normal;
  text-transform: uppercase;
  max-width: 18ch;
  line-height: 1.2;
}

.cms-block__content p {
  margin: 0 0 14px;
  font-size: 13px;
  max-width: 52ch;
  line-height: 1.4;
  opacity: 0.95;
}

.cms-block .btn-arrow {
  color: var(--white);
}

.cms-block .btn-arrow:hover span {
  border-bottom-color: var(--white);
}

.cms-block .btn-arrow__icon {
  background: var(--white);
}

.cms-block .btn-arrow__icon img {
  filter: none;
}

@media (min-width: 768px) {
  .cms-block__content {
    padding: 64px 24px 56px;
  }

  .cms-block__content h2 {
    font-size: 28px;
    max-width: 20ch;
  }

  .cms-block__content p {
    font-size: 15px;
    max-width: 75%;
  }
}

/* Two-column CMS */
.cms-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 16px 8px;
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .cms-duo {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 24px 16px;
  }
}

.cms-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  color: var(--white);
}

.cms-card__media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .cms-card__media {
    aspect-ratio: 545 / 302;
  }
}

.cms-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 16px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.cms-card__content h2 {
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: normal;
  text-transform: uppercase;
  min-height: 0;
  line-height: 1.2;
}

.cms-card__content p {
  margin: 0 0 14px;
  font-size: 13px;
  max-width: 95%;
  line-height: 1.35;
}

.cms-card .btn-arrow {
  color: var(--white);
}

.cms-card .btn-arrow:hover span {
  border-bottom-color: var(--white);
}

.cms-card .btn-arrow__icon {
  background: var(--white);
}

.cms-card .btn-arrow__icon img {
  filter: none;
}

@media (min-width: 768px) {
  .cms-card__content h2 {
    font-size: 20px;
    min-height: 2.4em;
  }
}
