/* Grupo ELO · grupoelo.app.br
   Cores e letras do Manual de Marca Grupo ELO (v1.0): só as seis cores da paleta; Barlow Condensed nos títulos,
   Caladea Bold Italic no destaque, Barlow no texto. Logo bege, só sobre azul-marinho. */

@font-face { font-family: "Barlow"; src: url("/fontes/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fontes/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fontes/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fontes/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caladea"; src: url("/fontes/caladea-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --marinho: #021F63;
  --royal: #003FC3;
  --claro: #417CFF;
  --bege: #D7BCA1;
  --areia: #EAE0D7;
  --branco: #FFFFFF;
  --margem: clamp(1.5rem, 5.5vw, 7rem);
  --texto: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--marinho);
  color: var(--areia);
  font: 400 var(--texto)/1.6 "Barlow", system-ui, sans-serif;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* profundidade: um véu de azul royal fixo, sem animação (não pesa na rolagem) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 78% 18%, rgba(0, 63, 195, 0.42), transparent 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(0, 63, 195, 0.22), transparent 70%);
  animation: deriva 38s ease-in-out infinite alternate;
  will-change: transform;
}
/* o véu respira devagar em todas as páginas (só transform: roda no compositor, não pesa) */
@keyframes deriva { from { transform: translate3d(0, 0, 0) scale(1.08); } to { transform: translate3d(-3%, 2.5%, 0) scale(1.16); } }

/* Fundo vivo da página inicial (fundo.js): luz que se move + pontos que se ligam como elos.
   Quando ele começa a desenhar, o véu fixo sai para não somar duas luzes. */
.fundo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1); }
.fundo-vivo .fundo { opacity: 1; }
.fundo-vivo body::before { opacity: 0; transition: opacity 1.6s; }
#fundo-luz { image-rendering: auto; }
::selection { background: var(--bege); color: var(--marinho); }
a { color: var(--branco); text-decoration-color: rgba(215, 188, 161, 0.55); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--bege); }
:focus-visible { outline: 2px solid var(--bege); outline-offset: 4px; border-radius: 2px; }
img, svg { display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }

.so-leitor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; background: var(--bege); color: var(--marinho); font-weight: 500; }
.pular:focus { top: 1rem; }

/* ---------- letras de título (as duas vozes do manual) ---------- */
.titulo {
  font: 700 clamp(1.75rem, 1.15rem + 2.2vw, 2.875rem)/1.05 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--branco);
}
.titulo em {
  font: italic 700 1.06em/1 "Caladea", serif;
  text-transform: none;
  letter-spacing: 0;
  color: var(--claro);
}
.frase {
  font: italic 700 clamp(2.75rem, 1.5rem + 4.8vw, 6rem)/0.98 "Caladea", serif;
  letter-spacing: -0.012em;
  color: var(--branco);
}
.frase-2 { display: block; color: var(--claro); }
.frase-menor { font-size: clamp(2rem, 1.25rem + 2.8vw, 3.75rem); line-height: 1.04; }
.frase .linha { display: block; }
.frase-abre { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem); margin-bottom: 1.6rem; }
.p5 .fecho { margin-top: 1.6rem; }
/* revelação por linha: o texto sobe de dentro da própria linha (a máscara folga para o itálico e as descendentes) */
.anim .linha { display: block; clip-path: inset(-0.35em -0.5em -0.14em -0.3em); }
.anim .linha > span { display: inline-block; will-change: transform; }
.anim .p0 .linha > span { transform: translateY(125%); }

/* ---------- a história (palco + textos) ---------- */
.historia-quadro { position: relative; }
.palco { position: relative; }
.palco-svg { width: 100%; height: auto; overflow: visible; }
.letra path, .elo { fill: var(--bege); }
.realce { fill: var(--claro); opacity: 0; }
.marca-cruz { fill: none; stroke: var(--claro); stroke-width: 0.45; stroke-dasharray: 105 105; stroke-dashoffset: 105; }
.cidade-nome { font: 600 21px "Barlow Condensed", sans-serif; letter-spacing: 0.07em; text-transform: uppercase; fill: var(--branco); text-anchor: end; }
.cidade-uf { font: 400 13px "Barlow", sans-serif; letter-spacing: 0.12em; fill: var(--areia); opacity: 0.75; text-anchor: end; }
.cidade line { stroke: var(--bege); stroke-width: 1.2; }

