@font-face {
  font-family: 'Caveat';
  src: url('/assets/fonts/caveat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --lp-bg: #faf9f7;
  --lp-ink: #1c1c1c;
  --lp-muted: #5a5a5a;
  --lp-accent: #c23a24;
  --lp-accent-escuro: #8a2c1c;
  --lp-accent-claro: #f0b8a8;
  --lp-line: #e5e2dd;
  --lp-whatsapp: #25d366;
  --lp-serif: Georgia, 'Times New Roman', serif;
  --lp-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --lp-script: 'Caveat', cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-family: var(--lp-sans);
  line-height: 1.5;
}

h1, h2 { font-family: var(--lp-serif); margin: 0 0 0.5em; }

a { color: inherit; }

/* Eyebrow, etiqueta em maiúsculas acima de títulos de secção, para ar editorial */
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--lp-accent);
  margin-bottom: 0.6rem;
}

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 4rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.55);
}

.hero-conteudo {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}

.hero-conteudo h1 { font-size: 2.2rem; }

.hero-subtitulo { font-size: 1.1rem; margin-bottom: 2rem; }

.formulario-lead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.formulario-lead input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  flex: 1 1 200px;
}

.formulario-lead button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: var(--lp-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  flex: 1 1 100%;
  max-width: 320px;
  margin: 0 auto;
}

.hero-consultor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-consultor-foto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ccc;
  background-size: cover;
  background-position: center;
}

.hero-consultor span { display: block; font-size: 0.85rem; color: #eee; }

/* O que vai receber */
.o-que-vai-receber {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.o-que-vai-receber ul { padding-left: 1.2rem; }
.o-que-vai-receber li { margin-bottom: 0.5rem; }

/* Outros guias */
.outros-guias {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.guia-grelha {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.guia-card {
  display: flex;
  align-items: flex-end;
  min-height: 140px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.guia-card:hover { transform: scale(1.02); }

.guia-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.guia-card--grande { min-height: 260px; }
.guia-card--grande span { font-size: 1.15rem; }

.guia-card span {
  position: relative;
  color: #fff;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: bold;
}

/* Só quero falar */
.so-quero-falar {
  background: #fff;
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.botao-whatsapp {
  display: inline-block;
  background: var(--lp-whatsapp);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  margin: 0.5rem 0;
}

.so-quero-falar .telefone { display: block; color: var(--lp-muted); }

/* Rodapé */
.rodape {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--lp-muted);
}

.rodape-logo {
  height: 40px;
  width: auto;
  border-radius: 4px;
  justify-self: start;
}

.rodape-privacidade { justify-self: center; text-align: center; }
.rodape-legal { justify-self: end; text-align: right; }

@media (max-width: 639px) {
  .rodape { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0.75rem; }
  .rodape-logo, .rodape-privacidade, .rodape-legal { justify-self: center; }
  .hero-split { flex-direction: column; min-height: max(65vh, 460px); }
  .hero-split-titulo { top: 1.25rem; width: calc(100% - 2rem); padding: 1.25rem 1.5rem; }
}

@media (min-width: 640px) {
  .hero-conteudo h1 { font-size: 2.8rem; }
  .formulario-lead button { flex: 0 0 auto; }
}

/* Página de texto (privacidade) */
.pagina-texto {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.pagina-texto h2 { margin-top: 2rem; }

/* Falar com um consultor (CTA a partir do PDF) */
.pagina-falar {
  text-align: center;
}

.formulario-falar {
  margin-top: 1.5rem;
}

.formulario-falar input,
.formulario-falar select {
  border: 1px solid var(--lp-line);
}

/* Hero split (página principal) */
.hero-split {
  display: flex;
  min-height: 90vh;
  position: relative;
  background-size: cover;
  background-position: center;
  filter: saturate(1.25) contrast(1.08);
}

.hero-split-metade {
  flex: 1;
  display: block;
  position: relative;
  cursor: pointer;
}

.hero-split-metade::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.25);
}

.hero-split-titulo {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  z-index: 1;
  max-width: 680px;
  width: calc(100% - 3rem);
  box-sizing: border-box;
  padding: 1.75rem 2rem;
  background: rgba(28, 28, 28, 0.4);
  border-radius: 8px;
}

.hero-split-titulo .eyebrow { color: var(--lp-accent-claro); }
.hero-split-titulo h1 { font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1.12; }
.hero-split-titulo p { font-size: clamp(0.85rem, 1.7vw, 1.1rem); margin-top: 0.6rem; }

/* Alternador Comprador/Vendedor, só CSS */
.alternador-jornada {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.alternador-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.alternador-botoes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.alternador-botao {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--lp-accent);
  border-radius: 4px;
  color: var(--lp-accent);
  font-weight: bold;
  cursor: pointer;
}

#jornada-comprar:checked ~ .alternador-botoes label[for="jornada-comprar"],
#jornada-vender:checked ~ .alternador-botoes label[for="jornada-vender"] {
  background: var(--lp-accent);
  color: #fff;
}

/* Falar já com o consultor da vez, sem formulário — toggle-aware como
   .jornada-estrategia (só o do lado ativo aparece). */
.conectar-agora {
  display: none;
  width: fit-content;
  margin: 0 auto 2rem;
  padding: 0.9rem 1.75rem;
  border-radius: 4px;
  background: var(--lp-whatsapp);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

.conectar-agora:hover { filter: brightness(0.95); }

#jornada-comprar:checked ~ .conectar-agora--comprar { display: block; }
#jornada-vender:checked ~ .conectar-agora--vender { display: block; }

.timeline-comprar, .timeline-vender {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

#jornada-comprar:checked ~ .timeline-comprar { display: block; }
#jornada-vender:checked ~ .timeline-vender { display: block; }

.quebra-imagem.jornada-estrategia { display: none; }
#jornada-comprar:checked ~ .jornada-estrategia--comprar { display: flex; }
#jornada-vender:checked ~ .jornada-estrategia--vender { display: flex; }

.timeline-passo {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--lp-line);
}

.timeline-passo:last-child { border-bottom: none; }

.timeline-icone {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--lp-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-icone-svg { width: 1.7rem; height: 1.7rem; }

.timeline-conteudo h3 { margin: 0 0 0.4rem; font-family: var(--lp-serif); }
.timeline-conteudo p { margin: 0; color: var(--lp-muted); }

.timeline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  background: #fdf1ee;
  border: 1px solid var(--lp-accent-claro);
  border-radius: 8px;
}

.timeline-cta p {
  margin: 0;
  font-family: var(--lp-script);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--lp-ink);
}

.timeline-cta-botao {
  flex: 0 0 auto;
  padding: 0.65rem 1.4rem;
  background: var(--lp-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--lp-sans);
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--lp-accent-escuro), 0 6px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.2s ease;
}

.timeline-cta-botao:hover { opacity: 0.92; }

.timeline-cta-botao:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--lp-accent-escuro), 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* O que o seu agente faz por si, toggle-aware como .jornada-estrategia */
.agente-bloco {
  display: none;
  position: relative;
  min-height: 45vh;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

#jornada-comprar:checked ~ .agente-bloco--comprar { display: flex; }
#jornada-vender:checked ~ .agente-bloco--vender { display: flex; }

.agente-bloco::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.6);
}

