/* =========================================================
   VARIÁVEIS / BASE
   ========================================================= */
:root {
  --fundo: #0a140f;
  --fundo-alt: #0d1a13;
  --verde-300: #86efac;
  --verde-400: #4ade80;
  --verde-500: #22c55e;
  --verde-600: #16a34a;

  --texto: #f3f6f4;
  --texto-suave: rgba(243, 246, 244, 0.68);
  --texto-fraco: rgba(243, 246, 244, 0.45);
  --borda: rgba(255, 255, 255, 0.1);
  --borda-forte: rgba(255, 255, 255, 0.18);

  --raio: 8px;
  --largura-max: 1140px;
  --fonte: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --fonte-display: "Fraunces", Georgia, serif;
  --fonte-mono: "JetBrains Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fonte);
  color: var(--texto-suave);
  background-color: var(--fundo);
  background-image: linear-gradient(rgba(74, 222, 128, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  color: var(--texto);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1, h2 {
  font-family: var(--fonte-display);
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
  text-align: center;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

.container {
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 0 20px;
}

.secao {
  padding: 72px 0;
  border-top: 1px solid var(--borda);
}

.secao:first-of-type {
  border-top: none;
}

.subtitulo-secao {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--texto-fraco);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--verde-400);
  margin-bottom: 10px;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--verde-500);
  opacity: 0.6;
}

#servicos .container > .eyebrow,
#como-funciona .container > .eyebrow,
#depoimentos .container > .eyebrow,
#faq .container > .eyebrow {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* =========================================================
   NÚMEROS DECORATIVOS DE SEÇÃO
   ========================================================= */
.secao-numerada {
  position: relative;
  overflow: hidden;
}

.numero-decorativo {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: clamp(5rem, 4rem + 6vw, 9rem);
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.secao-numerada > .container {
  position: relative;
  z-index: 1;
}

/* =========================================================
   ANIMAÇÃO DE ENTRADA (SCROLL REVEAL)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   MICROINTERAÇÕES (seta nos botões, scroll do hero)
   ========================================================= */
.seta {
  display: inline-block;
  transition: transform 0.25s ease;
}

.botao:hover .seta {
  transform: translateX(5px);
}

.hero-scroll {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  align-self: center;
  margin: 18px auto;
  color: var(--texto-fraco);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}

.hero-scroll-seta {
  animation: flutuar 1.8s ease-in-out infinite;
  font-size: 1.1rem;
  color: var(--verde-400);
}

@keyframes flutuar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-seta {
    animation: none;
  }
}

/* =========================================================
   BOTÕES
   ========================================================= */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.botao-primario {
  background: var(--verde-500);
  color: #06120b;
}

.botao-primario:hover {
  background: var(--verde-400);
}

.botao-discreto {
  background: transparent;
  color: var(--texto-suave);
  border-color: var(--borda-forte);
}

.botao-discreto:hover {
  border-color: var(--verde-400);
  color: var(--verde-400);
}

.botao-pequeno {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.botao-grande {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.botao-header {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* =========================================================
   CABEÇALHO (não fixo — rola junto com a página)
   ========================================================= */
.cabecalho {
  padding: 8px 0;
}

.cabecalho-conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.cabecalho-botoes {
  display: flex;
  gap: 10px;
}

@media (max-width: 420px) {
  .cabecalho-botoes { gap: 6px; }
  .cabecalho-botoes .botao-header { padding: 8px 12px; font-size: 0.8rem; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--texto);
  font-size: 1.05rem;
}

.logo-icone {
  color: var(--verde-500);
  width: 24px;
  height: 24px;
  display: inline-flex;
}

.logo-icone svg {
  width: 100%;
  height: 100%;
}

/* =========================================================
   ABERTURA (tela inicial: texto e indicadores)
   ========================================================= */
.abertura {
  position: relative;
  overflow: hidden;
}

.abertura-conteudo {
  padding: 64px 20px 120px;
}

.abertura-conteudo h1 {
  text-align: left;
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.4rem);
  max-width: 980px;
  margin: 0 0 16px;
}

.abertura-subtitulo {
  text-align: left;
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--texto-suave);
}

.abertura-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stat-painel {
  border: 1px solid var(--borda-forte);
  border-radius: 4px;
  padding: 12px 20px;
  min-width: 130px;
  background: rgba(7, 20, 15, 0.72);
}

.stat-painel strong {
  display: block;
  font-family: var(--fonte-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.2;
}

.stat-painel small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texto-fraco);
}

.stat-painel-principal {
  border-color: var(--verde-500);
  background: rgba(22, 60, 38, 0.75);
}

.stat-painel-principal strong {
  font-size: 2.6rem;
  color: var(--verde-400);
}

/* Indicador de rolagem, fixo na base da tela inicial */
.abertura .hero-scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0 auto;
}

