/* ==========================================================
   C&L Energia Solar — estilos
   Leitura em coluna única, como uma conversa: medida de 62 caracteres,
   faixas de gravura (xilogravura de cordel) rompendo a largura total.
   Papel quente, tinta de tipografia, acento azul-anil; carmim só dentro
   das gravuras e em marcadores pequenos. Sem card, sem grid, sem sombra.
   A textura de papel entra só nas faixas de gravura, nunca atrás de parágrafo.
   ========================================================== */

/* ---------- Fontes auto-hospedadas (nenhuma chamada externa) ---------- */
@font-face { font-family: "CL Cartaz"; src: url("../fonts/cartaz-700.woff") format("woff"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "CL Corpo"; src: url("../fonts/corpo-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CL Corpo"; src: url("../fonts/corpo-700.woff") format("woff"); font-weight: 700; font-display: swap; }
/* Zilla Slab / Bitter / Source Sans 3 (opcional): ver README.md, seção "Fontes".
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zillaslab-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans3-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
*/

:root {
  --papel: #F3ECDD;
  --papel-claro: #FBF6EA;       /* caixas de destaque (aviso, campos) */
  --tinta: #16120F;
  --tinta-2: #4A413A;           /* texto secundário: 8,5:1 */
  --anil: #26408B;              /* 8,2:1 no papel; branco sobre anil 9,6:1 */
  --carmim: #B5195A;            /* só em gravura e marcador pequeno */
  --filete: rgba(22, 18, 15, .22);
  --f-tit: "Zilla Slab", "Bitter", "CL Cartaz", Rockwell, Georgia, serif;
  --f-corpo: "Source Sans 3", "CL Corpo", "Segoe UI", Arial, sans-serif;
  --medida: 62ch;
  --gutter: 20px;
  /* Textura de papel: pontos de tinta em opacidade baixa (só nas faixas de gravura) */
  --textura:
    radial-gradient(rgba(22, 18, 15, .05) 1px, transparent 1.3px) 0 0 / 6px 6px,
    radial-gradient(rgba(22, 18, 15, .035) 1px, transparent 1.3px) 3px 2px / 9px 9px,
    radial-gradient(rgba(38, 64, 139, .03) 1px, transparent 1.4px) 1px 4px / 13px 13px,
    var(--papel);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; background: var(--papel); }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--f-corpo); font-size: 1.125rem; line-height: 1.65; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-tit); font-weight: 700; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--anil); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
:focus-visible { outline: 3px solid var(--anil); outline-offset: 3px; }
.pular { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--tinta); color: var(--papel); padding: 10px 16px; }
.pular:focus { left: 8px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Coluna central com medida de leitura */
.coluna { width: 100%; max-width: calc(620px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }  /* ≈ 62 caracteres no corpo de 18px */

/* ---------- Botões ---------- */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .7em 1.4em; border: 2px solid var(--anil); border-radius: 4px; background: var(--anil); color: #fff; font: 700 1.05rem/1.2 var(--f-corpo); text-decoration: none; cursor: pointer; }
.bt:hover { background: var(--tinta); border-color: var(--tinta); }
.bt--linha { background: transparent; color: var(--anil); }
.bt--linha:hover { background: var(--anil); color: #fff; border-color: var(--anil); }
.bt--claro { background: var(--papel); color: var(--anil); border-color: var(--papel); }
.bt--claro:hover { background: #fff; color: var(--tinta); border-color: #fff; }
.bt--peq { min-height: 44px; padding: .5em 1em; font-size: .98rem; }
.bt--grande { font-size: 1.2rem; min-height: 60px; }
.bt--cheio { width: 100%; }
.link-sub { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--anil); text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Header ---------- */
.topo { border-bottom: 2px solid var(--tinta); background: var(--papel); }
.topo__in { max-width: 1200px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; min-height: 68px; }
.topo__logo img { width: 212px; height: 44px; }
.topo__nav { margin-left: auto; display: flex; gap: 22px; font-weight: 700; font-size: 1rem; }
.topo__nav a { color: var(--tinta); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.topo__nav a:hover { border-bottom-color: var(--anil); }

/* ---------- Hero ---------- */
.hero__gravura { background: var(--textura); border-bottom: 2px solid var(--tinta); }
.hero__gravura img { width: 100%; max-width: 1600px; margin: 0 auto; aspect-ratio: 1600 / 560; object-fit: cover; }
.hero__txt { padding-top: 36px; padding-bottom: 48px; }
.selo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.selo::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--carmim); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); }
.hero__sub { font-size: 1.22rem; margin: 16px 0 0; }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Seções ---------- */
.secao, .aqui { padding: clamp(44px, 7vw, 72px) 0; }
.secao h2, .aqui h2, .contato h2 { font-size: clamp(1.7rem, 4.4vw, 2.3rem); margin-bottom: 18px; }
.secao h2::after, .aqui h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--anil); margin-top: 12px; }
.aqui { border-bottom: 2px solid var(--tinta); }
.aqui__cidades { font-family: var(--f-tit); font-size: 1.3rem; line-height: 1.6; }
.aqui__cidades span { color: var(--anil); padding: 0 .15em; }

