/* =========================================================
   home.css — ExperConsult site novo (Task 5: Home completa)
   SOMENTE layout das secoes abaixo do hero (metodo, solucoes,
   segmentos, only-statement, prova, CTA, footer). Todo o MOVIMENTO
   (estados iniciais, reveals) vive em motion.css. Mobile-first 360.
   Paleta e tokens: tokens.css. Regras de contraste: cor viva so em
   blocos/barras/dots/underline; texto sempre grafite-sobre-claro ou
   branco-sobre-grafite; labels de braco usam as variantes text-safe.
   ========================================================= */

/* ancoras respeitam o header fixo; scroll suave so sem reduced-motion */
section[id], [id].anchor-offset { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: no-preference){ html{ scroll-behavior: smooth; } }

/* cabecalho de secao reutilizavel */
.sec-head{ max-width: 40ch; }
.sec-head h2{ margin-top: var(--s2); }
.sec-lead{ margin-top: var(--s2); color: var(--muted); max-width: 56ch; }
.bg-dark .sec-lead{ color: var(--muted-inv); }

/* =========================================================
   1. O METODO (teaser) — linha horizontal com 5 nos
   ========================================================= */
.metodo{ --acc-txt: var(--teal-txt); }
.metodo-track{ position: relative; margin-top: var(--s5); }

/* a linha que "se desenha" (scale via anime.js; origem topo-esquerda
   funciona nos dois eixos: horizontal no desktop, vertical no mobile) */
.metodo-line{
  position: absolute;
  background: linear-gradient(90deg, var(--teal), var(--verde));
  transform-origin: top left;
  z-index: 0;
}

.metodo-steps{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: etapa;
}

.metodo-step{ position: relative; padding-left: calc(var(--s4) + 4px); }

.metodo-dot{
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--off);
  box-shadow: 0 0 0 1px rgba(18,22,27,.10);
}
.metodo-dot.is-teal{ background: var(--teal); }
.metodo-dot.is-verde{ background: var(--verde); }
.metodo-dot.is-magenta{ background: var(--magenta); }

.metodo-num{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--muted);
}
.metodo-step h3{
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  margin-top: 2px;
}
.metodo-step p{ margin-top: 4px; color: var(--muted); max-width: 30ch; }

/* linha lateral (mobile): vertical, encostada nos dots */
.metodo-line{ left: 7px; top: 4px; bottom: 4px; width: 2px; }

@media (min-width: 768px){
  .metodo-steps{
    flex-direction: row;
    gap: var(--s3);
  }
  .metodo-step{
    flex: 1;
    padding-left: 0;
    padding-top: calc(16px + var(--s2));
  }
  .metodo-dot{ top: 0; left: 0; }
  /* linha horizontal atravessando os dots (centro do dot = 8px) */
  .metodo-line{
    left: 0; right: 0;
    top: 7px; bottom: auto;
    width: auto; height: 2px;
  }
  .metodo-step p{ max-width: 26ch; }
}

/* =========================================================
   2. SOLUCOES (3 bracos) — fundo grafite, cards claros
   barra viva no topo, label text-safe, corpo grafite
   ========================================================= */
.bracos-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin-top: var(--s5);
}
@media (min-width: 768px){ .bracos-grid{ grid-template-columns: repeat(3, 1fr); } }

.braco-card{
  position: relative;
  overflow: hidden;
  background: var(--branco);
  border: 1px solid #DCD8CE;
  border-radius: var(--radius);
  padding: calc(var(--s3) + 6px) var(--s3) var(--s3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.braco-card:hover{ transform: translateY(-3px); box-shadow: 0 12px 30px -18px rgba(0,0,0,.55); }
.braco-bar{ position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--acc); }
.braco-label{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acc-txt);
}
.braco-title{
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.12;
  color: var(--txt);
  margin-top: var(--s1);
}
.braco-body{ margin-top: var(--s2); color: var(--txt); }

/* =========================================================
   3. SEGMENTOS (7) — grid; Central ATM = card wide destacado
   ========================================================= */
