.site-footer {
  background: linear-gradient(160deg, var(--color-brand-fill) 0%, var(--color-brand-fill-dark) 100%);
  color: #d3e3f6;
  margin-top: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.5fr;
  gap: var(--space-6);
  padding-block: var(--space-7);
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid p {
  color: #d3e3f6;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}

.footer-grid ul li {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-brand__logo {
  height: 56px;
  width: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  margin-bottom: var(--space-3);
}

.footer-brand__name {
  color: #fff !important;
  font-weight: 700;
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: none;
  background: #fff;
  color: var(--color-text);
}

.newsletter-status {
  color: #b9f0d2 !important;
  margin-top: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: var(--space-4);
  font-size: var(--font-size-xs);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Give the brand/contact column the full row so the long address and email
     don't get squeezed into a third of the width (which broke the email mid-word). */
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
  }
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

a.footer-social__link:hover {
  background: #fff;
  color: var(--color-brand);
  transform: translateY(-2px);
}

.footer-social__link.is-off {
  opacity: 0.45;
  cursor: default;
}


/* ---- Brand column: contact lines with icons ---- */
.footer-grid .footer-contact {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-grid .footer-contact li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.55;
}

.footer-contact .icon {
  margin-top: 2px;
  color: #9fd0ff;
}

.footer-contact a {
  color: #fff;
  word-break: break-word;
}

.footer-map-link {
  display: block;
  width: fit-content;
  margin-top: 4px;
  font-weight: 600;
  color: #9fd0ff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-small {
  font-size: var(--font-size-xs) !important;
  opacity: 0.85;
}

/* ---- Newsletter column: follow us + certifications ---- */
.footer-grid .footer-subhead {
  margin: var(--space-5) 0 var(--space-3);
  font-size: var(--font-size-xs);
  opacity: 0.9;
}

.footer-grid .footer-certs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-grid .footer-certs li {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