/* =========================================================
   SEÇÃO DO MAPA (mapa de fundo, texto sobreposto)
   ========================================================= */
.mapa-secao {
  position: relative;
  min-height: max(580px, 85vh);
  overflow: hidden;
  border-top: 1px solid var(--borda);
}

/* Camada 0: o mapa, ocupando a seção inteira como fundo */
.mapa-secao-mapa {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mapa-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.9), transparent);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
  pointer-events: none;
  z-index: 1;
  animation: varrer 7s linear infinite;
}

@keyframes varrer {
  0% {
    top: 0%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mapa-scanline {
    animation: none;
    opacity: 0;
  }
}

/* Camada 1: degradê escuro, mais forte perto do texto, suave nas bordas */
.mapa-secao-degrade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 62% at 24% 32%,
    rgba(7, 20, 15, 0.95) 0%,
    rgba(7, 20, 15, 0.82) 32%,
    rgba(7, 20, 15, 0.42) 58%,
    rgba(7, 20, 15, 0) 80%
  );
}

/* Camada 2: legendas técnicas no canto do mapa */
.mapa-tecnico {
  position: absolute;
  bottom: 10px;
  z-index: 3;
  font-family: var(--fonte-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(74, 222, 128, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.mapa-tecnico-esq {
  left: 12px;
}

.mapa-tecnico-dir {
  right: 12px;
  display: flex;
  align-items: center;
}

.mapa-escala-barra {
  display: inline-block;
  width: 36px;
  height: 7px;
  border-left: 1px solid rgba(74, 222, 128, 0.75);
  border-right: 1px solid rgba(74, 222, 128, 0.75);
  border-bottom: 1px solid rgba(74, 222, 128, 0.75);
  margin-right: 6px;
}

/* Camada 3: título e texto da seção, por cima do mapa */
.mapa-secao-conteudo {
  position: relative;
  z-index: 4;
  padding: 56px 20px 32px;
}

.mapa-secao-conteudo h2 {
  text-align: left;
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.2rem);
  max-width: 640px;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.mapa-secao-texto {
  max-width: 480px;
  margin: 0;
  color: var(--texto-suave);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* =========================================================
   SERVIÇOS
   ========================================================= */
.grade-servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--borda);
  border: 1px solid var(--borda);
}

.card-servico {
  background: var(--fundo);
  padding: 32px 28px;
  transition: background 0.2s ease;
}

.card-servico:hover {
  background: var(--fundo-alt);
}

.icone-servico {
  width: 30px;
  height: 30px;
  color: var(--verde-400);
  margin-bottom: 18px;
}

.icone-servico svg {
  width: 100%;
  height: 100%;
}

.card-servico h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.card-servico p {
  color: var(--texto-fraco);
  margin: 0;
  font-size: 0.92rem;
}

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.linha-tempo {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

.linha-tempo li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--borda);
}

.linha-tempo li:first-child {
  padding-top: 0;
}

.linha-tempo li:last-child {
  border-bottom: none;
}

.linha-tempo-numero {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--borda-forte);
  color: var(--verde-400);
  font-family: var(--fonte-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linha-tempo h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.linha-tempo p {
  margin: 0;
  color: var(--texto-fraco);
  font-size: 0.95rem;
}

/* =========================================================
   MAPA
   ========================================================= */
.mapa-container {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: transparent;
}

/* Marcador: alfinete de mapa, tamanho proporcional ao número de projetos */
.marcador-cidade {
  display: flex;
  width: 100%;
  height: 100%;
  color: var(--verde-400);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.65));
  transition: filter 0.15s ease, transform 0.15s ease;
}

