/* ==========================================================================
   Rodapé (única fonte de verdade). Fundo verde da marca, ícones sociais sem moldura.
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 0;
  text-align: left;
  background: #0b2c1a;
  color: #d8e6dc;
  font-size: .95rem;
  line-height: 1.6;
}
.site-footer::before { /* filete de topo com as cores das secções */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #f5b800 0 20%, #22a455 20% 40%, #2563eb 40% 60%, #d32f2f 60% 80%, #0b5f3a 80% 100%);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr auto;
  gap: 2.5rem 3rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem 2.25rem;
  box-sizing: border-box;
}
.footer-block { min-width: 0; }
.footer-heading {
  margin: 0 0 .9rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8fb39d;
  text-align: left;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
}

/* marca */
.footer-logo { display: flex; align-items: center; gap: .9rem; }
.footer-logo img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.footer-title { display: block; font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: .01em; }
.footer-tagline { margin: .9rem 0 0; max-width: 30ch; color: #b4cabb; }

/* ligações */
.footer-links a { display: inline-block; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.site-footer a { color: #d8e6dc; text-decoration: none; transition: color .2s ease; }
.footer-links a, .footer-contact a { display: inline; padding: .2rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s cubic-bezier(.22, .8, .24, 1), color .2s ease; }
.footer-links a:hover, .footer-contact a:hover, .footer-links a:focus-visible, .footer-contact a:focus-visible { color: #fff; background-size: 100% 1px; }
.footer-contact { display: flex; flex-direction: column; gap: .15rem; font-style: normal; }
.footer-contact span { display: block; color: #b4cabb; }

/* redes sociais, sem círculo */
.footer-social { display: flex; align-items: center; gap: 1rem; }
.footer-social a { display: block; width: 40px; height: 40px; background: none; border: 0; border-radius: 0; box-shadow: none; transition: transform .3s cubic-bezier(.22, .8, .24, 1), filter .3s ease; }
.footer-social a:hover, .footer-social a:focus-visible { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.footer-social-img { display: block; width: 100%; height: 100%; object-fit: contain; background: none; border: 0; box-shadow: none; }

/* barra inferior */
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: #9db9a7;
}
.footer-bottom a { color: #c5d9cb; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(197, 217, 203, .4); }
.footer-bottom a:hover { color: #fff; text-decoration-color: currentColor; }
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.back-to-top-link { display: inline-flex; align-items: center; gap: .4rem; }
.back-to-top-link svg { transition: transform .3s cubic-bezier(.22, .8, .24, 1); }
.back-to-top-link:hover svg { transform: translateY(-3px); }

.site-footer a:focus-visible { outline: 3px solid #7be0a6; outline-offset: 3px; border-radius: 4px; }

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; padding-top: 2.75rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.25rem 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer *, .site-footer *::before { transition: none !important; }
}
