/* ==========================================================
   APS Energia Solar — estilos
   Linguagem visual própria: tema escuro técnico. Grafite como base,
   um único acento elétrico em verde-limão, superfícies sólidas sem
   sombra, separação por linha de 1px e números grandes como grafismo.
   Paleta: grafite #14181C · texto #F2F4F3 · verde-limão #A8E02C · superfície #39434D
   Títulos: DejaVu Sans Condensed Bold (licença livre). Corpo: Public Sans, se
   adicionada (ver README), ou fonte do sistema.
   Contraste (WCAG): texto #F2F4F3 sobre #14181C ≈ 16:1; #B9C2C9 sobre #14181C ≈ 10:1;
   #D5DBDF sobre #39434D ≈ 7:1; #A8E02C sobre #14181C ≈ 11:1 (só títulos, números e detalhes).
   ========================================================== */

@font-face { font-family: "APS Display"; src: url("../fonts/display-700.woff") format("woff"); font-weight: 700; font-display: swap; }
/* Public Sans auto-hospedada (opcional): ver README.md, seção "Fontes".
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
*/

:root {
  --fundo: #14181C;
  --fundo-2: #1B2025;
  --sup: #39434D;
  --linha: #39434D;
  --texto: #F2F4F3;
  --texto-2: #B9C2C9;
  --texto-3: #D5DBDF;
  --lima: #A8E02C;
  --lima-esc: #8CC317;
  --zap: #1F9D55;
  --erro: #FFA9A1;

  --f-tit: "APS Display", "Archivo Black", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-corpo: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r: 6px;
  --barra-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--barra-h) + 12px); -webkit-text-size-adjust: 100%; background: var(--fundo); }
body { margin: 0; font-family: var(--f-corpo); font-size: 1.0625rem; line-height: 1.7; color: var(--texto); background: var(--fundo); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--texto); text-decoration-color: var(--lima); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--lima); }
h1, h2, h3 { font-family: var(--f-tit); font-weight: 700; color: var(--texto); line-height: 1.05; margin: 0 0 .55em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--texto); }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; border-radius: 2px; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.grade { width: min(1240px, 100% - 32px); margin-inline: auto; }
.grade--estreita { width: min(860px, 100% - 32px); }
.pular { position: absolute; left: -9999px; top: 8px; background: var(--lima); color: var(--fundo); padding: 10px 16px; z-index: 300; }
.pular:focus { left: 8px; }