/* Passos */
.passos { counter-reset: passo; }
.passos li { counter-increment: passo; position: relative; padding: 14px 0 14px 64px; border-bottom: 1px solid var(--filete); }
.passos li::before { content: counter(passo); position: absolute; left: 0; top: 8px; width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--anil); border-radius: 50%; font-family: var(--f-tit); font-weight: 700; font-size: 1.35rem; color: var(--anil); }

/* Faixas de gravura (largura total, decorativas) */
.faixa-gravura { background: var(--textura); border-top: 2px solid var(--tinta); border-bottom: 2px solid var(--tinta); }
.faixa-gravura img { width: 100%; max-width: 1600px; margin: 0 auto; aspect-ratio: 1600 / 300; object-fit: cover; }

/* Simulador */
.sim { margin-top: 18px; border: 2px solid var(--tinta); border-radius: 4px; background: var(--papel-claro); }
.sim__form { padding: 20px 20px 8px; }
.sim__form label { display: block; font-weight: 700; margin-bottom: 8px; }
.sim__campo { display: flex; align-items: center; gap: 10px; border: 2px solid var(--anil); border-radius: 4px; background: #fff; padding: 4px 14px; max-width: 320px; }
.sim__campo span { font-family: var(--f-tit); font-size: 1.5rem; color: var(--tinta-2); }
.sim__campo input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 2rem/1.2 var(--f-tit); color: var(--tinta); padding: 6px 0; -moz-appearance: textfield; }
.sim__campo input::-webkit-outer-spin-button, .sim__campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim__campo input:focus-visible { outline: none; }
.sim__campo:focus-within { outline: 3px solid var(--anil); outline-offset: 2px; }
.sim__dica { font-size: .95rem; color: var(--tinta-2); margin: 8px 0 0; }
.sim__res { margin: 12px 0 0; border-top: 2px solid var(--tinta); }
.sim__res > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 20px; border-bottom: 1px solid var(--filete); }
.sim__res dt { font-weight: 700; }
.sim__res dd { margin: 0; font-family: var(--f-tit); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.3rem); color: var(--anil); line-height: 1.1; }
.sim__sistema { margin: 0; padding: 12px 20px 16px; font-size: .95rem; color: var(--tinta-2); }
.sim__sistema:empty { display: none; }
.aviso { margin-top: 16px; padding: 16px 18px 16px 52px; border: 3px solid var(--tinta); border-radius: 4px; background: var(--papel-claro); position: relative; }
.aviso::before { content: "!"; position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--carmim); color: #fff; font: 700 1rem/26px var(--f-tit); text-align: center; }
.aviso p { margin: 0; font-size: 1.08rem; }

/* Para quem */
.para > li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--filete); align-items: start; }
.para > li:first-child { border-top: 1px solid var(--filete); }
.para img { width: 110px; height: 110px; }
.para h3 { font-size: 1.45rem; margin-bottom: 6px; }
.para ul li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.para ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--carmim); }

/* Escopo */
.escopo li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--filete); }
.escopo li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 9px; height: 9px; background: var(--carmim); }
.escopo strong { color: var(--anil); }

/* FAQ */
.faq { margin: 0; }
.faq > div { padding: 18px 0; border-bottom: 1px solid var(--filete); }
.faq dt { font-family: var(--f-tit); font-weight: 700; font-size: 1.3rem; line-height: 1.3; color: var(--anil); margin-bottom: 6px; }
.faq dd { margin: 0; }

