:root {
  /* Cores */
  --primary-color: #007bff; /* Azul vibrante para botões e links principais */
  --secondary-color: #28a745; /* Verde para destaque ou sucesso (ex: Teste Gratuito) */
  --text-dark: #343a40; /* Texto principal escuro */
  --text-light: #f8f9fa; /* Texto claro (em backgrounds escuros) */
  --bg-light: #ffffff; /* Fundo principal claro */
  --bg-secondary: #f4f7f9; /* Fundo de seções de destaque */
  --border-color: #dee2e6; /* Cor de borda suave */
  --accent-color: #17a2b8; /* Ciano para detalhes ou ícones */
  --color-van: #1a1bad;
  --color-buttom_back:#dedbdb;

  /* Tipografia (Baseado em Sora e Roboto do seu HTML) */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Espaçamento */
  --spacing-xs: 8px;
  --spacing-sm: 15px;
  --spacing-md: 30px;
  --spacing-it: 45px;
  --spacing-pc: 7%;
  --spacing-lg: 60px;
  --spacing-xl: 90px;
  /* --spacing-xs: 120px; */
}

/* --- 1. Reset e Base --- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /*para diferentes seções da página, ao invés do navegador "pular" instantaneamente para a seção clicada, ele vai rolar suavemente até lá, criando uma experiência visual mais agradável. */
}

body {
  font-family: var(--font-body);
  /* color: var(--bg-secondary); */
  color: var(--bg-light);
  /* line-height: 1.6; */
  line-height: 1.3;
  background-color: var(--bg-light);

  /* overflow-x: hidden;
  overflow-y: hidden; */
}

a {
  text-decoration: none;
  /* color: var(--primary-color); */
  color: var(--bg-light);
  transition: color 0.3s ease;
}

a:hover {
  /* color: var(--accent-color); */
  color: var(--primary-color);
}

/* --- 2. Elementos de Layout Comuns --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

.topContainer {
  padding-top: 0 !important;
}

/* 2. Elementos de Layout Comuns - Adicionar o Topo */
.header-bar {
  /* Ocupa a largura total */
  width: 100%;

  /* Configuração Flexbox para alinhar logo e nav */
  display: flex;
  justify-content: space-between; /* Move o logo para a esquerda e o nav para a direita */
  align-items: center; /* Centraliza os itens verticalmente */

  position: relative;
  /* Garante que o container interno não tenha padding excessivo */
  /* padding: var(--spacing-sm) 0;
  max-height: 100px; */
}

.topHeader {
  display: flex;
}

.topHeader:hover {
  transform: translateY(-5px);
}

.topHeader img {
  max-width: 10.5rem;
  width: 100%;
  height: auto;
  display: block;
}

.section {
  padding: var(--spacing-md) 0;
  text-align: center;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  color: var(--bg-light);
  padding-top: 20px;
  margin-bottom: 25px;
  line-height: 1.1;
  /* font-weight: 600; */
}
.page-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    margin-top: auto; /* Empurra o rodapé para baixo dentro do flex container */
    width: 100%;
    margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
}

.section-title {
    color: var(--color-van);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    background-color: var(--color-buttom_back);
    border-radius: 8px;
    line-height: 1.15;
    padding: 6px 10px;
}

.section-content p {
  margin-bottom: 20px;
  font-weight: normal;
}

.section-content h2,
.section-content h3 {
  margin: 50px 0 12px 0;
  line-height: 1.3;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  color: var(--bg-light) !important;
  max-width: 729px;
  margin: 0 auto;
  line-height: 1.3;
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.section-content h3 {
      font-weight: normal;
}

/* Seção de fundo com imagem */
#primeAvalia {
  /* height: 1403.79px; */
  background-color: #ffffff; /* Cor de fallback caso a imagem não carregue */
  background-image: url('../../imgs/quadro-azul.webp'); /* Verifique o CAMINHO */
  background-size: cover; /* Garante que a imagem cubra toda a DIV */
  background-repeat: no-repeat; /* Evita repetição */
  background-position: 58.5423% 57.076%;
  padding-bottom: 40px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* --- 4. Cabeçalho (Header) e Hero Section --- */

.hero {
  /* background-color: var(--bg-secondary); */
  /* min-height: 60vh; */
  display: flex;
  align-items: center;
  padding-top: var(--spacing-md);
  /* padding-bottom: var(--spacing-lg);
    text-align: left; */
}

.hero > .container {
  /* display: flex; <--- REMOVA ESTA LINHA se estiver impedindo o header-bar de ocupar 100% */
  /* Mantenha: */
  flex-wrap: wrap;
  align-items: flex-start; /* Alinhe os itens (topo e conteúdo) no início */
  gap: var(--spacing-lg);
}

.main-nav {
  display: flex;
}

.mobile-menu-btn {
  display: none; /* Escondido no desktop */
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn .bar {
  width: 30px;
  height: 3px;
  background-color: white; /* Ou a cor do seu texto */
  transition: 0.3s;
}

/* .main-nav {
  display: none; /* Escondido por padrão, ajustado para desktop *
  width: 100%;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-size: 0.85rem;
} */

.nav-link {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  margin: 0 var(--spacing-sm);
  /* color: var(--text-dark); */
  display: inline-block;
  padding: 5px 0;
}

/* 1. Rotaciona a barra de cima para baixo (45 graus) */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

/* 2. Esconde a barra do meio */
.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px); /* Opcional: faz ela "sair" para o lado */
}