/* ---------- Botões ---------- */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .95em 1.4em; border-radius: var(--r); border: 1px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.bt--lima { background: var(--lima); color: var(--fundo); }
.bt--lima:hover { background: #bdf044; color: var(--fundo); }
.bt--fio { border-color: var(--texto-2); color: var(--texto); background: transparent; }
.bt--fio:hover { border-color: var(--lima); color: var(--lima); }
.bt--cheio { width: 100%; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.acoes--centro { justify-content: center; }

/* ---------- Barra (transparente → sólida no scroll) ---------- */
.barra { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.barra.rolou, .e-interna .barra { background: var(--fundo); border-bottom-color: var(--linha); }
.barra__in { display: flex; align-items: center; gap: 28px; height: var(--barra-h); }
.barra__logo { flex: none; }
.barra__logo img { width: 150px; }
.barra__nav { margin-left: auto; }
.barra__nav ul { display: flex; gap: 4px; }
.barra__nav a { display: block; padding: .5em .8em; color: var(--texto); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; }
.barra__nav a:hover { color: var(--texto); border-bottom-color: var(--lima); }
.barra__tel { display: inline-flex; align-items: center; gap: .5em; color: var(--lima); font-family: var(--f-tit); font-size: 1.05rem; text-decoration: none; white-space: nowrap; padding: .45em .8em; border: 1px solid var(--linha); border-radius: var(--r); }
.barra__tel:hover { border-color: var(--lima); color: var(--lima); }
.barra__menu { display: none; width: 44px; height: 44px; background: var(--sup); border: 0; border-radius: var(--r); cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; padding: 0 11px; }
.barra__menu span { display: block; height: 2px; background: var(--texto); transition: transform .2s; }
.barra__menu[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.barra__menu[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.e-interna main { padding-top: var(--barra-h); }

/* ---------- Hero 60/40 ---------- */
.hero { position: relative; padding: calc(var(--barra-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 7vw, 88px); background:
  linear-gradient(90deg, rgba(57, 67, 77, .35) 1px, transparent 1px) 0 0 / 80px 100%, var(--fundo); border-bottom: 1px solid var(--linha); }
.hero__in { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sobre-linha { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); border-bottom: 2px solid var(--lima); padding-bottom: 4px; margin-bottom: 22px; }
.hero__lead { font-size: 1.15rem; color: var(--texto-3); max-width: 38em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.simula { background: var(--sup); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); border-top: 3px solid var(--lima); }
.simula__tit { font-size: 1.6rem; margin-bottom: 16px; }
.simula label { display: block; font-weight: 600; color: var(--texto-3); margin-bottom: 8px; font-size: .95rem; }
.simula__campo { display: flex; align-items: center; gap: 8px; background: var(--fundo); border: 1px solid var(--fundo); border-radius: var(--r); padding: 0 14px; }
.simula__campo:focus-within { border-color: var(--lima); }
.simula__campo span { color: var(--texto-2); font-weight: 700; }
.simula__campo input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--texto); padding: 12px 4px; font: 700 1.8rem var(--f-tit); -moz-appearance: textfield; appearance: textfield; }
.simula__campo input::-webkit-outer-spin-button, .simula__campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#sim-faixa { width: 100%; margin: 16px 0 4px; accent-color: var(--lima); }
.simula__dica { font-size: .82rem; color: var(--texto-3); margin-bottom: 16px; }
.simula__res { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid rgba(242, 244, 243, .18); }
.simula__res div { padding: 14px 0; border-bottom: 1px solid rgba(242, 244, 243, .18); }
.simula__res div:nth-child(3) { padding-left: 16px; border-left: 1px solid rgba(242, 244, 243, .18); }
.simula__res .simula__res--forte { grid-column: 1 / -1; }
.simula__res dt { font-size: .82rem; color: var(--texto-3); }
.simula__res dd { margin: 2px 0 0; font-family: var(--f-tit); font-size: 1.5rem; color: var(--texto); line-height: 1.15; }
.simula__res--forte dd { font-size: 2.6rem; color: var(--lima); }
.simula__sistema { font-size: .85rem; color: var(--texto-3); margin: 12px 0 8px; min-height: 1.4em; }
.simula__aviso { font-size: .8rem; color: var(--texto-3); margin: 0; }

/* ---------- Faixa de dados ---------- */
.dados { border-bottom: 1px solid var(--linha); }
.dados__lista { display: grid; grid-template-columns: repeat(3, 1fr); }
.dados__lista li { padding: clamp(28px, 4vw, 48px) 24px; border-left: 1px solid var(--linha); }
.dados__lista li:first-child { border-left: 0; padding-left: 0; }
.dados__num { display: block; font-family: var(--f-tit); font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1; color: var(--lima); letter-spacing: -.02em; }
.dados__rot { display: block; margin-top: 10px; color: var(--texto-2); max-width: 22em; }

/* ---------- Blocos ---------- */
.bloco { padding-block: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--linha); }
.bloco--fino { background: var(--fundo-2); }
.bloco__tit { max-width: 18ch; }
.editorial { columns: 2; column-gap: 56px; column-rule: 1px solid var(--linha); color: var(--texto-3); margin-top: 12px; }
.editorial p { break-inside: avoid; }
.editorial__abre::first-letter { font-family: var(--f-tit); float: left; font-size: 3.6rem; line-height: .9; padding: 4px 10px 0 0; color: var(--lima); }
.curva { margin: 40px 0 0; border: 1px solid var(--linha); border-radius: var(--r); padding: 18px; }
.curva figcaption { font-size: .8rem; color: var(--texto-2); margin-top: 8px; }

/* ---------- Tabela ---------- */
.tabela-rolagem { overflow-x: auto; margin-top: 12px; }
.tabela { width: 100%; border-collapse: collapse; min-width: 640px; }
.tabela th, .tabela td { text-align: left; vertical-align: top; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--linha); }
.tabela thead th { font-family: var(--f-tit); font-size: 1.1rem; font-weight: 700; color: var(--texto-2); border-bottom: 2px solid var(--linha); }
.tabela thead th.tabela__com { color: var(--lima); border-bottom-color: var(--lima); }
.tabela tbody th { font-family: var(--f-tit); font-weight: 700; font-size: 1.15rem; width: 18%; color: var(--texto); }
.tabela td { color: var(--texto-2); width: 41%; }
.tabela td.tabela__com { color: var(--texto); }

/* ---------- Zigue-zague ---------- */
.zz { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: 40px; border-top: 1px solid var(--linha); }
.zz:first-of-type { border-top: 0; }
.zz--inv .zz__img { order: 2; }
.zz__img { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--sup); }
.zz__img img { width: 100%; }
.zz__n { display: block; font-family: var(--f-tit); font-size: 4rem; line-height: 1; color: var(--sup); -webkit-text-stroke: 1px var(--lima); margin-bottom: 10px; }
.zz__txt h3 { font-size: 1.9rem; }
.zz__txt p { color: var(--texto-3); }
.zz__txt ul { display: grid; gap: 8px; margin-top: 16px; }
.zz__txt li { display: flex; gap: .6em; align-items: baseline; color: var(--texto); font-weight: 600; font-size: .96rem; }
.zz__txt li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--lima); transform: translateY(-4px); }

