@use "../../utils" as *;

/*----------------------------------------*/
/*  6.1 Footer Style 1
/*----------------------------------------*/

.mt-footer {
  &-bg {
    background-repeat: no-repeat;
  }

  &-wrapper {
    position: relative;

    &.mtborder {
      &::after {
        content: "";
        position: absolute;
        left: 26%;
        top: 0;
        width: 1px;
        height: 100%;
        background: var(--mt-border-2);
        @media #{$lg} {
          left: 22%;
        }
        @media #{$md} {
          left: 46%;
        }
        @media #{$xs} {
          display: none;
        }
      }
    }
  }

  &-title {
    color: var(--mt-common-white);
    font-size: 24px;
    font-weight: 700;
  }

  &-content {
    overflow: hidden;

    & ul {
      & li {
        margin-bottom: 16px;
        list-style: none;
        @include transition(0.3s);

        &:last-child {
          margin-bottom: 0;
        }

        & a {
          overflow: hidden;
          font-size: 16px;
          font-weight: 500;
          color: rgba(255, 255, 255, 0.5);
          @include transition(0.3s);
        }

        &:hover {
          & a {
            color: var(--mt-theme-1);
          }
        }
      }
    }
  }

  &-content {
    & p {
      color: #d6d6d6;
      font-weight: 500;
    }

    & > span {
      color: #d6d6d6;
      font-weight: 500;
      padding: 0 5px;
    }

    & > h4 {
      color: var(--mt-common-white);
      font-size: 40px;
    }
  }

  &-social {
    & a {
      & span {
        color: var(--mt-common-white);
        font-weight: 700;
      }
    }
  }

  &-newsletter {
    & input {
      border: 1px solid var(--mt-border-2);
      color: var(--mt-text-body);
      padding: 0 10px;

      &::placeholder {
        font-size: 12px;
        font-weight: 500;
        color: var(--mt-text-body);
      }

      &:focus {
        border-color: #292929;

        &::placeholder {
          opacity: 0;
        }
      }
    }

    & button {
      position: absolute;
      right: 15px;
      top: 50%;
      @include transform(translateY(-50%));
    }
  }

  &-5 {
    & .mt-footer {
      &-social {
        & a {
          height: 40px;
          width: 40px;
          color: #fff;
          border: 1px solid var(--mt-border-2);
          display: inline-block;
          text-align: center;
          border-radius: 50%;
          line-height: 40px;
          margin: 5px 0;
          transition: 0.3s;
          &:hover {
            background-color: var(--mt-theme-1);
            color: var(--mt-common-black);
          }
        }
      }
    }
  }
}

.newsletter {
  &-2 {
    & input {
      border: 0;
      background: var(--mt-theme-1);
      color: #000;
      border-radius: 10px 30px 30px 10px;

      &::placeholder {
        color: var(--mt-common-black);
      }
    }

    & button {
      right: 10px;
      background: var(--mt-common-black);
      padding: 4px 9px;
      border-radius: 100%;
    }
  }

  &-3 {
    & button {
      color: var(--mt-common-white);
    }
  }
}

