/* ---------------------------
   Tokens (Paleta Trilha) — Tema Claro (White-Dominant)
---------------------------- */
:root{
  /* Cores base */
  --brand:#083B66;          /* Azul primário */
  --brand-600:#0B4A80;      /* Azul hover */
  --brand-700:#0A3F6B;      /* Azul active/borda */
  --accent:#CF1717;         /* Vermelho secundário */
  --accent-600:#B41414;     /* Vermelho hover */
  --accent-700:#971010;     /* Vermelho active */

  /* Superfícies claras */
  --bg:#FFFFFF;             /* Fundo principal (branco) */
  --bg-alt:#F6F8FB;         /* Fundo alternativo (cinza muito claro) */
  --card:#FFFFFF;           /* Cartões/brancos */
  --card-border:#E6EDF5;    /* Bordas sutis */

  /* Tipografia escura */
  --text:#0B1220;           /* Texto principal */
  --muted:#5B667A;          /* Texto secundário */

  /* Ritmo e escalas */
  --h1: clamp(30px, 4.8vw, 54px);
  --h2: clamp(22px, 3.0vw, 34px);
  --lead: 18px;
  --space-1: 18px;
  --space-2: 28px;
  --space-3: 56px;

  /* Outros */
  --maxw:1120px;
  --radius:14px;
  --shadow:0 10px 30px rgba(2,16,43,.06); /* sombra leve no tema claro */
}

/* Redução de movimento */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important}
}

/* Reset & base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(8,59,102,.06) 0%, transparent 60%),
    radial-gradient(40% 35% at 0% 100%, rgba(207,23,23,.05) 0%, transparent 60%),
    var(--bg);
}

.container{width:100%; max-width:var(--maxw); margin-inline:auto; padding:0 10px}

/* Acessibilidade */
.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}

/* ---------------------------
   Header fixo + Navegação
---------------------------- */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(140%) blur(8px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--card-border);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; height:70px}
.logo img{display:block}

.nav-toggle{
  display:none; background:transparent;
  border:1px solid var(--card-border); color:var(--brand);
  padding:8px 10px; border-radius:10px
}
.nav-list{display:flex; gap:22px; list-style:none; margin:0; padding:0}
.nav-list a{
  color:var(--text); text-decoration:none; font-weight:600; opacity:.95;
  padding:8px 10px; border-radius:10px; outline:none
}
.nav-list a:hover{background:rgba(8,59,102,.10); color:var(--brand)}
.nav-list a:focus-visible{box-shadow:0 0 0 3px rgba(8,59,102,.35)}

@media (max-width:920px){
  .nav-toggle{display:block}
  .nav-list{
    position:absolute; right:20px; top:72px;
    background:var(--bg); padding:14px; border-radius:12px;
    box-shadow:var(--shadow); display:none; flex-direction:column; min-width:220px;
    border:1px solid var(--card-border)
  }
  .nav-list.open{display:flex}
}

