/* 1. CONFIGURAÇÕES GERAIS E VARIÁVEIS */
:root {
  --azul-marinho: #0d2c54;
  --azul-secundario: #1f5e9d;
  --cor-acao: #f5a623;
  --texto-claro: #f8f9fa;
  --texto-escuro: #212529;
  --fundo-claro: #ffffff;
  --fundo-cinza: #f4f7f9;
  --borda-cor: #e1e5e9;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
  color: var(--texto-escuro);
  background-color: var(--fundo-claro);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HEADER / CABEÇALHO */
.site-header {
  background-color: var(--fundo-claro);
  padding: 15px 0;
  border-bottom: 1px solid var(--borda-cor);
  position: sticky; /* Faz o header grudar no topo ao rolar */
  top: 0;
  z-index: 1000; /* Garante que o header fique acima de outros elementos */
}

.header-content {
  display: flex;
  justify-content: space-between; /* Alinha o logo à esquerda e o futuro menu à direita */
  align-items: center;
}

.logo-link {
  display: inline-block;
}

.logo-image {
  max-height: 40px; /* AQUI ESTÁ O SEGREDO DA DELICADEZA */
  width: auto; /* A largura se ajusta automaticamente */
  display: block; /* Remove espaços extras abaixo da imagem */
}

.logos-hero {
  padding-top: 15px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--azul-marinho);
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
  color: #555;
}

/* 2. BOTÃO DE AÇÃO (CTA) */
.cta-button {
  display: inline-block;
  background-color: #1f5e9d;
  color: #f8f9fa;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button2 {
  display: inline-block;
  background-color: #1f5e9d;
  color: #f8f9fa;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 50px;
  margin-bottom: 20px;
}

.cta-button3 {
  display: block; /* ocupa a linha inteira */
  width: fit-content; /* só o tamanho do texto */
  margin: 50px auto 20px auto; /* centraliza */
  background-color: #1f5e9d;
  color: #f8f9fa;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button4 {
  /* 1. Magia do Flexbox para alinhamento perfeito */
  display: inline-flex; /* Essencial para alinhar itens internos */
  align-items: center; /* Alinha verticalmente o ícone e o texto */
  justify-content: center; /* Garante a centralização horizontal do conteúdo */
  gap: 10px; /* Cria um espaço de 10px entre o ícone e o texto */

  /* 2. Estilos visuais que você já tinha (com a cor correta do WhatsApp) */
  background-color: #25d366; /* Cor oficial do WhatsApp para mais reconhecimento */
  color: #f8f9fa;
  padding: 15px 30px; /* Bom espaçamento interno */
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem; /* Aumentei um pouco para melhor leitura */
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  border: none; /* Remove qualquer borda indesejada */
}

.cta-button4:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
  background-color: #20b856; /* Escurece um pouco ao passar o mouse */
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 3. SEÇÕES ESPECÍFICAS */

/* HERO */
#hero {
  background-color: var(--fundo-cinza);
  padding: 30px 0;
  text-align: center;
}
#hero .headline {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--azul-marinho);
}
#hero .sub-headline {
  font-size: 1.25rem;
  max-width: 700px;
  font-weight: 500;
  margin: 0 auto 30px auto;
  color: #444;
}
#hero .social-proof-hero p {
  margin-bottom: 15px;
  font-weight: 500;
}
#hero .logos-hero {
  display: flex;
  justify-content: center; /* Centraliza o grupo de logos */
  gap: 20px; /* Reduzir o espaçamento em telas menores pode ajudar */
  align-items: center;
  margin-bottom: 40px;
}

#hero .logos-hero img {
  max-width: 30%; /* Cada logo pode ocupar até 30% do espaço do container */
  height: auto; /* A altura se ajusta automaticamente para manter a proporção */
  opacity: 0.8;
  object-fit: contain;
}

#hero .vsl-container {
  margin: 50px auto 0 auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.social-proof-bar {
  background-color: #e9f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 5px 10px;
  margin: 5px auto 0 auto;
  max-width: 500px;
  font-weight: 300;
  text-align: center;
}

.social-proof-bar p {
  margin: 0;
  font-size: 0.95rem;
}

/* PROVA SOCIAL - ESTUDOS DE CASO (NOVA SEÇÃO) */
#estudos-greener {
  padding: 20px 0;
  background-color: var(--fundo-claro);
  text-align: center;
}

#estudos-greener .section-title {
  color: var(--azul-secundario);
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}

