/*------------------------------------------------------------
Modules > Footer
------------------------------------------------------------*/
.footer {
  color: var(--color-gray);
  background: var(--color-charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 0 2rem;
  position: relative;
}

.scroll-top {
  position: relative;
  z-index: 99;
  color: var(--color-gray);
  font-size: 3.2rem;
  padding: 0 1.2rem;
  margin-top: -1.6rem;
  background: var(--color-charcoal);
}

.scroll-top:hover {
  color: var(--color-gray);
  transform: translateY(-2px);
}

.footer-link,
.footer-content {
  font-size: 1.4rem;
  line-height: 2rem;
}

.footer-content {
  margin: 0 0 1.4rem;
  line-height: 2rem;
}

.footer-link {
  color: var(--color-gray);
  margin-bottom: 1.4rem;
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-earth);
}

.footer:before {
  content: '';
  width: 100%;
  border-top: solid 1px #4C4A46;
  position: absolute;
  top: 40px;
}

.footer:after {
  content: '';
  width: 100%;
  border-top: solid 1px #4C4A46;
  position: absolute;
  bottom: 5.6rem;
}

.footer .container {
  display: flex;
  padding: 4rem 2rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 2.4rem;
  width: 75%;
  padding-left: 2rem;
}

.footer-group-title.dropdown-trigger svg {
  display: none;
}

@media only screen and (min-width: 719px) and (max-width: 900px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 560px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

.footer-nvbc {
  width: 25%;
}

.footer-group-title {
  font-size: 1.6rem;
  color: #E1DCD9;
  font-weight: var(--font-weight-medium);
  margin: 0 0 .4rem;
}

.title-connect {
  margin: 3.2rem 0 1.2rem;
}

.footer-social {
  display: flex;
  margin-bottom: 3.2rem;
}

.footer-social li {
  padding-right: 2rem;
}

.footer-social svg {
  font-size: 2.4rem;
}

.copyright {
  font-size: 1.4rem;
  line-height: 1.6rem;
  margin: 2rem 0 0;
  text-align: center;
}


/* Small Viewport
------------------------------------------------------------*/
@media only screen and (max-width: 719px) {

  .footer .container {
    flex-direction: column;
  }

  .footer-nvbc,
  .footer-nav { width: 100%; }

  .footer-nvbc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    grid-gap: 2.4rem;
  }

  .title-connect { margin-top: 0; }

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

  .footer-group-title {
    padding: 1.6rem 0;
    cursor: pointer;
    margin: 0;
    max-width: 100%;
   }

  .footer-link,
  .footer-content {
    font-size: 1.6rem;
    line-height: 2.6rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    grid-gap: 0;
    margin: 4rem 0 0;
  }

  .footer-nav .footer-group-list {
    width: 100%;
   }

  .footer-nav .footer-group {
    border-top: solid 1px rgba(255, 255, 255, 0.05);
  }

  .show-menu {
    visibility: visible;
    opacity: 1;
    z-index: 999;
  }

  .footer-group-list {
    max-height: 0;
    overflow: hidden;
    transition: all .3s ease-in;
    opacity: 0;
  }

  .footer-group-list.open {
    max-height: 100%;
    opacity: 1;
  }

  .footer-group-title.dropdown-trigger > svg {
    display: block;
  }

  .footer-social svg {
    font-size: 3.2rem;
  }

}