.site-footer {
  background-color: $primary-color;

  &__container {
    width: 100%;
    max-width: $max-width;
    padding: 0 $gutter;
    margin: auto;

    @include sm {
      padding: 0 22px;
    }
  }

  &__section {
    position: relative;
    padding: 30px 0;
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.18);

    &:nth-child(3) {
      padding: 17px 0 15px;

      @include md {
        padding: 30px 0 84px;
      }
    }
  }

  &__top-bar {
    display: flex;
    padding-bottom: 10px;

    @include md {
      flex-direction: column-reverse;
    }
  }

  &__logo-col {
    width: calc(100% / 12);

    @include md {
      display: none;
    }
  }

  &__nav-col {
    width: calc(100% / 12 * 7);
    margin-left: calc(100% / 12);

    @include md {
      width: 100%;
      margin-left: 0;
    }
  }

  &__newsletter-col {
    width: calc(100% / 12 * 3);
    color: #fff;

    @include md {
      width: 100%;
      margin-bottom: 40px;
    }

    p {
      font-size: 1.4rem;
      line-height: 2rem;
      margin: 16px 0 24px;
    }

    .std-button {
      width: 205px;
      padding: 0 20px;

      @include md {
        width: 100%;
      }
    }
  }

  &__newsletter-title {
    font-family: var(--font-heading);;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 2.9rem;
  }

  &__nav {
    > ul {
      display: flex;
      justify-content: flex-start;
      column-gap: 3%;

      @include md {
        flex-direction: column;
      }

      & > li {
        width: 30%;

        @include md {
          width: auto;
        }
      }

      ul {
        @include md {
          overflow: hidden;
          max-height: 0;
          transition: all 300ms ease-out;

          li {
            opacity: 0;
            transition: all 300ms ease-out;
          }
        }
      }

      @include md {
        .js-open ul {
          max-height: 500px;

          li {
            transition-delay: 200ms;
            opacity: 1;
          }
        }
      }
    }

    a {
      color: #fff;
      line-height: 1.8rem;
      display: inline-block;
    }
  }

  &__nav-item {
    padding: 7px 10px 0 0;

    @include md {
      padding: 7px 10px 7px 0;

      &:first-child {
        padding-top: 20px;
      }
    }

    &--mobile {
      display: none;

      @include md {
        display: block;
      }
    }

    a span {
      pointer-events: none;
    }
  }

  &__nav-col-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;

    @include md {
      position: relative;
      font-size: 1.8rem;
      margin-bottom: 0;
      padding: 18px 0 15px;
      box-shadow: inset 0 -1px 0 0 rgba(255,255,255,0.18);

      &::after {
        content: "";
        display: block;
        position: absolute;
        pointer-events: none;
        right: 5px;
        top: 50%;
        margin-top: -7px;
        width: 11px;
        height: 11px;
        border-right: 1px solid #fff;
        border-top: 1px solid #fff;
        transform: rotate(135deg);
        transition: transform 0.2s linear;
      }

      a {
        pointer-events: none;
      }
    }
  }

  &__partners {
    display: flex;

    @include md {
      flex-direction: column;
      padding-bottom: 18px;
    }
  }

  &__partners-label {
    display: flex;
    align-items: center;
    width: calc(100% / 12);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;

    @include md {
      white-space: nowrap;
      margin-right: 20px;
      font-size: 1.8rem;
      margin-bottom: 20px;
    }
  }

  &__partners-logos {
    width: calc(100% / 12 * 11);
    display: flex;
    align-items: center;
    overflow: auto;

    &::-webkit-scrollbar {
      display: none;
    }

    -ms-overflow-style: none;
    scrollbar-width: none;

    @include md {
      width: calc(100% + 44px);
      margin: 0 -22px 0 -22px;
      white-space: nowrap;
    }
  }

  &__partners-logo {
    margin: 0 60px 0 0;

    @include md {
      margin: 0 30px;

      &:first-child {
        margin-left: 22px;
      }

      &:last-child {
        margin-right: 22px;
      }
    }

    img {
      max-width: 120px;
      max-height: 45px;
    }
  }

  &__bottom-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    color: #fff;

    @include md {
      flex-direction: column-reverse;
    }
  }

  &__to-top {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;

    @include md {
      top: auto;
      bottom: 6px;
    }

    &::after {
      content: "";
      display: block;
      position: absolute;
      pointer-events: none;
      right: 16px;
      top: 50%;
      margin-top: -3px;
      width: 13px;
      height: 13px;
      border-right: 1px solid #fff;
      border-top: 1px solid #fff;
      transform: rotate(-45deg);
      transition: transform 0.2s linear;
    }
  }

  &__copyright {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    line-height: 1.5rem;
    letter-spacing: 0.2px;

    @include md {
      justify-content: space-between;
      flex-direction: column;
    }

    a {
      margin-left: 20px;
      color: #fff;
      letter-spacing: 0.2px;
    }
  }

  &__manage-cookies {
    @include md {
      margin-top: 20px;
    }
  }

  &__social {
    display: flex;
    align-items: center;

    @include md {
      flex-direction: column;
    }
  }

  &__social-links {
    display: flex;

    @include md {
      width: 100%;
      margin-top: 32px;
      margin-bottom: 40px;
      justify-content: space-between;
    }
  }

  &__social-cta {
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    margin-right: 18px;
  }

  &__social-link {
    position: relative;
    width: 48px;
    height: 48px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    transition: all 200ms ease-out;

    @include md {
      width: 44px;
      height: 44px;

      &:first-child {
        margin-left: 0;
      }
    }

    &:hover {
      transform: translateY(-5px);
    }

    img {
      object-fit: contain;
      object-position: center;
    }
  }
}
