.hero {
  position: relative;
  overflow: hidden;
  height: calc(100svh - 82px);
  max-height: 616px;
}
.hero__wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 32px;
  height: 100%;
}
.hero__background-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.20;
  animation: heroZoomIn 2s cubic-bezier(0.45,0.05,0.55,0.95) forwards;
}

@keyframes heroZoomIn {
  from { scale: 1.20; }
  to   { scale: 1; }
}


.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  width: calc(100% - 40px);
}
.hero__texts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: 2;
  background-color: var(--color-white);
  padding: 40px 16px 20px 16px;
  border-top: 16px solid #E55D74;
  max-width: 500px;
}
.hero__subtitle {
  text-transform: uppercase;
  color: var(--color-brand--1);
  font-size: var(--subheading-size-m);
  font-weight: var(--fw-medium);
  line-height: 130%;
}
.hero__title {
  color: var(--color-brand--1);
  text-transform: uppercase;
  line-height: 110%;
  font-weight: var(--fw-heavy);
  font-size: var(--heading-size-xl);
}
.hero__text p {
  color: var(--color-brand--1);
  font-size: var(--subheading-size-s);
  font-weight: var(--fw-medium);
  line-height: 130%;
}
.hero__text p:first-of-type {
  margin-top: 0;
}
.hero__text p:last-of-type {
  margin-bottom: 0;
}
.hero__cta {
  margin-top: 12px;
}
.hero__product {
  order: 1;
  display: flex;
  justify-content: center;
  transform: translateY(45px);
}
.hero__product img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  opacity: 0;
  animation: slide 1.1s cubic-bezier(0.45,0.05,0.55,0.95) forwards;
  animation-delay: 350ms;
}
@media (prefers-reduced-motion: reduce) {
  .hero__product img,
  .hero__title,
  .hero__subtitle,
  .hero__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes slide {
  from {
    transform: translateX(150px);
    opacity: 0;
  }
  to   {
    transform: translateX(0);
    opacity: 1;
  }
}

@media all and (min-width: 1000px){
  .hero  {
    max-height: 861px;
  }
  .hero__wrapper {
    align-items: center ;
  }
  .hero__title {
    color: var(--color-brand--1);
    line-height: 130%;
    font-size: var(--heading-size-l);
  }
  .hero__subtitle {
    font-size: var(--subheading-size-s);
  }
  .hero__content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .hero__texts {
    order: 1;
    gap: 16px;
    max-width: 558px;
    height: fit-content;
    padding-top: 30px;
    padding-left: 40px;
    padding-right: 100px;
    padding-bottom: 30px;
    transform: translateX(50px);
    border-top: 18px solid var(--color-brand--1);
  }
  .hero__product {
    order: 2;
    transform: translate(-50px, -55px);
    z-index: 10;
  }
  .hero__cta {
    margin-top: 16px;
  }
}

