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: 30px;
  padding: 10px;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: var(--heritageBlack);
  gap: 15px 0;
}
@media screen and (min-width: 800px) {
  footer {
    height: 250px;
    flex-flow: column wrap;
    justify-content: flex-start;
    align-items: stretch;
  }
}
footer > .tricolorLine {
  max-width: 240px;
  left: 50%;
  transform: translateX(-50%);
}
footer > .headerLink {
  height: 100%;
  display: block;
}
footer img {
  height: 160px;
  max-height: 100%;
  object-fit: contain;
}
footer > article {
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  padding: 0 5px;
  width: 50%;
  box-sizing: border-box;
}
@media screen and (min-width: 800px) {
  footer > .tricolorLine {
    width: 95%;
    max-width: 1400px;
  }
  footer > article {
    width: fit-content;
  }
  footer > article:first-of-type,
  footer > article:nth-of-type(2) {
    height: 100%;
  }
}
footer > article > h4 {
  margin: 5px 0;
  font-family: var(--subtitles-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(--subtitles-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(--heritageWhite);
  border: 1px solid var(--heritageWhite);
  padding: 0 5px;
  color: var(--heritageBlack);
  border-radius: 8px 0 0 8px;
  font-family: var(--subtitles-font-family);
}
.footerInputContainer > #newsLetterConfirm {
  width: 85px;
  height: 28px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 400;
  background-color: var(--heritageBlack);
  border-color: var(--heritageWhite);
}
.footerInputContainer > #newsLetterConfirm:hover {
  background-color: var(--heritageBrown);
  border-color: var(--heritageBrown);
}
#newsLetterLegal {
  font-size: 10px;
  font-family: var(--subtitles-font-family);
}

footer > article > h4,
footer > article > .headerLink,
#newsLetterLegal {
  color: var(--heritageWhite);
  transition: all 0.3s ease;
}
@media screen and (min-width: 800px) {
  footer > #newsLetterContainer {
    max-width: 400px;
  }
  #newsLetterInput {
    height: 48px;
    font-size: 18px;
  }
  .footerInputContainer > #newsLetterConfirm {
    height: 48px;
    font-size: 18px;
  }
  #newsLetterLegal {
    font-size: 12px;
  }
}
#socialContainer {
  width: 100%;
  padding: 10px 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.socialMediaLink {
  display: block;
  color: var(--heritageWhite);
}
.socialMediaLink:hover {
  color: var(--heritageBrown);
}
.socialMediaLink:focus {
  color: var(--heritageBeige);
}
.socialMediaIcon {
  height: 30px;
  width: 30px;
  fill: var(--heritageWhite);
  transition: all 0.3s ease;
}
.socialMediaLink:hover > .socialMediaIcon {
  fill: var(--heritageBrown);
}
.socialMediaLink:focus > .socialMediaIcon {
  fill: var(--heritageBeige);
}
.desktopFooterLogo {
  display: none;
  height: 170px;
  width: 170px;
  object-fit: contain;
}
.mobileFooterLogo {
  height: 90px;
  width: 90px;
  object-fit: contain;
}
@media screen and (min-width: 800px) {
  #socialContainer {
    width: fit-content;
  }
  .desktopFooterLogo {
    display: block;
  }
  .mobileFooterLogo {
    display: none;
  }
}
