.home-hero {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: 3rem 0;
  min-height: 80vh;
  background: url(../media/home/img-home-03.png) center/cover no-repeat;
  background-blend-mode: multiply;
  border-radius: 0;
}

.home-hero .container {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.home-hero .text-title {
  font-family: "Geist Mono", monospace;
  font-weight: 900;
  color: var(--dark-soft);
  margin-left: 4rem;
  margin-top: 5rem;
  font-size: 2.7rem;
  width: 28rem;
  text-align: left;
}

.hero-stage {
  min-width: 0;
  position: relative;
  height: 100%;
  display: flex;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  padding: 0;
  background: transparent;
}

.section-white .container {
  padding-block: 5rem 5rem;
}

.section-white {
  background-color: var(--bg);
}

.section-flex {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.section-flex-media {
  flex: 0 0 48%;
}

.section-flex-media img {
  display: block;
  width: 100%;
  height: auto;
  /* Reduce the original image height by approximately 25%. */
  aspect-ratio: 2658 / 2491;
  object-fit: cover;
}

.section-flex-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 991px) {

  .section-flex,
  .section-flex-dark {
    flex-direction: column;
  }

  .section-flex-media,
  .section-flex-content,
  .section-flex-left,
  .section-flex-right {
    flex: 0 0 100%;
    width: 100%;
  }

  .section-flex-media {
    width: 90%;
  }

}

@media screen and (max-width: 767px) {
  @media (max-width: 767px) {
    .btn-equal {
      width: 100%;
      font-size: 1rem;
    }
  }

  @media (max-width: 767px) {
    .btn-padded {
      width: 100%;
      font-size: 1rem;
    }
  }
}

.section-white-2 {
  padding: 3rem 0rem 3rem;
  background-color: var(--bg);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  padding: 2rem 0rem 2rem;
}

.cards-result {
  min-width: 0;
  overflow-wrap: anywhere;
  background-color: #fff;
  border-radius: var(--border-radius-sm);
  padding: 2rem 3rem;
}

.cards-result .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.cards-result .card-body .material-symbols-rounded {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cards-result .card-body h5 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
  line-height: 1.2;
}

.cards-result .card-body p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
  line-height: 1.3;
}

.section-white-3 {
  background-color: var(--bg);
}

.section-white-2 .text-title,
.section-white-3 .text-title {
  text-align: center;
}

@media (max-width: 991.98px) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-result {
    padding: 1.5rem;
  }
}

.section-white-3 .container {
  padding-block: 3rem 0rem;
}

.logos-carousel {
  overflow: hidden;
  width: 100%;
  padding: 4rem 0rem 5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logos-track {
  display: flex;
  width: max-content;
  animation: logos-scroll 30s linear infinite;
}

.logos-group {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
}

.logos-group img {
  height: 35px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter .3s ease;
}

.logos-group img.logo-milky-moo {
  height: 48px;
}

.logos-carousel:hover .logos-group img:hover {
  filter: grayscale(0) opacity(1);
}

@keyframes logos-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 0;
    padding: 6rem 0 68vw;
    align-items: flex-start;
    background: #f8dfb2;
    isolation: isolate;
    overflow: hidden;
  }

  /* Extend the sky above the photo, keeping the copy clear of the truck. */
  .home-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0 auto;
    width: 160%;
    aspect-ratio: 1920 / 926;
    background: url(../media/home/img-home-03.png) center / contain no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
    mask-image: linear-gradient(to bottom, transparent, #000 22%);
    z-index: -1;
    pointer-events: none;
  }

  .home-hero .container {
    padding-inline: 1.5rem;
  }

  .home-hero .container,
  .home-hero .hero-stage {
    min-height: 0;
    width: 100%;
    align-items: flex-start;
  }

  .home-hero .hero-stage {
    height: auto;
  }

  .home-hero .text-title {
    width: min(100%, 22rem);
    margin: 0;
    padding: 0;
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.15;
    text-wrap: balance;
    text-shadow: none;
    overflow-wrap: anywhere;
  }

  .section-white .container {
    padding-block: 2.5rem 2.5rem;
  }

  .home-hero + .section-white .container {
    padding-top: 4rem;
  }

  .section-white-2 {
    padding: 1rem 0;
  }

  .section-white-3 .container {
    padding-block: 1.5rem 0;
  }

  .section-flex {
    gap: 1.5rem;
  }

  .section-white .text-title,
  .section-white-2 .text-title,
  .section-white-3 .text-title {
    font-size: clamp(1.6rem, 6vw, 2.25rem);
    overflow-wrap: anywhere;
  }

  .results-grid {
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .logos-carousel {
    padding: 2rem 0 2.5rem;
  }

  .logos-group {
    gap: 48px;
    padding-right: 48px;
  }

  .logos-group img {
    height: 48px;
  }

  .logos-track {
    animation-duration: 20s;
  }
}

@media (max-width: 575.98px) {
  .results-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .section-white .section-flex-content > h1.text-start,
  .section-white .section-flex-content > div.text-start {
    text-align: center !important;
  }
}
