@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   1. Faixa de Newsletter (#007764)
   ========================================================================== */
footer {
  font-family: "Saira Condensed", sans-serif !important;
}

footer.wp-block-template-part > .wp-block-group:first-child {
  background-color: #007764 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  padding: 1.5rem 2rem !important;
}

/* Texto do Receba Novidades */
footer.wp-block-template-part > .wp-block-group:first-child > p {
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 0 !important;
}

/* Ícone de Envelope antes do texto */
footer.wp-block-template-part > .wp-block-group:first-child > p::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 20px;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Formulário de Newsletter */
footer .newsletter-form {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
}

/* Campos de Texto e E-mail */
footer .newsletter-form input {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #909f9d !important;
  margin: 0 !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  border-radius: 4px 12px 4px 4px !important;
  padding: 0 16px !important;
  height: 40px !important;
  width: 280px !important;
  box-sizing: border-box !important;
  outline: none !important;
}

footer .newsletter-form input::placeholder {
  color: #909f9d !important;
  opacity: 1 !important;
}

/* Botão Enviar */
footer .newsletter-form button {
  background: #082622 !important;
  border: 0 !important;
  border-radius: 4px 12px 4px 4px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: .3px !important;
  font-size: 16px !important;
  height: 40px !important;
  padding: 0 28px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

footer .newsletter-form button:hover {
  background-color: #11423c !important;
}

/* ==========================================================================
   2. Bloco Principal do Rodapé (Fundo Escuro e Informações)
   ========================================================================== */
footer.wp-block-template-part > .wp-block-group.has-dark-background-color {
  background-color: #041714 !important;
  padding-top: 3rem !important;
  padding-bottom: 0 !important;
}

/* Informações Importantes (Centralizado e Compacto) */
footer.wp-block-template-part > .wp-block-group.has-dark-background-color > p {
  margin: 0 auto !important;
  font-size: 13px !important;
  line-height: 20px !important;
  color: #ffffff !important;
  opacity: 0.85 !important;
  max-width: 900px !important;
  text-align: center !important;
}

footer.wp-block-template-part > .wp-block-group.has-dark-background-color > p:first-of-type {
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  opacity: 1 !important;
}

footer.wp-block-template-part > .wp-block-group.has-dark-background-color > p:last-of-type {
  margin-bottom: 3.5rem !important;
}

/* ==========================================================================
   3. Colunas de Navegação e Contato
   ========================================================================== */
footer .wp-block-columns {
  max-width: 1200px !important;
  margin: 0 auto 3rem auto !important;
  gap: 3rem !important;
  display: flex !important;
  justify-content: space-between !important;
}

footer .wp-block-group:nth-child(2) .wp-block-columns .wp-block-column {
  max-width: 200px !important;
}

footer .wp-block-group:nth-child(2) .wp-block-columns {
  max-width: 1000px !important;
}

/* Títulos dos Menus (18px, com Ícones via pseudo-elementos) */
footer .wp-block-columns h4.wp-block-heading {
  font-size: 18px !important;
  line-height: 22px !important;
  color: #ffffff !important;
  text-align: left !important;
  letter-spacing: .5px !important;
  margin: 0 0 16px 0 !important;
  user-select: none !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
}

/* Ícone Institucional (Loja) */
footer .wp-block-columns .wp-block-column:nth-child(1) h4::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7'/%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpath d='M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4'/%3E%3Cpath d='M2 7h20'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7'/%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpath d='M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4'/%3E%3Cpath d='M2 7h20'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Ícone Políticas (Documento) */
footer .wp-block-columns .wp-block-column:nth-child(2) h4::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Ícone Canais de Atendimento (Telefone) */
footer .wp-block-columns .wp-block-column:nth-child(3) h4::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Links das Listas e Parágrafos de Contato */
footer .wp-block-columns ul.wp-block-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer .wp-block-columns ul.wp-block-list li,
footer .wp-block-columns .wp-block-column p {
  font-size: 16px !important;
  line-height: 22px !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  margin: 6px 0 !important;
  white-space: normal !important;
}

footer .wp-block-columns ul.wp-block-list a,
footer .wp-block-columns .wp-block-column p a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

footer .wp-block-columns ul.wp-block-list a:hover,
footer .wp-block-columns .wp-block-column p a:hover {
  text-decoration: underline !important;
  color: var(--wp--preset--color--accent, #438B42) !important;
}

/* ==========================================================================
   4. Faixa Inferior de CNPJ e Logotipo (#082622)
   ========================================================================== */
footer.wp-block-template-part > .wp-block-group.has-dark-background-color > .wp-block-group:last-child {
  background-color: #082622 !important;
  width: calc(100% + 4rem) !important;
  max-width: unset !important;
  margin-left: -2rem !important;
  margin-right: -2rem !important;
  margin-bottom: -1rem !important;
  padding: 12px 18rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

/* Texto do CNPJ */
footer.wp-block-template-part > .wp-block-group.has-dark-background-color > .wp-block-group:last-child p {
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-align: left !important;
  width: auto !important;
}

/* Imagem da Agência Catus */
footer.wp-block-template-part > .wp-block-group.has-dark-background-color > .wp-block-group:last-child figure {
  margin: 8px !important;
  max-width: 112px !important;
}

footer.wp-block-template-part > .wp-block-group.has-dark-background-color > .wp-block-group:last-child img {
  max-width: 112px !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* ==========================================================================
   5. Responsividade Mobile
   ========================================================================== */
@media (max-width: 768px) {
  footer .newsletter-form {
    flex-direction: column !important;
    width: 100% !important;
  }

  footer .newsletter-form input,
  footer .newsletter-form button {
    width: 100% !important;
  }

  footer .wp-block-columns {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  footer.wp-block-template-part > .wp-block-group.has-dark-background-color > .wp-block-group:last-child {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }

  footer.wp-block-template-part > .wp-block-group.has-dark-background-color > .wp-block-group:last-child p {
    text-align: center !important;
  }
}
