/* =========================================================
   NZS Footer — dark overlapping footer
   ========================================================= */
.nzs-footer {
  --nzs-footer-bg: #345247;
  --nzs-light: #FBFCF7;
  --nzs-accent: #49EFB1;
  background: var(--nzs-footer-bg) !important;
  color: var(--nzs-light);
  padding: clamp(72px, 8vw, 132px) 0 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
  font-family: "Poppins", sans-serif;
}
.nzs-footer a { color: var(--nzs-light); text-decoration: none; }
.nzs-footer__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: nowrap;
  width: 100% !important;
  margin-bottom: 34px;
}
.nzs-footer__logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  flex: 0 0 auto;
  width: auto;
  min-width: 224px;
}
.nzs-footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.nzs-footer__badge img {
  display: block;
  width: auto;
  height: 96px;
  max-width: 96px;
  object-fit: cover;
}
.nzs-footer__logo-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--nzs-accent);
  color: #345247;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}
.nzs-footer__logo-text {
  color: var(--nzs-light);
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.nzs-footer__divider {
  border: 0;
  border-top: 1px solid rgba(251,252,247,.12);
  margin: 0 0 36px;
}
.nzs-footer__columns {
  display: grid;
  grid-template-columns: 2fr 3fr 3fr 3fr;
  gap: clamp(32px, 5vw, 88px);
  margin-bottom: clamp(72px, 8vw, 128px);
}
.nzs-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nzs-footer__nav a {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--nzs-light);
}
.nzs-footer__nav a:hover,
.nzs-footer__office a:hover,
.nzs-footer__legal-links a:hover { color: var(--nzs-accent); }
.nzs-footer__office h4 {
  color: var(--nzs-light);
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  line-height: 28px;
  font-weight: 600;
  margin: 0 0 14px;
}
.nzs-footer__office p {
  color: rgba(251,252,247,.82);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  margin: 0 0 30px;
}
.nzs-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--nzs-light) !important;
  margin-bottom: 0 !important;
}
.nzs-footer__phone::after {
  content: "→";
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(251,252,247,.06);
  color: var(--nzs-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
}
.nzs-footer__bottom {
  display: grid;
  grid-template-columns: 2fr 3fr 3fr 3fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding: 0 0 clamp(72px, 7vw, 112px);
  border: 0;
}
.nzs-footer__social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.nzs-footer__social a {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nzs-light);
}
.nzs-footer__meta {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr 2.5fr;
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
  color: rgba(251,252,247,.86);
  font-size: 15px;
  line-height: 24px;
}
.nzs-footer__meta strong { color: var(--nzs-light); font-weight: 600; }
.nzs-footer__legal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 0 0 42px;
  border: 0;
  color: rgba(251,252,247,.72);
  font-size: 13px;
  line-height: 22px;
}
.nzs-footer__legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 48px);
  flex-wrap: wrap;
}
.nzs-footer__legal-links a { color: rgba(251,252,247,.72); }
.nzs-footer__credit { justify-self: end; }
@media (max-width: 1024px) {
  .nzs-footer__columns,
  .nzs-footer__bottom {
    grid-template-columns: 1fr 1fr;
  }
  .nzs-footer__meta {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media (max-width: 720px) {
  .nzs-footer { padding-top: 56px; }
  .nzs-footer__columns,
  .nzs-footer__bottom,
  .nzs-footer__legal {
    grid-template-columns: 1fr;
  }
  .nzs-footer__columns { gap: 36px; margin-bottom: 64px; }
  .nzs-footer__legal-links { justify-content: flex-start; gap: 18px 28px; }
  .nzs-footer__credit { justify-self: start; }
}

/* v1.0.31 footer grid width uses central .nzs-wrap from blocks.css; no extra outer padding. */

/* =========================================================
   NZS Footer — supplied logo asset (v1.0.40)
   ========================================================= */
.nzs-footer__logo {
  min-height: 58px;
  margin-bottom: 0;
}

.nzs-footer__logo-image {
  display: block;
  width: 224px;
  height: 58px;
  background-image: url('../img/nonzerosum-logo-footer.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
}

.nzs-footer__logo-icon,
.nzs-footer__logo-text {
  display: none !important;
}

/* =========================================================
   NZS v1.0.50 — Mobile footer cleanup
   ========================================================= */
@media (max-width: 720px) {
  .nzs-footer {
    padding-top: 64px !important;
  }

  .nzs-footer > .nzs-wrap {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  .nzs-footer :where(h1,h2,h3,h4,h5,h6,p,li,a,span,strong) {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .nzs-footer__brand {
    margin-bottom: 32px !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
  }
  .nzs-footer__logo {
    min-height: 46px !important;
    margin-bottom: 0 !important;
  }
  .nzs-footer__badge {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  .nzs-footer__badge img {
    height: 80px !important;
    max-width: 80px !important;
  }

  .nzs-footer__logo-image {
    width: 190px !important;
    height: 50px !important;
  }

  .nzs-footer__divider {
    margin-bottom: 40px !important;
  }

  .nzs-footer__columns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 44px !important;
    margin-bottom: 64px !important;
  }

  .nzs-footer__nav ul {
    gap: 14px !important;
  }

  .nzs-footer__nav a {
    font-size: 18px !important;
    line-height: 28px !important;
  }

  .nzs-footer__office h4 {
    font-size: 18px !important;
    line-height: 28px !important;
    margin-bottom: 16px !important;
  }

  .nzs-footer__office p {
    font-size: 18px !important;
    line-height: 30px !important;
    margin-bottom: 24px !important;
  }

  .nzs-footer__phone {
    font-size: 18px !important;
    line-height: 28px !important;
    white-space: nowrap !important;
    gap: 18px !important;
  }

  .nzs-footer__bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-bottom: 64px !important;
  }

  .nzs-footer__social {
    gap: 18px !important;
  }

  .nzs-footer__social a,
  .nzs-footer__social svg {
    width: 22px !important;
    height: 22px !important;
  }

  .nzs-footer__meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-column: auto !important;
    gap: 10px !important;
    font-size: 16px !important;
    line-height: 26px !important;
  }

  .nzs-footer__meta strong,
  .nzs-footer__meta span {
    display: block !important;
    max-width: 100% !important;
  }

  .nzs-footer__legal {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding-bottom: 36px !important;
    font-size: 15px !important;
    line-height: 24px !important;
  }

  .nzs-footer__legal-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 12px 24px !important;
  }

  .nzs-footer__credit {
    justify-self: start !important;
  }
}

@media (max-width: 380px) {
  .nzs-footer > .nzs-wrap {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }

  .nzs-footer__office p,
  .nzs-footer__phone,
  .nzs-footer__nav a {
    font-size: 16px !important;
    line-height: 27px !important;
  }
}


/* =========================================================
   NZS v1.0.51 — Mobile footer offices stacked cleanly
   ========================================================= */
@media (max-width: 720px) {
  .nzs-footer__columns {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    margin-bottom: 64px !important;
  }

  .nzs-footer__nav,
  .nzs-footer__office {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
  }

  .nzs-footer__office {
    display: block !important;
  }

  .nzs-footer__office h4 {
    margin-bottom: 14px !important;
  }

  .nzs-footer__office p:not(.nzs-footer__phone) {
    margin-bottom: 20px !important;
    max-width: 32rem !important;
  }

  .nzs-footer__phone {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  .nzs-footer__bottom,
  .nzs-footer__meta,
  .nzs-footer__legal {
    width: 100% !important;
    max-width: 100% !important;
  }

  .nzs-footer__meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .nzs-footer__meta strong,
  .nzs-footer__meta span {
    width: auto !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}
