/* footer */
.footer {
  color: var(--white);
  background: transparent;
}

.footer .pre-footer {
  padding-block: 2rem;
  color: var(--dark);
  border-top: 1px solid var(--gray);
  background: var(--white);
}

.footer p a {
  color: var(--white);
}

/* Newsletter (faixa clara acima do rodapé escuro) */
.newsletter input::placeholder {
  text-align: center;
  color: var(--dark);
}

.newsletter-footer p {
  display: flex;
  gap: 1rem;
}

.newsletter-footer .input-email {
  height: 50px;
  padding: 10px;
  width: 280px;
}

@media (max-width: 768px) {
  .newsletter-footer .input-email {
    padding: 0;
  }
}

@media (min-width: 992px) {
  .newsletter-footer .input-email {
    width: 500px;
  }
}

.wpcf7-spinner {
  display: none;
}

/* =====================================================
   Rodapé principal — BORDÔ #291212 (layout Figma)
   ===================================================== */

.footer-main {
  background: #291212;
  color: #f5f2f2;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
}

.footer-main__container {
  max-width: 1489px;
  margin-left: auto;
  margin-right: auto;
}

/* Figma: selos à esquerda e logo à direita na mesma linha; abaixo, links+redes | slogan */
.footer-main__inner {
  padding-bottom: 2.5rem;
}

.footer-main__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.footer-main__head-left {
  min-width: 0;
  justify-self: start;
}

.footer-main__brand-cell {
  justify-self: end;
  line-height: 0;
}

.footer-main__brand {
  display: inline-block;
  line-height: 0;
}

/* Figma: logo institucional ~191×135 (mesma referência do header) */
.footer-main__brand-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 191px;
  max-height: 135px;
  object-fit: contain;
}

.footer-main__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 600px);
  gap: 2rem 3rem;
  align-items: start;
}

.footer-main__col--left {
  min-width: 0;
}

.footer-main__selos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Figma: ~29–30px entre selos (ex.: 309 − (211 + ~69)) */
  gap: 30px;
  margin: 0;
}

/* Tamanho padrão (4.º certificado ACF ou outros) + selo rodapé tema */
.footer-main__selo-img {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 68.57px;
  max-width: 160px;
  object-fit: contain;
}

/* Figma — ordem dos certificados no ACF: 1, 2, 3 */
.footer-main__selo--cert-1 .footer-main__selo-img {
  width: 68.91px;
  height: 68.57px;
  max-width: none;
}

.footer-main__selo--cert-2 .footer-main__selo-img {
  width: 67.88px;
  height: 68.56px;
  max-width: none;
}

.footer-main__selo--cert-3 .footer-main__selo-img {
  width: 137.13px;
  height: 68.57px;
  max-width: none;
}

/* selo-rodape.png — altura alinhada à faixa; largura pela arte */
.footer-main__selo--rodape .footer-main__selo-img {
  width: auto;
  height: 68.57px;
  max-width: 200px;
}

.footer-main__nav-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.footer-main__nav-list .footer-main__nav-link,
.footer-main__nav-list .footer-main__nav-link:link,
.footer-main__nav-list .footer-main__nav-link:visited {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 36px;
  color: #f5f2f2 !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.footer-main__nav-list .footer-main__nav-link:hover,
.footer-main__nav-list .footer-main__nav-link:focus-visible {
  color: #f5f2f2 !important;
  opacity: 0.85;
}

.footer-main__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-main__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #ffffff !important;
  background: transparent !important;
  border-radius: 0;
  text-decoration: none !important;
  font-size: 1.35rem;
  transition: opacity 0.2s ease;
}

.footer-main__social-link:hover,
.footer-main__social-link:focus-visible {
  opacity: 0.8;
}

.footer-main__col--right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: right;
}

.footer-main__slogan {
  margin: 0;
  max-width: 600px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 80px;
  text-transform: uppercase;
  text-align: right;
  color: #f5f2f2;
}

/* Desktop: frase contínua (quebras do Figma mobile ficam ocultas) */
.footer-main__slogan-br {
  display: none;
}

.footer-main__slogan-line {
  display: inline;
}

.footer-main__bottom {
  width: 100%;
  padding: 1.25rem 1rem;
  background-color: #fff;
  text-align: center;
}

.footer-main__bottom p,
.footer-main__copy-line,
.footer-main__legal {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #291212;
  margin: 0 0 0.75rem;
}

.footer-main__bottom p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  /* Figma mobile: logo → slogan → selos → links → redes (desktop inalterado) */
  .footer-main__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }

  .footer-main__head {
    display: contents;
    margin-bottom: 0;
  }

  .footer-main__body {
    display: contents;
  }

  .footer-main__brand-cell {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    justify-self: unset;
  }

  .footer-main__col--right {
    order: 2;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  .footer-main__head-left {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    justify-self: unset;
  }

  .footer-main__col--left {
    order: 4;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .footer-main__selos {
    justify-content: center;
  }

  .footer-main__nav {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-main__nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 0;
    padding: 0;
  }

  .footer-main__nav-item {
    width: 100%;
    text-align: center;
  }

  .footer-main__social {
    justify-content: center;
    margin: 0;
    width: 100%;
  }

  .footer-main__slogan-br {
    display: block;
  }

  .footer-main__slogan {
    max-width: 22rem;
    font-size: clamp(26px, 7.5vw, 36px);
    line-height: 1.15;
    text-align: center;
  }
}

/* Apoio (componente acima do footer em algumas páginas) */
.apoio picture img {
  padding: 1rem;
  border: 1px solid var(--secondary);
  border-radius: 4px;
}
