/* ─── SITE FOOTER ─────────────────────────────────────────────────────────
   Shared by every page. Uses the page's own colour and type tokens, so it
   must load after the page defines :root. Selectors hang off .site-footer
   so older page-level `footer { … }` rules can't reshape it. */

.site-footer {
  display: block;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  text-align: left;
  padding: 64px 80px 0;
  position: relative;
  z-index: 1;
}

/* Some pages style bare h2 / p / ul li / a for their article body; reset
   those here so the footer looks the same everywhere. */
.site-footer h2,
.site-footer p,
.site-footer ul,
.site-footer li { color: inherit; padding: 0; border: 0; position: static; }
.site-footer li::before { content: none; }

.site-footer a { color: var(--white); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--green); text-decoration: none; }

.site-footer .f-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 48px;
}

/* Brand block: the nav's logo lock-up, company details under it. */
.site-footer .f-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}
.site-footer .f-logo img { width: 38px; height: 38px; flex-shrink: 0; }
.site-footer .f-logo .accent { color: var(--green); }
.site-footer .f-logo:hover { color: var(--white); }

.site-footer .f-company,
.site-footer .f-address {
  margin: 0;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.6;
}
.site-footer .f-company { margin-top: 16px; }

.site-footer .f-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--action-fill, #1a4fff);
  font-family: var(--head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}
.site-footer .f-cta:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(26, 79, 255, 0.35); }

/* Certification badges, each labelled so the claim is readable at a glance. */
.site-footer .f-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.site-footer .f-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
}
.site-footer .f-badges img { height: 48px; width: auto; }

/* Link columns */
.site-footer .f-head {
  margin: 0 0 16px;
  font-family: var(--head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.site-footer .f-col ul { margin: 0; padding: 0; list-style: none; }
.site-footer .f-col li { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.5; }
.site-footer .f-col a { overflow-wrap: anywhere; }

.site-footer .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Bottom bar: copyright in the corner, legal links opposite. */
.site-footer .f-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  border-top: 1px solid var(--border);
  padding: 20px 0 24px;
  font-size: 0.85rem;
}
.site-footer .f-copy { margin: 0; }
.site-footer .f-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 1024px) {
  .site-footer { padding: 56px 48px 0; }
  .site-footer .f-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 48px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  }
  .site-footer .f-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .site-footer .f-bottom { flex-direction: column-reverse; align-items: flex-start; }
  /* Comfortable touch targets for stacked links. */
  .site-footer .f-col a,
  .site-footer .f-legal a { display: inline-block; padding: 6px 0; }
  .site-footer .f-col li { margin-bottom: 4px; }
}

@media (max-width: 480px) {
  .site-footer .f-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer a, .site-footer .f-cta { transition: none; }
  .site-footer .f-cta:hover { transform: none; }
}
