/**
 * @file
 * Footer chrome — the CMS-editable footer that appears site-wide
 * (block--block-content--footer-contact / --social-links + the footer menus).
 * Loaded globally via the theme's global-styling library, since the footer is
 * present on every page, not just flexible pages.
 */

.site-footer {
  background: var(--ed-color-brand-darker);
  color: rgba(255, 255, 255, 0.85);
}

/* Lay the footer columns out as an even grid. Higher specificity than Barrio's
 * site-footer.css, which floats the regions at fixed widths — we neutralize
 * those floats so the columns fill the row evenly instead of packing left. */
.site-footer .site-footer__top {
  display: grid;
  /* Explicit equal columns filling the centered container. auto-fit fights
     Barrio's fixed .region widths and leaves an empty track on the right, so
     the columns pack left instead of spreading across the width. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ed-space-6);
  padding: clamp(var(--ed-space-6), 5vw, 56px) var(--ed-space-4);
  max-width: var(--ed-content-max-width);
  margin: 0 auto;
}

@media (min-width: 992px) {
  .site-footer .site-footer__top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.site-footer .site-footer__top .region {
  float: none;
  width: auto;
  padding: 0;
  margin: 0;
}

/* Uniform footer columns. Barrio adds a border + 10px padding + 20px margin to
 * .block wrappers (the menu blocks) but not to our custom blocks, so the left
 * and right columns misalign. Strip it from both so every column is flush. */
.site-footer .site-footer__top .block,
.site-footer .site-footer__top .ed-lp-foot {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Unify every footer heading (menu block <h2> + custom .ed-lp-foot__title),
 * overriding Barrio's .site-footer__top h2 so left and right match exactly. */
.site-footer .site-footer__top h2 {
  margin: 0 0 var(--ed-space-4);
  padding: 0 0 var(--ed-space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  font-weight: var(--ed-font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ed-white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ed-white);
  text-decoration: underline;
}

/* Footer menus render as Bootstrap .nav (a flex row); stack them vertically. */
.site-footer .site-footer__top .nav {
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .site-footer__top .nav-item {
  margin: 0 0 var(--ed-space-2);
}

.site-footer .site-footer__top .nav-link {
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .site-footer__top .nav-link:hover,
.site-footer .site-footer__top .nav-link.is-active {
  color: var(--ed-white);
}

.ed-lp-foot__address {
  font-style: normal;
  line-height: 1.7;
}

.ed-lp-foot__phone {
  display: inline-block;
  margin-top: var(--ed-space-2);
  font-weight: var(--ed-font-weight-semibold);
}

.ed-lp-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-lp-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--ed-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--ed-white);
  transition: background var(--ed-transition);
}

.ed-lp-social__link:hover {
  background: var(--ed-color-brand);
  color: var(--ed-white);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--ed-space-4);
  text-align: center;
  font-size: var(--ed-font-size-sm);
}

.site-footer__bottom .menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-space-4);
  justify-content: center;
}
