/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  padding: 72px 0 28px;
  background: var(--syn-green-800);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--r-band) var(--r-band) 0 0;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 376px) minmax(0, 1fr);
  gap: 48px 110px;
}
.site-footer__brand { display: inline-block; color: #fff; margin-bottom: 28px; }
.site-footer__brand:hover { text-decoration: none; }

.newsletter {
  display: flex;
  align-items: center;
  max-width: 376px;
  padding: 3px;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-pill);
}
.newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--syn-ink);
}
.newsletter__input::placeholder { color: #9ca3af; }
.newsletter__input:focus { outline: none; }
.newsletter__submit {
  flex: none;
  width: 158px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--syn-green-500);
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 0.94rem;
  cursor: pointer;
}
.newsletter__submit:hover { background: var(--syn-green-600); }
/* Webform wraps the field and the button; the wrappers must not break the pill. */
.newsletter .form-item,
.newsletter .form-actions { margin: 0; }
.newsletter .js-form-item-email { display: flex; flex: 1; min-width: 0; }
.newsletter .form-actions { flex: none; }
.newsletter .form-item--error-message,
.newsletter .webform-element-description { display: none; }
/* Webform's Ajax reply puts its messages inside the form, i.e. inside the
   white pill; lift them out to sit just under it, on the dark footer. */
.site-footer__newsletter { max-width: 376px; }
.newsletter { position: relative; }
.newsletter [data-drupal-messages] {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 18px;
  inset-inline-end: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #fff;
}
.newsletter [data-drupal-messages] [role="alert"] { color: #ffc9b8; }
.newsletter [data-drupal-messages] ul { padding-inline-start: 1.2em; list-style: disc; }
/* Room for the message, so it does not run into the tagline. */
.site-footer__newsletter:has([data-drupal-messages]) { margin-bottom: 26px; }
/* Webform puts the thank-you note inside the form, so it fills the white pill. */
.newsletter .webform-confirmation {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--syn-green-800);
}

.site-footer__tagline {
  margin: 28px 0 38px;
  max-width: 376px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.social { display: flex; gap: 16px; }
.social__link {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.social__link { color: #fff; transition: border-color 0.2s ease, background-color 0.2s ease; }
.social__link svg { width: 20px; height: 20px; }
.social__link:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); }

.site-footer__menu-col { padding-top: 88px; }
/* The footer menu fills column by column, three links per column (Figma
   1139:4715). */
.site-footer__menu-col ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 16px 24px;
  align-content: start;
}
.site-footer__menu-col a,
.site-footer__menu-col li > span {
  color: #fff;
  font-size: 0.875rem;
}
.site-footer__menu-col a:hover { text-decoration: underline; }
.site-footer__menu-col ul ul { display: none; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__powered { color: inherit; }
.site-footer__powered:hover { color: #fff; }
.site-footer__legal-links { display: inline-flex; gap: 24px; }
.site-footer__legal-links a { color: rgba(255, 255, 255, 0.6); }
.site-footer__legal-links a:hover { color: #fff; }
