/*
 * Site footer (components/site/footer/SiteFooter.tsx): the foundation's name and what it does, then four columns —
 * contact, the footer menu, the latest posts, photos — and the white bar with the legal links, copyright and social
 * links. Dark band, generous spacing, Poppins headings and Roboto text like the site's newer pages.
 * !important only where the old theme styles h2/h3/ul/li/a globally.
 */
.zzf {
  --zf-bg: #141516; --zf-t: rgb(255 255 255 / 0.74); --zf-m: rgb(255 255 255 / 0.5); --zf-line: rgb(255 255 255 / 0.1); --zf-g: #8bc53f;
  background: var(--zf-bg); color: var(--zf-t); font-family: "Roboto", system-ui, sans-serif;
}
.zzf *, .zzf *::before, .zzf *::after { box-sizing: border-box; }
.zzf ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.zzf li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.zzf li::before { display: none !important; }
.zzf a { text-decoration: none !important; }

/* wide screens: the footer grows with the window (side space grows too) instead of a narrow centred column */
.zzf__main { max-width: 1680px; margin: 0 auto; padding: 88px clamp(24px, 4vw, 80px) 72px; }

/* name and what we do */
.zzf__intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; padding-bottom: 44px; border-bottom: 1px solid var(--zf-line); }
.zzf .zzf__title {
  margin: 0 !important; font: 600 44px/1.15 "Poppins", sans-serif !important; letter-spacing: -0.02em; color: #fff !important;
  text-transform: none !important; text-wrap: balance;
}
.zzf .zzf__blurb { justify-self: end; max-width: 500px; margin: 0 !important; font: 400 17px/1.7 "Roboto", sans-serif; color: var(--zf-t); }

