/* =========================================================
   FAQ - Dedos Verdes Clube
   Arquivo CSS corrigido
   Correção principal: imagem do cabeçalho sem distorção
   ========================================================= */


/* =========================
   Reset básico
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f8f1;
  color: #263326;
  line-height: 1.6;
}


/* =========================
   Container principal
   ========================= */

.faq-container {
  width: 92%;
  max-width: 920px;
  margin: 30px auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}


/* =========================
   Cabeçalho
   ========================= */

.header {
  text-align: center;
  padding: 20px 10px 28px;
  border-bottom: 1px solid #dce8d7;
  margin-bottom: 24px;
}

/*
  CORREÇÃO PRINCIPAL:
  A imagem não será forçada para 200x200, nem para formato quadrado.
  Ela mantém a proporção original do arquivo enviado.
*/

.header img.logo-faq {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto 18px;
  border-radius: 0;
}

/*
  Regra de segurança:
  Caso o HTML ainda tenha uma imagem dentro do .header sem classe,
  isso também evita distorção.
*/

.header img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.header h1 {
  margin: 10px 0 6px;
  color: #2e7d32;
  font-size: 2rem;
  line-height: 1.2;
}

.header h2 {
  margin: 0;
  color: #4f684f;
  font-size: 1.05rem;
  font-weight: 500;
}


/* =========================
   Itens do FAQ
   ========================= */

.faq-item {
  margin-bottom: 14px;
  border: 1px solid #d9e8d2;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.faq-question {
  position: relative;
  padding: 16px 52px 16px 18px;
  background: #e8f5e9;
  color: #1f5f25;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  user-select: none;
}

.faq-question:hover {
  background: #d7efd9;
  color: #174d1b;
}

.faq-question .icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #4caf50;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
}

/*
  Por padrão, deixamos as respostas fechadas.
  O JavaScript pode adicionar a classe .active ao .faq-item.
*/

.faq-answer {
  display: none;
  padding: 18px;
  background: #ffffff;
  color: #2c3b2c;
  border-top: 1px solid #e5efe1;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  background: #cfeccd;
}

.faq-item.active .faq-question .icon {
  background: #2e7d32;
}

/*
  Caso seu JavaScript use classe .open em vez de .active,
  esta regra garante compatibilidade.
*/

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question {
  background: #cfeccd;
}

.faq-item.open .faq-question .icon {
  background: #2e7d32;
}

.faq-answer p {
  margin: 0 0 14px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}


/* =========================
   Botões de compartilhamento
   ========================= */

.share-buttons {
  width: 92%;
  max-width: 920px;
  margin: 24px auto;
  padding: 22px;
  background: #ffffff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.share-buttons h3 {
  margin: 0 0 16px;
  color: #2e7d32;
  font-size: 1.2rem;
}

.share-btn {
  display: inline-block;
  margin: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.share-btn.whatsapp {
  background: #25d366;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.copy-link {
  background: #4caf50;
}


/* =========================
   Bloco da pesquisa
   ========================= */

.pesquisa-wrapper {
  width: 92%;
  max-width: 920px;
  margin: 24px auto;
  padding: 24px;
  background: #e8f5e9;
  border: 1px solid #cfe8cf;
  border-radius: 16px;
  text-align: center;
}

.pesquisa-wrapper p {
  margin: 0 0 16px;
  color: #275c2b;
  font-size: 1.05rem;
  font-weight: 600;
}

.btn-pesquisa {
  display: inline-block;
  padding: 13px 22px;
  background: #2e7d32;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-pesquisa:hover {
  background: #256728;
  transform: translateY(-2px);
}


/* =========================
   Rodapé
   ========================= */

footer {
  width: 92%;
  max-width: 920px;
  margin: 30px auto 90px;
  padding: 22px;
  text-align: center;
  color: #4f684f;
  font-size: 0.95rem;
}

footer p {
  margin: 6px 0;
}

.footer-marca {
  color: #2e7d32;
  font-weight: 700;
}


/* =========================
   Botão flutuante WhatsApp
   ========================= */

/*
  O botão está com style inline no HTML.
  Esta regra abaixo serve como reforço caso futuramente
  você remova o style inline e use uma classe.
*/

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: #ffffff;
}


/* =========================
   Acessibilidade e foco
   ========================= */

a:focus,
button:focus,
.faq-question:focus {
  outline: 3px solid rgba(76, 175, 80, 0.45);
  outline-offset: 3px;
}


/* =========================
   Responsividade
   ========================= */

@media (max-width: 768px) {
  .faq-container,
  .share-buttons,
  .pesquisa-wrapper,
  footer {
    width: 94%;
  }

  .faq-container {
    padding: 18px;
    margin-top: 18px;
  }

  .header {
    padding: 16px 6px 24px;
  }

  .header h1 {
    font-size: 1.65rem;
  }

  .header h2 {
    font-size: 0.98rem;
  }

  .faq-question {
    padding: 15px 48px 15px 15px;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 16px;
  }

  .share-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 8px auto;
  }

  .btn-pesquisa {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  body {
    line-height: 1.55;
  }

  .faq-container {
    padding: 14px;
    border-radius: 12px;
  }

  .header h1 {
    font-size: 1.45rem;
  }

  .header h2 {
    font-size: 0.92rem;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .faq-question .icon {
    right: 14px;
    width: 24px;
    height: 24px;
    font-size: 1.05rem;
  }

  .pesquisa-wrapper,
  .share-buttons {
    padding: 18px;
  }

  footer {
    margin-bottom: 90px;
    font-size: 0.9rem;
  }
}


/* =========================
   Impressão
   ========================= */

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .faq-container,
  .share-buttons,
  .pesquisa-wrapper,
  footer {
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
  }

  .share-buttons,
  .pesquisa-wrapper {
    display: none;
  }

  .faq-answer {
    display: block !important;
  }

  .faq-question .icon {
    display: none;
  }
}

