/* ==========================================================================
   Parity: site footer + partner strip
   Source of truth: frontend/src/components/layout/Footer.tsx,
   components/shared/SocialLinks.tsx (variant "filled"),
   components/sections/PartnerLogos.tsx. Values from the compiled Tailwind CSS.
   ========================================================================== */

/* ── Footer shell: bg-surface-dark text-neutral-300 ───────────────────────── */
.site-footer.sf {
  background-color: var(--surface-dark);        /* #1A1916 */
  color: var(--neutral-300);
  border: 0 solid #e5e7eb;                      /* Tailwind preflight default */
  line-height: 1.5;
}
/* live: focus-visible:outline-none = transparent 2px outline (shows in
   forced-colors mode) on top of the global ring */
.site-footer.sf a:focus-visible,
.sic-partners a:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
/* max-w-container px-4 sm:px-6 lg:px-8 (from .container) + py-16 sm:py-20 */
.site-footer.sf .sf__inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) {
  .site-footer.sf .sf__inner { padding-top: 5rem; padding-bottom: 5rem; }
}

/* grid grid-cols-1 gap-10 md:grid-cols-12 */
.site-footer.sf .sf__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .site-footer.sf .sf__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  /* brand md:col-span-5 */
  .site-footer.sf .sf__brand { grid-column: span 5 / span 5; }
  /* navigation md:col-span-4 md:col-start-7 */
  .site-footer.sf .sf__col--nav { grid-column: span 4 / span 4; grid-column-start: 7; }
  /* legal md:col-span-3 — does not fit after column 10, so (as on live) it
     wraps onto a new row at the left edge */
  .site-footer.sf .sf__col--legal { grid-column: span 3 / span 3; }
}

/* ── Brand column ─────────────────────────────────────────────────────────── */
/* Logo size="lg": h-12 sm:h-16 lg:h-20 w-auto */
.site-footer.sf .sf__brand .site-logo__img,
.site-footer.sf .sf__brand > img {
  display: block;
  height: 3rem;
  width: auto;
  max-width: 100%;
}
@media (min-width: 640px) {
  .site-footer.sf .sf__brand .site-logo__img,
  .site-footer.sf .sf__brand > img { height: 4rem; }
}
@media (min-width: 1024px) {
  .site-footer.sf .sf__brand .site-logo__img,
  .site-footer.sf .sf__brand > img { height: 5rem; }
}

/* mt-5 text-base leading-relaxed text-neutral-400 max-w-sm */
.site-footer.sf .sf__tagline {
  margin: 1.25rem 0 0;
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--neutral-400);
  overflow-wrap: normal;
}

/* mt-6 not-italic text-sm text-neutral-400 leading-relaxed */
.site-footer.sf .sf__address {
  margin: 1.5rem 0 0;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--neutral-400);
}

/* SocialLinks variant="filled": ul flex items-center gap-2;
   a h-11 w-11 bg-neutral-800 text-neutral-200 rounded-md */
.site-footer.sf .sf__social-wrap { margin-top: 1.5rem; }
.site-footer.sf .sf__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer.sf .sf__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background-color: var(--neutral-800);         /* #2A2824 */
  color: var(--neutral-200);                    /* #E8E6E1 */
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .25s;
}
.site-footer.sf .sf__social-link:hover {
  background-color: var(--primary-500);
  color: #fff;
}
.site-footer.sf .sf__social-link:focus-visible { border-radius: 8px; } /* keep rounded-md on the focus ring */
.site-footer.sf .sf__social-link svg {
  display: block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* ── Column headings: font-heading text-sm font-semibold uppercase
      tracking-wider text-white mb-4 ─────────────────────────────────────── */
.site-footer.sf .sf__heading {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: normal;
}

/* Navigation: ul grid grid-cols-2 gap-x-4 gap-y-3 */
.site-footer.sf .sf__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Legal: ul space-y-3 */
.site-footer.sf .sf__legal {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer.sf .sf__legal > li + li { margin-top: 0.75rem; }

/* Links: text-sm text-neutral-300 hover:text-primary-400 transition-colors */
.site-footer.sf .sf__nav a,
.site-footer.sf .sf__legal a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--neutral-300);
  text-decoration: none;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s;
}
.site-footer.sf .sf__nav a:hover,
.site-footer.sf .sf__legal a:hover {
  color: var(--primary-400);
}
/* live focus ring on text links has square corners (no rounded utility) */
.site-footer.sf .sf__nav a:focus-visible,
.site-footer.sf .sf__legal a:focus-visible { border-radius: 0; }

/* ── Bottom bar: mt-12 pt-8 border-t border-neutral-800 flex flex-col
      sm:flex-row items-start sm:items-center justify-between gap-3 ───────── */
.site-footer.sf .sf__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-800);
}
@media (min-width: 640px) {
  .site-footer.sf .sf__bottom { flex-direction: row; align-items: center; }
}
/* text-xs text-neutral-500 */
.site-footer.sf .sf__bottom p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--neutral-500);
}

/* ==========================================================================
   Partner strip (PartnerLogos.tsx): Section background="white" padding="compact"
   ========================================================================== */
.sic-partners {
  background-color: var(--surface);             /* bg-surface #FFF */
  color: var(--neutral-800);
  padding-top: 3rem;                            /* py-12 sm:py-16 */
  padding-bottom: 3rem;
  margin: 0;
}
@media (min-width: 640px) {
  .sic-partners { padding-top: 4rem; padding-bottom: 4rem; }
}
/* h2: text-center text-sm font-semibold uppercase tracking-wider text-neutral-500 mb-10 */
.sic-partners .sic-partners__heading {
  margin: 0 0 2.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--neutral-500);
  overflow-wrap: normal;
}
/* rows: flex items-center justify-center gap-x-10 gap-y-8 sm:gap-x-16 mb-8 last:mb-0
   (no wrap — on narrow screens the logos shrink, exactly as on live) */
.sic-partners .sic-partners__row {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 2.5rem;
  row-gap: 2rem;
  margin: 0 0 2rem;
}
.sic-partners .sic-partners__row:last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .sic-partners .sic-partners__row { column-gap: 4rem; }
}
/* a: opacity-80 hover:opacity-100 transition-all duration-base rounded */
.sic-partners .sic-partners__item {
  opacity: 0.8;
  border-radius: 0.25rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .25s;
}
.sic-partners a.sic-partners__item:hover { opacity: 1; }
/* img: w-auto object-contain h-16 sm:h-20 (main) / h-12 sm:h-14 (supporter) */
.sic-partners .sic-partners__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 4rem;
  object-fit: contain;
  vertical-align: middle;
}
.sic-partners .sic-partners__logo--supporter { height: 3rem; }
@media (min-width: 640px) {
  .sic-partners .sic-partners__logo { height: 5rem; }
  .sic-partners .sic-partners__logo--supporter { height: 3.5rem; }
}
