* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6e58;
  --text-color: #003941;
  --light-bg: #f8f9fa;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;

  /* --- NOVO FUNDO --- */
  /* Usamos 0.85 para 85% de opacidade. Ajuste como preferir (ex: 0.7, 0.9) */
  background: rgba(255, 255, 255, 0.521);

  /* Efeito "vidro fosco" que desfoca o conteúdo atrás */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Para funcionar no Safari */
  /* --- FIM --- */

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Números Section */
.numeros {
  background: var(--white);
}

.numeros-container {
  display: grid;
  grid-template-columns: 1fr; /* <-- MUDANÇA AQUI */
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.numeros-texto {
  text-align: center;
}

.numeros-texto p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.numeros-stats {
  display: grid; /* <-- MUDANÇA AQUI */
  grid-template-columns: repeat(3, 1fr); /* <-- ADICIONADO AQUI */
  gap: 1.5rem;
  width: 100%; /* Garante que o grid ocupe todo o espaço */
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-color), #003941);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 110, 88, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 110, 88, 0.3);
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  line-height: 1;
  min-width: 120px;
}

.stat-text {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.3;
  font-weight: 600;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}

.logo img {
  height: 40px; /* <-- AJUSTE A ALTURA AQUI */
  width: auto; /* Mantém a proporção da imagem */
  display: block; /* Evita espaços extras */
}

.login-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem; /* Garantia de tamanho de fonte */
}