/* ---------------------------
   Hero (claro, com overlay leve azul)
---------------------------- */
.hero{
  position:relative; min-height:82vh;
  display:grid; align-items:center; text-align:center; color:var(--text);
}
.hero-bg{
  position:absolute; inset:0;
  background:
    linear-gradient(120deg, rgba(8,59,102,.10), rgba(8,59,102,.06) 45%, transparent 75%),
    radial-gradient(30% 24% at 80% 20%, rgba(207,23,23,.08) 0%, transparent 100%),
    url('/assets/img/hero.jpg') center/cover no-repeat;
  filter:saturate(110%); opacity:.9;
}
.hero-inner{position:relative; z-index:1; padding:calc(var(--space-3) + 8px) 0 var(--space-3)}
.hero h1{font-size:var(--h1); line-height:1.12; letter-spacing:-0.015em; margin:0 0 14px}
.hero .highlight{
  background:linear-gradient(90deg, var(--brand) 0%, #2F8FD4 55%, #6ABFF6 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.hero p{max-width:820px; margin:0 auto 26px; color:var(--muted); font-size:var(--lead)}
.btn-stack{display:inline-flex; flex-wrap:wrap; gap:10px; justify-content:center}

@media (max-width:1024px){
  .hero{min-height:76vh}
  .hero p{padding:0 8px}
}
@media (max-width:640px){
  .hero{min-height:64vh}
  .btn-stack{flex-direction:column; align-items:center}
}

/* ==== PATCH BLOCO 2 — SOBRE (bullets com check) ==== */
#sobre .lead{margin-top:6px}

.bullet-list{
  list-style:none; margin:22px 0 0; padding:0;
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px;
}
@media (max-width:840px){ .bullet-list{grid-template-columns:1fr} }

.bullet-list li{
  position:relative; background:var(--card);
  border:1px solid var(--card-border); border-radius:12px;
  padding:16px 16px 14px 56px; box-shadow:var(--shadow);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.bullet-list li:hover{transform:translateY(-2px); border-color:rgba(8,59,102,.28)}

.bullet-list li::before{
  content:""; position:absolute; left:16px; top:18px; width:28px; height:28px; border-radius:8px;
  background:linear-gradient(180deg, var(--brand), var(--brand-600));
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 20.6 7.4 19.2 6l-10.2 10.2z'/%3E%3C/svg%3E") center/18px 18px no-repeat;
  box-shadow:0 6px 14px rgba(8,59,102,.18);
}

.bullet-list h3{
  margin:0 0 6px; font-size:18px; font-weight:800; color:var(--text); letter-spacing:-0.01em;
}
.bullet-list p{margin:0; color:var(--muted)}

/* ==== PATCH BLOCO 3 — MÉTODO (stepper) ==== */
#metodo .stepper{
  counter-reset: step;
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
  margin-top: 26px;
}
@media (max-width:980px){ #metodo .stepper{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ #metodo .stepper{grid-template-columns:1fr} }

#metodo .step{
  position:relative;
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  padding:18px 18px 16px 18px;
  box-shadow:var(--shadow);
  min-height:170px;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#metodo .step:hover{
  transform:translateY(-2px);
  border-color:rgba(8,59,102,.28);
  box-shadow:0 12px 28px rgba(2,16,43,.08);
}

#metodo .step-head{
  display:flex; align-items:center; gap:12px; margin-bottom:6px;
}

li.step::marker {
  color: transparent;
}

#metodo .step-index{
  counter-increment: step;
  position:relative;
  width:40px; height:40px; flex:0 0 40px;
  border-radius:50%;
  display:grid; place-items:center;
  color:#fff; font-weight:900;
  background:linear-gradient(180deg, var(--brand), var(--brand-600));
  box-shadow:0 8px 18px rgba(8,59,102,.18);
}
#metodo .step-index::before{
  content:counter(step);
  font-variant-numeric:tabular-nums;
}

#metodo h3{
  margin:0; font-size:18px; font-weight:800; color:var(--text); letter-spacing:-0.01em;
}
#metodo .step-text{margin:8px 0 0; color:var(--muted)}

/* Conectores verticais no mobile (reforça passo a passo) */
@media (max-width:640px){
  #metodo .step{padding-left:72px}
  #metodo .step-index{position:absolute; left:18px; top:18px}
  #metodo .step::after{
    content:""; position:absolute; left:38px; top:62px; bottom:-18px; width:2px;
    background:linear-gradient(180deg, rgba(8,59,102,.25), rgba(8,59,102,.06));
  }
  #metodo .step:last-child::after{display:none}
}

/* ==== PATCH BLOCO 4 — METAS (cards altos + contadores) ==== */
#metricas .grid-cards{grid-template-columns:repeat(4,1fr)}
@media (max-width:980px){ #metricas .grid-cards{grid-template-columns:repeat(2,1fr)} }
@media (max-width:620px){ #metricas .grid-cards{grid-template-columns:1fr} }

#metricas .card{
  min-height:240px;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start;
  gap:8px;
}

#metricas .stat{
  font-size:42px; line-height:1; font-weight:900;
  letter-spacing:-0.02em; color:var(--brand);
}
#metricas .stat small{font-size:18px; font-weight:700; margin-left:4px; color:var(--brand-600)}
#metricas h3{margin:2px 0 0; font-size:18px; font-weight:800; color:var(--text)}
#metricas .desc{color:var(--muted); margin:4px 0 0}

