// Footer
.footer {
  color: white;

  .container-fluid {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: none;
    padding: 0 3.125%;
  }

  .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
  }

  img {
    width: auto;
    height: auto;
  }

  .social-icons {
    display: flex;
    align-items: center;
  }

  .social-icon {
    margin: 0;
    background-color: transparent;
    width: 4rem;
    height: 4rem;
    display: flex;
    border-radius: 50%;
    border: 1px solid #2a2e33;
    align-items: center;
    justify-content: center;

    i {
      transition: all .25s;
      font-size: 1.6rem;
    }

    &:hover {
      background-color: $primary-color;

      i {
        color: white;
      }
    }

    &+.social-icon {
      margin-left: 1rem;
    }
  }

  .nav-links {
    font: 600 1.4rem $font-family;
    letter-spacing: 0.005em;
    color: #999;

    a {
      margin-right: 4.5rem;
    }
  }
}

.footer-top {
  background-color: #1c1e21;
  border-bottom: 1px solid #2a2e33;
  padding: 3.5rem 0;

  .header-dropdowns {
    border-left: 1px solid #2a2e33;
    padding-left: 1rem;
  }
}

.footer-middle {
  background-color: #1c1e21;
  padding: 5.5rem 0 4rem;

  .footer-left {
    margin-right: 2rem;

    img {
      padding-right: 4rem;
      border-right: 1px solid #2a2e33;
      margin-right: 4rem;
    }
  }

  .container>img {
    padding: 2rem 0;
  }
}

.footer-bottom {
  padding: 4rem 0 4.5rem;
  background-color: $primary-color-dark;
  font-family: $second-font-family;

  .container {
    justify-content: center;
  }

  p {
    font-size: 1.3rem;
    color: #777;
    letter-spacing: 0.005em;
    margin-bottom: 0;
  }

  img {
    max-width: 200px;
    margin-bottom: 2rem;
  }
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-right {
  display: flex;
  align-items: center;

  .header-menu {
    right: 0;
    left: unset;
  }
}

.footer .widget {
  margin-bottom: 2rem;

  ul {
    margin-bottom: 0;
  }

  ul>li {
    margin-bottom: 6px;
  }

  .widget-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    margin-top: 0;
    color: #2b2b2d;
  }

  .widget-content {
    p,
    a {
      font-size: 1.3rem;
      letter-spacing: 0.005em;
      color: #777;
    }

    a:hover {
      color: black;
    }

    p {
      margin-bottom: 0;
      line-height: 2.4rem;
    }
  }
}

.newsletter-widget {
  h3 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    line-height: 1.6;
  }

  p {
    font-size: 1.3rem;
    letter-spacing: 0.005em;
    color: #999;
    margin-bottom: 0;
  }

  form {
    margin-bottom: 2rem;
    background: transparent;
  }

  .submit-wrapper {
    border-bottom-color: white;

    .form-control {
      background-color: transparent;
      color: #999;
      flex: 1;
      max-width: 100%;

      &::placeholder {
        color: #999;
      }
    }

    .btn {
      font-size: 1.3rem;
      font-weight: 700;
      color: white;
      background-color: transparent;
      letter-spacing: 0.01em;

      i {
        font-size: 1.5rem;
      }
    }
  }
}

// Scroll Top Button
#scroll-top {
  height: 40px;
  position: fixed;
  right: 15px;
  width: 40px;
  z-index: 9999;
  bottom: 0;
  background-color: #43494e;
  font-size: 16px;
  color: #fff;
  text-align: center;
  line-height: 1;
  padding: 11px 0;
  visibility: hidden;
  opacity: 0;
  border-radius: $border-radius $border-radius 0 0;
  transition: all .3s, margin-right 0s;
  -webkit-transform: translateY(40px);
  transform: translateY(40px);
}

#scroll-top:hover,
#scroll-top:focus {
  background-color: #3a4045;
}

#scroll-top.fixed {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991px) {
  .footer-top .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top .header-dropdowns {
    border-left: none;
    padding-left: 0;

    .header-dropdown:first-child {
      margin-left: 0;
    }
  }

  .footer .nav-links a {
    margin-bottom: 2rem;
  }

  .footer-bottom .container {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .footer .nav-links {
    flex-wrap: wrap;
  }
}