.agente-bloco-conteudo {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: #fff;
  text-align: center;
}

.agente-bloco-conteudo h2 { font-size: clamp(1.3rem, 3.5vw, 1.7rem); color: #fff; }
.agente-bloco-conteudo p { color: #f1efe9; margin: 0; }

/* Bloco do agente como botão gigante: clicar revela o mini-formulário,
   tudo em CSS (checkbox + label), sem JavaScript. */
.agente-form-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.agente-bloco-botao {
  display: block;
  cursor: pointer;
}

.agente-bloco-botao-cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 1.75rem;
  background: var(--lp-accent);
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 4px 0 var(--lp-accent-escuro), 0 6px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.agente-bloco-botao:hover .agente-bloco-botao-cta { opacity: 0.92; }

.agente-bloco-formulario {
  display: none;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.agente-form-toggle:checked ~ .agente-bloco-conteudo .agente-bloco-botao { display: none; }
.agente-form-toggle:checked ~ .agente-bloco-conteudo .agente-bloco-formulario { display: flex; }

.agente-bloco-formulario input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--lp-line);
  border-radius: 4px;
  font-size: 1rem;
  flex: 1 1 200px;
}

.agente-bloco-formulario button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: var(--lp-accent);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  flex: 1 1 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* Pedido da brochura de serviços */
.pedido-servicos {
  background: #fff;
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
  padding: 3rem 1.5rem;
  text-align: center;
}

.pedido-servicos h2, .pedido-servicos p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pedido-servicos form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 640px;
  margin: 1.5rem auto 0;
}

.pedido-servicos input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--lp-line);
  border-radius: 4px;
  font-size: 1rem;
  flex: 1 1 200px;
}

.pedido-servicos button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: var(--lp-accent);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  flex: 1 1 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* Guias por tema (página principal), cartões visuais no padrão .guia-card */
.guias-tema {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  text-align: center;
}

/* Carrossel de guias: roda sozinho em CSS puro (sem JS), o trilho tem os
   8 cartões duplicados de seguida para o loop em -50% não se notar.
   Para ao passar o rato/teclado por cima, para se poder ler/clicar. */
.guia-carrossel {
  margin-top: 1.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.guia-carrossel-trilho {
  display: flex;
  gap: 1rem;
  width: max-content;
  text-align: left;
  animation: guia-carrossel-rodar 40s linear infinite;
}

.guia-carrossel:hover .guia-carrossel-trilho,
.guia-carrossel:focus-within .guia-carrossel-trilho {
  animation-play-state: paused;
}

@keyframes guia-carrossel-rodar {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .guia-carrossel-trilho { animation: none; }
}

.guia-card--carrossel {
  flex: 0 0 200px;
  min-height: 180px;
}

@media (min-width: 640px) {
  .guia-card--carrossel { flex: 0 0 240px; min-height: 210px; }
}

/* Quebra de imagem full-bleed (página principal), para dar ritmo visual
   entre secções, com overlay em gradiente por trás do texto */
.quebra-imagem {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.quebra-imagem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0) 25%, rgba(28, 28, 28, 0.78) 100%);
}

.quebra-imagem-conteudo {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
  color: #fff;
  text-align: center;
}

.quebra-imagem .eyebrow { color: var(--lp-accent-claro); }
.quebra-imagem-conteudo h2 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); color: #fff; }
.quebra-imagem-conteudo p { color: #f1efe9; font-size: clamp(0.95rem, 1.8vw, 1.1rem); }

/* Voltar à página principal (usado em /vender e /comprar) */
.hero-voltar {
  display: inline-block;
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.hero-voltar:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .quebra-imagem { min-height: 68vh; }
}
