/* Reformei.ai — site preview
   Paleta: tinta, papel, cimento, laranja de obra, verde de economia. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinta: #1C1D1F;
  --texto-2: #55585D;
  --grafite: #8A8C8F;
  --linha: #DAD8D1;
  --papel: #FBFBF9;
  --branco: #FFFFFF;
  --cimento: #ECEBE6;
  --laranja: #C2410C;
  --laranja-escuro: #9A3412;
  --laranja-claro: #FDBA74;
  --verde: #166534;
  --verde-claro: #E6F1E9;

  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-texto: "Inter", ui-sans-serif, system-ui, sans-serif;

  --largura: 1180px;
  --margem: clamp(18px, 4vw, 40px);
  --raio: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
}

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

a { color: var(--laranja); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--laranja-escuro); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.2vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; border-radius: 4px; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--tinta); color: var(--branco); padding: 10px 14px; border-radius: 8px;
}
.pular:focus { top: 12px; color: var(--branco); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conteiner { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px;
  font: 600 15px/1 var(--f-texto); text-decoration: none; cursor: pointer;
  border: 1px solid var(--linha); background: var(--branco); color: var(--tinta);
}
.botao:hover { border-color: var(--tinta); color: var(--tinta); }
.botao-principal { background: var(--laranja); border-color: var(--laranja); color: var(--branco); }
.botao-principal:hover { background: var(--laranja-escuro); border-color: var(--laranja-escuro); color: var(--branco); }
.botao[disabled] { opacity: .6; cursor: progress; }

/* ---------- Seções ---------- */
.secao { padding: clamp(56px, 8vw, 104px) 0; }
.secao-cimento { background: var(--cimento); }
.secao-tinta { background: var(--tinta); color: #F3F2EE; }
.secao-tinta a { color: var(--laranja-claro); }
.cabeca { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.cabeca p { margin-top: 14px; color: var(--texto-2); font-size: 18px; }
.secao-tinta .cabeca p { color: #C9C7C0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero .conteiner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-texto { display: flex; flex-direction: column; gap: 22px; }
.hero-texto > p { font-size: 19px; color: var(--texto-2); max-width: 46ch; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-nota { font-size: 14px; color: var(--texto-2); }
@media (max-width: 900px) { .hero .conteiner { grid-template-columns: minmax(0, 1fr); } }

/* Planta baixa */
.planta { width: 100%; height: auto; }
.planta .parede { fill: none; stroke: var(--tinta); stroke-width: 7; stroke-linecap: square; stroke-linejoin: miter; }
.planta .parede-int { fill: none; stroke: var(--tinta); stroke-width: 4; stroke-linecap: square; }
.planta .janela { stroke: var(--papel); stroke-width: 7; }
.planta .janela-linha { stroke: var(--tinta); stroke-width: 1.2; }
.planta .porta { fill: none; stroke: var(--grafite); stroke-width: 1.2; stroke-dasharray: 3 3; }
.planta .porta-folha { stroke: var(--tinta); stroke-width: 2; }
.planta .vao { stroke: var(--papel); stroke-width: 6; }
.planta .cota { stroke: var(--grafite); stroke-width: 1; fill: none; }
.planta .cota-txt { font: 500 12px var(--f-texto); fill: var(--grafite); }
.planta .amb { font: 700 17px var(--f-display); fill: var(--tinta); letter-spacing: -0.01em; }
.planta .amb-info { font: 400 13px var(--f-texto); fill: var(--texto-2); }
.planta .amb-total { font: 600 14px var(--f-texto); fill: var(--tinta); }
.planta .piso { fill: var(--branco); }
.planta .etiqueta rect { fill: var(--verde-claro); stroke: var(--verde); stroke-width: 1.2; }
.planta .etiqueta text { font: 600 13px var(--f-texto); fill: var(--verde); }
.planta .etiqueta .fio { stroke: var(--verde); stroke-width: 1.2; fill: none; }
.planta .etiqueta circle { fill: var(--verde); }

@media (prefers-reduced-motion: no-preference) {
  .planta .parede, .planta .parede-int { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: desenhar 1.6s cubic-bezier(.6,.1,.3,1) forwards; }
  .planta .parede-int { animation-delay: .5s; }
  .planta .rotulos, .planta .detalhes { opacity: 0; animation: surgir .5s ease-out 1.5s forwards; }
  .planta .etiqueta { opacity: 0; transform: translateY(6px); transform-box: fill-box; animation: surgir .45s ease-out 2.1s forwards; }
}
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@keyframes surgir { to { opacity: 1; transform: none; } }

/* ---------- Três jeitos ---------- */
.jeitos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .jeitos { grid-template-columns: 1fr; } }
.jeito { display: flex; flex-direction: column; gap: 10px; }
.jeito > p { color: var(--texto-2); }
.mini {
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 16px; min-height: 148px; margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 10px; justify-content: center; font-size: 14px;
}
.mini-campo { border: 1px solid var(--linha); border-radius: 8px; padding: 10px 12px; color: var(--texto-2); background: var(--papel); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-linha { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mini-verde { color: var(--verde); font-weight: 600; }
.mini-riscado { color: var(--grafite); text-decoration: line-through; }
.balao { max-width: 88%; padding: 8px 12px; border-radius: 14px; line-height: 1.35; }
.balao-usuario { align-self: flex-end; background: var(--tinta); color: var(--papel); border-bottom-right-radius: 4px; }
.balao-assist { align-self: flex-start; background: var(--cimento); border-bottom-left-radius: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--linha); border-radius: 99px; padding: 3px 10px; font-size: 13px; background: var(--branco); }
.oferta { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.oferta-img { width: 52px; height: 52px; border-radius: 8px; background: var(--cimento); display: grid; place-items: center; }
.oferta-img svg { width: 30px; height: 30px; }
.oferta b { display: block; font-weight: 600; }
.selo { background: var(--laranja); color: var(--branco); font-weight: 600; font-size: 12px; border-radius: 6px; padding: 2px 7px; }

/* ---------- Páginas de texto (artigo, políticas) ---------- */
.pagina { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.texto { max-width: 70ch; margin: 0 auto; padding: 0 var(--margem); }
.texto > * + * { margin-top: 1.1em; }
.texto h1 { font-size: clamp(32px, 4.4vw, 50px); }
.texto h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 2em; }
.texto h3 { margin-top: 1.6em; }
.texto p, .texto li { font-size: 18px; line-height: 1.7; }
.texto ul, .texto ol { padding-left: 1.3em; }
.texto li + li { margin-top: .45em; }
.texto .linha-fina { color: var(--texto-2); font-size: 15px; margin-top: 14px; }
.texto .chamada { font-size: 21px; line-height: 1.55; color: var(--texto-2); }
.texto .preencher { background: #FEF3C7; outline: 1px dashed #B45309; padding: 0 4px; border-radius: 3px; }


/* ---------- Topo ---------- */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.marca:hover { color: var(--tinta); }
/* O "m" do logo é uma casa (telhado + duas portas), na cor do ".ai". Mesma forma do favicon e de assets/img/simbolo.svg. */
.marca-m { display: inline-block; vertical-align: baseline; width: 0.96em; height: 0.83em; margin: 0 0.035em; color: var(--laranja); overflow: visible; }
.marca-nome { font-family: var(--f-display); font-weight: 700; font-size: 23px; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.marca-nome span { color: var(--laranja); }
.topo-simples { border-bottom: 1px solid var(--linha); }
.topo-simples .conteiner { display: flex; align-items: center; min-height: 72px; }

/* ---------- Formulário de aviso ---------- */
.form-aviso {
  margin-top: 6px; background: var(--branco); border: 1px solid var(--linha); border-radius: 16px;
  padding: clamp(18px, 2.6vw, 26px); display: flex; flex-direction: column; gap: 12px;
}
.form-aviso h2 { font-size: 23px; letter-spacing: -0.015em; }
.form-aviso > p { color: var(--texto-2); font-size: 16px; }
.linha-email { display: flex; gap: 10px; flex-wrap: wrap; }
.linha-email input {
  flex: 1 1 220px; min-width: 0; min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid #C9C7C0;
  background: var(--branco); font: 400 16px var(--f-texto); color: var(--tinta);
}
.linha-email input:focus { outline: 2px solid var(--laranja); outline-offset: 1px; border-color: var(--laranja); }
.linha-email .botao { min-height: 50px; flex: 0 0 auto; }
@media (max-width: 480px) { .linha-email .botao { flex: 1 1 100%; } }
.consentimento { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--texto-2); }
.consentimento input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--laranja); }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 22px; font-size: 15px; font-weight: 500; }
.status:empty { min-height: 0; }
.status-ok { color: var(--verde); }
.status-erro { color: #B42318; }

/* ---------- Mini telas dos recursos ---------- */
.estados { display: flex; gap: 6px; flex-wrap: wrap; }
.estado { border: 1px solid var(--linha); border-radius: 99px; padding: 2px 9px; font-size: 12.5px; background: var(--papel); }
.estado-comprado { background: var(--verde-claro); border-color: #B7D7C0; color: var(--verde); }
.orcamento { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--texto-2); }
.orcamento-barra { display: block; height: 8px; border-radius: 99px; background: var(--cimento); overflow: hidden; }
.orcamento-uso { display: block; height: 100%; width: 81%; background: var(--laranja); border-radius: 99px; }
.mais { margin-top: 36px; }

/* ---------- Planta: rótulos menores ---------- */
.planta .amb-m { font-size: 15px; }
.planta .amb-p { font: 600 13px var(--f-texto); fill: var(--tinta); }

/* ---------- Rodapé ---------- */
.rodape-simples { border-top: 1px solid var(--linha); padding: 28px 0; font-size: 15px; }
.rodape-simples .conteiner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.rodape-simples ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; flex: 1; }
.rodape-simples a { color: var(--tinta); }
.rodape-simples a:hover { color: var(--laranja); }
.rodape-simples p { color: var(--texto-2); font-size: 14px; }
.rodape-simples .marca-nome { font-size: 19px; }
