/* =========================
   FOOTER — Mobile First
========================= */

.footer {
  background-color: #2b2b2b;
  color: #cccccc;
  padding: var(--space-12) 0 var(--space-8);
}

/* --- Linha principal: logo + info + ícones sociais --- */
.footer__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

/* Logo */
.footer__logo {
  font-family: var(--font-logo);
  font-size: var(--fs-2xl);
  color: var(--primary-color);
  text-decoration: none;
  line-height: 1;
}

/* Tagline abaixo do logo */
.footer__tagline {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: #aaaaaa;
  line-height: 1.6;
  max-width: 280px;
}

/* --- Bloco de informações: horário, pagamento, endereço --- */
.footer__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.footer__info-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-2);
  letter-spacing: 0.04em;
}

.footer__info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__info-list li,
.footer__info-address {
  font-size: var(--fs-sm);
  color: #aaaaaa;
  line-height: 1.6;
}

/* --- Ícones das redes sociais --- */
.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  transition:
    background-color var(--transition-fast) ease,
    transform var(--transition-fast) ease;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  outline: none;
}

.footer__social-link img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* --- Divisor --- */
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-6);
}

/* --- Rodapé inferior: copyright + política --- */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: #a0a0a0; /* era #888888 — ratio 3.98:1, abaixo de 4.5:1 WCAG AA; #a0a0a0 = 5.4:1 */
}

.footer__privacy {
  font-size: var(--fs-xs);
  color: #a0a0a0; /* idem */
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast) ease;
}

.footer__privacy:hover,
.footer__privacy:focus-visible {
  color: var(--primary-color);
  outline: none;
}

/* --- Assinatura do desenvolvedor --- */
.footer__credit {
  font-size: var(--fs-xs);
  color: #a0a0a0;
}

/* Nos footers simplificados (contato, avaliar, política de privacidade) a
   assinatura vem como um <p> logo abaixo do copyright — precisa de um
   respiro, já que o reset zera a margem padrão de parágrafos. */
.pp-footer .footer__credit,
.ct-footer .footer__credit {
  display: block;
  margin-top: var(--space-2);
}

.footer__credit-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: #d9d9d9; /* leve contraste sobre o #a0a0a0 ao redor, indica que é um link */
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast) ease;
}

.footer__credit-link:hover,
.footer__credit-link:focus-visible {
  color: var(--primary-color);
  outline: none;
}

.footer__credit-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* =========================
   BOTÃO FLUTUANTE WHATSAPP
========================= */

.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition:
    transform var(--transition-fast) ease,
    box-shadow var(--transition-fast) ease;
  text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  outline: none;
}

.whatsapp-float:active {
  transform: scale(1);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

/* =========================
   DESKTOP (≥ 768px)
========================= */
@media (min-width: 768px) {
  .footer__main {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-10);
  }

  .footer__info {
    flex-direction: row;
    gap: var(--space-10);
    flex-wrap: wrap;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
  }

  .footer__bottom .footer__copy::after {
    content: "|";
    margin-left: var(--space-4);
    color: #555555;
  }

  .footer__bottom .footer__credit::before {
    content: "|";
    margin-right: var(--space-4);
    color: #555555;
  }
}
