/* Cover
--------------------------------------------- */

.spotlight {
  width: 100%;
  height: 100%;

  & .swiper-slide {
    & .cover {
      position: relative;

      & img {
        display: block;
        object-fit: cover;
        width: 100%;
        height: 50vh;
        filter: grayscale(0.5);
      }

      & .content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background-image: linear-gradient(
          0,
          rgba(0, 0, 0, 1),
          rgba(0, 0, 0, 0)
        );
        height: 100%;

        & > .wrapper {
          max-width: var(--max-w-lg);
          margin: 0 auto;
          padding: 1.5rem 20px;
          height: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          text-align: center;
        }

        & .title {
          font-weight: var(--font-black);
          font-size: var(--font-4xl);
          line-height: var(--leading-tight);
          color: rgb(var(--primary-50));
          margin-bottom: 1.5rem;
        }

        & .excerpt {
          font-weight: var(--font-bold);
          color: rgb(var(--primary-50));
        }
      }
    }
  }
}

/* Animations */

.spotlight .swiper-slide .title,
.spotlight .swiper-slide .excerpt {
  visibility: hidden;
}

.spotlight .swiper-slide.swiper-slide-active .title {
  animation: spotlight 400ms;
  animation-delay: 600ms;
  animation-fill-mode: backwards;
  visibility: visible;
}

.spotlight .swiper-slide.swiper-slide-active .excerpt {
  animation: spotlight 400ms;
  animation-delay: 1200ms;
  animation-fill-mode: backwards;
  visibility: visible;
}

@keyframes spotlight {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Blocks
--------------------------------------------- */

.block-company {
  & > .wrapper {
    max-width: var(--max-w-lg);
    margin: 0 auto;
    padding: 4.5rem 20px;
    text-align: center;
  }

  & .title {
    font-size: var(--font-2xl);
    font-weight: var(--font-black);
    line-height: var(--leading-tight);
    margin-bottom: 1.5rem;

    & .highlight {
      color: rgb(var(--primary-700));
    }
  }

  & .cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
  }
}

/* Block Products
--------------------------------------------- */

.block-products {
  background-color: rgb(var(--base-50));

  & > .wrapper {
    max-width: var(--max-w-xxl);
    margin: 0 auto;
    padding: 4.5rem 24px;
  }

  & .products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    @media (min-width: 960px) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1.5rem;
    }

    & .product {
      & a {
        display: block;
        position: relative;

        & > .wrapper {
          position: absolute;
          z-index: 1;
          width: 100%;
          height: 100%;
          display: flex;
          align-items: end;
          padding: 24px;

          .title {
            flex-grow: 1;
            font-weight: var(--font-black);
            color: rgb(var(--primary-50));
            text-align: center;
            line-height: var(--leading-tight);
            font-size: var(--font-lg);

            @media (min-width: 960px) {
              font-size: var(--font-xl);
            }
          }
        }

        &::after {
          display: block;
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 50%;
          background: linear-gradient(
            0,
            rgba(var(--base-1000), 1),
            rgba(var(--base-1000), 0)
          );
          opacity: 1;
          transition: opacity 0.3s;
        }

        &:hover::after {
          opacity: 0.75;
        }
      }

      & img {
        object-fit: cover;
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        filter: grayscale(0.5);
      }
    }
  }

  & .cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
  }
}

/* Block Collaborations
--------------------------------------------- */

.block-collaborations {
  background-color: rgba(var(--bg-dark), 0.025);

  & > .wrapper {
    max-width: var(--max-w-xl);
    margin: 0 auto;
    padding: 4.5rem 24px;
  }

  & .header {
    max-width: var(--max-w-md);
    margin: 0 auto 1.5rem;
    text-align: center;

    & .title {
      font-weight: var(--font-black);
      font-size: var(--font-2xl);
      line-height: var(--leading-tight);
      margin-bottom: 1.5rem;
    }
  }

  & .brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 2.5rem;
    row-gap: 1.5rem;

    & img {
      max-height: 3.5rem;
      max-width: 3.5rem;
      mix-blend-mode: multiply;

      @media (min-width: 720px) {
        max-height: 5rem;
        max-width: 5rem;
      }
    }
  }
}

/* Block Contact
--------------------------------------------- */

.block-contact {
  background-color: rgb(var(--primary-700));
  color: rgb(var(--primary-50));

  & > .wrapper {
    max-width: var(--max-w-sm);
    margin: 0 auto;
    padding: 3rem 24px;
  }

  & .header {
    margin-bottom: 1.5rem;

    & > .wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;

      & .symbol {
        font-size: var(--font-5xl);
      }

      & .title {
        font-size: var(--font-2xl);
        font-weight: var(--font-black);
      }
    }
  }

  & .description {
    text-align: center;
  }

  & .cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
  }
}