/* ---------- Linha do tempo ---------- */
.tempo { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.tempo__cab { position: sticky; top: calc(var(--barra-h) + 32px); }
.tempo__cab p { color: var(--texto-3); }
.tempo__lista { border-left: 1px solid var(--linha); }
.tempo__lista li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 24px 0 24px 0; border-bottom: 1px solid var(--linha); position: relative; }
.tempo__lista li:last-child { border-bottom: 0; }
.tempo__lista li::before { content: ""; position: absolute; left: -5px; top: 36px; width: 9px; height: 9px; border-radius: 50%; background: var(--lima); }
.tempo__n { font-family: var(--f-tit); font-size: 3.6rem; line-height: 1; color: var(--lima); padding-left: 28px; }
.tempo__lista h3 { margin-bottom: .3em; }
.tempo__lista p { color: var(--texto-3); margin: 0; }

/* ---------- Sobre ---------- */
.sobre { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 56px; }
.sobre .bloco__tit { grid-column: 1 / -1; }
.sobre__txt { color: var(--texto-3); }
.sobre__dados { margin: 0; border-top: 1px solid var(--linha); }
.sobre__dados div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.sobre__dados dt { color: var(--texto-2); font-size: .9rem; }
.sobre__dados dd { margin: 0; font-weight: 600; }

/* ---------- FAQ ---------- */
.perguntas { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; }
.acc { border-top: 1px solid var(--linha); }
.acc__item { border-bottom: 1px solid var(--linha); }
.acc__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary h3 { margin: 0; font-size: 1.15rem; }
.acc__item summary:hover h3 { color: var(--lima); }
.acc__mais { flex: none; position: relative; width: 16px; height: 16px; }
.acc__mais::before, .acc__mais::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--lima); transition: transform .2s; }
.acc__mais::after { transform: rotate(90deg); }
.acc__item[open] .acc__mais::after { transform: rotate(0); }
.acc__item > p { color: var(--texto-3); padding: 0 40px 22px 0; margin: 0; }

/* ---------- Orçamento ---------- */
.orc { background: var(--sup); padding-block: clamp(64px, 9vw, 104px); }
.orc__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.orc__txt p { color: var(--texto-3); }
.orc__canais { display: grid; gap: 12px; margin-top: 24px; }
.orc__canais a, .orc__canais span { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; text-decoration: none; color: var(--texto); word-break: break-word; }
.orc__canais .ico { color: var(--lima); width: 1.4em; height: 1.4em; }
.form__grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.campo { display: flex; flex-direction: column; margin-bottom: 16px; }
.campo--largo { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: .92rem; color: var(--texto-3); margin-bottom: 6px; }
.campo input, .campo select, .campo textarea { font: inherit; font-size: 1rem; color: var(--texto); background: var(--fundo); border: 1px solid var(--fundo); border-radius: var(--r); padding: .8em .9em; width: 100%; }
.campo select { color-scheme: dark; }
.campo input::placeholder, .campo textarea::placeholder { color: #8E99A3; }
.campo textarea { resize: vertical; min-height: 96px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--lima); }
.campo [aria-invalid="true"] { border-color: var(--erro); }
.campo__erro { color: var(--erro); font-size: .86rem; margin-top: 4px; }
.campo--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.campo--check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--lima); }
.campo--check label { flex: 1; min-width: 0; font-weight: 400; font-size: .9rem; margin: 0; }
.campo--check .campo__erro { flex-basis: 100%; }
.form__alerta { border: 1px solid var(--erro); color: var(--texto); border-radius: var(--r); padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.form__nota { font-size: .82rem; color: var(--texto-3); margin: 12px 0 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Páginas internas ---------- */
.pagina { min-height: 50vh; border-bottom: 0; }
.texto-legal { color: var(--texto-3); }
.texto-legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.texto-legal h2 { font-size: 1.45rem; margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--linha); }
.texto-legal ul { list-style: square; padding-left: 1.4em; margin-bottom: 1em; }
.texto-legal li { margin-bottom: .35em; }
.texto-legal li::marker { color: var(--lima); }
.texto-legal__data { color: var(--texto-2); font-size: .9rem; }
.obrigado { text-align: center; }
.obrigado__ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border: 2px solid var(--lima); color: var(--lima); border-radius: 50%; margin-bottom: 20px; }
.obrigado__ico .ico { width: 34px; height: 34px; }
.obrigado p { color: var(--texto-3); }

