/* Footer shell: background + vertical padding */
.site-footer {
  background-color: #1c1c1c;
  padding: 3em 1em;
}

/* Optional: soften Barrio’s black + default padding fighting yours */
.site-footer .layout-container {
  padding-left: 15px;
  padding-right: 15px;
}

/* When the grid lives in footer fifth, this top border can look odd as the only row — remove if you prefer */
.site-footer__bottom {
  margin-top: 0;
  border-top: none;
}

/* 5 equal columns; items span 2 + 2 + 1 */
.cwis-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 2rem;
  align-items: stretch;
  color: rgba(255, 255, 255, 0.85);
}

.cwis-footer-grid a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.cwis-footer-grid a:hover,
.cwis-footer-grid a:focus {
  color: #fff;
}

.cwis-footer-grid__logo {
  grid-column: 1 / span 2;
  display: flex;
  align-items: top;
  justify-content: flex-start;
}

.cwis-footer-grid__main {
  grid-column: 3 / span 2;
}

.cwis-footer-grid__social {
  grid-column: 5 / span 1;
  justify-self: start;
  align-self: start;
  text-align: left;
}

.cwis-footer-grid__logo-link {
  display: inline-block;
  line-height: 0;
}

.cwis-footer-grid__logo img {
  max-width: 100%;
  height: auto;
}

.cwis-footer-grid__main p {
  margin: 0 0 0.65em;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cwis-footer-grid__contact-line {
  font-size: 1.5rem;
  font-weight: 600;
}

.cwis-footer-grid__contact-line a {
  text-decoration: none;
}

.cwis-footer-grid__legal {
  font-size: 0.8rem;
  opacity: 0.9;
}

.cwis-footer-grid__sep {
  display: inline-block;
  padding: 0 0.5em;
  opacity: 0.6;
}

.cwis-footer-grid__copy {
  font-weight: 600;
}

.cwis-footer-grid__social-title {
  margin: 0 0 0.75em;
  font-size: 1rem;
  font-weight: 600;
}

.cwis-footer-grid__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cwis-footer-grid__icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.cwis-footer-grid__icons svg {
  width: 1.35rem;
  height: 1.35rem;
}

@media (max-width: 991px) {
  .cwis-footer-grid {
    grid-template-columns: 1fr;
  }

  .cwis-footer-grid__logo,
  .cwis-footer-grid__main,
  .cwis-footer-grid__social {
    grid-column: 1 / -1;
  }

  .cwis-footer-grid__logo {
    justify-content: flex-start;
  }
  
  .cwis-footer-grid__logo img {
  max-width: 70%;
  height: auto;
  margin: 0 auto;
}
}