.painel p { margin-top: 1.4rem; max-width: 40ch; }
.manifesto {
  font: 400 clamp(1.3rem, 0.95rem + 1.35vw, 2.05rem)/1.36 "Barlow", sans-serif;
  color: var(--areia);
  max-width: 28ch;
}
.painel .manifesto { margin-top: 0; }
.dica { display: flex; white-space: nowrap; align-items: center; gap: 0.9rem; font: 600 0.8125rem/1 "Barlow Condensed", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bege); }
.dica-fio { width: 3rem; height: 1px; background: var(--bege); transform-origin: left; }

.passos { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.4rem; }
.passos li { display: grid; grid-template-columns: 2.4rem 1fr; align-items: start; }
.passo-n { font: 700 1.6rem/1.1 "Barlow Condensed", sans-serif; color: var(--claro); }
.passos h3 { font: 600 1.25rem/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; color: var(--branco); }
.passos p { margin-top: 0.35rem; font-size: 0.98em; line-height: 1.5; max-width: 38ch; }

.valores { display: grid; gap: 1.6rem; }
.valor dt { font: 700 1.6rem/1.1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.07em; color: var(--branco); }
.valor dd { margin-top: 0.4rem; max-width: 34ch; }

.corrente-estatica { margin-top: 2.5rem; max-width: 300px; }
.corrente-svg { width: 100%; height: auto; overflow: visible; }

/* Sem animação (sem JavaScript ou com "reduzir movimento"): a mesma história em seções paradas. */
html:not(.anim) #eBc, html:not(.anim) #eCs, html:not(.anim) #eCc, html:not(.anim) #eD,
html:not(.anim) #cidades, html:not(.anim) #realces, html:not(.anim) #marcas { display: none; }
html:not(.anim) .historia-quadro { padding: 0 var(--margem); }
html:not(.anim) .palco { padding: 18vh 0 8vh; max-width: 640px; }
html:not(.anim) .painel { padding: 9vh 0; max-width: 46rem; }
html:not(.anim) .painel + .painel { border-top: 1px solid rgba(215, 188, 161, 0.16); }
html:not(.anim) .dica { display: none; }

