/* Hero — smartphone
--------------------------------------------- */

.hero {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
}

.hero__grid {
  display: grid;
  gap: 3rem;
}

.hero__lead,
.hero__association {
  max-width: 38rem;
  font-size: 1.1rem;
}

.hero__association strong {
  color: var(--color-green-dark);
  font-weight: 700;
}

.hero__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.75rem 0.75rem 0 0;
}

.hero__visual::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 55%;
  background: var(--color-red);
  border-radius: var(--radius-media);
  content: "";
}

.hero__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgb(36 36 36 / 16%);
  border-radius: var(--radius-media);
}

/* Tablet
--------------------------------------------- */

@media screen and (min-width: 48rem) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }
}

/* Desktop
--------------------------------------------- */

@media screen and (min-width: 72rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(28rem, 1.05fr);
    align-items: center;
    gap: clamp(3rem, 5vw, 5rem);
  }

  .hero__visual {
    width: 100%;
    max-width: none;
    justify-self: end;
  }

  .hero__image {
    aspect-ratio: 16 / 10;
  }
}

/* Hover
--------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .hero__visual {
    transition:
      transform 260ms ease,
      filter 260ms ease;
  }

  .hero__visual::before {
    transition: transform 260ms ease;
  }

  .hero__image {
    transition:
      transform 350ms ease,
      box-shadow 260ms ease;
  }

  .hero__visual:hover {
    transform: translateY(-0.35rem);
  }

  .hero__visual:hover::before {
    transform: translate(0.35rem, -0.35rem);
  }

  .hero__visual:hover .hero__image {
    transform: scale(1.02);
    box-shadow: 0 1.5rem 3rem rgb(35 72 59 / 18%);
  }
}
