/* Cores da marca: troque aqui e vale para a página toda. */
:root {
  --fundo: #061033;
  --fundo-card: #0e1b45;
  --campo: #0a1438;
  --dourado: #c4a265;
  --texto: #f4efe6;
  --texto-suave: #b8bfd4;
  --borda: #24336b;
  --borda-campo: #33437d;
  --whats: #25d366;
  --largura: 1080px;
  --lateral: max(20px, calc((100% - var(--largura)) / 2));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font: 16px/1.55 system-ui, "Segoe UI", Arial, sans-serif;
  background: var(--fundo);
  color: var(--texto);
  padding-bottom: calc(76px + env(safe-area-inset-bottom)); /* espaço da barra fixa no celular */
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; font-weight: 600; overflow-wrap: break-word; }
h1 { font-size: clamp(30px, 6vw, 54px); }
h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 6px; }
a { color: var(--dourado); }
img { display: block; max-width: 100%; }

section, header, footer { padding: 48px var(--lateral); }
.sem-topo { padding-top: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  background: var(--dourado);
  color: var(--fundo);
  border: 1px solid var(--dourado);
  border-radius: 10px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, .opcao:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; }
.btn.vazado { background: transparent; color: var(--dourado); }
.btn.bloco { display: block; width: 100%; margin-top: 12px; }

/* ---------- Topo ---------- */
.topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.logo { font: 700 24px Georgia, serif; color: var(--dourado); white-space: nowrap; }
.logo small { font: 12px system-ui, sans-serif; letter-spacing: 2px; color: var(--texto-suave); }
.btn-topo { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 32px; align-items: center; }
.chamada { color: var(--dourado); margin-bottom: 10px; }
.texto-apoio { color: var(--texto-suave); margin: 14px 0 22px; max-width: 52ch; }
.centro { text-align: center; margin-left: auto; margin-right: auto; }