/* ==== PATCH BLOCO 5 — CASES (cards altos com ícone) ==== */
#cases .grid-cards{grid-template-columns:repeat(3,1fr)}
@media (max-width:980px){ #cases .grid-cards{grid-template-columns:repeat(2,1fr)} }
@media (max-width:620px){ #cases .grid-cards{grid-template-columns:1fr} }

#cases .card{
  min-height:240px;
  display:flex; flex-direction:column; align-items:flex-start; gap:10px;
}

.icon-badge{
  width:48px; height:48px; border-radius:50%;
  display:inline-grid; place-items:center;
  background:linear-gradient(180deg, var(--brand), var(--brand-600));
  color:#fff; box-shadow:0 8px 18px rgba(8,59,102,.18);
}
.icon-badge svg{display:block}

/* ==== PATCH BLOCO 6 — PARCEIROS (grid 4 centralizado) ==== */
#parceiros .logo-grid{
  /* Override das regras globais de .logo-grid */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* se adapta ao espaço */
  gap: clamp(12px, 3vw, 24px);
  place-items: center;
  align-items: center;
}

#parceiros .logo-grid > *{
  min-width: 0; /* evita overflow em colunas estreitas */
}

#parceiros .logo-grid img{
  display: block;               /* remove “gaps” de linha */
  width: auto;                  /* não força largura fixa */
  max-width: 100%;              /* nunca ultrapassa a coluna */
  height: auto;                 /* mantém proporção */
  max-height: 42px;             /* altura visual padronizada */
  object-fit: contain;          /* garante que caiba no box */
  filter: grayscale(100%) contrast(108%) brightness(92%);
  opacity: .95;
  transition: filter .2s, transform .2s;
}
#parceiros .logo-grid img:hover{ filter: none; transform: translateY(-1px); }

/* Ajuste fino para telas muito pequenas: 1 logo por linha */
@media (max-width: 400px){
  #parceiros .logo-grid{
    grid-template-columns: 1fr;
  }
}

/* Título à esquerda (mantém o resto centralizado) */
#titulo-parceiros{ text-align: left; margin-left: 0; }
#parceiros .mini{ text-align: left; }


/* ==== NOVO LAYOUT BLOCO 7 — FAQ ==== */
#faq .grid-cards{grid-template-columns:1fr; gap:16px}

#faq details{
  border-radius:12px;
  background:#fff;
  padding:16px 18px;
  transition:border-color .25s ease, box-shadow .25s ease;
}
#faq details[open]{
  border-color:var(--brand);
}

#faq summary{
  cursor:pointer;
  list-style:none;
  font-weight:700;
  font-size:17px;
  color:var(--brand);
  display:flex; justify-content:space-between; align-items:center;
  outline:0;
}
#faq summary::-webkit-details-marker{display:none}

#faq summary::after{
  content:""; width:20px; height:20px; flex:0 0 20px;
  border-radius:50%; background:var(--brand);
  mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E") center/14px 14px no-repeat;
  transition:transform .25s ease, background .25s ease;
}
#faq details[open] summary::after{transform:rotate(180deg); background:var(--accent)}

#faq details p{
  margin:12px 0 0;
  color:var(--muted);
  line-height:1.5;
  font-size:15px;
}

/* ==== BLOCO 8 — CTA final (centralizado) ==== */
#cta .container{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

#cta h2{
  margin:0 0 10px;
  color:var(--text);
}

#cta .lead{
  max-width:800px;
  margin:0 auto 18px;
  color:var(--muted);
  font-size:var(--lead);
}

.cta-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}

.cta-actions .btn{
  min-width:180px;
}

/* Responsivo: botões empilhados no mobile */
@media (max-width:520px){
  .cta-actions{
    flex-direction:column;
    align-items:center;
    width:100%;
  }
  .cta-actions .btn{
    width:100%;
    max-width:320px;
  }
}

/* ===== BLOCO — VISÃO DO CEO (destacado e responsivo) ===== */
/* ===== Visão do CEO — layout clean e responsivo ===== */
#ceo .ceo-wrap{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:28px;
  align-items:center;
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:16px;
  box-shadow:0 12px 32px rgba(8,59,102,.07);
  padding:22px;
}

#ceo .ceo-photo{margin:0}
#ceo .ceo-photo img{
  width:100%; height:auto; object-fit:cover; aspect-ratio:1/1;
  border-radius:14px; border:1px solid var(--card-border);
  box-shadow:0 10px 24px rgba(2,16,43,.08);
}