/* 3. Rotaciona a barra de baixo para cima (-45 graus) */
.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hero-content {
  flex: 1 1 500px;
  padding-right: var(--spacing-md);
}

.main-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-extrabold);
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  /* color: var(--primary-color); */
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  margin-top: 65px;
}

.hero-description {
  font-size: 1.38rem;
  /* color: #495057; */
  margin: var(--spacing-md) auto;
  text-align: center;
  max-width: 1135px;
}

.hero-image {
  flex: 1 1 400px;
  height: 350px;
  background: #e9ecef url('placeholder-hero.svg') no-repeat center / contain; /* Placeholder */
  border-radius: 10px;
}

.page-width-container {
    /* margin: 0 auto; */
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- 3. Botões --- */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  /* text-transform: uppercase; */
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-van);
  color: var(--text-light);
  border-color: var(--color-van);
  line-height: 1.1;
}

.btn-primary:hover {
  /* background-color: #0056b3; */
  background-color: var(--primary-color);
  /* border-color: #0056b3; */
  border-color: var(--primary-color);
  color: var(--text-light);
}

.contato {
  margin-right: 45px !important;
}

.pergFreq {
  font-size: .7rem;
}

.paragraf1, .paragraf1 p { margin-bottom: 20px; line-height: 1.2;} 
.paragraf1 p{ margin-left: 30px;} 
.paragraf2 {margin-bottom: 13px; line-height: 1.2;}
/* .titleSpanBlue {color: var(--color-van); text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7);} */
.titleSpanBlue {color: var(--bg-secondary); text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7); font-weight: 600;}

.botaoMapeamento {
    background-color: orange;
    color: var(--color-van, #1a1bad);
    border-radius: 17px;
    width: fit-content;
    margin: 0 auto;
    padding: 7px 15px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    border: 2px solid orange;
    line-height: 1.1;
}

.botaoMapeamento a {
    color: var(--color-van, #1a1bad);
}

.botaoMapeamento:hover {
    border: 2px solid var(--color-van);
    transform: translateY(-2px);
}

footer {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 0 !important;
  box-sizing: border-box;
  color: #666;
  text-align: center;
  margin-top: auto;
  width: 100%;
  border-radius: 27px;
}

.logo-footer {
  margin-top: 15px;
  display: flex;
  justify-content: left;
}

.logo-footer img {
  max-width: 7rem;
  height: auto;
  margin-bottom: 10px;
}

.main-footer {
  display: flex;
  background-color: var(--color-van);
  color: var(--color-light);
  padding: 0px 20px 10px 20px;
  font-size: 0.9em;
  border-radius: 17px;
}

.main-footer:hover {
  transform: translateY(-5px);
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  /* display: grid;
  justify-content: space-between;
  gap: 15px; */
}

.footer-info {
  max-width: 400px;
}

.footer-nav {
  display: grid;
  min-width: fit-content;
  align-content: center;
  line-height: 1.4;
  margin-top: 16px;
  text-align: left;
}

.footer-nav a {
  margin: 0 10px 8px 0;
}

.footer-info p {
  margin: 5px 0;
}

.social-icons {
  width: 50%;
  display: flex;
}

.social-icons a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: var(--color-secondary);
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 15px;
  font-style: normal;
  font-weight: bold;
}

.footer-nav h4 {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--bg-light);
}

.copyright {
  text-align: center;
  padding-top: 15px;
  font-size: 0.8em;
}

.line2Footer {
  display: flex;
  align-items: center;
}

.line2Footer .fa-brands {
  font-size: 1.3em;
  margin-right: 20px;
}