.login-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- INÍCIO: ESTILOS DO DROPDOWN --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-icon {
  font-size: 0.8em;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

/* Classe .rotate adicionada/removida via JS */
.dropdown-icon.rotate {
  transform: rotate(180deg);
}


.dropdown-content {
  position: absolute;
  right: 0;
  background-color: var(--white);
  min-width: 240px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  z-index: 1001;
  margin-top: 10px;
  overflow: hidden;
  
  /* Estado inicial (fechado) */
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    max-height 0.3s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* Classe .show adicionada/removida via JS */
.dropdown-content.show {
  max-height: 500px; /* altura suficiente para mostrar o conteúdo */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: background-color 0.3s ease;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
}

.dropdown-content a:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}
/* --- FIM: ESTILOS DO DROPDOWN --- */

/* Hero Section */
.hero {
  margin-top: 80px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
      135deg,
      rgba(0, 57, 65, 0.85),
      rgba(255, 110, 88, 0.75)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e8f4f8" width="1200" height="600"/><circle cx="300" cy="200" r="100" fill="%23d4e9f0" opacity="0.5"/><circle cx="900" cy="400" r="150" fill="%23c1dfe9" opacity="0.4"/></svg>');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 3rem 5%;
}

.hero-content {
  max-width: 800px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-btn {
  background: #3ca356;
  color: var(--white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px #737775;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px #737775;
}

/* Section Styles */
section {
  padding: 5rem 5%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  position: relative;
  padding-bottom: 1.5rem;
  display: block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.section-title.underline-visible::after {
  width: 250px !important;
}

/* Diferencial Section */
.diferencial {
  background: var(--light-bg);
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Como Funciona */
.steps-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* Benefícios */
.beneficios {
  background: var(--light-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit:hover {
  transform: scale(1.05);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Depoimentos */
.testimonials {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.stars {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 600;
}

/* FAQ */
.faq {
  background: var(--light-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--light-bg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  /* Animate both properties with the new easing */
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
  padding: 0 1.5rem;
  will-change: max-height, padding; /* Add this hint */
}

.faq-answer.active {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-icon {
  transition: transform 0.3s ease-in-out;
  color: var(--primary-color);
  will-change: transform; /* Add this hint */
}

.faq-icon.rotate {
  transform: rotate(180deg);
}

/* CTA Final */
.cta-final {
  background: linear-gradient(135deg, var(--text-color), #005a69);
  color: var(--white);
  text-align: center;
}

.cta-final .section-title {
  color: var(--white);
}

.cta-final p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--text-color);
  color: #e0e0e0; /* Cinza claro para texto */
  padding: 4rem 5% 2rem 5%;
}
.footer .container {
  max-width: 1200px; /* Alinha com o conteúdo do site */
  margin: 0 auto;
}
.footer-content {
  display: grid;
  /* Grid responsivo: auto-ajusta as colunas */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-column h3 {
  font-family: "Poppins", sans-serif;
  color: var(--primary-color); /* Cor do logo */
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.footer-column h4 {
  font-family: "Poppins", sans-serif;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-column p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s ease;
}
.footer-social a:hover {
  color: var(--primary-color);
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column ul li {
  margin-bottom: 0.75rem;
}
.footer-column ul a {
  text-decoration: none;
  color: #e0e0e0;
  transition: color 0.3s ease;
}
.footer-column ul a:hover {
  color: var(--white);
}
.footer-divider {
  border-top: 1px solid #005a69; /* Tom mais claro do bg */
  margin: 2rem 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Permite quebra de linha em telas menores */
  gap: 1.5rem; /* Espaçamento quando quebrar a linha */
}
.footer-powered {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.footer-powered img {
  height: 25px;
  /* Se o logo for escuro, adicione: filter: brightness(0) invert(1); */
}
.footer-copyright {
  font-size: 0.9rem;
}
.funciona-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Cria 2 colunas de tamanho igual */
  gap: 3rem; /* Espaço entre as colunas */
  align-items: center; /* Alinha o texto e a imagem verticalmente */
  max-width: 1100px; /* Limita a largura máxima */
  margin: 0 auto; /* Centraliza o container */
}

/* 2. Modificando o .steps-container (Coluna da Esquerda) */
.steps-container {
  display: flex;
  flex-direction: column; /* Empilha os "steps" verticalmente */
  gap: 2rem;

  /* Remove estilos antigos que não são mais necessários */
  justify-content: flex-start;
  flex-wrap: nowrap;
  max-width: 100%;
  margin: 0;
}

/* 3. Modificando CADA .step (para alinhar número e texto) */
.step {
  display: flex; /* Alinha o número e o texto lado a lado */
  align-items: flex-start; /* Alinha no topo */
  gap: 1.5rem; /* Espaço entre o número e o texto */
  text-align: left; /* Garante que o texto fique à esquerda */

  /* Remove estilos antigos */
  flex: 1;
  min-width: auto;
  padding: 0;
}

/* 4. Ajustando o .step-number */
.step-number {
  margin: 0; /* Remove a margem 'auto' antiga */
  flex-shrink: 0; /* Impede que o círculo encolha */
}

/* 5. Estilizando a .funciona-imagem (Coluna da Direita) */
.funciona-imagem img {
  width: 100%;
  height: auto;
  border-radius: 15px; /* Borda arredondada para combinar com o design */
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0);
}

/* --- Estilos do Menu Principal (Desktop) --- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem; /* Espaço entre os links */
}

.main-nav ul a {
  text-decoration: none;
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.main-nav ul a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
}

.main-nav ul a:hover::after {
  width: 100%;
  left: 0;
}

/* --- Estilos do Menu Hamburger e Mobile --- */

/* Container dos botões da direita */
.header-right {
  display: flex;
  align-items: center;
}

/* Botão Hamburger */
.hamburger-btn {
  display: none; /* Escondido por padrão (desktop) */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 1rem; /* Espaço entre o hamburger e o botão de login */
  z-index: 1002; /* Acima do menu mobile */
  margin-left: 1.5rem;
}

.hamburger-btn .line {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animação do Hamburger para "X" */
.hamburger-btn.active .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-btn.active .line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

section {
  scroll-margin-top: 40px; /* ajuste conforme a altura do header */
}

/* --- Lógica de Media Queries (Mobile vs Desktop) --- */

/* PONTO DE QUEBRA: 991px */
/* ESTILOS MOBILE (até 991px) */
@media (max-width: 991px) {
  /* 1. Esconde o menu de desktop e o transforma em menu mobile */
  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* <-- MUDANÇA: Alinha os links à esquerda */
    position: fixed;
    top: 0;
    right: -65vw; /* <-- MUDANÇA: Posição inicial fora da tela */
    width: 65vw; /* <-- MUDANÇA: Largura de 60% da tela */
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    transition: right 0.4s ease-in-out;
    padding: 6rem 2rem 2rem 2rem; /* <-- ADICIONADO: Espaçamento interno */
  }

  /* 2. Estilo do menu QUANDO ABERTO */
  .main-nav.open {
    right: 0; /* Puxa para dentro da tela */
  }

  /* 3. Links dentro do menu mobile */
  .main-nav ul {
    flex-direction: column; /* Links empilhados */
    gap: 2rem;
    margin-top: 7rem;
  }
  .main-nav ul a {
    font-size: 1.5rem; /* Letra maior no mobile */
  }
  .main-nav ul a::after {
    display: none; /* Esconde a linha do hover */
  }

  /* 4. Mostra o botão hamburger */
  .hamburger-btn {
    display: flex;
  }
}

/* ESTILOS DESKTOP (a partir de 992px) */
@media (min-width: 992px) {
  /* 1. Esconde o botão hamburger no desktop */
  .hamburger-btn {
    display: none;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  header {
    padding: 1rem 3%;
  }

  section {
    padding: 3rem 3%;
  }

  .steps-container {
    flex-direction: column;
  }

  /* Footer Responsive */
  .footer {
    text-align: center; /* Centraliza todo o texto do footer no mobile */
  }
  .footer-social {
    justify-content: center; /* Centraliza os ícones sociais */
  }
  .footer-bottom {
    flex-direction: column-reverse; /* Inverte a ordem e empilha */
    justify-content: center;
    text-align: center;
  }
  .numeros-stats {
    grid-template-columns: 1fr;
  }
  .funciona-grid-container {
    /* No mobile, vira 1 coluna só */
    grid-template-columns: 1fr;
  }

  .funciona-imagem {
    /* Joga a imagem para cima do texto no mobile */
    order: 1;
    margin-bottom: 2rem; /* Adiciona um espaço abaixo da imagem */
  }

  /* Ajusta os steps para o mobile */
  .step {
    /* Volta a alinhar o texto abaixo do número */
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .footer .logo img {
    margin: 0 auto; /* Isso centraliza a imagem (que é display: block) */
  }
}
