/* ==========================================
  GTI Hero Carousel
  Rendered by the [gti_hero_carousel] shortcode.
========================================== */

.gti-hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0b1f3a;
  min-height: clamp(560px, 48vw, 820px);
}

.gti-hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}

@media (prefers-reduced-motion: reduce) {
  .gti-hero-track {
    transition-duration: .01ms;
  }
}

.gti-hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
}

.gti-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.gti-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, .55) 0%, rgba(11, 31, 58, .15) 22%, rgba(11, 31, 58, .15) 70%, rgba(11, 31, 58, .5) 100%),
    linear-gradient(90deg, rgba(11, 31, 58, .92) 0%, rgba(11, 31, 58, .68) 38%, rgba(11, 31, 58, .3) 68%, rgba(11, 31, 58, .05) 100%);
}

/* ==========================================
  Content
========================================== */

.gti-hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  min-width: 0;
  max-width: 620px;
  box-sizing: border-box;
  color: #fff;
  padding: 70px;
  margin-top: 160px;
}

.gti-hero-badge {
  margin-bottom: 20px;
}

.gti-hero-carousel .gti-hero-badge .gti-stock-badge {
  font-size: 15px;
  padding: 9px 18px;
  right: unset;
}

/* Hero-only accent: matches the approved mockup's green "Open" badge without
  touching the shared cyan .gti-stock-badge.open used on product grid cards. */
.gti-hero-carousel .gti-hero-badge .gti-stock-badge.open {
  background: #22C55E;
  color: #16213E;
}

.gti-hero-title {
  margin: 0 0 18px;
  font-family: "PP Neue Corp", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  font-size: clamp(34px, 4.6vw, 64px);
  color: #fff;
}

.gti-hero-excerpt {
  margin: 0 0 28px;
  max-width: 480px;
  font-family: "Mozilla Text", sans-serif;
  line-height: 1.5;
  color: #D9E3ED;
}

.gti-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: #008CFF;
  border-radius: 3px;
  color: #fff;
  font-family: "Mozilla Text", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease;
}

.gti-hero-cta:hover {
  background: #0085EB;
  color: #fff;
}

/* ==========================================
  Arrows
========================================== */

.gti-hero-nav {
  position: absolute;
  z-index: 6;
  right: clamp(24px, 5vw, 70px);
  bottom: 32px;
  display: flex;
  gap: 12px;
}

.gti-hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.gti-hero-arrow:hover,
.gti-hero-arrow:focus-visible {
  background: #008CFF;
  outline: none;
}

.gti-hero-arrow.gti-hero-next {
  background: #008CFF;
}

.gti-hero-arrow.gti-hero-next:hover,
.gti-hero-arrow.gti-hero-next:focus-visible {
  background: #0085EB;
}

/* ==========================================
  Pagination
========================================== */

.gti-hero-pagination {
  position: absolute;
  z-index: 6;
  left: clamp(24px, 5vw, 70px);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gti-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}

.gti-hero-dot.is-active {
  width: 32px;
  background: #008CFF;
}

/* ==========================================
  Screen-reader live region
========================================== */

.gti-hero-sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
  Responsive
========================================== */

@media (max-width: 980px) {
  .gti-hero-carousel {
    min-height: clamp(520px, 62vw, 680px);
  }

  .gti-hero-slide {
    align-items: flex-start;
    padding-top: 160px;
  }

  .gti-hero-content {
    /* padding-top: clamp(120px, 20vw, 160px); */
    margin-top: 0;
    padding: 70px 30px;
  }

  .gti-hero-title {
    font-size: clamp(32px, 6vw, 48px);
  }

  .gti-hero-excerpt {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .gti-hero-carousel {
    min-height: clamp(400px, 145vw, 565px);
  }

  /* .gti-hero-track, 
  .gti-hero-slide {
    align-items: flex-end;
  } */

  .gti-hero-overlay {
    background:
      linear-gradient(180deg, rgba(11, 31, 58, .35) 0%, rgba(11, 31, 58, .35) 40%, rgba(11, 31, 58, .88) 100%),
      linear-gradient(90deg, rgba(11, 31, 58, .55) 0%, rgba(11, 31, 58, .2) 100%);
  }

  .gti-hero-content {
    max-width: none;
    /* padding: 0 24px 84px; */
  }

  .gti-hero-title {
    font-size: clamp(30px, 9vw, 44px);
    margin-bottom: 14px;
  }

  .gti-hero-excerpt {
    max-width: none;
    font-size: 15px;
    margin-bottom: 22px;
  }

  .gti-hero-cta {
    /* width: 100%; */
    padding: 15px 24px;
  }

  .gti-hero-nav {
    display: none;
  }

  .gti-hero-pagination {
    left: 24px;
    bottom: 24px;
  }
}
