//
// Footer Sections
//
@each $name, $settings in $footer-sections {
  $footer-background: map-get($settings, 'background');
  $footer-color: map-get($settings, 'color');
  $footer-link-color: map-get($settings, 'link-color');
  $footer-link-color-hover: map-get($settings, 'link-color-hover');
  .footer-section-#{$name} {
    color: $footer-color;
    background-color: $footer-background;

    a:not(.btn) {
      color: $footer-link-color;

      &:hover,
      &:focus {
        text-decoration: none;
        color: $footer-link-color-hover;
      }
    }
  }
}


.footer-section-content .row {
  padding-top: $grid-gutter-width;
  padding-bottom: $grid-gutter-width;
  align-items: center;
}


.footer-item {
  @include make-col-ready();
  margin-top: 1rem;
  margin-bottom: 1rem;
  @include media-breakpoint-up(md) {
    @include make-col(4)
  }

  ul, p {
    margin-bottom: inherit;
  }

}


.footer-item--meta {
  order: 3;

  .meta-menu {

    margin: 0;
    list-style: none;
    padding-left: 0;
    text-align: center;
    @include media-breakpoint-up(md) {
      text-align: right;
      margin-left: -.5em;
      margin-right: -.5em;
      > li {
        display: inline-block;
        padding-left: .5em;
        padding-right: .5em;
      }
    }

    .active a {
      font-weight: bold;
    }
  }

}


.footer-item--sociallinks {
  order: 2;
  text-align: center;
  @include media-breakpoint-up(md) {
  text-align: left;
    order: 1
  }

  .sociallinks {
    overflow: hidden;
  }

  .sociallinks-list {
    margin: -.5rem;
  }

  .sociallinks-item {
    display: inline-block;
    margin: .5rem;
    height: 1.5rem;
    width: 1.5rem;
  }

  .sociallinks-link {
    height: 1.5rem;
    width: 1.5rem;
  }
}


.footer-item--middle {
  @include media-breakpoint-up(md) {
    order: 2;
  }
  strong {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: .05em;
  }
}
