/* ============================================================
   HERO BANNERS
   ============================================================ */

.hero-banners {
  padding-top: 1rem;
  padding-bottom: 2rem;
}


/* ============================================================
   GRID
   ============================================================ */

.hero-banners__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}


/* ============================================================
   BANNER
   ============================================================ */

.hero-banner {
  position: relative;

  display: flex;
  flex-direction: column;

  height: 100%;

  overflow: hidden;

  background-color: var(--color-surface);
  border-radius: var(--radius-xl, 1.75rem);

  transition:
    box-shadow 500ms var(--ease-apple);
}

.hero-banner:hover {
  box-shadow: 0 32px 80px -48px rgb(17 17 18 / 45%);
}


/* ============================================================
   CONTENT
   ============================================================ */

.hero-banner__content {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 2.25rem 1.25rem 1rem;

  text-align: center;
}


.hero-banner__title {
  margin: 0;

  font-family: var(--font-display);

  font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;

  color: var(--color-foreground);
}


.hero-banner__description {
  max-width: 25rem;

  margin: 0.625rem auto 0;

  font-family: var(--font-body);

  font-size: 0.9375rem;
  line-height: 1.5;

  color: var(--color-muted-foreground);
}


.hero-banner__action {
  margin-top: 1.25rem;
}


/* ============================================================
   IMAGE
   ============================================================ */

.hero-banner__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;

  margin-top: auto;

  overflow: hidden;

  padding-inline: 1.25rem;
  height: clamp(190px, 45vw, 240px);
}


.hero-banner__image {
  display: block;

  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: bottom center;

  transform: translateY(4%);

  mix-blend-mode: multiply;

  transition:
    transform 700ms var(--ease-apple);
}


.hero-banner:hover .hero-banner__image {
  transform: translateY(1%) scale(1.025);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 640px) {

  .hero-banners {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .hero-banner {
    border-radius: var(--radius-2xl, 2rem);
  }

  .hero-banner__content {
    padding-inline: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 1.25rem;
  }

  .hero-banner__description {
    max-width: 28rem;
    font-size: 1rem;
  }

  .hero-banner__action {
    margin-top: 1.5rem;
  }

  .hero-banner__image-wrapper {
    padding-inline: 2rem;
    height: clamp(220px, 35vw, 280px);
  }

}


@media (min-width: 1024px) {

  .hero-banners {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

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

  .hero-banner__content {
    padding-top: 2rem;
    padding-inline: 2rem;
    padding-bottom: 0.75rem;
  }

  .hero-banner__title {
    font-size: clamp(1.875rem, 2.1vw, 2.375rem);
  }

  .hero-banner__description {
    font-size: clamp(0.875rem, 0.95vw, 0.9375rem);
    line-height: 1.45;
    margin-top: 0.625rem;
    max-width: 27rem;
    min-height: 2.75rem;
  }

  .hero-banner__action {
    margin-top: 1.125rem;
  }

  .hero-banner__image-wrapper {
    padding-inline: 2rem;
    height: clamp(210px, 27vh, 275px);
  }

}


/* ============================================================
   COMPACT SCREENS / MACBOOK WITH LIMITED VERTICAL HEIGHT
   ============================================================ */

@media (min-width: 1024px) and (max-height: 780px) {

  .hero-banners {
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
  }

  .hero-banner__content {
    padding-top: 1.5rem;
    padding-inline: 1.5rem;
    padding-bottom: 0.5rem;
  }

  .hero-banner__title {
    font-size: 1.75rem;
  }

  .hero-banner__description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    min-height: 2.5rem;
  }

  .hero-banner__action {
    margin-top: 0.875rem;
  }

  .hero-banner__image-wrapper {
    height: clamp(180px, 24vh, 220px);
  }

}