/* ===================================================================
   Site footer — shared by every page of the ICE website.

   ONE stylesheet, two consumers:
   - the static home page (public/ice/index.html) links it directly;
   - the Next.js pages (/roots, /csr, /volunteer) import it from
     src/app/layout.tsx and render src/components/SiteFooter.tsx.
   The markup in index.html mirrors SiteFooter.tsx — change both together.

   Self-contained on purpose: every rule is scoped under .site-footer and
   sets its own colours and fonts, so neither home.css nor roots.css can
   bleed into it. The navy is the home page's .main_footer palette, kept
   deep so it continues from that section's dark end without a jump; the
   hairline on top marks the break.
   =================================================================== */

.site-footer {
  --sf-mint: #08d3a1;
  --sf-text: rgba(255, 255, 255, 0.78);
  --sf-muted: rgba(255, 255, 255, 0.56);
  --sf-line: rgba(255, 255, 255, 0.12);

  background: linear-gradient(180deg, #1c1b46 0%, #0f0e26 100%);
  border-top: 1px solid var(--sf-line);
  color: var(--sf-text);
  font-family: var(--font-dm, "DM Sans"), "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-block: clamp(3rem, 7vw, 4.75rem) 1.75rem;
}
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer .sf-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- columns: brand | explore | get involved | contact ---------- */
.site-footer .sf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.site-footer .sf-logo {
  display: inline-block;
}
.site-footer .sf-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.site-footer .sf-about {
  margin: 1.25rem 0 0;
  max-width: 38ch;
  color: var(--sf-text);
}

.site-footer .sf-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.site-footer .sf-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sf-line);
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.site-footer .sf-social a:hover {
  background: var(--sf-mint);
  border-color: var(--sf-mint);
  color: #0f0e26;
}
.site-footer .sf-social svg {
  width: 18px;
  height: 18px;
}

.site-footer .sf-heading {
  margin: 0 0 1.1rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-mint);
}

.site-footer .sf-links,
.site-footer .sf-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.site-footer a {
  color: var(--sf-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer .sf-links a:hover,
.site-footer .sf-contact a:hover,
.site-footer .sf-bottom a:hover {
  color: #fff;
}
.site-footer .sf-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sf-mint);
  text-underline-offset: 4px;
}

.site-footer .sf-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.site-footer .sf-contact svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  color: var(--sf-mint);
}
.site-footer .sf-contact address {
  font-style: normal;
}

/* ---------- compliance strip ---------- */
.site-footer .sf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: clamp(2.25rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.site-footer .sf-badges li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(8, 211, 161, 0.35);
  background: rgba(8, 211, 161, 0.08);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- bottom bar ---------- */
.site-footer .sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sf-line);
  font-size: 0.875rem;
  color: var(--sf-muted);
}
.site-footer .sf-bottom p {
  margin: 0;
}
.site-footer .sf-partners {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-footer .sf-partners img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 100%;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .site-footer .sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* phones: brand and contact full width, the two link lists side by side */
@media (max-width: 575px) {
  .site-footer .sf-grid {
    column-gap: 1.5rem;
  }
  .site-footer .sf-brand,
  .site-footer .sf-reach {
    grid-column: 1 / -1;
  }
  .site-footer .sf-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer .sf-partners img {
    height: 28px;
  }
}

/* Two contact emails, one under the other: primary first. */
.site-footer .sf-contact .sf-emails {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.site-footer .sf-contact .sf-emails a {
  overflow-wrap: anywhere;
}
