/*
 * Site footer (template-parts/site-footer.php): a pale panel with rounded
 * bottom corners (call to action, contact, company), then a bar with the
 * footer menu, copyright and legal links.
 */
.yb-footer__main {
  border-radius: 0 0 var(--yb-radius-panel) var(--yb-radius-panel);
  background: var(--yb-color-surface);
}

.yb-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: end;
  padding-top: var(--yb-space-section);
  padding-bottom: 40px;
}

.yb-footer__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--yb-space-m);
  margin-bottom: var(--yb-space-m);
}

.yb-footer__logo {
  display: block;
  width: 150px;
}

.yb-footer__logo img {
  display: block;
  width: 100%;
}

.yb-footer__title-highlight {
  color: var(--yb-color-cyan-dark);
}

.yb-footer__lead .yb-button {
  margin-top: 38px;
}

.yb-footer__contact,
.yb-footer__company {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--yb-space-m);
}

.yb-footer__contact p,
.yb-footer__company p {
  margin: 0;
}

.yb-footer__label {
  margin-bottom: 23px !important;
  font-size: var(--yb-size-button);
  font-weight: var(--yb-weight-medium);
  line-height: 1;
  letter-spacing: var(--yb-tracking-button);
}

.yb-footer__social {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yb-color-white);
  color: var(--yb-color-primary);
}

.yb-footer__social a:hover {
  background: var(--yb-color-primary);
  color: var(--yb-color-white);
}

.yb-footer__social .yb-svg {
  width: 20px;
  height: 20px;
}

/* Bar under the panel */
.yb-footer__bar {
  padding-top: 55px; /* live: 20 px gap + 35 px above the menu */
  padding-bottom: 28px;
}

.yb-footer__menu ul,
.yb-footer__legal ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-footer__menu li {
  flex: 1;
}

.yb-footer__menu a {
  display: flex;
  justify-content: center;
  padding: 10px 30px;
  border-radius: 30px;
  font-size: var(--yb-size-menu);
  font-weight: var(--yb-weight-medium);
  line-height: var(--yb-leading-tight);
  letter-spacing: var(--yb-tracking-menu);
}

.yb-footer__menu a:hover,
.yb-footer__menu a.is-current {
  background: var(--yb-color-surface);
}

.yb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 55px;
  padding-top: 30px;
  border-top: 1px solid var(--yb-color-border);
  font-size: var(--yb-size-body-s);
}

.yb-footer__copyright {
  color: var(--yb-color-text);
}

.yb-footer__legal ul {
  flex-wrap: wrap;
  gap: 5px 15px;
}

.yb-footer__legal li {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .yb-footer__bar {
    padding-top: 35px;
  }

  .yb-footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 43px;
    column-gap: var(--yb-space-m);
    padding-top: 80px;
  }

  .yb-footer__lead {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .yb-footer__lead .yb-button {
    margin-top: 0;
  }

  .yb-footer__contact,
  .yb-footer__company {
    justify-content: flex-start;
    align-self: start;
  }

  .yb-footer__social {
    padding-right: 20px;
  }

  .yb-footer__menu a {
    padding-inline: 20px;
  }
}

@media (max-width: 767px) {
  /* Phone spacing measured on the old footer at 390 px. */
  .yb-footer__grid {
    row-gap: 62px;
  }

  .yb-footer__contact a {
    display: inline-block;
    padding-block: 11px;
  }

  .yb-footer__menu li {
    flex: none;
  }

  .yb-footer__menu ul {
    justify-content: center;
  }

  .yb-footer__legal {
    justify-content: center;
    margin-top: 48px;
    text-align: center;
  }

  .yb-footer__legal ul {
    justify-content: center;
  }

  .yb-footer__social {
    justify-content: center;
    padding-right: 0;
  }
}
