/**
 * @file
 * Footer component styles.
 */

.footer {
  background: var(--color-gray-600);
  color: var(--color-white);
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  border-top: 12px solid var(--color-primary-light);
}

.footer a {
  color: var(--color-white);
}

/* Footer bottom */
.footer__bottom {
  padding-block: var(--spacing-lg);
  border-top: 1px solid var(--color-white);
}

/* Footer content */
@media screen and (min-width: 20rem) {
  .footer__content {
    margin-bottom: var(--spacing-2xl);
    display: grid;
    gap: var(--spacing-xl);
    grid-template-columns: repeat(1, 1fr);
  }

  .footer__content .branding__logo svg {
    width: 150px;
    margin-bottom: var(--spacing-2xl);
  }

  .footer__content .block-footer-copyright {
    display: flex;
    order: 2;
  }
}

@media screen and (min-width: 39rem) {
  .footer__content {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "a a b c"
      "d d b c";
    gap: var(--spacing-2xl);
  }

  .footer__content .block-footer-slogan {
    order: unset;
    grid-area: a;
  }

  .footer__content .block-footer-slogan p:last-child {
    font-size: var(--font-size-sm);
  }

  .footer__content .block-footer-slogan .icon svg {
    display: block;
    width: 150px;
    margin-bottom: var(--spacing-2xl);
  }

  .footer__content .block-footer-copyright {
    grid-area: d;
    margin-top: auto;
  }

  .footer__content .block-footer-copyright p {
    margin-bottom: 0;
  }

  .footer__content .navigation--footer {
    grid-area: b;
  }

  .footer__content .navigation--resources {
    grid-area: c;
  }
}

/* Footer logos */
.footer__logos h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
}

/* Menu footer */
.menu--footer,
.menu--resources,
.block-footer-copyright {
  font-size: var(--font-size-sm);
  justify-content: space-between;
  display: flex;
  flex-direction: column;

  & .menu__item {
    width: 100%;
  }
}
