@use "../custom" as *;

.footer {
  background: linear-gradient(180deg, $background 5rem, $footer 5rem);
  position: relative;
  overflow: hidden !important;

  &__content {
    @media (max-width: 60.625rem) {
      padding-top: 3.125rem;
    }
  }

  &__contact {
    background-color: $green;
    border-radius: 1rem;
    padding: 1.9375rem 3.0625rem;
    overflow: hidden;
    position: relative;
    z-index: 3;

    @media (max-width: 43.4375rem) {
      padding: 1.9375rem 1.5rem;
    }

    &::after {
      content: "";
      width: 25rem;
      min-width: 25rem;
      height: 25rem;
      position: absolute;
      top: 50%;
      right: -3.125rem;
      transform: translateY(-50%);
      background-color: rgba($white, 0.1);
      z-index: 0;
      border-radius: 100vh;
      pointer-events: none;

      @media (max-width: 43.4375rem) {
        right: -12.5rem;
        top: 12.5rem;
      }
    }

    &-wrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem 2rem;

      .btn-footer-contact {
        color: $white !important;
        text-align: center;
        font-size: 1rem;
        font-weight: 500;
        padding: 1.25rem 2.5rem;
        background-color: rgba($white, 0.1);
        border: none;
        outline: none;
        &:hover {
          background-color: rgba($white, 0.15);
        }
      }

      @media (max-width: 43.4375rem) {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
      }
    }

    &-title {
      color: $white;
      font-family: $roobert;
      font-size: clamp(1.5rem, 3vw, 2rem);
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 700;
      line-height: 1;
    }

    &-description {
      color: rgba($white, 0.7);
      font-family: $roobert;
      font-size: 1.125rem;
      margin-bottom: 0;
      font-weight: 500;
    }
  }

  &__wrapper {
    display: flex;
    align-items: stretch;

    @media (max-width: 60.625rem) {
      flex-direction: column;
    }
  }

  &__left {
    height: 100%;
    max-width: 40.9375rem;
    position: relative;

    @media (max-width: 60.625rem) {
      max-width: 100%;
    }

    &::after {
      content: "";
      width: 90rem;
      height: 90rem;
      display: block;
      position: absolute;
      top: -129px;
      right: 0;
      background: linear-gradient(180deg, $background 5rem, #1c1f2f 5rem);
      display: block;
      z-index: 0;

      @media (max-width: 60.625rem) {
        display: none;
      }
    }

    &-head {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      align-items: start;
      padding: 3.125rem 0;
      height: 8.75rem;
      border-bottom: 1px solid rgba($white, 0.07);
      padding-right: 3.125rem;

      @media (max-width: 60.625rem) {
        border: none;
        padding-right: 0;
        justify-content: center;
        align-items: center;
      }
    }

    &-wrapper {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 3.75rem;
      padding: 3.375rem 0;
      padding-right: 3.125rem;

      @media (max-width: 60.625rem) {
        margin-top: 2.5rem;
        padding: 1rem 0;
        gap: 2rem;
      }
    }

    &-logo {
      max-width: 14.3125rem;
      width: 100%;
      object-fit: contain;
    }

    &-description {
      color: $label-200;
      font-size: 1rem;
      font-weight: 400;
      font-family: $roobert;
      max-width: 28rem;
      margin: 0;
    }
  }

  &__right {
    max-width: 68.75rem;
    width: 100%;

    &-head {
      padding: 3.125rem 0;
      padding-left: 3.125rem;
      height: 8.75rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      border-bottom: 1px solid rgba($white, 0.07);

      @media (max-width: 60.625rem) {
        display: none;
      }

      &.mobile {
        display: none;
        border: none;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
        justify-content: center;
        @media (max-width: 60.625rem) {
          display: flex;
        }
      }
    }

    &-number {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: $white;
      font-size: 0.875rem;
      font-family: $inter;
      font-weight: 500;
    }

    &-links {
      display: flex;
      align-items: center;
      gap: 1rem 02rem;

      a {
        color: $white;
        font-size: 0.875rem;
        font-family: $inter;
        font-weight: 500;
      }
    }

    &-wrapper {
      padding: 3.375rem 0;
      padding-left: 3.125rem;
      display: flex;
      align-items: flex-start;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 1.5rem 2rem;

      @media (max-width: 60.625rem) {
        padding: 1rem 0;
        gap: 2rem;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
      }
    }
  }

  &__title {
    color: $white;
    font-size: 1rem;
    font-family: $roobert;
    font-weight: 700;
    display: block;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  &__list {
    .footer__title {
      margin: 0;
    }
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 1.5rem;
    padding: 0;

    &-item {
      a {
        font-size: 0.875rem;
        font-family: $roobert;
        color: $label-200;
        font-weight: 500;
        margin: 0;
        position: relative;
        display: flex;
        align-items: cener;
        gap: 0.4375rem;
        transform: translateX(-0.6875rem);
        transition: all 200ms linear;

        &::before {
          content: "";
          display: block;
          width: 0.3125rem;
          height: 0.3125rem;
          border-radius: 100vh;
          background-color: $green;
          margin: auto;
          opacity: 0;
          transition: all 300ms linear;
        }

        &:hover {
          transform: translateX(0);
          color: $white;

          &::before {
            opacity: 1;
          }
        }
      }
    }
  }

  &__social {
    display: grid;
    grid-template-columns: repeat(2, 3.75rem);
    gap: 1.25rem;

    a {
      width: 100%;
      height: 3.75rem;
      padding: 1.125rem;
      background: rgba($white, 0.02);
      border: 1px solid rgba($white, 0.04);
      box-shadow: 0px 1px 0px 0px rgba($white, 0.08) inset;
      display: grid;
      place-items: center;
      border-radius: 0.625rem;
      color: $white;
      font-size: 1.25rem;
      img {
        object-fit: contain;
      }

      &:hover {
        background: rgba($white, 0.04);
      }
    }

    @media (max-width: 43.4375rem) {
      grid-template-columns: repeat(4, 3.75rem);
      gap: 1rem;
      justify-content: center;
    }
  }

  &__copyright {
    color: $background;
    font-size: 1rem;
    font-weight: 400;
    font-family: $inter;
    margin: 0;
  }

  &__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 3;
    padding: 2rem 0;
    border-top: 0.0625rem solid rgba($white, 0.07);

    @media (max-width: 60.625rem) {
      flex-direction: column;
      gap: 1rem;
      justify-content: center;
      align-items: center;

      img {
        max-width: 23.75rem;
        width: 100%;
        object-fit: contain;
      }
    }
  }
}
