/**
  * @file
  * Footer top: spacing and content.
  *
  * Needs to be at a higher level than links.
  **/

/** General spacing and styles **/
.footer {
  margin-top: 20px;
  background-color: var(--laurier-purple);
  color: var(--white);
}

.footer .container {
  padding-right: 0;
  padding-left: 0;
}

.site-footer__top h3 {
  border-bottom: 1px solid var(--white);
  color: var(--white);
}

.footer :is(.content, .nav) a {
  color: var(--laurier-gold);
}

.footer .content,
.footer .nav {
  color: var(--white);
  font-size: 0.857em;
}

.footer :is(.content, .nav) a:is(:hover, :focus) {
  background-color: var(--white);
  color: var(--laurier-purple);
  text-decoration: none;
}

/** Footer top: regions footer first through fourth **/
.site-footer__top {
  padding: var(--gutter-y) var(--gutter-x);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1em;
}

.site-footer__top .region {
  flex: 1 1 0;
  min-width: 15rem;
}

/** Necessary to override other paddings that would leave it out of line on mobile **/
.site-footer__top .region .block {
  padding: 0;
}

@media (min-width: 851px) {
  .site-footer__top .region {
    padding: 0;
  }
}

@media (min-width: 560px) and (max-width: 850px) {
  .site-footer__top .region:nth-child(2n) {
    padding-left: 0;
  }
}

/** Social media icons in footer **/
.site-footer .content a span.fa-brands {
  background-color: transparent;
  color: var(--laurier-gold);
  text-decoration: none;
}

.site-footer .content a span.fa-brands:is(:hover, :focus) {
  background-color: var(--white);
  color: var(--laurier-purple);
}
