/* 
    =====================
    | Footer newsletter |
    =====================
*/

.footer__newsletter {
  width: 100%;
  max-width: 153.6rem;
  margin: 0 auto;
  padding: 4.8rem 1.6rem;
}

.footer__newsletter__title {
  margin: 0 0 3.2rem;
  color: var(--color-black);
}

@media screen and (min-width: 940px) {
  .footer__newsletter {
    padding: 4.8rem 2.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer__newsletter__title {
    margin: 0;
  }
}

@media screen and (min-width: 1200px) {
  .footer__newsletter {
    padding: 6.4rem 2.4rem;
  }
}

@media screen and (min-width: 1440px) {
  .footer__newsletter {
    padding: 6.4rem 4.8rem;
  }
}

@media screen and (min-width: 1920px) {
  .footer__newsletter {
    max-width: 173.6rem;
  }
}

/* 
    =====================
    | Footer navigation |
    =====================
*/

.footer-navigation {
  border-bottom: 1px solid #f2f4f7;
  padding: 4.8rem 1.6rem;
}

@media screen and (min-width: 940px) {
  .footer-navigation {
    border-top: 1px solid #f2f4f7;
    padding: 4.8rem 2.4rem;
  }
}

@media screen and (min-width: 1200px) {
  .footer-navigation {
    padding: 4.8rem 2.4rem;
  }
}

@media screen and (min-width: 1440px) {
  .footer-navigation {
    padding: 6rem 4.8rem;
  }
}

.footer-navigation-content {
  display: grid;
  grid-gap: 4.8rem;
  max-width: 144rem;
  margin: 0 auto;
}

@media screen and (min-width: 1920px) {
  .footer-navigation-content {
    max-width: 164rem;
  }
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3.2rem 2.4rem;
}

@media screen and (min-width: 768px) {
  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-navigation__item {
}

.footer-navigation__item:last-child {
  margin-bottom: 0;
}

.footer-navigation__item-content {
  display: flex;
  align-items: center;
}

.footer-navigation__item-content a,
.footer-navigation__item-content p,
.footer__title {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  color: #1c2024;
  margin: 0 0 2rem;
}

.toggle-footer-menu {
  background: none;
  border: 0;
  box-sizing: content-box;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  overflow: visible;
  vertical-align: inherit;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
  padding: 0;
}

.toggle-footer-menu svg {
  width: 2.4rem;
  height: 2.4rem;
}

.toggle-footer-menu.is-open svg {
  transform: rotate(45deg);
}

.toggle-footer-menu-button {
  background: none;
  border: 0;
  box-sizing: content-box;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  overflow: visible;
  vertical-align: inherit;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  width: 100%;
}

.toggle-footer-menu-button svg {
  margin-left: auto;
  margin-right: 0;
}

.toggle-footer-menu-button.is-open svg {
  transform: rotate(45deg);
}

.footer-navigation__menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.footer-navigation__menu li {
  padding: 0;
  margin: 0 0 1.6rem;
}

.footer-navigation__menu a {
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-gray-dark);
}

@media screen and (min-width: 940px) {
  .footer-navigation-content {
    grid-template-columns: 1fr 4fr;
    column-gap: 3.2rem;
  }

  .footer__nav {
    grid-template-columns: repeat(5, 1fr);
    gap: 2.4rem;
  }

  .footer-navigation__item {
    min-width: 0;
  }

  .toggle-footer-menu,
  .toggle-footer-menu-button {
    display: none;
  }

  .footer-navigation__menu {
    display: block;
  }
}

@media screen and (min-width: 1200px) {
  .footer-navigation-content {
    column-gap: 6.4rem;
  }
}

/* Hover */
@media (hover: hover) {
  .footer-navigation__item-content a:hover,
  .footer-navigation__menu a:hover {
    color: var(--color-blue);
  }
}

/* 
    =================
    | Footer bottom |
    =================
*/

.footer-bottom {
  width: 100%;
  max-width: 153.6rem;
  margin: 0 auto;
  padding: 3.2rem 1.6rem 4.8rem;
}

@media screen and (min-width: 940px) {
  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3.2rem 2.4rem 4.8rem;
  }
}

@media screen and (min-width: 1200px) {
  .footer-bottom {
    padding: 3.2rem 2.4rem 4.8rem;
  }
}

@media screen and (min-width: 1440px) {
  .footer-bottom {
    padding: 3.2rem 4.8rem 4.8rem;
  }
}

@media screen and (min-width: 1920px) {
  .footer-bottom {
    max-width: 173.6rem;
  }
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  grid-gap: 2.4rem;
  margin-bottom: 2.4rem;
}

.footer-social .social-link {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-dark);
  background-color: #f0f0f3;
  transition: color 200ms;
}

@media screen and (min-width: 768px) {
  .footer-social {
    padding: 0;
    order: 3;
  }
}

@media screen and (min-width: 940px) {
  .footer-social {
    margin: 0;
  }
}

/* Hover */
@media (hover: hover) {
  .footer-social .social-link:hover {
    color: var(--color-blue);
  }
}

/* 
    ================
    | Footer links |
    ================
*/

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 1.5rem;
  row-gap: 1.5rem;
}

.footer-links a {
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--color-black);
}

@media screen and (min-width: 768px) {
  .footer-links {
    padding: 0;
    order: 2;
  }
}

/* 
    ===============
    | Footer copy |
    ===============
*/

.footer-copy p {
  margin: 0;
  font-size: 1.4rem;
  line-height: 150%;
  color: var(--color-gray);
}

@media screen and (min-width: 768px) {
  .footer-copy {
    padding: 0;
    order: 1;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    text-align: left;
  }
}

.footer__info a {
  display: flex;
  margin-bottom: 4rem;
}

.footer__richtext p,
.footer__richtext a {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.footer__richtext p {
  color: var(--color-gray);
  font-family: var(--font-inter);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
}

.footer__richtext strong {
  color: #1c2024;
}

.footer__richtext p a {
  display: inline-block;
  color: #1c2024;
  border-bottom: 1px solid #1c2024;
  transition: border-color 300ms;
}

.footer__richtext p a:hover {
  border-color: transparent;
}

.footer__richtext a {
  color: var(--color-gray-dark);
  text-decoration: none;
  transition: color 200ms;
}

.footer__richtext a:hover {
  color: var(--color-blue);
}