.marcador-cidade svg {
  width: 100%;
  height: 100%;
  display: block;
}

.leaflet-marker-icon:hover .marcador-cidade {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75)) brightness(1.25);
  transform: scale(1.08);
}

/* Balão ao passar o mouse/tocar: "Nome da cidade — X projetos" */
.leaflet-tooltip.tooltip-cidade {
  background: var(--fundo-alt);
  color: var(--texto);
  border: 1px solid var(--borda-forte);
  font-family: var(--fonte-mono);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 4px;
}

.leaflet-tooltip.tooltip-cidade::before {
  border-top-color: var(--borda-forte);
}

/* =========================================================
   DEPOIMENTOS
   ========================================================= */
.grade-depoimentos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--borda);
  border: 1px solid var(--borda);
}

.card-depoimento {
  background: var(--fundo);
  padding: 28px;
}

.card-depoimento p.texto-depoimento {
  font-family: var(--fonte-display);
  font-style: italic;
  color: var(--texto);
  font-size: 1.05rem;
}

.card-depoimento .autor-nome {
  font-weight: 700;
  color: var(--texto);
  font-size: 0.92rem;
}

.card-depoimento .autor-cidade {
  font-size: 0.82rem;
  color: var(--verde-400);
}

/* =========================================================
   SOBRE
   ========================================================= */
.sobre-conteudo {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.sobre-foto {
  width: 120px;
  flex: none;
}

.foto-placeholder {
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--borda-forte);
}

.sobre-formacao {
  color: var(--verde-400);
  font-weight: 600;
  font-size: 0.88rem;
}

.sobre-texto p {
  color: var(--texto-fraco);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 760px) {
  .sobre-conteudo {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  .sobre-texto .eyebrow,
  .sobre-texto p {
    margin-left: 0;
  }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-lista {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--borda);
}

.faq-item:first-child {
  border-top: 1px solid var(--borda);
}

.faq-pergunta {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: var(--fonte);
}

.faq-pergunta .faq-icone {
  flex: none;
  transition: transform 0.2s ease;
  color: var(--verde-400);
  font-size: 1.1rem;
  font-weight: 400;
}

.faq-item.aberto .faq-pergunta .faq-icone {
  transform: rotate(45deg);
}

.faq-resposta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-resposta-interno {
  padding: 0 4px 20px;
  color: var(--texto-fraco);
  font-size: 0.95rem;
}

/* =========================================================
   CHAMADA FINAL
   ========================================================= */
.faixa-cta {
  text-align: center;
}

.faixa-cta-conteudo h2 {
  color: var(--texto);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.rodape {
  padding: 36px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--texto-fraco);
  border-top: 1px solid var(--borda);
}

.rodape p {
  margin: 4px 0;
}

.rodape-nome {
  color: var(--texto);
  font-weight: 700;
  font-size: 1rem;
}

.rodape a {
  color: var(--verde-400);
  text-decoration: none;
}

.rodape a:hover {
  text-decoration: underline;
}

.rodape-redes {
  margin-top: 14px;
}

.rodape-vendedor {
  margin-top: 18px;
}

.rodape a.botao {
  color: var(--texto-suave);
}

.rodape a.botao:hover {
  color: var(--verde-400);
  text-decoration: none;
}

.rodape-social {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borda-forte);
  border-radius: 4px;
}

.rodape-social svg {
  width: 18px;
  height: 18px;
}

.rodape a.rodape-social:hover {
  text-decoration: none;
  border-color: var(--verde-400);
}

.rodape a.rodape-social-inativo {
  cursor: default;
  opacity: 0.55;
}

.rodape a.rodape-social-inativo:hover {
  border-color: var(--borda-forte);
}

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */
.whatsapp-flutuante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #06120b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 600;
  animation: pulsar 2.4s infinite;
}

.whatsapp-flutuante svg {
  width: 28px;
  height: 28px;
}

@keyframes pulsar {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