/* ---------- Rodapé ---------- */
.base { background: var(--fundo); font-size: .95rem; }
.base__cols { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 48px; padding-block: 56px 40px; }
.base__col img { width: 150px; margin-bottom: 18px; }
.base__tit { font-family: var(--f-tit); font-size: 1.1rem; color: var(--texto); margin-bottom: 14px; }
.base__cad { margin: 0; }
.base__cad div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--linha); }
.base__cad dt { color: var(--texto-2); font-size: .85rem; }
.base__cad dd { margin: 0; color: var(--texto); font-size: .92rem; }
.base__lista { display: grid; gap: 9px; }
.base__lista a, .base__lista span { display: inline-flex; align-items: center; gap: .55em; color: var(--texto-3); text-decoration: none; word-break: break-word; }
.base__lista a:hover { color: var(--lima); }
.base__lista .ico { color: var(--lima); }
.base__fim { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 18px 28px; border-top: 1px solid var(--linha); font-size: .84rem; color: var(--texto-2); }
.base__fim p { margin: 0; }
.base__fim a { color: var(--texto-2); }

/* ---------- WhatsApp flutuante ---------- */
.zap { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--fundo); color: var(--lima); border: 1px solid var(--lima); }
.zap:hover { background: var(--lima); color: var(--fundo); }
.zap .ico { width: 26px; height: 26px; }

/* ---------- Animação discreta ---------- */
.js .revela { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.js .revela.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .revela { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsivo
   ========================================================== */
@media (min-width: 1600px) {
  body { font-size: 1.12rem; }
  .grade { width: min(1360px, 100% - 64px); }
}
@media (max-width: 1024px) {
  .barra__nav { position: fixed; inset: var(--barra-h) 0 auto 0; margin: 0; background: var(--fundo); border-bottom: 1px solid var(--linha); display: none; }
  .barra__nav.aberto { display: block; }
  .barra__nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  .barra__nav a { padding: 14px 4px; border-bottom: 1px solid var(--linha); font-size: 1.05rem; }
  .barra__tel { margin-left: auto; }
  .barra__menu { display: flex; }
  .barra.menu-aberto { background: var(--fundo); }
  .hero__in, .tempo, .orc__in, .perguntas, .sobre { grid-template-columns: 1fr; gap: 36px; }
  .tempo__cab { position: static; }
  .zz, .zz--inv { grid-template-columns: 1fr; gap: 24px; }
  .zz--inv .zz__img { order: 0; }
  .base__cols { grid-template-columns: 1fr 1fr; }
  .base__cols .base__col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --barra-h: 64px; }
  .barra__logo img { width: 124px; }
  .barra__tel span { display: none; }
  .barra__tel { padding: .55em; }
  .barra__in { gap: 10px; }
  .hero__ctas .bt { flex: 1 1 100%; }
  .dados__lista { grid-template-columns: 1fr; }
  .dados__lista li { border-left: 0; padding-left: 0; border-top: 1px solid var(--linha); }
  .dados__lista li:first-child { border-top: 0; }
  .editorial { columns: 1; }
  .tempo__lista li { grid-template-columns: 1fr; gap: 4px; padding-left: 24px; }
  .tempo__n { padding-left: 0; font-size: 2.6rem; }
  .form__grade, .base__cols { grid-template-columns: 1fr; }
  .sobre__dados div, .base__cad div { grid-template-columns: 1fr; gap: 2px; }
  .simula__res--forte dd { font-size: 2.1rem; }
  .zz__n { font-size: 3rem; }
  .acc__item > p { padding-right: 0; }
  .zap { right: 14px; bottom: 14px; }
}