#estudos-greener .section-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--azul-marinho);
  margin-bottom: 40px;
}

/* PLANOS E PREÇOS */
#planos {
  padding: 5px 0;
  padding-bottom: 10px;
  background-color: var(--fundo-cinza);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch; /* Faz os cards terem a mesma altura */
  margin-top: 50px;
}

.pricing-card {
  background-color: var(--fundo-claro);
  border-radius: 12px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 30px;
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-content: space-between; /* Alinha o header no topo e o footer no fundo */
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.pricing-card.recommended {
  border-color: #1f5e9d;
  position: relative;
  transform: scale(1.05); /* Destaca o plano recomendado */
}

.recommended-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f5e9d;
  color: #f4f7f9;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-header h3 {
  font-size: 1.5rem;
  color: var(--azul-marinho);
}

.pricing-header .price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--azul-marinho);
  margin: 10px 0 5px 0;
}

.pricing-header .price span {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  display: block;
}

.pricing-header .price-total {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 25px;
}

.pricing-body {
  flex-grow: 1; /* Empurra o footer para baixo */
  text-align: left;
  border-top: 1px solid var(--borda-cor);
  padding-top: 25px;
}

.access-highlight {
  font-weight: 500;
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  background-color: #eef4fc;
  padding: 8px;
  border-radius: 6px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.pricing-footer {
  margin-top: 30px;
}

.pricing-footer3 {
  margin-top: 55px;
  text-align: center;
}

.pricing-footer .cta-button {
  display: inline-block; /* Permite ajustar ao conteúdo */
  width: auto; /* Remove o 100% */
  margin: 0 auto; /* Centraliza horizontalmente */
  padding: 18px 35px;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}

.pricing-footer3 .cta-button {
  display: inline-block; /* Permite ajustar ao conteúdo */
  width: auto; /* Remove o 100% */
  margin: 0 auto; /* Centraliza horizontalmente */
  padding: 18px 35px;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}

/* 2.1 SEÇÃO DE PROBLEMA (REDESIGN) */
#problema-redesign {
  padding: 80px 0;
  background-color: var(
    --fundo-cinza
  ); /* Fundo mais claro para um visual limpo */
}

#problema-redesign .section-title {
  color: var(--azul-marinho); /* Título escuro no fundo claro */
}

#problema-redesign .section-subtitle {
  color: #555; /* Subtítulo com bom contraste */
  max-width: 700px;
}

.problema-header {
  text-align: center;
  margin-bottom: 60px;
}

.problema-grid-redesign {
  display: grid;
  /* Cria duas colunas em telas maiores */
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 50px; /* Espaçamento vertical e horizontal */
  max-width: 1000px; /* Limita a largura para melhor leitura */
  margin: 0 auto; /* Centraliza o grid */
}

.problema-item {
  display: flex;
  align-items: center; /* Alinha ícone e texto verticalmente */
  gap: 25px;
}

.problema-icon {
  flex-shrink: 0; /* Impede que o ícone encolha */
}

.problema-icon img {
  width: 72px; /* Tamanho controlado para os ícones */
  height: auto;
}

.problema-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul-marinho);
  margin-top: 0;
  margin-bottom: 8px;
}

.problema-text p {
  margin: 0;
  color: #444;
  line-height: 1.6;
}

/* Ajuste para telas menores (tablets e celulares) */
@media (max-width: 768px) {
  .problema-grid-redesign {
    /* Transforma em uma única coluna */
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .problema-item {
    /* Centraliza o conteúdo em telas pequenas */
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* FUNCIONALIDADES */
#funcionalidades {
  padding: 20px 0;
  background-color: var(--fundo-claro);
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
}
.feature-row.reverse {
  flex-direction: row-reverse;
}
.feature-text {
  flex: 1;
}
.feature-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.feature-media {
  flex: 1;
}
.feature-media img {
  display: block; /* Boa prática para imagens */
  width: 100%; /* Estilo padrão: fluido e responsivo */
  max-width: 100%; /* Rede de segurança para nunca estourar o container */
  height: auto;
  margin-left: auto; /* Centraliza a imagem no seu container flex */
  margin-right: auto; /* Centraliza a imagem no seu container flex */
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.features-showcase-card {
  background-color: var(--fundo-claro);
  border-radius: 12px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  padding: 30px 40px;
  max-width: 800px; /* Limita a largura para melhor leitura */
  margin: 40px auto; /* Centraliza o card */
  border-left: 4px solid var(--cor-acao);
}

.features-showcase-header h3 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.3rem;
  color: var(--azul-marinho);
}

.features-showcase-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.features-showcase-body li {
  font-size: 0.95rem;
}

/* DEPOIMENTOS EM VÍDEO */
#depoimentos {
  padding: 60px 0;
}

.video-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.video-card {
  background-color: var(--fundo-claro);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.social-proof-hero {
  text-align: center;
  margin-top: 80px;
}

/* FORNECEDORES */
#fornecedores {
  padding: 60px 0;
  background-color: var(--fundo-cinza);
}

.fornecedores-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.fornecedor-item {
  flex: 0 1 calc(25% - 30px); /* 4 por linha em telas grandes */
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .fornecedor-item {
    flex: 0 1 calc(50% - 30px); /* 2 por linha em telas menores */
  }
}

.fornecedor-item img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.fornecedor-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* GARANTIA */
#garantia {
  padding: 60px 0;
  background-color: var(--fundo-cinza);
}
.guarantee-box {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: var(--fundo-claro);
  padding: 40px;
  border-radius: 8px;
  border-left: 5px solid var(--cor-acao);
}
.guarantee-box h3 {
  margin-top: 0;
}

