/* stylelint-disable media-feature-range-notation */

/* General Footer Styling */
footer {
  background-color: var(--brand-primary);
  color: var(--brand-white);
  font-size: var(--body-font-size-body-small);
}

footer .footer {
  max-width: 1440px;
  margin: auto;
  padding: 64px 60px;
}

footer .footer p {
  margin: 0;
}

footer .footer a {
  color: var(--brand-white);
  font-weight: normal;
}

footer .other-links ul {
  display: flex;
  gap: 56px;
}

footer .other-links a {
  text-decoration: underline;
}

footer .other-links ul a {
  text-decoration: none;
  font-family: var(--brand-font-family-bold);
}

footer .footer-copy .default-content-wrapper p {
  margin: 10px 0;
}

footer .footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer .footer-copy ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

footer .fragment-container,
footer .other-links {
  padding: 24px 0;
}

footer .logo {
  padding-bottom: 24px;
}

footer .logo .icon {
  height: max-content;
  width: max-content;
}

footer .logo,
footer .fragment-container {
  border-bottom: 1px solid #fff6;
}

footer .fragment-wrapper ul,
footer .other-links ul {
  /** We can add this styling in the nav fragment instead */
  padding: 0;
  margin: 0;
  list-style: none;
}

footer .fragment-wrapper .button-container {
  display: none;
}

footer .fragment-wrapper .default-content-wrapper>ul {
  display: flex;
  gap: 56px;
}

footer .fragment-wrapper .default-content-wrapper>ul>li>a {
  font-family: var(--brand-font-family-bold);
}

footer .fragment-wrapper .default-content-wrapper>ul>li>ul {
  padding-top: 5px;
}

.footer-copy .fragment-wrapper .default-content-wrapper>ul+.button-container {
  display: none;
}

/* *We can add this styling in the nav fragment instead */

footer .logo img {
  max-width: 144px;
  height: auto;
  width: 100%;
}

footer .other-links div:first-child {
  display: flex;
  justify-content: space-between;
}

footer .other-links div:nth-child(2) p {
  margin: 10px 0;
}

footer .other-links div:nth-child(2) p:last-child {
  margin: 20px 0;
}

/* Mobile Queries */
@media only screen and (max-width: 1024px) {
  footer * {
    text-align: center;
  }

  footer .footer {
    padding: 40px 16px;
  }

  footer .other-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #fff6;
  }

  footer .fragment-wrapper .default-content-wrapper>ul {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  footer .other-links div.default-content-wrapper:first-child>p::before {
    content: "Follow us on";
    font-family: var(--brand-font-family-bold);
    display: block;
    margin: 24px auto 8px;
  }

  footer .other-links div:first-child {
    flex-direction: column;
  }

  footer .other-links div:nth-child(2) p:first-child {
    margin-top: 16px;
  }
  
  footer .other-links .default-content-wrapper ul + p a{
    display: inline-block;
    width: 44px;
  }
}

@media only screen and (min-width: 1025px){
  footer .other-links .default-content-wrapper ul + p{
    display: flex;
    gap: 24px;
  }
}

@media only screen and (max-width: 899px) {
  footer .jobcode p {
    display: flex;
    width: 50%;
    margin: 0 auto;
    justify-content: center;
  }
}