﻿/* Site footer — aligned to Catalyst Fence Solutions footer */
.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer {
  color: #fff;
  background: #000;
  padding: 36px 0 60px;
  font-family: "InterVariable", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer .site-footer__container {
  margin: 0 auto;
  max-width: 1096px;
}

.site-footer .site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer .site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 260px;
}

.site-footer .site-footer__logo {
  display: block;
  width: 180px;
  height: 45px;
  object-fit: contain;
}

.site-footer .site-footer__address,
.site-footer .site-footer__tagline {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  white-space: pre-wrap;
}

.site-footer .site-footer__contact,
.site-footer .site-footer__contact-lines {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #e15200;
}

.site-footer .site-footer__contact strong,
.site-footer .site-footer__contact-lines .site-footer__contact-label {
  font-weight: 700;
  color: #e15200;
  margin-right: 6px;
}

.site-footer .site-footer__contact a,
.site-footer .site-footer__contact-lines a {
  color: #fff;
  text-decoration: none;
}

.site-footer .site-footer__contact a:hover,
.site-footer .site-footer__contact-lines a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .site-footer__contact span {
  color: #fff;
}

.site-footer .site-footer__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 180px;
}

.site-footer .site-footer__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-footer .site-footer__social-title {
  margin: 0;
  font-family: "PilatWide", "InterVariable", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

.site-footer .site-footer__social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.site-footer .site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  color: #fff;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.site-footer .site-footer__social-link:hover {
  color: #e15200;
}

.site-footer .site-footer__social-icons .fa {
  font-size: 22px;
  line-height: 1;
}

.site-footer .site-footer__legal,
.site-footer .site-footer__middle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  color: #fff;
}

.site-footer .site-footer__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.site-footer .site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .site-footer__bottom {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer .site-footer__association {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .site-footer__association-logo {
  display: block;
  width: 164px;
  height: auto;
  object-fit: contain;
}

/* Top promo bar (reference layout) */
#footer-link-bar {
  margin: 0 !important;
  padding: 0 !important;
  background: #f0ae42;
}

#footer-link-bar .wp-block-columns {
  margin: 0 auto;
  width: min(1096px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

#footer-link-bar .wp-block-column {
  padding: 0 !important;
}

#footer-link-bar .wp-block-buttons {
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#footer-link-bar .wp-block-button {
  margin: 0;
}

#footer-link-bar .wp-block-button__link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 106px;
  width: 100%;
  padding: 20px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  color: #111 !important;
  transition: background-color 0.16s ease, color 0.16s ease;
}

#footer-link-bar .wp-block-button:nth-child(2n) .wp-block-button__link {
  border-right: 0;
}

#footer-link-bar .wp-block-column:last-child .wp-block-button__link {
  border-bottom: 0;
}

#footer-link-bar .wp-block-button__link img {
  flex: 0 0 30px;
  width: 30px !important;
  height: 30px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 32px 0 48px;
  }

  .site-footer .site-footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  .site-footer .site-footer__brand,
  .site-footer .site-footer__aside,
  .site-footer .site-footer__social {
    min-width: 0;
    width: 100%;
    align-items: center;
  }

  .site-footer .site-footer__address,
  .site-footer .site-footer__tagline,
  .site-footer .site-footer__contact,
  .site-footer .site-footer__contact-lines {
    text-align: center;
  }

  #footer-link-bar .wp-block-columns {
    width: 100%;
    grid-template-columns: 1fr;
  }

  #footer-link-bar .wp-block-buttons {
    grid-template-columns: 1fr;
  }

  #footer-link-bar .wp-block-button__link {
    min-height: 88px;
    font-size: 20px;
    border-right: 0;
  }

  #footer-link-bar .wp-block-column:last-child .wp-block-button:last-child .wp-block-button__link {
    border-bottom: 0;
  }
}
