.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-bg-dark);
  background-image: url('../../../assets/images/hero/hero-bg.webp');
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  padding-top: var(--space-3xl);
  padding-bottom: 0;
}

.hero_container,
.hero_content {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 24px 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

@media (min-width: 768px) {

  .hero_container,
  .hero_content {
    padding: 40px;
    align-items: center;
  }
}

.hero_header {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

@media (min-width: 768px) {
  .hero_header {
    align-items: center;
    text-align: center;
  }
}

/* Masked Text Reveal Animation Wrappers */
.hero_mask {
  display: block;
  overflow: hidden;
  line-height: inherit;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero_reveal-line {
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* Responsive line-break helpers for 4-line mobile heading */
.hero_break {
  display: block;
}

.hero_space {
  display: none;
}

@media (min-width: 768px) {
  .hero_break {
    display: none;
  }

  .hero_space {
    display: inline;
  }
}

/* Main Heading: 36px on mobile */
.hero_title {
  margin: 0;
  color: #ffffff;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero_title {
    font-size: clamp(34px, 4.5vw, 60px);
    line-height: 130%;
    letter-spacing: -1.92px;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .hero_title {
    font-size: 60px;
  }
}

.hero_highlight {
  color: var(--color-accent-cyan);
}

/* Subtitle: 16px / 400 on mobile with improved line-height & letter-spacing */
.hero_subtitle {
  margin-top: 20px;
  margin-bottom: 0;
  max-width: 680px;
  color: #ffffff;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.hero_subtitle .hero_mask,
.hero_subtitle .hero_reveal-line {
  line-height: inherit;
}

@media (min-width: 768px) {
  .hero_subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    text-align: center;
  }
}

.hero_actions {
  margin-top: var(--space-lg);
}

.hero_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  height: 48px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  text-decoration: none;
  cursor: pointer;
}

.hero_cta-label {
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero_cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  overflow: hidden;
  pointer-events: none;
}

.hero_cta-icon img {
  display: block;
  transition: transform 0.38s ease-in-out;
  will-change: transform;
}


.hero_visuals {
  width: 100%;
  margin-top: 48px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
  padding-top: 8px;
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 24px;
}

.hero_visuals::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .hero_visuals {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .hero_visuals {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Laptop (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .hero_visuals {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* Larger Desktop (1440px and up) */
@media (min-width: 1440px) {
  .hero_visuals {
    padding-left: calc((100vw - 1440px) / 2 + 60px);
    padding-right: calc((100vw - 1440px) / 2 + 60px);
  }
}

/* Extra Large Desktop (1920px and up) */
@media (min-width: 1920px) {
  .hero_visuals {
    padding-left: calc((100vw - 1710px) / 2);
    padding-right: calc((100vw - 1710px) / 2);
  }
}

.hero_cards-track {
  display: flex;
  gap: 18px;
  width: max-content;
  align-items: center;
  margin-left: 0;
  margin-right: auto;
}

@media (min-width: 1920px) {
  .hero_cards-track {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero_card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: none;
  border: none;
}

/* Card Dimensions: 1st card is 520x380 in lapview, other cards are 380x380 */
@media (min-width: 1024px) {
  .hero_card--yuze {
    width: 520px;
    height: 380px;
  }

  .hero_card--joburg,
  .hero_card--fitreat,
  .hero_card--monte {
    width: 380px;
    height: 380px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero_card--yuze {
    width: 480px;
    height: 380px;
  }

  .hero_card--joburg,
  .hero_card--fitreat,
  .hero_card--monte {
    width: 360px;
    height: 380px;
  }
}

@media (max-width: 767px) {
  .hero_card--yuze {
    width: min(440px, calc(100vw - 48px));
    height: 380px;
  }

  .hero_card--joburg,
  .hero_card--fitreat,
  .hero_card--monte {
    width: min(320px, calc(100vw - 100px));
    height: 380px;
  }
}

.hero_card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero_card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.35;
  color: var(--color-text-primary);
}

@media (max-width: 767px) {
  .hero_card-title {
    font-size: 18px;
    line-height: 25px;
  }
}

.hero_card-title strong {
  font-weight: 700;
}

.hero_card--yuze {
  background-color: #032d22;
  border: none;
}

.hero_card--yuze .hero_card-bg-img {
  object-position: right center;
}

.hero_card-content--yuze {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .hero_card-content--yuze {
    padding: 40px;
  }
}

.hero_card-brand-img--yuze {
  width: 79px;
  height: 34px;
  display: block;
  margin-bottom: 20px;
}

.hero_card-tagline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.35;
  color: #ffffff;
  max-width: 320px;
}

@media (max-width: 767px) {
  .hero_card-tagline {
    font-size: 18px;
  }
}

.hero_card-tagline strong {
  font-weight: 700;
}

.hero_card--joburg {
  background-color: #0c1822;
  border: none;
}

.hero_card-content--joburg {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg,
      rgba(2, 25, 36, 0.72) 0%,
      rgba(2, 25, 36, 0.1) 45%,
      rgba(2, 25, 36, 0.75) 100%);
}

@media (min-width: 768px) {
  .hero_card-content--joburg {
    padding: 40px;
  }
}

.hero_card-brand-img--joburg {
  width: 96px;
  height: auto;
  display: block;
}

.hero_card--fitreat {
  background-color: #0c0e12;
  border: none;
}

.hero_card-content--fitreat {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.1) 45%,
      rgba(0, 0, 0, 0.75) 100%);
}

@media (min-width: 768px) {
  .hero_card-content--fitreat {
    padding: 40px;
  }
}

.hero_card-brand-img--fitreat {
  width: 140px;
  height: auto;
  display: block;
}

.hero_card--monte {
  background-color: #1a080d;
  border: none;
}

.hero_card-content--monte {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .hero_card-content--monte {
    padding: 40px;
  }
}

.hero_card-brand-img--monte {
  width: 110px;
  height: auto;
  display: block;
}

.hero_marquee-section {
  width: 100%;
  margin-top: 24px;
  padding-top: 12px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .hero_marquee-section {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    padding-bottom: 100px;
  }
}

.hero_marquee-wrapper {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 992px) {
  .hero_marquee-wrapper {
    flex-direction: row;
    align-items: center;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

.hero_marquee-intro {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero_marquee-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 3.1vw, var(--font-size-sm));
  color: #111111;
  line-height: 24px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.hero_marquee-heading span {
  font-weight: 500;
  color: #111111;
}

.hero_marquee-heading strong {
  font-weight: 500;
  color: #111111;
}

@media (min-width: 992px) {
  .hero_marquee-heading {
    flex-direction: column;
    font-size: var(--font-size-sm);
    white-space: normal;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    line-height: 24px;
  }
}

.hero_marquee-separator {
  display: none;
  width: 1px;
  height: 36px;
  background-color: rgba(15, 23, 42, 0.15);
  margin-left: var(--space-lg);
  margin-right: var(--space-lg);
}

@media (min-width: 992px) {
  .hero_marquee-separator {
    display: block;
  }
}

.hero_marquee-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 30px,
      black calc(100% - 30px),
      transparent 100%);
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 30px,
      black calc(100% - 30px),
      transparent 100%);
}

.hero_marquee-strip {
  display: flex;
  width: max-content;
  will-change: transform;
}

.hero_marquee-group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  flex-shrink: 0;
}

.hero_marquee-item {
  display: flex;
  align-items: center;
  height: 32px;
  flex-shrink: 0;
}

.hero_marquee-logo {
  height: 24px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
  opacity: 0.85;
  transition: opacity var(--duration-fast) var(--ease-editorial),
    transform var(--duration-fast) var(--ease-editorial);
}

.hero_marquee-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}