.line2Footer a {
  font-size: 1.2rem;
}

.line3Footer p,
.line3Footer {
    text-align: left;
    color: var(--bg-light);
}

.line3Footer p:hover {
 color: var(--primary-color);
}

/* --- 12. Media Queries (Responsividade) --- */
@media (max-width: 992px) {  
    .header-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }

    .mobile-menu-btn {
      display: flex !important;
      flex-direction: column;
      gap: 6px;
      background: none;
      border: none;
      cursor: pointer;
      z-index: 1100;
      /* Garante que o botão seja visível contra o fundo */
      padding: 5px;
    }

    .mobile-menu-btn .bar {
      width: 30px;
      height: 3px;
      background-color: white; /* Ajuste se seu header for claro */
    }

  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed; /* Fixa na tela toda */
    top: 120px;
    right: -100%; /* Escondido */
    /*width: 150px; /* Largura da "gaveta" */
    /* height: 100vh; */
    /* background-color: #1a1bad; */
    background-color: #fff;
    z-index: 1050;
    transition: right 0.4s ease;

    /* Alinhamento interno */
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-right: 0;
    border-radius: 20px 0 0 20px;
    padding-top: 10px;
  }

   /* ESTADO ATIVO */
  .main-nav.active {
    right: 0 !important; /* Aparece colado na direita */
  }

  .nav-link {
    color: var(--color-van);
    font-size: 0.75rem;
    display: block;
  }

  .btnDemons {
    font-size: 0.85rem;
    margin: 0 10px 6px;
  }

  .contato {
    margin-right: 0px !important;
  }

  .page-content-wrapper {
    padding: 0 30px;
  }
}
@media (max-width: 800px) {
  .container {
    padding: var(--spacing-sm) 0;
  }

  .section {
    padding: var(--spacing-md) 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero > .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    order: 2; /* Move o conteúdo abaixo da imagem no mobile */
  }

  .hero-image {
    order: 1; /* Move a imagem para o topo no mobile */
    height: 250px;
    margin-bottom: var(--spacing-md);
  }

  .main-title {
    font-size: 2.2rem;
  }

  .segmentation-buttons {
    flex-direction: column;
  }

  .btn-outline {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }

  .steps-container {
    flex-direction: column;
  }

  /* Remove a linha conectora no mobile */
  .steps-container::before {
    display: none;
  }

  .logos-grid {
    /* Para telas menores, volte para 2 ou 1 coluna para evitar quebras */
    grid-template-columns: repeat(2, 1fr); /* 2 colunas no mobile */
  }
}


@media (min-width: 801px) {
  /* .main-nav {
    display: flex;
    justify-content: flex-end; /* Opcional: Garante que os links fiquem na direita *
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: 0;
    position: absolute;
    right: 30%;
    width: auto;
    margin-right: 40px;
  } */

  .hero > .container {
    padding-top: var(--spacing-sm);
    /* padding-bottom: var(--spacing-lg); */
  }
}

@media (max-width: 540px) {
    .btn {
        font-size: .7rem;
        padding: 12px 12px;
    }

    .footer-nav h4 {
      font-size: 1rem;
    }

    .line3Footer p,
    .footer-nav a {
      font-size: .7rem;
    }

  }
  
  @media (max-width: 480px) {
    .topHeader img {
      max-width: 8.5rem;
    }
    
    .page-title {
      font-size: 1.8rem;
    }
    
    .main-footer {
      display: grid;
    }
    
    footer {
      padding: 15px 10px;
      max-width: 100%;
    }

    .logo-footer {
        justify-content: center;
    }
  
    .footer-info, .footer-nav {
      width: 100%;
      text-align: center;
      margin-bottom: 30px;
    }

    .line2Footer {
        display: block;
        margin-top: 20px;
    }

    .line3Footer p {
        text-align: center;
    }

    .footer-nav {
        margin: 0 auto;
    }

    .footer-nav a {
        margin-right: 0px;
    }
}

@media (max-width: 391px) {
    .topHeader img {
        max-width: 7.5rem;
    }

    .section-content p {
      font-size: .85rem;
    }
}

@media (max-width: 376px) {
  .topHeader img {
    max-width: 6rem;
  }

  .botaoMapeamento {
    font-size: 1rem;
  }
}

@media (max-width: 361px) {

  .page-title {
        font-size: 1.3rem;
  }

  .section-content h3 {
    font-size: 1.1rem;
  }

  .line3Footer p, .footer-nav a {
        font-size: .65rem;
  }
}