/* ===== Stoa — site institucional ===== */
/* Paleta espelhada do sistema (stoa-frontend/src/index.css) */
:root {
  --azul: #2459a6;
  --azul-hover: #1d4d92;
  --azul-escuro: #173a6b;
  --azul-claro: #3a6cba;
  --azul-suave: #e8eef8;
  --azul-borda: #c8d8f0;
  --texto: #1f2937;
  --texto-suave: #5f5e5a;
  --branco: #ffffff;
  --fundo-input: #f6f8fc;
  --max: 1080px;
  --raio: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Corpo de texto em sans; títulos/marca em serifa (combina com a logo) */
body, p, a, button, input, textarea, label, span, li {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, .marca, .citacao { font-family: Georgia, "Times New Roman", serif; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ===== Topo / nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--azul-suave);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { height: 32px; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 14px; color: var(--texto-suave); }
.nav-links a:hover { color: var(--azul); }
.btn-sistema {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--azul);
  border: 1px solid var(--azul); padding: 8px 16px; border-radius: var(--raio);
  transition: background .15s, color .15s;
}
.btn-sistema:hover { background: var(--azul); color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--azul-escuro); cursor: pointer; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; padding: 14px 28px;
  border-radius: var(--raio); cursor: pointer; border: 1px solid transparent;
  transition: background .15s, transform .05s;
}
.btn-primario { background: #fff; color: var(--azul-escuro); }
.btn-primario:hover { background: var(--azul-suave); }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--azul-hover); }
.btn-azul:active { transform: scale(.99); }
.btn-contorno { border-color: var(--azul-borda); color: #fff; }
.btn-contorno:hover { background: rgba(255,255,255,.12); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--azul); color: #fff; text-align: center; padding: 84px 0 92px; }
.hero .wrap { position: relative; z-index: 1; }
.hero-icons { display: flex; justify-content: center; gap: 18px; font-size: 26px; color: var(--azul-borda); margin-bottom: 26px; }
.hero h1 { font-size: 46px; font-weight: 500; line-height: 1.15; max-width: 760px; margin: 0 auto; letter-spacing: -.5px; }
.hero p { font-size: 18px; color: #dbe6f5; max-width: 620px; margin: 22px auto 34px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Seções genéricas ===== */
section { padding: 80px 0; }
.sec-centro { text-align: center; }
.sobretitulo { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--azul); margin-bottom: 14px; }
h2 { font-size: 34px; font-weight: 500; color: var(--azul-escuro); line-height: 1.2; max-width: 720px; margin: 0 auto; letter-spacing: -.3px; }
.lead { font-size: 17px; color: var(--texto-suave); max-width: 660px; margin: 20px auto 0; line-height: 1.8; }

/* Diagnóstico (fundo branco) */
.diagnostico { padding-top: 90px; padding-bottom: 90px; }

/* ===== Método ===== */
.metodo { background: var(--azul-suave); }

/* Templo grego — desenho portado do sistema (Templo.jsx): frontão, colunata
   com caneluras, capitéis e estilóbato escalonado. Versão estática "concluída". */
.templo-scroll { margin-top: 48px; overflow-x: auto; padding-bottom: 6px; }
.templo { display: flex; flex-direction: column; align-items: stretch; width: 884px; max-width: 884px; margin: 0 auto; }
.tpl-frontao { height: 42px; width: 94%; margin: 0 auto; background: linear-gradient(180deg, var(--azul-claro), var(--azul-escuro)); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.tpl-cornija { width: 96%; margin: 0 auto; height: 11px; background: linear-gradient(180deg, var(--azul-escuro), #2b4f9e); border-radius: 3px; box-shadow: 0 2px 4px rgba(30,58,138,.25); }
.tpl-entablamento { width: 92%; margin: 2px auto 0; height: 26px; background: linear-gradient(180deg, #f3f6fb, #e7edf6); border: 1px solid var(--azul-borda); border-radius: 3px; display: flex; align-items: center; }
.tpl-friso { height: 8px; width: 100%; margin: 0 10px; background: repeating-linear-gradient(90deg, #c9d6ea 0 10px, #eef3fb 10px 20px); }
.tpl-colunata { width: 94%; margin: 0 auto; display: flex; justify-content: center; gap: 8px; padding: 6px 6px 0; background: transparent; }
.tpl-col { display: flex; flex-direction: column; align-items: center; width: 96px; }
.tpl-nome { width: 96px; margin-top: 11px; font-size: 13px; font-weight: 600; color: var(--azul-escuro); text-align: center; line-height: 1.25; }
.tpl-abaco { width: 52px; height: 7px; background: linear-gradient(180deg, #fff, #dfe6f1); border: 1px solid #c4cee0; border-radius: 2px; }
.tpl-equino { width: 44px; height: 8px; background: linear-gradient(180deg, #eef2f8, #cfd8e8); border-radius: 0 0 6px 6px; }
.tpl-fuste { width: 38px; height: 158px; border: 1px solid #b9c4d6; border-radius: 2px; background-image: repeating-linear-gradient(90deg, #c9d2e0 0px, #eef2f8 3px, #ffffff 7px, #eef2f8 11px, #c9d2e0 13px); box-shadow: inset 0 0 4px rgba(0,0,0,.06); }
.tpl-base { width: 52px; height: 12px; background: linear-gradient(180deg, #e3e9f2, #c2cde0); border: 1px solid #b3bfd3; border-radius: 4px 4px 2px 2px; margin-top: -1px; }
.tpl-estilo1 { width: 94%; height: 11px; margin: 0 auto; background: linear-gradient(180deg, #e7edf6, #d4ddec); border-radius: 2px 2px 0 0; }
.tpl-estilo2 { width: 98%; height: 12px; margin: 0 auto; background: linear-gradient(180deg, #d4ddec, #b9c6dc); }
.tpl-estilo3 { width: 100%; height: 14px; margin: 0 auto; background: linear-gradient(180deg, var(--azul-claro), var(--azul-escuro)); border-radius: 0 0 4px 4px; }

.fases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.fase { background: #fff; border: 1px solid var(--azul-borda); border-radius: var(--raio); padding: 20px; }
.fase h3 { font-size: 16px; font-weight: 600; color: var(--azul); margin-bottom: 8px; }
.fase p { font-size: 14px; color: var(--texto-suave); line-height: 1.55; }

/* ===== Como funciona ===== */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.passo { text-align: center; }
.passo-icone { width: 58px; height: 58px; border-radius: 50%; background: var(--azul-suave); color: var(--azul); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px; }
.passo h3 { font-size: 17px; font-weight: 600; color: var(--azul-escuro); margin-bottom: 8px; }
.passo p { font-size: 15px; color: var(--texto-suave); line-height: 1.7; }

/* ===== Autoridade ===== */
.autoridade { background: var(--azul-escuro); color: #fff; text-align: center; }
.autoridade h2 { color: #fff; }
.autoridade .lead { color: var(--azul-borda); }
.citacao { font-style: italic; font-size: 19px; color: #fff; max-width: 600px; margin: 28px auto 0; line-height: 1.6; }

/* ===== Formulário ===== */
.contato { background: #fff; }
.form { max-width: 460px; margin: 36px auto 0; text-align: left; }
.form-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 13px; color: var(--texto-suave); margin-bottom: 6px; }
.campo input, .campo textarea {
  width: 100%; padding: 11px 13px; font-size: 15px;
  border: 1px solid var(--azul-borda); border-radius: var(--raio);
  background: var(--fundo-input); color: var(--texto); transition: border-color .15s;
}
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--azul); }
.campo input.invalido, .campo textarea.invalido { border-color: #dc2626; background: #fef5f5; }
.campo textarea { resize: vertical; min-height: 84px; }
.form .btn-azul { width: 100%; margin-top: 6px; }
.form-msg { font-size: 14px; text-align: center; margin-top: 14px; min-height: 20px; }
.form-msg.ok { color: #15803d; }
.form-msg.erro { color: #dc2626; }

/* ===== Rodapé ===== */
.rodape { background: var(--azul-escuro); color: #fff; padding: 32px 0; border-top: 1px solid var(--azul); }
.rodape .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.rodape .marca { font-size: 22px; color: #fff; margin-bottom: 4px; }
.rodape .contato-linha { font-size: 13px; color: var(--azul-borda); }
.rodape-links { display: flex; align-items: center; gap: 18px; }
.rodape-links a { font-size: 13px; color: var(--azul-borda); }
.rodape-links a:hover { color: #fff; }
.area-consultor { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--azul); padding: 7px 13px; border-radius: var(--raio); }

/* ===== Página área restrita ===== */
.restrita { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--azul-suave); padding: 24px; }
.cartao-senha { background: #fff; border: 1px solid var(--azul-borda); border-radius: 14px; padding: 40px; max-width: 380px; width: 100%; text-align: center; }
.cartao-senha .lock { font-size: 34px; color: var(--azul); margin-bottom: 12px; }
.cartao-senha h1 { font-size: 24px; color: var(--azul-escuro); margin-bottom: 6px; }
.cartao-senha p { font-size: 14px; color: var(--texto-suave); margin-bottom: 22px; }
.cartao-senha input { width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid var(--azul-borda); border-radius: var(--raio); background: var(--fundo-input); margin-bottom: 12px; }
.cartao-senha input:focus { outline: none; border-color: var(--azul); }
.cartao-senha .erro { color: #dc2626; font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.voltar { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--azul); }

/* ===== Responsivo ===== */
@media (max-width: 820px) {
  .hero h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  .fases { grid-template-columns: 1fr 1fr; }
  .passos { grid-template-columns: 1fr; gap: 36px; }
  .nav-links .navlink { display: none; }
}
@media (max-width: 520px) {
  .fases { grid-template-columns: 1fr; }
  .form-linha { grid-template-columns: 1fr; }
  .hero h1 { font-size: 29px; }
  .rodape .wrap { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Modernização — degradês, movimento e interação
   ============================================================ */

/* Hero: imagem de colunas gregas (PLACEHOLDER — trocar por foto de banco) +
   overlay azul em degradê pra manter o texto legível */
.hero {
  background:
    linear-gradient(125deg, rgba(20,50,88,.86) 0%, rgba(36,89,166,.70) 50%, rgba(29,77,146,.82) 100%),
    url("hero-pilares.svg?v=2") center / cover no-repeat;
}
/* Entrada do hero (sem flash) */
.hero-icons { animation: fadeUp .8s ease both; }
.hero h1 { animation: fadeUp .8s ease .1s both; }
.hero p { animation: fadeUp .8s ease .25s both; }
.hero-cta { animation: fadeUp .8s ease .4s both; }
.hero-icons i { animation: floatY 4.5s ease-in-out infinite; }
.hero-icons i:nth-child(2) { animation-delay: .7s; }
.hero-icons i:nth-child(3) { animation-delay: 1.4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Botões com degradê + brilho no hover */
.btn-azul, .form .btn-azul { background: linear-gradient(135deg, #2459a6, #3a6cba); box-shadow: 0 6px 18px rgba(36,89,166,.28); }
.btn-azul:hover, .form .btn-azul:hover { background: linear-gradient(135deg, #1d4d92, #2f63b4); box-shadow: 0 10px 26px rgba(36,89,166,.36); transform: translateY(-2px); }
.btn-primario { box-shadow: 0 6px 18px rgba(0,0,0,.16); transition: transform .15s ease, box-shadow .15s ease; }
.btn-primario:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }

/* Reveal ao rolar */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Hover nos cartões */
.fase, .tech-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.fase:hover, .tech-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(36,89,166,.14); border-color: var(--azul-claro); }
.passo-icone { transition: transform .22s ease; }
.passo:hover .passo-icone { transform: translateY(-5px) scale(1.06); }
.tpl-col { transition: transform .2s ease; }
.tpl-col:hover { transform: translateY(-4px); }

/* ===== Faixa de números (stats) ===== */
.stats { background: var(--azul-suave); padding: 40px 0; border-top: 1px solid var(--azul-borda); border-bottom: 1px solid var(--azul-borda); }
@media (min-width: 641px) { .stat + .stat { border-left: 1px solid var(--azul-borda); } }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 860px; margin: 0 auto; }
.stat { text-align: center; }
.stat-num { font-family: Georgia, "Times New Roman", serif; font-size: 50px; font-weight: 700; line-height: 1;
  background: linear-gradient(120deg, #2459a6, #3a6cba); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 8px; font-size: 14px; color: var(--texto-suave); }

/* ===== Tecnologia + Conhecimento ===== */
.tech { background: #fff; }
.tech-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 38px auto 0; }
.tech-card { background: #fff; border: 1px solid var(--azul-borda); border-radius: 16px; padding: 28px; text-align: left; }
.tech-ico { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg, #2459a6, #3a6cba); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 25px; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(36,89,166,.28); }
.tech-card h3 { font-size: 18px; color: var(--azul-escuro); margin-bottom: 8px; }
.tech-card p { font-size: 14.5px; color: var(--texto-suave); line-height: 1.65; }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .tech-cards { grid-template-columns: 1fr; }
  .stat-num { font-size: 42px; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .hero, .hero-icons, .hero h1, .hero p, .hero-cta, .hero-icons i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Credibilidade e conversão — depoimentos, FAQ, WhatsApp, LGPD
   ============================================================ */

.hero-nota { margin-top: 14px; font-size: 13px; color: #c8d8f0; }

/* Depoimentos */
.depo { background: #fff; }
.depo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 40px auto 0; }
.depo-card { background: var(--azul-suave); border: 1px solid var(--azul-borda); border-radius: 14px; padding: 24px; margin: 0; text-align: left; }
.depo-card blockquote { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--azul-escuro); font-style: italic; }
.depo-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--texto-suave); }
.depo-ini { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #2459a6, #3a6cba); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.depo-card figcaption strong { color: var(--azul-escuro); }
.depo-video { max-width: 700px; margin: 36px auto 0; height: 230px; border-radius: 16px; background: linear-gradient(135deg, #173a6b, #2459a6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 1px dashed #6f96d0; }
.depo-video-play { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.depo-video-txt { color: #c8d8f0; font-size: 14px; }

/* FAQ */
.faq { background: var(--azul-suave); }
.faq-lista { max-width: 720px; margin: 36px auto 0; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--azul-borda); border-radius: 12px; padding: 0 20px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--azul-escuro); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--azul); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.65; color: var(--texto-suave); }

/* Nota LGPD do formulário */
.form-lgpd { margin-top: 12px; font-size: 12px; color: var(--texto-suave); line-height: 1.5; text-align: center; }
.form-lgpd a { color: var(--azul); }

/* Botão flutuante de WhatsApp */
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 100; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .15s; }
.whatsapp-float:hover { transform: scale(1.08); }

@media (max-width: 820px) {
  .depo-grid { grid-template-columns: 1fr; }
}

/* Assinatura do rodapé (grupo Unemídia) */
.rodape-assinatura { max-width: var(--max); margin: 22px auto 0; padding: 16px 24px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: var(--azul-borda); text-align: center; }
.rodape-assinatura a { color: #fff; text-decoration: underline; }

/* ===== Jornada (ciclo em 4 fases, horizontal) ===== */
.jornada { background: var(--azul-suave); }
.ciclo-arco { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 34px auto 0; flex-wrap: wrap; }
.ciclo-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--azul-escuro); background: #fff; border: 1px solid var(--azul-borda); padding: 8px 16px; border-radius: 30px; }
.ciclo-chip i { color: var(--azul); font-size: 16px; }
.ciclo-linha { flex: 0 1 80px; height: 2px; background: linear-gradient(90deg, #6f96d0, #173a6b); border-radius: 2px; }
.ciclo-chip-mid { background: var(--azul); border-color: var(--azul); color: #fff; }
.ciclo-chip-mid i { color: #fff; }
@media (max-width: 600px) { .ciclo-arco { flex-direction: column; gap: 8px; } .ciclo-linha { width: 2px; height: 14px; flex: none; background: linear-gradient(180deg, #6f96d0, #173a6b); } }
.ciclo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1000px; margin: 30px auto 0; text-align: left; align-items: start; }
.ciclo-fase { background: #fff; border: 1px solid var(--azul-borda); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(36,89,166,.06); transition: transform .2s ease, box-shadow .2s ease; }
.ciclo-fase:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36,89,166,.13); }
.ciclo-fase > header { padding: 12px 16px; color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.ciclo-pilares { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.ciclo-pilar { display: flex; flex-direction: column; gap: 1px; }
.ciclo-pilar .sem { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.ciclo-pilar strong { font-size: 14.5px; color: var(--azul-escuro); font-weight: 600; }
.ciclo-pilar .d { font-size: 12.5px; color: var(--texto-suave); line-height: 1.4; }
@media (max-width: 820px) { .ciclo-grid { grid-template-columns: 1fr 1fr; } .ciclo-linha { flex-basis: 40px; } }
@media (max-width: 520px) { .ciclo-grid { grid-template-columns: 1fr; } }
.ciclo-fecho { max-width: 640px; margin: 30px auto 0; font-size: 15px; color: var(--texto-suave); line-height: 1.7; }