.mt-footer {
  &-copyright {
    &-bg {
      background: rgba(12, 12, 12, 0.9);
    }

    &-space {
      padding-top: 70px;
      padding-left: 80px;
      padding-right: 80px;
      padding-bottom: 14px;
      @media #{$lg,$md,$xs} {
        padding-left: 30px;
        padding-right: 30px;
      }
      @media #{$xs} {
        padding-left: 5px;
        padding-right: 5px;
      }
    }

    &-title {
      font-size: 28px;
      font-weight: 600;
      color: #111;
    }

    & span {
      font-size: 16px;
      font-weight: 500;
      color: #111;
    }

    &-menu {
      & ul {
        & li {
          list-style: none;
          display: inline-block;

          & i {
            width: 8px;
            height: 1px;
            background-color: var(--mt-common-black-2);
            display: inline-block;
            margin: 0 12px;
            @include transform(translateY(-4px));
          }

          & a {
            font-size: 16px;
            font-weight: 600;
            color: #111;
            @include transition(0.3s);
          }
        }
      }
    }

    &-social {
      background-color: var(--mt-theme-1);
      z-index: 1;
      position: relative;
      display: inline-block;
      padding: 0 20px;

      & a {
        height: 40px;
        width: 40px;
        color: #fff;
        background: var(--mt-common-black-2);
        display: inline-block;
        text-align: center;
        border-radius: 50%;
        line-height: 40px;
        margin: 5px 0;
        transition: 0.3s;
        &:hover {
          background-color: var(--mt-common-white);
          color: var(--mt-common-black);
        }
      }
    }

    &-bottom {
      & p {
        margin-bottom: 0;
        color: var(--mt-common-black-2);
      }
    }

    &-text {
      &.mtborder {
        position: relative;

        &::before {
          content: "";
          position: absolute;
          top: 33%;
          left: 0;
          width: 100%;
          @include transform(translateY(-50%));

          border-top: 1px solid var(--mt-border-3);
        }
      }
    }

    // footer 2
    &-2 {
      border-top: 1px solid var(--mt-border-2);
      padding-top: 23px;

      & p {
        color: rgba(255, 255, 255, 0.5);

        & a {
          color: #fff;
        }
      }

      & .mt-footer-copyright-menu {
        & ul {
          & li {
            & a {
              color: rgba(255, 255, 255, 0.5);

              &:hover {
                color: #fff;
              }
            }
          }
        }
      }
    }

    // footer 3
    &-3 {
      border-top: 1px solid var(--mt-border-2);
      padding-top: 35px;
    }

    // footer 4
    &-4 {
      & .mt-footer-copyright-title {
        color: var(--mt-common-white);
      }

      & .mt-footer-copyright {
        & span {
          color: var(--mt-common-white);
        }
      }

      & .mt-footer-copyright-menu {
        & ul {
          & li {
            & a {
              color: var(--mt-common-white);
              text-transform: uppercase;
            }

            & i {
              background-color: var(--mt-common-white);
            }
          }
        }
      }

      & .mt-footer-copyright-social {
        background-color: transparent;

        & a {
          background-color: transparent;
          border: 1px solid var(--mt-border-2);
          transition: 0.3s;
          &:hover {
            background-color: var(--mt-theme-1);
            color: var(--mt-common-black);
          }
        }
      }
    }

    &-5 {
      & .mt-footer-copyright {
        & p {
          color: #fff;
          & a {
            color: #c6f906;
          }
        }
      }
    }
  }
}

.footer-cols-1 {
  padding-right: 50px;
}

.footer-cols-2 {
  padding-left: 10px;

  @media #{$xl} {
    padding-left: 70px;
  }

  @media #{$lg,$md} {
    padding-left: 20px;
  }

  @media #{$xs} {
    padding-left: 0px;
  }
}

.footer-cols-3 {
  padding-left: 90px;

  @media #{$xl} {
    padding-left: 80px;
  }

  @media #{$lg,$md} {
    padding-left: 20px;
  }

  @media #{$xs} {
    padding-left: 0px;
  }
}

.footer-cols-4 {
  padding-left: 10px;

  @media #{$xl} {
    padding-left: 50px;
  }

  @media #{$lg,$md} {
    padding-left: 10px;
  }

  @media #{$xs} {
    padding-left: 0px;
  }
}

.footer-2-cols-1 {
  padding-right: 50px;
}

.footer-2-cols-2 {
  padding-left: 140px;

  @media #{$xl} {
    padding-left: 70px;
  }

  @media #{$lg,$md} {
    padding-left: 20px;
  }

  @media #{$xs} {
    padding-left: 0px;
  }
}

.footer-2-cols-3 {
  padding-left: 65px;

  @media #{$xl} {
    padding-left: 80px;
  }

  @media #{$lg,$md} {
    padding-left: 20px;
  }

  @media #{$xs} {
    padding-left: 0px;
  }
}

.footer-2-cols-4 {
  padding-left: 30px;

  @media #{$xl} {
    padding-left: 50px;
  }

  @media #{$lg,$md} {
    padding-left: 10px;
  }

  @media #{$xs} {
    padding-left: 0px;
  }
}

.footer-3-cols-1 {
  padding-right: 0px;
}

.footer-3-cols-2 {
  padding-left: 140px;

  @media #{$xl} {
    padding-left: 70px;
  }

  @media #{$lg,$md} {
    padding-left: 20px;
  }

  @media #{$xs} {
    padding-left: 0px;
  }
}

.footer-3-cols-3 {
  padding-left: 65px;

  @media #{$xl} {
    padding-left: 80px;
  }

  @media #{$lg,$md} {
    padding-left: 20px;
  }

  @media #{$xs} {
    padding-left: 0px;
  }
}

.footer-3-cols-4 {
  padding-left: 30px;

  @media #{$xl} {
    padding-left: 50px;
  }

  @media #{$lg,$md} {
    padding-left: 10px;
  }

  @media #{$xs} {
    padding-left: 0px;
  }
}

.mt-footer-copyright {
  @media #{$md,$xs} {
    text-align: center !important;
  }
}