/* columns */
.zzf__cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(36px, 4vw, 72px); margin-top: 52px; }
.zzf .zzf__h { margin: 0 0 22px !important; font: 600 13px/1.2 "Poppins", sans-serif !important; letter-spacing: 0.12em; text-transform: uppercase !important; color: #fff !important; }

.zzf__contact li { display: flex; align-items: flex-start; gap: 12px; font: 400 15.5px/1.55 "Roboto", sans-serif; color: var(--zf-t); }
.zzf__contact li + li { margin-top: 16px !important; }
.zzf__contact svg { flex: none; margin-top: 2px; color: var(--zf-g); }
.zzf__contact a { color: #fff !important; overflow-wrap: anywhere; transition: color 0.2s ease; }
.zzf__contact a:hover, .zzf__contact a:focus-visible { color: var(--zf-g) !important; }

.zzf__links li + li { margin-top: 13px !important; }
.zzf__links a { position: relative; font: 500 15.5px/1.4 "Roboto", sans-serif; color: var(--zf-t) !important; transition: color 0.2s ease; }
.zzf__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--zf-g);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.zzf__links a:hover, .zzf__links a:focus-visible { color: #fff !important; }
.zzf__links a:hover::after, .zzf__links a:focus-visible::after { transform: scaleX(1); }

.zzf__post { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px; }
.zzf__post + .zzf__post { margin-top: 18px !important; }
.zzf__post img, .zzf__post-ph { display: block; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: rgb(255 255 255 / 0.08); }
.zzf__post a {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font: 500 15px/1.4 "Poppins", sans-serif; color: #fff !important; transition: color 0.2s ease;
}
.zzf__post a:hover, .zzf__post a:focus-visible { color: var(--zf-g) !important; }
.zzf__post time { display: block; margin-top: 6px; font: 400 12.5px/1.2 "Roboto", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zf-m); }

.zzf__photos { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zzf__photos li { aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: rgb(255 255 255 / 0.08); }
.zzf__photos img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.zzf__photos li:hover img { transform: scale(1.06); }

/* bottom bar: legal links · copyright · social */
.zzf__bar-wrap { max-width: 1680px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 80px); }
.zz-footbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; min-height: 120px; margin: 0;
  padding: 34px 36px; border-radius: 28px 28px 0 0; background: #fff;
}
.zz-footbar__links { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 30px; flex: 0 0 auto; min-width: 0; }
.zz-footbar__links a {
  position: relative; font: 500 18px/1.4 "Roboto Condensed", sans-serif; letter-spacing: 0.01em; color: #151515 !important; white-space: nowrap; transition: color 0.2s ease;
}
.zz-footbar__links a + a::before {
  content: ""; position: absolute; left: -17px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #c4ccd8;
}
.zz-footbar__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: #006db8;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.zz-footbar__links a:hover { color: #006db8 !important; }
.zz-footbar__links a:hover::after, .zz-footbar__links a:focus-visible::after { transform: scaleX(1); }
.zz-footbar__copy { flex: 1 1 0; min-width: 0; text-align: center; }
.zz-footbar__copy p { margin: 0 !important; font: 400 16.5px/1.6 "Roboto", sans-serif; color: #475467; }
.zz-footbar__copy p + p { margin-top: 4px !important; font-size: 15px; color: #667085; }
.zz-footbar__copy strong { font-weight: 600; color: #151515; }
.zz-footbar__copy a { font-weight: 600; color: #151515 !important; transition: color 0.2s ease; }
.zz-footbar__copy a:hover { color: #006db8 !important; }
.zz-footbar__social { display: flex !important; justify-content: flex-end; gap: 12px; flex: 0 0 auto; }
.zz-footbar__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #f2f5f9; color: #151515 !important;
  box-shadow: inset 0 0 0 1px #e4e9f0; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.zz-footbar__icon svg { width: 19px; height: 19px; fill: currentColor; }
.zz-footbar__icon:hover, .zz-footbar__icon:focus-visible { background: #006db8; color: #fff !important; box-shadow: none; transform: translateY(-2px); }
.zz-footbar__icon--facebook-f:hover { background: #1877f2; }
.zz-footbar__icon--x-twitter:hover { background: #000; }
.zz-footbar__icon--instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.zz-footbar__icon--youtube:hover { background: #ff0000; }
.zz-footbar__icon--pinterest:hover { background: #e60023; }
.zz-footbar__icon--linkedin:hover { background: #0a66c2; }

/* laptops: tighter columns */
@media (max-width: 1199px) {
  .zzf__cols { gap: 36px; }
  .zzf .zzf__title { font-size: 40px !important; }
}
/* tablets: two by two */
@media (max-width: 1023px) {
  .zzf__main { padding-top: 72px; padding-bottom: 56px; }
  .zzf__intro { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 36px; }
  .zzf .zzf__blurb { justify-self: start; max-width: 620px; }
  .zzf__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; margin-top: 44px; }
  .zz-footbar { flex-direction: column; justify-content: center; gap: 20px; padding: 32px 28px; }
  .zz-footbar__links, .zz-footbar__copy, .zz-footbar__social { flex: none; width: 100%; justify-content: center; }
  .zz-footbar__links { flex-wrap: wrap; }
  .zz-footbar__copy { order: 3; }
}
/* phones: one column, the menu in two */
@media (max-width: 640px) {
  .zzf__main { padding: 56px 16px 48px; }
  .zzf .zzf__title { font-size: 30px !important; }
  .zzf .zzf__blurb { font-size: 16px; }
  .zzf__cols { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 36px; }
  .zzf .zzf__h { margin-bottom: 16px !important; }
  .zzf__links { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .zzf__links li + li { margin-top: 0 !important; }
  .zzf__bar-wrap { padding: 0 12px; }
  .zz-footbar { gap: 18px; padding: 28px 16px; border-radius: 24px 24px 0 0; }
  .zz-footbar__links { gap: 6px 18px; }
  .zz-footbar__links a { font-size: 15px; }
  .zz-footbar__links a + a::before { left: -11px; width: 4px; height: 4px; margin-top: -2px; }
  .zz-footbar__copy p { font-size: 14.5px; }
  .zz-footbar__copy p + p { font-size: 13.5px; }
  .zz-footbar__social { gap: 8px; }
  .zz-footbar__icon { width: 40px; height: 40px; }
  .zz-footbar__icon svg { width: 17px; height: 17px; }
}
@media (max-width: 380px) {
  .zz-footbar__links { gap: 6px 14px; }
  .zz-footbar__links a { font-size: 14px; }
  .zz-footbar__links a + a::before { left: -9px; }
}
