/* ==========================================================================
   stand-05-conexao.css
   Estilos EXCLUSIVOS do Stand 05 — Conexao que fortalece.

   Todas as classes usam o prefixo s5-. Este arquivo nao altera a Home nem
   os Stands 01, 02 e 03: reaproveita apenas os tokens, o cabecalho e o
   botao ja aprovados.

   Sem jogo, sem cronometro, sem formulario. O foco e a reflexao.
   ========================================================================== */

/* ==========================================================================
   1. ESTRUTURA
   ========================================================================== */

.s5-pagina {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.s5-conteudo {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(14px, 2vh, 34px);
}

.s5-largura {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 44px);
}

.s5-tela[hidden] { display: none !important; }

.s5-tela {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.6vh, 36px);
  text-align: center;
  animation: s5-entrada 420ms ease both;
}

@keyframes s5-entrada {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   2. TIPOGRAFIA
   ========================================================================== */

.s5-etiqueta {
  padding: 6px 20px;
  border-radius: var(--raio-pill);
  font-family: var(--fonte-titulo);
  font-size: clamp(0.78rem, 0.3vw + 0.7rem, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cor-branco);
  background: var(--cor-laranja);
}

.s5-titulo {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: clamp(1.8rem, 2.3vw + 1.05rem, 3.2rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--texto-forte);
}

.s5-frase {
  max-width: 22ch;
  margin: 0 auto;
  font-family: var(--fonte-texto);
  font-size: clamp(2rem, 3.2vw + 1.1rem, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--texto-forte);
}

.s5-frase--media {
  max-width: 26ch;
  font-size: clamp(1.5rem, 2vw + 0.98rem, 2.9rem);
  line-height: 1.16;
}

.s5-frase--laranja { color: var(--cor-laranja); }
.s5-frase--marrom { color: var(--cor-marrom-medio); }

.s5-texto {
  max-width: 54ch;
  margin: 0 auto;
  font-size: clamp(1.02rem, 0.62vw + 0.88rem, 1.42rem);
  line-height: 1.55;
  color: var(--texto-suave);
}

.s5-apoio {
  font-family: var(--fonte-titulo);
  font-size: clamp(0.78rem, 0.28vw + 0.7rem, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-apoio);
}

.s5-realce {
  padding: clamp(16px, 2vw, 28px) clamp(20px, 2.6vw, 40px);
  border-radius: var(--raio-pill);
  font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--cor-branco);
  background: var(--cor-marrom-medio);
  box-shadow: var(--sombra-card);
}

/* ==========================================================================
   3. ELEMENTOS GRAFICOS DE CONEXAO
   Pontos e linhas que ganham presenca ao longo das quatro telas.
   ========================================================================== */

.s5-grafico {
  width: min(680px, 100%);
  height: auto;
  color: var(--cor-marrom-medio);
}

.s5-grafico--estreito { width: min(460px, 88%); }
.s5-grafico--amplo { width: min(820px, 100%); }

.s5-anima-linha {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: s5-desenhar 1400ms ease forwards;
}

@keyframes s5-desenhar { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .s5-tela { animation: none; }
  .s5-anima-linha { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   4. TELA 3 — CARTAO CONECTA
   Artes oficiais usadas exatamente como fornecidas: apenas dimensionadas
   e posicionadas. Nao ha recorte, deformacao nem area interativa.
   ========================================================================== */

.s5-cartoes {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(18px, 3vw, 48px);
}

.s5-cartao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.s5-cartao img {
  width: auto;
  max-width: 100%;
  height: clamp(300px, 52vh, 620px);   /* boa presenca sem ficar pequeno */
  border-radius: 14px;
  object-fit: contain;                 /* proporcao original preservada */
  box-shadow: var(--sombra-card);
  pointer-events: none;                /* apenas referencia visual */
}

.s5-cartao__rotulo {
  font-family: var(--fonte-titulo);
  font-size: clamp(0.76rem, 0.26vw + 0.7rem, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-apoio);
}

/* Telas estreitas: os cartoes passam a ficar um abaixo do outro,
   preservando o tamanho em vez de encolherem os dois. */
@media (max-width: 860px) {
  .s5-cartoes { flex-direction: column; align-items: center; }
  .s5-cartao img { height: auto; width: min(420px, 88vw); }
}

/* ==========================================================================
   5. NAVEGACAO — mesmo padrao dos demais stands
   ========================================================================== */

.s5-botao {
  min-height: 64px;
  padding: 16px 38px;
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.22rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.s5-botao svg { width: 24px; height: 24px; }

.s5-navegacao {
  display: flex;
  width: 100%;
  max-width: 1180px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 26px);
  margin-inline: auto;
  padding: clamp(12px, 1.6vh, 20px) clamp(16px, 3vw, 44px);
}

.s5-nav-botao {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--raio-pill);
  font-size: clamp(0.94rem, 0.3vw + 0.88rem, 1.08rem);
  font-weight: 700;
  color: var(--texto-forte);
  background: var(--cor-branco);
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicao), box-shadow var(--transicao), opacity var(--transicao);
}

.s5-nav-botao svg { width: 22px; height: 22px; flex: 0 0 auto; }

.s5-nav-botao:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: var(--sombra-card-hover);
}

.s5-nav-botao[disabled] { opacity: 0.4; cursor: default; }

/* display: inline-flex sobrepoe o hidden padrao do navegador */
.s5-nav-botao[hidden] { display: none; }

.s5-nav-botao--fim {
  color: var(--cor-branco);
  background: var(--cor-marrom-medio);
  box-shadow: var(--sombra-botao);
}

.s5-marcadores {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 11px);
}

.s5-marcador {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tint-marrom);
  transition: background-color var(--transicao), width var(--transicao);
}

.s5-marcador[data-atual="true"] {
  width: 30px;
  border-radius: var(--raio-pill);
  background: var(--cor-laranja);
}

.s5-marcador[data-visitado="true"] { background: var(--cor-marrom-medio); }

.s5-posicao {
  font-family: var(--fonte-titulo);
  font-size: clamp(0.78rem, 0.26vw + 0.72rem, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-apoio);
}

.s5-indicador {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.s5-espacador { min-width: 1px; }

@media (max-width: 720px) {
  .s5-navegacao { justify-content: center; }
  .s5-marcador { width: 8px; height: 8px; }
  .s5-marcador[data-atual="true"] { width: 24px; }
}