#ceo .ceo-header .eyebrow{
  display:inline-block; font-size:12px; font-weight:800; letter-spacing:.12em;
  text-transform:uppercase; color:var(--brand-600); margin-bottom:4px;
}
#ceo .ceo-content h2{
  margin:0 0 10px; color:var(--brand); letter-spacing:-0.01em; font-weight:900;
  font-size:clamp(22px,2.6vw,32px);
}

/* Pull-quote limpa (sem bloco cinza pesado) */
#ceo .quote-card{
  position:relative;
  margin:0;
  padding:16px 18px 14px 18px;
  background:linear-gradient(180deg, #F6F8FB 0%, #FFFFFF 100%);
  border:1px solid var(--card-border);
  border-radius:12px;
  box-shadow:0 6px 18px rgba(8,59,102,.06);
  /* borda esquerda com degradê azul→vermelho */
  border-left:0; 
}
#ceo .quote-card::before{
  content:"";
  position:absolute; left:0; top:0; bottom:0; width:5px; border-radius:12px 0 0 12px;
  background:linear-gradient(180deg, var(--brand), var(--accent));
}

/* Aspas discretas */
#ceo .quote-card::after{
  content:"“";
  position:absolute; left:12px; top:-10px; font-size:48px; line-height:.8;
  font-family:Georgia, "Times New Roman", serif;
  color:transparent;
  background:linear-gradient(180deg, var(--brand), var(--brand-600));
  -webkit-background-clip:text; background-clip:text;
  opacity:.14; pointer-events:none;
}

#ceo .quote-card p{
  margin:0 0 10px;
  color:var(--text);
  font-size:18px;
  line-height:1.6;
  font-style:normal;         /* sem itálico pesado */
}
#ceo .quote-card strong{color:var(--brand)}
#ceo .quote-card em{color:var(--accent); font-style:normal; font-weight:800}

#ceo .ceo-legend{
  margin-top:6px; font-size:14px; font-weight:800; color:var(--brand);
}
#ceo .ceo-role{ color:var(--brand-600) }

/* Responsividade */
@media (max-width:980px){
  #ceo .ceo-wrap{ grid-template-columns:260px 1fr }
}
@media (max-width:760px){
  #ceo .ceo-wrap{ grid-template-columns:1fr; padding:18px }
  #ceo .ceo-photo{ order:-1; justify-self:center }
  #ceo .ceo-photo img{ max-width:320px }
  #ceo .quote-card{ padding-left:18px }
  #ceo .quote-card::after{ left:10px; top:-8px; font-size:42px }
}
@media (max-width:420px){
  #ceo .ceo-photo img{ max-width:260px }
  #ceo .quote-card p{ font-size:17px }
}


/* ---------------------------
   Botões (prim/seg)
---------------------------- */
.btn{
  display:inline-block; padding:16px 24px; border-radius:12px; text-decoration:none; font-weight:800;
  border:1px solid var(--card-border); line-height:1; outline:none; letter-spacing:.2px
}
.btn:focus-visible{box-shadow:0 0 0 3px rgba(8,59,102,.35)}
.btn-primary{
  color:#fff; background:linear-gradient(90deg, var(--brand), var(--brand-600));
  border-color:rgba(8,59,102,.35); box-shadow:0 10px 24px rgba(2,16,43,.10)
}
.btn-primary:hover{background:linear-gradient(90deg, var(--brand-600), var(--brand-700)); transform:translateY(-1px)}
.btn-secondary{
  color:#fff; background:linear-gradient(90deg, var(--accent), var(--accent-600));
  border-color:rgba(207,23,23,.35); box-shadow:0 10px 24px rgba(207,23,23,.12)
}
.btn-secondary:hover{background:linear-gradient(90deg, var(--accent-600), var(--accent-700)); transform:translateY(-1px)}
.center-btn{
  justify-content:center;
  display:flex;
}

/* ---------------------------
   Seções e Títulos
---------------------------- */
.section{padding:var(--space-3) 0; background:transparent}
.section.alt{background:var(--bg-alt)}
h2{
  font-size:var(--h2);
  font-weight:900;
  letter-spacing:-0.01em;
  margin:0 0 var(--space-2);
  color:var(--brand);
  position:relative;
}
h2::after{
  content:"";
  display:block;
  width:64px; height:3px;
  margin-top:10px;
  background:linear-gradient(90deg, var(--brand), var(--accent));
  border-radius:2px; opacity:.9;
}

