/* ==============================================================
   FOOTER + BOTÃO FLUTUANTE DO WHATSAPP
   ============================================================== */

.site-footer {
  padding: 72px var(--gutter) 32px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid rgba(17, 20, 17, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(17, 20, 17, 0.12);
}

.footer-brand .site-logo {
  margin-bottom: 20px;
}

.site-logo-img--footer {
  height: 84px;
}

.footer-brand p {
  max-width: 340px;
  margin: 0;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

.footer-col h4 {
  margin: 0 0 18px;
  color: var(--olive);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 200ms ease;
}

.footer-col a:hover {
  color: var(--terracotta);
}

/* ---------- Contato: ícone · rótulo · valor ---------- */

.footer-contact {
  gap: 12px;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

.footer-contact-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--olive);
  background: rgba(115, 123, 62, 0.12);
}

.footer-contact-icon svg {
  width: 16px;
  height: 16px;
}

.footer-contact-label {
  color: var(--muted);
  font-weight: var(--fw-semibold);
}

.footer-contact li > a,
.footer-contact li > span:last-child {
  color: var(--ink);
  font-weight: var(--fw-medium);
}

/* ---------- Linha final ---------- */

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-regular);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
}

.footer-bottom p {
  margin: 0;
}

.footer-credit {
  color: var(--terracotta);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.footer-credit:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- WhatsApp flutuante ---------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transition: transform 260ms var(--ease-out);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ==============================================================
   RESPONSIVO
   ============================================================== */

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-col a,
  .whatsapp-float {
    transition: none;
  }
}
