/* Selingrin TI — site novo (F-16). Tokens do GUIA_IDENTIDADE_SELINGRIN v0.1 (D-004),
   com o equilíbrio visual da F-22 (Caminho 1 + rodapé 1-B): topo claro sobre o fundo da animação,
   escuro só no rodapé (azul do logo em tom tinta), cor de cada elemento do símbolo nos cards.
   Sem fonte externa, sem script: compatível com a CSP 'self'. Sem tema escuro automático nesta fase. */

:root {
  --fundo: #FFFFFF;
  --superficie: #F3F7F6;
  --borda: #D3DFDD;
  --texto: #08293D;
  --texto-2: #4B6475;
  --link: #1F6CB8;
  --link-hover: #17578F;
  --primario: #007A3D;
  --primario-hover: #00652F;
  --primario-texto: #FFFFFF;
  --foco: #2E86DE;
  --tinta-turquesa: #1A7A74;
  --sombra: 0 1px 2px rgba(8, 41, 61, .06), 0 4px 16px rgba(8, 41, 61, .06);

  --escuro: #08293D;
  --escuro-texto: #EEF6F4;

  /* F-22 */
  --abertura-fundo: #DBE5DE;   /* fundo do render da animação */
  --abertura-texto-2: #3A5465;
  --abertura-sobretitulo: #1A6560;
  --chamada-fundo: #E8F0EB;
  --rodape-fundo: #1F6CB8;     /* azul do logo (#2E86DE) em tom tinta: texto branco 5,39:1 */
  --rodape-texto: #FFFFFF;
  --tinta-verde: #007A3D;
  --tinta-azul: #1F6CB8;
  --tom-verde: #E2F4EA;
  --tom-turquesa: #E3F4F2;
  --tom-azul: #E4EFFA;

  --fonte: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --largura: 72rem;
  --espaco-bloco: clamp(4rem, 8vw, 7rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .75em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 70ch; }

a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--escuro); color: var(--escuro-texto); padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font: 600 1rem/1.2 var(--fonte);
  text-decoration: none;
  padding: .9rem 1.4rem;
  border-radius: .5rem;
  border: 2px solid transparent;
}
.btn-primario { background: var(--primario); color: var(--primario-texto); }
.btn-primario:hover { background: var(--primario-hover); color: var(--primario-texto); }
.btn-contorno { border-color: var(--primario); color: var(--primario); padding: .55rem 1rem; }
.btn-contorno:hover { background: var(--primario); color: var(--primario-texto); }

/* ---------- Faixas (abertura e chamada claras; rodapé no azul do logo) ---------- */
.faixa-escura { color: var(--texto); }
.link-claro { color: var(--link-hover); }
.link-claro:hover { color: var(--texto); }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--fundo); color: var(--texto);
  border-bottom: 1px solid var(--borda);
}
/* fio de 4 px nas três cores do símbolo (D-004 c, emenda F-22) */
.topo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: linear-gradient(90deg, #00A854 0 33.3%, #37B6AE 33.3% 66.6%, #2E86DE 66.6%);
}
.topo-in {
  max-width: var(--largura); margin: 0 auto; padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marca { display: inline-flex; align-items: center; gap: .7rem; color: var(--texto); text-decoration: none; font-size: 1.375rem; font-weight: 600; }
.marca:hover { color: var(--texto); }
.marca b { color: var(--tinta-turquesa); font-weight: 600; }
.marca-simbolo { width: 2.75rem; height: 2.75rem; }

.nav-largo { display: none; align-items: center; gap: 1.5rem; }
.nav-largo a:not(.btn) { color: var(--texto); text-decoration: none; font-size: 1rem; }
.nav-largo a:not(.btn):hover { color: var(--link); text-decoration: underline; }

.nav-curto { position: relative; }
.nav-curto summary {
  list-style: none; cursor: pointer;
  border: 2px solid var(--texto); border-radius: .5rem; padding: .4rem .9rem; font-size: 1rem;
}
.nav-curto summary::-webkit-details-marker { display: none; }
.nav-curto nav {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--fundo); border: 1px solid var(--borda); border-radius: .5rem; box-shadow: var(--sombra);
  display: flex; flex-direction: column; min-width: 12rem; padding: .5rem 0;
}
.nav-curto nav a { color: var(--texto); text-decoration: none; padding: .7rem 1.2rem; }
.nav-curto nav a:hover { background: var(--superficie); }

@media (min-width: 56rem) {
  .nav-largo { display: flex; }
  .nav-curto { display: none; }
}

