/* ════════════════════════════════════════════════════════════════════════
   Shared footer (v2) — single source of truth for the site footer.
   Pairs with template-parts/template-custom-footer-v2.php.
   Extracted from the canonical VERISafe footer so every page renders the
   same footer. Load this AFTER a page's own stylesheet (alongside
   custom-nav-v3.css) so it wins by load order.
   Colours are inlined (navy rgba(15,26,12,1) / green rgba(68,214,44,1)) so
   this file doesn't depend on a page :root defining --navy / --green.
   ════════════════════════════════════════════════════════════════════════ */

/* ── FOOTER ───────────────────────────────── */
footer {
  background: #f8f8f6;
  padding: 56px 60px 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 40px;
}

.footer-heading {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: #5A6A85;
  margin-bottom: 16px;
  text-transform: none;
}

.footer-col a {
  display: block;
  color: rgba(15, 26, 12, 1);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: rgba(68, 214, 44, 1);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(68, 214, 44, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.88;
}

.footer-logo-img {
  height: 110px;
  width: auto;
  display: block;
}

.footer-bar {
  background: rgba(68, 214, 44, 1);
  padding: 14px 60px;
  font-size: 12px;
  color: white;
  text-align: center;
}

/* ── TABLET (≤960px) ──────────────────────── */
@media (max-width: 960px) {
  footer {
    padding: 40px 24px 40px;
    overflow: hidden;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    flex: 1;
  }

  .footer-right {
    align-items: flex-end;
    flex-shrink: 0;
  }

  .footer-bar {
    padding: 14px 24px;
  }
}

/* ── MOBILE (≤480px) ──────────────────────── */
@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    width: 100%;
    justify-items: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-right {
    align-items: center;
    width: 100%;
  }

  .footer-logo-img {
    height: 70px;
  }
}

/* ── LARGE SCREENS (footer type scaling) ──── */
@media (min-width: 1920px) {
  .footer-heading,
  .footer-col a { font-size: 17px; }
  .footer-bar { font-size: 13px; }
}

@media (min-width: 2560px) {
  .footer-heading,
  .footer-col a { font-size: 20px; }
  .footer-bar { font-size: 15px; }
}

@media (min-width: 3840px) {
  .footer-heading,
  .footer-col a { font-size: 24px; }
  .footer-bar { font-size: 18px; }
}