.antes-depois { position: relative; height: clamp(240px, 70vw, 380px); border-radius: 16px; overflow: hidden; border: 1px solid var(--borda); }
.lado { position: absolute; inset: 0; }
.lado img { width: 100%; height: 100%; object-fit: cover; }
.lado-antes .provisorio { background: linear-gradient(135deg, #ddd3c6, #b7ab9c); color: #3a342c; justify-content: flex-start; }
.lado-depois { clip-path: inset(0 0 0 50%); }
.lado-depois .provisorio { background: linear-gradient(135deg, #12307a, #061033); justify-content: flex-end; }
.antes-depois .provisorio { height: 100%; align-items: flex-end; padding: 16px; border-radius: 0; margin: 0; }
.divisor { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1px; background: var(--dourado); pointer-events: none; }
#comparar { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; touch-action: pan-y; }

/* Bloco cinza no lugar de uma foto que ainda não existe */
.provisorio {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 150px; padding: 8px; border-radius: 12px; margin-bottom: 12px;
  background: linear-gradient(135deg, #1b2d6b, #0a1438); color: var(--texto-suave); font-size: 13px;
}

/* ---------- Cards e grades ---------- */
.grade { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; }
.card { background: var(--fundo-card); border: 1px solid var(--borda); border-radius: 16px; padding: 20px; }
.diferenciais { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.diferenciais .card { padding: 16px; }

.ambientes { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.ambiente { padding: 0; overflow: hidden; }
.ambiente .foto { aspect-ratio: 4 / 3; }
.ambiente .foto img { width: 100%; height: 100%; object-fit: cover; }
.ambiente .provisorio { height: 100%; margin: 0; border-radius: 0; }
.ambiente figcaption { font: 600 18px Georgia, serif; padding: 12px 16px 14px; }

.depoimentos blockquote { font-style: normal; }
.depoimentos cite { display: block; margin-top: 12px; color: var(--texto-suave); font-style: normal; }
.depoimentos cite::before { content: "— "; }

.final { text-align: center; }
.rodape { color: var(--texto-suave); font-size: 14px; border-top: 1px solid var(--borda); overflow-wrap: anywhere; }

/* ---------- Quiz ---------- */
.quiz { max-width: 720px; margin: auto; padding: 28px; }
#quiz-conteudo { margin-top: 24px; }
.progresso { height: 4px; background: var(--borda); border-radius: 4px; }
.progresso i { display: block; height: 100%; width: 25%; background: var(--dourado); border-radius: 4px; transition: width .3s; }
.opcoes { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.opcoes > :last-child:nth-child(odd) { grid-column: 1 / -1; } /* número ímpar de opções: a última ocupa a linha toda */
.opcao {
  background: var(--fundo-card); border: 1px solid var(--borda); border-radius: 14px; color: var(--texto);
  padding: 18px 10px; font-family: inherit; font-size: 16px; line-height: 1.3; cursor: pointer; min-height: 64px;
}
.opcao:hover { border-color: var(--dourado); }
[data-voltar] { margin-top: 18px; }
.pacote { margin-bottom: 12px; }
.pacote.destaque { border-color: var(--dourado); }
.pacote .texto-apoio { margin: 0 0 8px; }
.pacote strong { color: var(--dourado); }

/* ---------- Formulários ---------- */
.formulario input:not([type=checkbox]), .formulario select {
  display: block; width: 100%; padding: 14px; margin-bottom: 10px;
  border-radius: 10px; border: 1px solid var(--borda-campo); background: var(--campo); color: var(--texto);
  font-family: inherit; font-size: 16px; /* 16px evita o zoom automático do iPhone */
}
.formulario select { text-overflow: ellipsis; }
.aceite { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--texto-suave); cursor: pointer; }
.aceite input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--dourado); }

/* Campo anti-robô: fora da tela e sem ocupar espaço */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pop-up ---------- */
dialog {
  border: 1px solid var(--dourado); border-radius: 16px; background: var(--fundo-card); color: var(--texto);
  padding: 0; width: min(92vw, 420px); max-height: 90dvh; margin: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.popup-caixa { position: relative; padding: 28px 24px 24px; }
.popup-caixa h3 { padding-right: 32px; }
.popup-caixa .texto-apoio { margin: 0 0 16px; }
.fechar { position: absolute; top: 6px; right: 10px; width: 40px; height: 40px; background: none; border: 0; color: var(--dourado); font-size: 28px; line-height: 1; cursor: pointer; }

/* ---------- Barra fixa (celular) ---------- */
.barra-fixa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--fundo); border-top: 1px solid var(--borda); transition: transform .3s;
}
.barra-fixa.escondida { transform: translateY(110%); }
.barra-fixa .btn { flex: 1; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.btn-whats { flex: 0 0 auto !important; background: var(--whats); border-color: var(--whats); color: #fff; }

/* ---------- Páginas de texto (política de privacidade) ---------- */
.pagina-texto { padding-bottom: 0; }
.pagina-texto .topo { flex-wrap: wrap; }
.pagina-texto .logo { text-decoration: none; }
.texto-legal { max-width: 760px; margin: 0 auto; padding: 24px 20px 56px; overflow-wrap: break-word; }
.texto-legal h1 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 8px; }
.texto-legal h2 { font-size: 22px; margin: 36px 0 12px; }
.texto-legal p, .texto-legal ul { margin-bottom: 14px; }
.texto-legal ul { padding-left: 22px; }
.texto-legal li { margin-bottom: 6px; }
.texto-legal .atualizacao { color: var(--texto-suave); font-size: 14px; margin-bottom: 28px; }

/* ---------- Telas pequenas ---------- */
@media (max-width: 479px) {
  .btn-topo { display: none; } /* no celular o mesmo botão já está na barra fixa */
  section { padding-top: 40px; padding-bottom: 40px; }
  .quiz { padding: 20px; }
  .opcao { padding: 14px 8px; font-size: 15px; }
}

/* ---------- Telas grandes ---------- */
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .hero { grid-template-columns: 1fr 1fr; }
  /* No computador, a barra vira só um botão flutuante de WhatsApp (o topo já tem o "Solicitar") */
  .barra-fixa { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; border: 0; }
  .barra-fixa [data-abrir-popup] { display: none; }
  .btn-whats { box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
