// Footer
.footer {
  background-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%
  }

  img {
    width: auto;
    height: auto;
  }

  .logo {
    width: fit-content;
    margin: 2rem 0;
  }

  .social-link {
    margin: 2rem 0;
  }

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

  .social-icon {
    margin: 0 2rem 0 0;
    background-color: white;
    width: fit-content;
    height: fit-content;
    display: flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;

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

    &:hover {        
      i {
        color: $primary-color;
      }
    }
  }

  .links {
    display: flex;
    align-items: center;
    margin-top: -3px;
    flex-wrap: wrap;

    hr.vertical {
      height: 25px;
      margin: 0 3rem;
    }

    .phone_link {
      font: 700 2.2rem $font-family;
      color: $secondary-color;

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

  h4 { 
    font: 700 1.3rem $font-family;
    color: $primary-color-dark;
  }
}

.footer-top {
  padding: 4rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 7rem;
  border-top: 1px solid #e1e1e1;

  p {
    font: 400 1.3rem/1 $second-font-family;
    color: #687176;
    margin-bottom: 0;
    letter-spacing: 0.005em;
  }
}

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

  ul {
    margin-bottom: 0;
  }

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

  .widget-title {
    font: 700 1.4rem/1 $font-family;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: #2b2b2d;
  }

  .widget-content {
    p,
    a {
      font: 400 1.2rem/1 $font-family;
      letter-spacing: 0.005em;
      color: #777;
    }

    a:hover {
      color: black;
    }

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

  .subwidget {
    margin-bottom: 2rem;

    .subwidget-title {
      font: 400 1.3rem $second-font-family;
      letter-spacing: 0.005em;
      color: #777;
      text-transform: uppercase;
    }

    p {
      line-height:  1.6rem;
    }
  }

  .ul-separate {
    >div:last-child {
      display: flex;
      justify-content: flex-end;
    }
  }
}

// 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: 1199px) {
  .footer .links hr.vertical {
    display: none;
  }

  .footer-top>div:first-child .row>div:last-child{
    
  }
}

@media (max-width: 991px) {
  .footer .links hr.vertical {
    display: block;
  }
}

@media (max-width: 767px) {

  .footer-bottom {
    flex-direction: column; 
    align-items: baseline; 

    p {
      margin-bottom: 2rem;
    }
  }
}