/* Quem somos */
.ficha { margin: 18px 0 0; border-top: 2px solid var(--tinta); }
.ficha > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--filete); }
.ficha dt { font-weight: 700; }
.ficha dd { margin: 0; }

/* ---------- Contato sobre anil ---------- */
.contato { background: var(--anil); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.contato h2 { color: #fff; }
.contato > .coluna > p { color: #E4E8F5; }
.contato a:not(.bt) { color: #fff; }
.contato :focus-visible { outline-color: #fff; }
.contato__ou { margin: 22px 0 12px; font-weight: 700; }
.form__grade { display: grid; grid-template-columns: 1fr; gap: 14px; }
.campo { display: flex; flex-direction: column; }
.campo label { font-weight: 700; margin-bottom: 5px; }
.campo input, .campo select, .campo textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--tinta); background: var(--papel-claro); border: 2px solid var(--papel-claro); border-radius: 4px; padding: .6em .8em; }
.campo textarea { resize: vertical; min-height: 100px; }
.campo input::placeholder, .campo textarea::placeholder { color: #6B6158; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.campo [aria-invalid="true"] { border-color: #fff; border-width: 3px; }
.campo__erro { color: #fff; font-weight: 700; font-size: .98rem; margin-top: 6px; padding-left: 10px; border-left: 4px solid #fff; }
.campo--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin: 20px 0; }
.campo--check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.campo--check label { flex: 1; font-weight: 400; margin: 0; }
.campo--check .campo__erro { flex-basis: 100%; }
.form__alerta { border-left: 5px solid #fff; background: rgba(255, 255, 255, .1); padding: 12px 16px; margin-bottom: 18px; font-weight: 700; }
.form__nota { font-size: .98rem; color: #E4E8F5; margin: 14px 0 0; }

/* ---------- Rodapé ---------- */
.rodape { border-top: 2px solid var(--tinta); padding: 40px 0 110px; font-size: 1rem; }
.rodape img { width: 212px; height: 44px; margin-bottom: 16px; }
.rodape__cad { line-height: 1.7; }
.rodape__cidades { color: var(--tinta-2); }
.rodape__aviso { padding: 10px 14px; border: 2px solid var(--tinta); border-radius: 4px; }
.rodape__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0; font-weight: 700; }
.rodape__fim { color: var(--tinta-2); font-size: .92rem; margin: 0; }

/* ---------- WhatsApp flutuante (canal principal) ---------- */
.zap { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; height: 60px; min-width: 60px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--anil); color: #fff; border: 2px solid #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.zap .ico { width: 26px; height: 26px; }
.zap:hover { background: var(--tinta); }
.zap:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }

/* ---------- Páginas internas ---------- */
.pagina { padding: clamp(48px, 8vw, 88px) 0 clamp(64px, 10vw, 104px); }
.grade { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.grade--estreita { max-width: calc(var(--medida) + 2 * var(--gutter)); }
.sobre-linha { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 14px; }
.sobre-linha::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--carmim); }
.texto-legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.texto-legal h2 { font-size: 1.4rem; margin: 36px 0 10px; padding-top: 16px; border-top: 1px solid var(--filete); }
.texto-legal__data { color: var(--tinta-2); font-size: .98rem; }
.texto-legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.texto-legal li { margin-bottom: .4em; }
.obrigado { text-align: center; }
.obrigado h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 18px 0 14px; }
.obrigado__ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--anil); color: #fff; }
.obrigado__ico .ico { width: 28px; height: 28px; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 26px; }
.acoes--centro { justify-content: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .topo__nav { display: none; }
  .topo .bt--peq { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1.0625rem; }
  .topo__logo img { width: 170px; height: 35px; }
  .topo .bt--peq span { display: none; }
  .botoes .bt { width: 100%; }
  .hero__gravura img { aspect-ratio: 4 / 3; object-position: 60% center; }
  .faixa-gravura img { aspect-ratio: 2 / 1; }
  .para > li { grid-template-columns: 72px 1fr; gap: 14px; }
  .para img { width: 72px; height: 72px; }
  .ficha > div { grid-template-columns: 1fr; gap: 0; }
  .zap { padding: 0; width: 60px; justify-content: center; }
  .zap__rot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

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