/* Com animação: um quadro preso na tela; o texto à esquerda troca, o palco à direita conta a marca. */
.anim .historia { height: 100vh; height: 100svh; }
.anim .historia-quadro {
  height: 100vh; height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "textos palco";
}
.anim .palco { grid-area: palco; height: 100%; overflow: hidden; }
.anim .palco-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.anim .textos { grid-area: textos; position: relative; height: 100%; }
.anim .painel {
  position: absolute;
  inset: 0;
  padding: 0 0 0 var(--margem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
}
.anim .p0 { visibility: visible; opacity: 1; }
.anim .p0 .manifesto, .anim .p0 .dica { opacity: 0; }
.anim .p0 .frase-abre { opacity: 1; }
.anim .corrente-estatica { display: none; }
.anim .letra { opacity: 0; }
.anim .traco { stroke-dashoffset: 105; }
.anim #eBc, .anim #eCs, .anim #eCc, .anim #eD { visibility: hidden; }
.anim #cidades .cidade { opacity: 0; }
.anim .passos li + li { opacity: 0.28; }
.anim .valor { opacity: 0; visibility: hidden; }
.anim .dica { position: absolute; left: var(--margem); bottom: 7svh; }
.anim .dica-fio { animation: fio 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes fio { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

@media (max-width: 760px) {
  .anim .historia-quadro {
    grid-template-columns: 1fr;
    grid-template-rows: 52fr 48fr;
    grid-template-areas: "palco" "textos";
  }
  .anim .painel { padding: 0 var(--margem) 2rem; justify-content: flex-start; }
  .anim .p0, .anim .p5 { justify-content: flex-start; }
  .anim .passos { position: relative; margin-top: 1.25rem; min-height: 9rem; }
  .anim .passos li { position: absolute; inset: 0 0 auto 0; }
  .anim .passos li + li { opacity: 0; visibility: hidden; }
  .anim .dica { bottom: 4svh; }
  .frase { font-size: clamp(2.5rem, 1.6rem + 6vw, 3.5rem); }
  .frase-menor { font-size: clamp(1.75rem, 1.3rem + 3vw, 2.25rem); }
  .manifesto { font-size: clamp(1.2rem, 1rem + 1.6vw, 1.45rem); }
  .frase-abre { font-size: clamp(2rem, 1.4rem + 4.4vw, 2.6rem); margin-bottom: 1rem; }
  .valores { gap: 1rem; }
  .valor dt { font-size: 1.3rem; }
  .valor dd { font-size: 0.95em; line-height: 1.45; }
  .painel p { margin-top: 1rem; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .passos p, .valor dd { font-size: 0.9em; }
  .anim .painel p { margin-top: 0.75rem; }
}

/* ---------- paleta ---------- */
.paleta { padding: 22vh var(--margem) 18vh; }
.cores { list-style: none; padding: 0; margin-top: 3rem; display: flex; gap: 0.6rem; height: clamp(14rem, 40vh, 26rem); }
.cor { flex: var(--peso) 1 0; display: flex; flex-direction: column; min-width: 0; }
.amostra { flex: 1; border-radius: 2px; transform-origin: bottom; }
.cor-marinho { --peso: 30; } .cor-marinho .amostra { background: var(--marinho); box-shadow: inset 0 0 0 1px rgba(215, 188, 161, 0.45); }
.cor-branco { --peso: 30; } .cor-branco .amostra { background: var(--branco); }
.cor-royal { --peso: 16; } .cor-royal .amostra { background: var(--royal); }
.cor-claro { --peso: 9; } .cor-claro .amostra { background: var(--claro); }
.cor-bege { --peso: 9; } .cor-bege .amostra { background: var(--bege); }
.cor-areia { --peso: 9; } .cor-areia .amostra { background: var(--areia); }
.cor-nome { margin-top: 0.9rem; font: 600 0.95rem/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--branco); }
.cor-hex { margin-top: 0.2rem; font-size: 0.85rem; color: var(--areia); opacity: 0.8; font-variant-numeric: tabular-nums; }
.paleta-nota { margin-top: 2.5rem; max-width: 52ch; }
@media (max-width: 760px) {
  .cores { flex-direction: column; height: auto; gap: 0.5rem; }
  .cor { flex-direction: row; align-items: center; gap: 1rem; }
  .amostra { flex: 0 0 auto; width: calc(var(--peso) * 1.9%); min-width: 2.75rem; height: 3rem; transform-origin: left; }
  .cor-nome { margin-top: 0; }
  .cor-hex { margin-top: 0; margin-left: auto; }
}

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid rgba(215, 188, 161, 0.18); padding: 4.5rem var(--margem) 3.5rem; font-size: 0.9rem; line-height: 1.6; }
.rodape-dentro { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 3rem; align-items: start; }
.rodape-marca { display: block; padding: 0.4rem; }
.logo-rodape { width: 112px; height: auto; }
.rodape-texto p + p { margin-top: 0.6rem; }
.rodape-franquia { font: 600 1rem/1.3 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.08em; color: var(--branco); }
.rodape-links { display: grid; gap: 0.55rem; justify-items: start; }
.rodape-links a { text-decoration: none; color: var(--areia); }
.rodape-links a:hover { color: var(--branco); text-decoration: underline; }
@media (max-width: 900px) {
  .rodape-dentro { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- páginas legais ---------- */
.topo { padding: 2rem var(--margem) 0; }
.topo-marca { display: inline-block; padding: 0.4rem; }
.logo-topo { width: 108px; height: auto; }
.legal { max-width: 46rem; padding: 4rem var(--margem) 7rem; margin: 0 auto 0 0; }
.legal .titulo { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.legal .resumo { margin-top: 1.5rem; font-size: 1.15em; color: var(--branco); max-width: 44ch; }
.legal .versao { margin-top: 1rem; font-size: 0.875rem; opacity: 0.75; }
.legal h2 { margin-top: 3rem; font: 600 1.4rem/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; color: var(--branco); }
.legal h3 { margin-top: 1.75rem; font: 600 1.1rem/1.3 "Barlow", sans-serif; color: var(--branco); }
.legal p, .legal ul, .legal ol { margin-top: 1rem; max-width: 68ch; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.45rem; }
.legal strong { font-weight: 500; color: var(--branco); }
.empresas { list-style: none; padding: 0 !important; margin-top: 2.5rem !important; display: grid; gap: 1rem; max-width: none !important; }
.empresa { border: 1px solid rgba(215, 188, 161, 0.22); border-radius: 4px; padding: 1.4rem 1.5rem; }
.empresa h2 { margin-top: 0; font-size: 1.25rem; }
.empresa dl { margin-top: 0.8rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; }
.empresa dt { color: var(--bege); }
.empresa dd { color: var(--areia); }
@media (max-width: 560px) { .empresa dl { grid-template-columns: 1fr; gap: 0.1rem; } .empresa dd + dt { margin-top: 0.6rem; } }
.pendente { background: var(--bege); color: var(--marinho); font-weight: 500; padding: 0.05em 0.45em; border-radius: 2px; outline: 2px dashed var(--claro); outline-offset: 2px; }

.erro { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