/* ---------- Bloco 1 — Abertura ---------- */
.abertura { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--abertura-fundo); color: var(--texto); }
.abertura-grade { display: grid; gap: 2.5rem; align-items: center; }
.sobretitulo { font-size: .9375rem; font-weight: 600; letter-spacing: .06em; color: var(--abertura-sobretitulo); }
.subtitulo { font-size: 1.35rem; font-weight: 600; color: var(--texto); }
.abertura-lede { color: var(--abertura-texto-2); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
/* animação: render provisório V8 sobre o mesmo fundo; bordas esmaecidas para fundir com a faixa.
   O render final (F-08) sai com canal alfa. Movimento reduzido: quadro final estático. */
.abertura-visual { width: 100%; max-width: 34rem; justify-self: center; }
.abertura-visual { margin: 0; }
.abertura-visual video, .abertura-visual img {
  width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
}
.abertura-visual img { display: none; }
/* texto só para leitor de tela (D-010 c: os nomes estão dentro do vídeo) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* controle da animação (WCAG 2.2.2): botão ligado ao vídeo por assets/animacao.js */
.anim-botao { display: block; margin: .5rem auto 0; padding: .35rem .75rem; background: none; border: 0; border-radius: .25rem; font: inherit; font-size: .875rem; color: var(--link-hover); text-decoration: underline; cursor: pointer; }
.anim-botao:hover { color: var(--texto); }
.anim-botao:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.anim-botao[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .abertura-visual video { display: none; }
  .abertura-visual img { display: block; }
  .anim-botao { display: none; }
}
@media (min-width: 56rem) { .abertura-grade { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Blocos claros ---------- */
.bloco { padding: var(--espaco-bloco) 0; }
.fundo-claro { background: var(--fundo); }
.fundo-superficie { background: var(--superficie); }

.grade-3, .grade-4 { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grade-3, .grade-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .grade-3 { grid-template-columns: repeat(3, 1fr); }
  .grade-4 { grid-template-columns: repeat(4, 1fr); }
}

.cartao {
  background: var(--fundo);
  border: 1px solid var(--borda);
  border-radius: .75rem;
  padding: 1.5rem;
  box-shadow: var(--sombra);
}
.fundo-claro .cartao { background: var(--fundo); }
.cartao p { color: var(--texto-2); }
.cartao p:last-child { margin-bottom: 0; }
.cartao strong { color: var(--texto); }
.icone { width: 2rem; height: 2rem; color: var(--tinta-turquesa); margin-bottom: .75rem; }
/* bloco 2: cada card na cor do elemento do símbolo que ele nomeia (versão tinta, sem fundo cheio) */
#resultado .icone { width: 2.5rem; height: 2.5rem; padding: .45rem; border-radius: .6rem; }
#resultado .cartao:nth-child(1) .icone { color: var(--tinta-verde); background: var(--tom-verde); }
#resultado .cartao:nth-child(2) .icone { color: var(--tinta-turquesa); background: var(--tom-turquesa); }
#resultado .cartao:nth-child(3) .icone { color: var(--tinta-azul); background: var(--tom-azul); }

.texto-largo { color: var(--texto-2); }

/* ---------- Bloco 3 — Método ---------- */
.etapas { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .etapas { grid-template-columns: repeat(3, 1fr); } }
.etapa {
  background: var(--fundo); border: 1px solid var(--borda); border-top: 4px solid var(--tinta-turquesa);
  border-radius: .75rem; padding: 1.5rem; box-shadow: var(--sombra);
}
.etapa p { color: var(--texto-2); margin-bottom: 0; }
.etapa-num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--tinta-turquesa); color: var(--tinta-turquesa); font-weight: 700; margin-bottom: .75rem;
}
.principios { color: var(--texto-2); }
.principios-rotulos { font-size: .9375rem; font-weight: 600; letter-spacing: .04em; color: var(--tinta-turquesa); }

/* ---------- Bloco 4 — Soluções ---------- */
.solucao h3 { font-size: 1.15rem; }
.solucao .resultado { border-top: 1px solid var(--borda); padding-top: .75rem; }

/* ---------- Bloco 5 — Quem somos ---------- */
.quem-grade { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .quem-grade { grid-template-columns: 18rem 1fr; } }
.foto-fundador {
  width: 12rem; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block;
  border: 4px solid var(--fundo); box-shadow: var(--sombra);
}
@media (min-width: 56rem) { .foto-fundador { width: 18rem; } }
.quem-grade p { color: var(--texto-2); }
.quem-grade strong { color: var(--texto); }
.assinatura { font-size: .9375rem; font-weight: 600; color: var(--texto); }

/* ---------- Bloco 7 — Valores ---------- */
.proposito {
  font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); font-style: italic; line-height: 1.45;
  border-left: 4px solid var(--tinta-turquesa); padding-left: 1.25rem; margin-bottom: 2rem;
}
.valores { margin: 0; }
.valor { border: 1px solid var(--borda); border-radius: .75rem; padding: 1.25rem 1.5rem; background: var(--fundo); box-shadow: var(--sombra); }
.valor dt { font-weight: 700; font-size: 1.15rem; margin-bottom: .35rem; }
.valor dt::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--tinta-turquesa); margin-right: .6rem; vertical-align: middle; }
.valor dd { margin: 0; color: var(--texto-2); }

/* ---------- Bloco 8 — Chamada final ---------- */
.chamada { padding: var(--espaco-bloco) 0; background: var(--chamada-fundo); }
.chamada p { color: var(--abertura-texto-2); }
.lista-chamada { color: var(--texto); padding-left: 1.25rem; margin: 0 0 1.25rem; max-width: 70ch; }
.lista-chamada li { margin-bottom: .35rem; }
.chamada .destaque { color: var(--texto); font-weight: 700; font-size: 1.2rem; }
.alternativa { margin-top: 1.25rem; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--rodape-fundo); color: var(--rodape-texto); padding: 2rem 0 2.5rem; font-size: .9375rem; }
.rodape p { color: var(--rodape-texto); margin: 0 0 .4rem; }
.rodape a, .rodape .link-claro { color: var(--rodape-texto); text-decoration: underline; }
.rodape :focus-visible { outline-color: var(--rodape-texto); }

/* ---------- Página interna (privacidade, 404) ---------- */
.pagina { padding: clamp(3rem, 6vw, 5rem) 0; }
.pagina h2 { font-size: 1.35rem; margin-top: 2rem; }
.pagina p, .pagina li { color: var(--texto-2); }
.pagina ul { max-width: 70ch; padding-left: 1.25rem; }
.pendente { background: #FFF4D6; color: #08293D; padding: 0 .3rem; border-radius: .25rem; }