/* FAQ */
#faq {
  padding: 80px 0;
}
.faq-item {
  border-bottom: 1px solid var(--borda-cor);
  padding: 20px 0;
}
.faq-question {
  cursor: pointer;
  position: relative;
  font-size: 1.2rem;
  font-weight: 700;
  padding-right: 40px;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 10px;
  font-size: 1.8rem;
  transition: transform 0.2s;
  color: var(--azul-secundario);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}
.faq-answer p {
  padding-top: 15px;
  margin: 0;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-item.active .faq-answer {
  max-height: 500px; /* Aumentado para comportar textos maiores */
}

/* FOOTER (SOBRE NÓS) */
#sobre-nos {
  padding: 60px 0;
  background-color: var(--azul-marinho);
  color: var(--texto-claro);
  text-align: center;
}
.founder-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 3px solid var(--cor-acao);
  margin-bottom: 20px;
}
#sobre-nos h3 {
  color: var(--texto-claro);
}
#sobre-nos p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}
.footer-legal {
  border-top: 1px solid #2a4a75;
  padding-top: 30px;
  margin-top: 30px;
  font-size: 0.85rem;
  opacity: 0.7;
}
.footer-legal a {
  color: var(--texto-claro);
}

/* 1. A Pista (Track) dos Logos - Independente da Greener */
.marquee-track-logos {
  display: flex;
  width: fit-content;
  /* Animação independente: Ajuste o '40s' para mais rápido ou mais lento */
  animation: marquee-scroll 40s linear infinite;
  padding: 0 20px;
}

/* 2. O Card do Logo (Tamanho específico) */
#marquee-logos .marquee-item.logo-card {
  width: 200px; /* Largura menor para logos */
  height: 120px; /* Altura menor */
  padding: 15px;
  margin-right: 30px;
  background-color: var(--fundo-claro);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 3. Estilo da Imagem do Logo */
#marquee-logos .marquee-item.logo-card img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%); /* Preto e branco inicial */
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Hover: Fica colorido */
#marquee-logos .marquee-item.logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* 4. RESPONSIVIDADE */

@media (min-width: 993px) {
  .feature-media {
    flex-basis: 650px;
    flex-grow: 0;
    flex-shrink: 0;
  }

  .feature-text {
    flex: 1;
  }
}

@media (max-width: 992px) {
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
  }
  .feature-media {
    margin-top: 30px;
  }

  .feature-text,
  .feature-media {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  #hero .headline {
    font-size: 2.5rem;
  }
  .guarantee-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-button,
  .cta-button2 {
    padding: 15px 25px;
    font-size: 0.95rem;
  }
}

/* 4. Responsividade para Celular */
@media (max-width: 768px) {
  #marquee-logos .marquee-item.logo-card {
    width: 140px;
    height: 90px;
    margin-right: 15px;
  }
}

/* --- ESTILO DO PRELOADER DE VÍDEO --- */
.video-preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d2c54; /* Fundo Azul Azume */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px; /* Mesma borda do vídeo */
}

.loader-logo {
  color: #fff;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: pulse 1.5s infinite;
}

.progress-container {
  width: 60%; /* Largura da barra */
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #f5a623; /* Laranja Azume (Cor de Ação) */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.7);
  /* A transição será controlada via JS para o efeito de velocidade */
}

@keyframes pulse {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
  }
}
