/* Hero section */

.hero {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  min-height: calc(var(--heroHeight) - 76px);
}

.overlap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.15);
}

.hero__content {
  position: absolute;
  top: 120px;
  left: 160px;
  background-color: var(--white);
  border-radius: 30px;
  padding: 16px;
  max-width: 500px;
  -webkit-box-shadow: 0 4px 4px 0 rgba(0,0,0,0.25);
  box-shadow: 2px 4px 4px 0 rgba(0,0,0,0.25);
  animation: heroAnimations 0.5s ease-in-out;
}

@keyframes heroAnimations {
  from {
    opacity: 0;
    top: 0;
  }
  to {
    opacity: 1;
    top: 120px;
  }
}

@keyframes heroAnimationsMobile {
  from {
    opacity: 0;
    top: 0;
  }
  to {
    opacity: 1;
    top: 50%;
  }
}

@keyframes heroAnimationsMobilePaysage {
  from {
    opacity: 0;
    top: 0;
  }
  to {
    opacity: 1;
    top: 40%;
  }
}

.hero__title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  font-size: 40px;
  margin-bottom: 30px;
}

.hero__subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--ebony);
}

/* Mobile view */

@media screen and (max-width: 768px) {
  .hero {
    min-height: calc(var(--heroHeight) - 60px);
  }

  .hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 16px;
    transform: translate(-50%, -50%);
    width: clamp(90%, 400px, 260px);
    animation: heroAnimationsMobile 0.5s ease-in-out;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 14px;
  }
}

@media screen and (max-height: 600px) {
  .hero__content {
    position: relative;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    width: 100%;
    animation: heroAnimationsMobilePaysage 0.5s ease-in-out;
  }

  .hero__title {
    margin-bottom: 16px;
    font-size: 30px;
  }

  .hero__subtitle {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .glide__bullets {
    visibility: hidden;
  }
}