/* ---------------------------
   Carrossel de Logos (claro)
---------------------------- */
.logo-carousel{
  overflow:hidden; border:1px solid var(--card-border);
  border-radius:16px; background:#fff; box-shadow:var(--shadow)
}
.logo-carousel .track{display:flex; gap:56px; padding:22px 0; will-change:transform}
.logo-carousel .slide{flex:0 0 auto; display:grid; place-items:center; min-width:100px}
.logo-carousel img{
  max-height:44px; width:auto; filter:grayscale(100%) contrast(108%) brightness(90%);
  opacity:.9; transition:filter .2s, opacity .2s, transform .2s
}
.logo-carousel img:hover{filter:none; opacity:1; transform:translateY(-1px)}

/* Utilitário: remover grayscale se necessário */
.no-gray .logo-carousel img{filter:none}

/* ---------------------------
   Grid de Empresas (Cards)
---------------------------- */
.grid-cards{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px
}
@media (max-width:980px){ .grid-cards{grid-template-columns:repeat(2,1fr)} }
@media (max-width:620px){ .grid-cards{grid-template-columns:1fr} }

.card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px; padding:18px;
  box-shadow:var(--shadow);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease
}
.card:hover{
  transform:translateY(-3px);
  border-color:rgba(8,59,102,.35);
  box-shadow:0 12px 28px rgba(2,16,43,.08)
}
.card-logo{display:block; margin-bottom:10px}
.card h3{margin:8px 0 6px; font-size:18px; font-weight:800; color:var(--text)}
.card p{margin:0 0 12px; color:var(--muted)}
.card-link{
  color:#fff; text-decoration:none; font-weight:800;
  background:linear-gradient(90deg, var(--brand), var(--brand-600));
  padding:10px 12px; border-radius:10px; display:inline-block
}
.card-link:hover{background:linear-gradient(90deg, var(--brand-600), var(--brand-700))}

/* ---------------------------
   Palavra do CEO (claro)
---------------------------- */
.ceo-wrap{display:grid; grid-template-columns:320px 1fr; gap:28px; align-items:center}
@media (max-width:900px){ .ceo-wrap{grid-template-columns:1fr} }
.ceo-photo img{
  border-radius:18px; object-fit:cover; width:100%; height:auto; box-shadow:var(--shadow); border:1px solid var(--card-border)
}
blockquote{
  margin:0; padding:18px; border-left:6px solid var(--accent);
  background:
    linear-gradient(90deg, rgba(207,23,23,.08), rgba(8,59,102,.06)),
    #fff;
  border-radius:12px; border:1px solid var(--card-border)
}
blockquote p{font-size:18px; margin:0 0 8px; color:var(--text)}
blockquote footer{color:var(--muted); font-size:14px}

/* ---------------------------
   Parceiros (Grid claro)
---------------------------- */
.logo-grid{
  display:grid; grid-template-columns:repeat(6,1fr); gap:25px; align-items:center; justify-items:center;
}
.logo-grid img{
  max-height:38px; width:auto; filter:grayscale(100%) contrast(108%) brightness(90%);
  opacity:.95; transition:filter .2s
}
.logo-grid img:hover{filter:none}
@media (max-width:1000px){ .logo-grid{grid-template-columns:repeat(4,1fr)} }
@media (max-width:620px){ .logo-grid{grid-template-columns:repeat(2,1fr)} }

/* ---------------------------
   Rodapé (claro)
---------------------------- */
.site-footer{
  border-top:1px solid var(--card-border);
  padding:28px 0; background:#F8FAFD
}
.footer-inner{display:flex; align-items:center; justify-content:space-between; gap:18px}
.footer-inner nav a{
  color:var(--muted); text-decoration:none; margin-left:16px; padding:6px 8px; border-radius:8px
}
.footer-inner nav a:hover{color:var(--brand); background:rgba(8,59,102,.10)}
.mini{color:var(--muted); margin:.2rem 0}

/* ---------------------------
   Focos visíveis globais
---------------------------- */
:where(a, button, .btn, .card-link):focus-visible{
  outline:none; box-shadow:0 0 0 3px rgba(8,59,102,.30)
}