.seg-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  margin-top: var(--s5);
}
@media (min-width: 768px){
  .seg-grid{ grid-template-columns: repeat(2, 1fr); }
  .seg-card--wide{ grid-column: 1 / -1; }
}
@media (min-width: 1100px){
  .seg-grid{ grid-template-columns: repeat(3, 1fr); }
  .seg-card--wide{ grid-column: auto / span 2; }
}

.seg-card{
  background: var(--branco);
  border: 1px solid #DCD8CE;
  border-radius: var(--radius);
  padding: var(--s3);
  transition: border-color .2s ease, transform .2s ease;
}
.seg-card:hover{ transform: translateY(-3px); border-color: var(--muted); }
.seg-tag{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.seg-name{
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  margin-top: 6px;
}
.seg-desc{ margin-top: var(--s1); color: var(--txt); }

/* card wide destacado = varejo/ATM, fundo grafite, acento teal */
.seg-card--wide{
  display: grid;
  gap: 6px var(--s4);
  background: var(--grafite);
  border-color: transparent;
  color: var(--txt-inv);
}
.seg-card--wide:hover{ border-color: var(--teal); transform: translateY(-3px); }
.seg-card--wide .seg-tag{ color: var(--teal); }
.seg-card--wide .seg-desc{ color: var(--txt-inv); max-width: 52ch; }
@media (min-width: 768px){
  .seg-card--wide{ grid-template-columns: auto 1fr; align-items: baseline; padding: var(--s3) var(--s4); }
  .seg-card--wide .seg-tag{ grid-row: 1; align-self: center; }
}

/* =========================================================
   4. ONLY STATEMENT — faixa centralizada, display grande
   ========================================================= */
.only-inner{ max-width: 20ch; margin-inline: auto; text-align: center; }
.only-statement{
  font-family: var(--disp);
  font-weight: 800;
  line-height: 1.08;
  font-size: clamp(1.9rem, 5.4vw, 3.3rem);
  color: var(--off);
  letter-spacing: -.01em;
}
/* "negocio" com acento visual: sublinhado verde (bloco), texto claro legivel */
.only-accent{
  font-style: normal;
  background-image: linear-gradient(var(--verde), var(--verde));
  background-repeat: no-repeat;
  background-size: 100% .14em;
  background-position: 0 92%;
  padding-bottom: .02em;
}
.only-support{
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--muted-inv);
  margin-top: var(--s3);
  max-width: 48ch;
  margin-inline: auto;
}

/* =========================================================
   5. PROVA / CLIENTES — nomes em texto estilizado + paises
   ========================================================= */
.clientes-wall{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s4);
  margin-top: var(--s5);
}
.cliente{
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.4vw, 1.75rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--txt);
}
.cliente + .cliente{ position: relative; }
.clientes-paises{
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: var(--s5);
}

/* =========================================================
   6. CTA FINAL — fundo grafite, botoes, endereco
   ========================================================= */
.cta-inner{ max-width: 40ch; }
.cta-title{ font-size: clamp(1.7rem, 5vw, 2.8rem); }
.cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}
.cta-meta{
  margin-top: var(--s4);
  color: var(--muted-inv);
  font-size: .98rem;
  line-height: 1.6;
}

/* =========================================================
   7. FOOTER completo
   ========================================================= */
.site-footer{ padding-block: var(--s5) var(--s3); }
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
@media (min-width: 768px){
  .footer-grid{ grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s4); }
}
.footer-brand .footer-logo{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--disp);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--txt-inv);
  text-decoration: none;
}
.footer-tagline{ margin-top: var(--s2); color: var(--muted-inv); max-width: 34ch; }
.footer-col h4{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-inv);
  margin-bottom: var(--s2);
}
.footer-col a,
.footer-col p{
  display: block;
  min-height: 32px;
  color: var(--txt-inv);
  text-decoration: none;
  padding-block: 4px;
}
.footer-col a:hover,
.footer-col a:focus-visible{ color: var(--verde); }
.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-bottom p{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-inv);
}
.footer-proto{ letter-spacing: .06em; }
