/* GUDAO Homepage Agave Banner v17 */
.agave-banner-section {
  padding: clamp(34px, 5vw, 72px) 0;
  background: var(--g-rock, #262C31);
}

.agave-banner {
  position: relative;
  display: block;
  width: min(calc(100% - 40px), 1240px);
  min-height: clamp(360px, 47vw, 620px);
  margin: 0 auto;
  overflow: hidden;
  color: #FFFFFF;
  text-decoration: none;
  border-top: 5px solid var(--g-orange, #FF8510);
  background: #1D2226;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.agave-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

.agave-banner:hover > img {
  transform: scale(1.025);
}

.agave-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 25, 22, 0.92) 0%, rgba(20, 25, 22, 0.72) 38%, rgba(20, 25, 22, 0.16) 73%, rgba(20, 25, 22, 0.05) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 48%);
}

.agave-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(58%, 650px);
  min-height: inherit;
  padding: clamp(34px, 6vw, 82px);
}

.agave-banner-content h2 {
  margin: 4px 0 20px;
  color: #FFFFFF;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 1.03;
  text-wrap: balance;
}

.agave-banner-content > p:not(.label) {
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.agave-banner-link {
  display: inline-block;
  width: max-content;
  margin-top: 28px;
  padding-bottom: 5px;
  color: #FFFFFF;
  font-family: "Khand", "GenSekiGothicTC", sans-serif;
  font-weight: 700;
  border-bottom: 2px solid var(--g-orange, #FF8510);
}

.agave-banner:focus-visible {
  outline: 3px solid var(--g-orange, #FF8510);
  outline-offset: 5px;
}

@media (max-width: 720px) {
  .agave-banner {
    width: calc(100% - 28px);
    min-height: 560px;
  }

  .agave-banner > img {
    object-position: 64% center;
  }

  .agave-banner-shade {
    background: linear-gradient(0deg, rgba(20, 25, 22, 0.94) 0%, rgba(20, 25, 22, 0.55) 62%, rgba(20, 25, 22, 0.1) 100%);
  }

  .agave-banner-content {
    justify-content: flex-end;
    width: 100%;
    padding: 34px 26px;
  }

  .agave-banner-content h2 {
    font-size: clamp(2.5rem, 12vw, 4.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agave-banner > img {
    transition: none;
  }
}
