footer {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  margin-top: auto;
  padding: 10px 20px;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: var(--primary);
}
@media screen and (min-width: 800px) {
  footer {
    flex-flow: column wrap;
    justify-content: flex-start;
    align-items: stretch;
  }
}
footer > .headerLink {
  height: 100%;
  display: block;
}
footer img {
  height: 160px;
  max-height: 100%;
  object-fit: contain;
}
footer > article {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
  padding: 0;
  box-sizing: border-box;
}
footer > article > h4 {
  margin: 5px 0;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}
footer > article > .headerLink {
  text-decoration: none;
  font-size: 12px;
  font-family: var(--font-family);
}
@media screen and (min-width: 800px) {
  footer > article > h4 {
    font-size: 20px;
  }
  footer > article > .headerLink {
    font-size: 18px;
    height: unset;
  }
}
#newsLetterContainer {
  width: 100%;
  max-width: 250px;
}
.footerInputContainer {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
#newsLetterInput {
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  background-color: var(--neutral);
  border: 1px solid var(--neutral);
  padding: 0 5px;
  color: var(--tertiary);
  font-family: var(--font-family);
}
.footerInputContainer > .secondaryButton {
  width: 85px;
  height: 28px;
  font-size: 14px;
  font-weight: 400;
}
#newsLetterLegal {
  font-size: 10px;
  font-family: var(--font-family);
}

footer > article > h4,
footer > article > .headerLink,
#newsLetterLegal {
  color: var(--neutral);
  transition: all 0.3s ease;
}
@media screen and (min-width: 800px) {
  footer > #newsLetterContainer {
    max-width: 400px;
  }
  #newsLetterInput {
    height: 48px;
    font-size: 18px;
  }
  .footerInputContainer > .secondaryButton {
    height: 48px;
    font-size: 18px;
  }
  #newsLetterLegal {
    font-size: 12px;
  }
}

.socialMediaLink {
  display: block;
}
.socialMediaIcon {
  height: 30px;
  width: 30px;
  fill: var(--neutral);
  transition: all 0.3s ease;
}
.socialMediaLink:hover > .socialMediaIcon {
  fill: var(--primary);
}
.socialMediaLink:focus > .socialMediaIcon {
  fill: var(--tertiary);
}
