/**
 * Site footer.
 *
 * The footer is a normal document-flow layout. It deliberately does not
 * rely on absolute positioning or on Gutenberg's generated flex classes:
 * the logo, link columns and social row are three regular grid areas.
 */

.fp-footer,
.fp-footer * {
  box-sizing: border-box;
}

.fp-footer {
  display: grid;
  position: relative;
  width: 100%;
  grid-template-columns: minmax(0, 512px) minmax(0, 481px);
  grid-template-rows: auto auto;
  column-gap: 188px;
  row-gap: 50px;
  align-items: start;
  margin: 1px 0 0;
  padding: 55px max(24px, calc((100% - 1190px) / 2)) 30px;
  overflow: hidden;
  background: #fff;
  color: #000;
}

.fp-footer__logo {
  grid-column: 1;
  grid-row: 1;
  width: 512px;
  height: 229px;
  margin: 0;
}

.fp-footer__logo-image,
.fp-footer__logo a,
.fp-footer__logo img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.fp-footer__logo img {
  object-fit: fill;
}

.fp-footer__links {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 176px 181px;
  column-gap: 124px;
  width: 481px;
  margin: 24px 0 0;
  padding: 0;
  align-items: start;
}

/* Protect saved Site Editor markup that still carries is-layout-flex classes. */
.fp-footer > .fp-footer__links {
  display: grid;
  margin-block-start: 24px;
}

.fp-footer__column {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.fp-footer__column h2 {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 13px;
  letter-spacing: -1px;
}

.fp-footer__column ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.fp-footer__column li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.fp-footer__column li,
.fp-footer__column a,
.fp-footer__column button {
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -1px;
  text-align: left;
}

.fp-footer__column a,
.fp-footer__column button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

.fp-footer__column a {
  line-height: 12px;
  opacity: 0.8;
}

.fp-footer__column button {
  cursor: pointer;
  line-height: 14px;
  opacity: 0.8;
}

.fp-footer__column a:hover,
.fp-footer__column a:focus-visible,
.fp-footer__column button:hover,
.fp-footer__column button:focus-visible {
  opacity: 1;
}

.fp-footer__bottom {
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 0;
}

.fp-footer > .fp-footer__bottom {
  display: block;
  margin-block-start: 0;
}

.fp-footer__line {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
}

.fp-footer__socials {
  display: flex;
  width: 130px;
  height: 40px;
  margin: 19px 0 0;
  padding: 0;
  gap: 5px;
  align-items: center;
}

/* WordPress applies a logical margin reset to children of flow groups.
 * Keep the social row below the divider, as in the design, without taking it
 * out of normal document flow. */
.fp-footer__bottom > .fp-footer__socials {
  margin-block-start: 19px;
  margin-block-end: 0;
}

.fp-footer__socials a,
.fp-footer__socials img {
  display: block;
  width: 40px;
  height: 40px;
}

.fp-development-page .fp-footer,
.fp-blog-page .fp-footer {
  margin-top: 0;
}

@media (max-width: 1240px) {
  .fp-footer {
    column-gap: 32px;
  }

  .fp-footer__logo,
  .fp-footer__links {
    width: 100%;
  }

  .fp-footer__logo {
    max-width: 512px;
    height: auto;
    aspect-ratio: 512 / 229;
  }

  .fp-footer__links {
    max-width: 481px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 32px;
  }
}

@media (max-width: 960px) {
  .fp-footer {
    display: block;
    padding: 48px 16px 32px;
  }

  .fp-footer__logo,
  .fp-footer__links,
  .fp-footer__bottom {
    width: 100%;
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }

  .fp-footer__logo {
    max-width: 512px;
  }

  .fp-footer__links {
    margin-top: 48px;
    row-gap: 40px;
  }

  .fp-footer__bottom {
    margin-top: 48px;
  }
}

@media (max-width: 560px) {
  .fp-footer__links {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
}
