/**
 * @file
 * Homepage node
 */

.hero-homepage {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-primary);
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-homepage__media {
  position: relative;
  flex: 0 0 auto;
  z-index: 3;
}
.hero-homepage__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: ellipse(100% 130% at -1% 90%);
}
.hero-homepage__media::after {
  content: "";
  position: absolute;
  top: 72.25%;
	left: 88%;
  width: 18%;
  aspect-ratio: 1 / 2.98;
  transform: translateY(-50%);
  background: url(../../images/homepage/shape.svg) no-repeat center / contain;
  pointer-events: none;
  z-index: 3;
}
.hero-homepage__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 2rem 1.5rem 3rem;
}
.hero-homepage__title {
  margin: 0;
  line-height: 1.2;
  font-weight: 800;
}
.hero-homepage__text {
  line-height: 1.6;
}
.hero-homepage__text p {
  margin: 0 0 0.75rem;
  font-size: var(--text-size-l);
}
.hero-homepage__text p:last-child {
  margin-bottom: 0;
}
.hero-homepage__text strong {
  font-weight: 700;
}
.hero-homepage__link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  background-color: var(--color-secondary);
  font-size: var(--text-size-s);
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: filter 0.3s ease, transform 0.2s ease;
}

.hero-homepage__link a::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url('../../images/homepage/arrow-cta.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
	margin-bottom: 1px;
}

.hero-homepage__link a:hover,
.hero-homepage__link a:focus-visible {
  filter: brightness(0.9);
  text-decoration: none;
}

@media all and (min-width: 750px) {
  .hero-homepage__content {
    padding: 3rem 2.5rem 4rem;
  }
  .hero-homepage__media::after {
    top: 65.25%;
  }
}
@media all and (min-width: 1000px) {
  .hero-homepage {
    flex-direction: row;
    align-items: stretch;
    min-height: 420px;
    gap: 1rem;
  }
  .hero-homepage__media {
    flex: 0 0 50%;
    width: 50%;
  }
  .hero-homepage__media::after {
    top: 82%;
  }
  .hero-homepage__content {
    flex: 0 0 50%;
    width: 50%;
    justify-content: center;
    max-width: 702px;
    padding: 2rem 3rem 1rem 4rem;
  }
}
@media all and (min-width: 1200px) {
  .hero-homepage {
    min-height: 450px;
  }

}
@media all and (min-width: 1440px) {
  .hero-homepage__media::after {
    top: 77%;
  }
}

@media all and (min-width: 1650px) {
  .hero-homepage {
    min-height: 580px;
  }
  .hero-homepage__content {
    padding: 4rem 0rem 4rem 4rem;
  }
}
