/* ============================================================
   ADVOGO SEGURO — Página inicial pública
   Carregado somente por templates/index.html. Toda regra começa
   em body.home para não afetar as demais páginas que usam style.css.
   ============================================================ */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}

body.home {
  --home-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --home-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --home-ouro-texto: #7a5a12;
  --home-linha: #dde2ea;
  font-family: var(--home-sans);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--cinza-claro);
}

body.home h1,
body.home h2 { font-family: var(--home-serif); font-weight: 600; text-wrap: balance; letter-spacing: -0.005em; }
body.home h3 { font-family: var(--home-sans); font-weight: 600; }

body.home .icone { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Botões: só cor muda no hover, sem deslocamento ---------- */
body.home .btn-spy {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  border-width: 1px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body.home .btn-spy:hover { transform: none; }
body.home .btn-spy-primary { border-color: var(--dourado); }
body.home .btn-spy-primary:hover { background: #c9a453; border-color: #c9a453; }
body.home .btn-spy-secondary { color: var(--branco); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); }
body.home .btn-spy-secondary:hover { background: rgba(255,255,255,0.12); }
body.home .btn-spy-outline { border-color: rgba(255,255,255,0.5); }
body.home .btn-spy-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--branco); }

/* Foco visível também sobre o fundo azul */
body.home .navbar-public a:focus-visible,
body.home .hero a:focus-visible,
body.home .footer-spy a:focus-visible { outline: 3px solid var(--dourado); outline-offset: 3px; }

/* ---------- Topo ---------- */
body.home .navbar-public { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
body.home .navbar-public .container-narrow { gap: 16px; }
body.home .brand { font-family: var(--home-sans); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.08em; }
body.home .brand-logo { height: 30px; width: 30px; }
body.home .navbar-public nav { display: flex; gap: 4px; }
body.home .navbar-public nav a {
  margin-left: 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.86);
}
body.home .navbar-public nav a:hover { color: var(--branco); background: rgba(255,255,255,0.08); }

/* ---------- Hero ---------- */
body.home .hero {
  background: var(--azul-escuro);
  text-align: left;
  padding: 88px 0 96px;
}
body.home .hero .container-narrow { display: flex; flex-direction: column; align-items: flex-start; }
body.home .hero .badge-trust {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.home .hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  max-width: 24ch;
  margin: 0 0 22px;
}
body.home .hero h1 br { display: none; }
body.home .hero p.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  max-width: 62ch;
  margin: 0 0 36px;
}
body.home .hero-actions { justify-content: flex-start; gap: 12px; }

/* ---------- Seções ---------- */
body.home .section { padding: 88px 0; }
body.home .section-title { text-align: left; margin-bottom: 40px; max-width: 46rem; }
body.home .section-title h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.2; margin: 0 0 12px; }
body.home .section-title p { margin: 0; max-width: 60ch; font-size: 1.05rem; line-height: 1.6; }

/* Recursos: colunas com linha superior, sem cartões com sombra */
body.home .feature-grid { gap: 40px; }
body.home .feature-card {
  background: none;
  border: 0;
  border-top: 2px solid var(--azul-escuro);
  border-radius: 0;
  box-shadow: none;
  padding: 24px 0 0;
}
body.home .feature-card .icon-circle {
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  margin-bottom: 16px;
  color: var(--home-ouro-texto);
  display: block;
}
body.home .feature-card .icon-circle .icone { width: 30px; height: 30px; display: block; }
body.home .feature-card h3 { font-size: 1.15rem; color: var(--azul-escuro); margin: 0 0 8px; }
body.home .feature-card p { margin: 0; font-size: 0.98rem; line-height: 1.65; color: var(--texto-suave); }

/* Passos: sequência numerada em linha do tempo */
body.home .section-passos { background: var(--branco); border-top: 1px solid var(--home-linha); border-bottom: 1px solid var(--home-linha); }
body.home .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: none;
}
body.home .step-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: none;
  border: 0;
  border-top: 1px solid var(--home-linha);
  border-radius: 0;
  box-shadow: none;
  padding: 0 24px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--azul-escuro);
}
body.home .step-pill .num {
  width: 36px; height: 36px;
  margin-top: -18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--azul-escuro);
  color: var(--dourado);
  border-radius: 50%;
  font-family: var(--home-serif);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--branco);
}

/* Chamada final: texto e botão na mesma linha */
body.home .cta-final { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
body.home .cta-final .section-title { margin-bottom: 0; }
body.home .cta-final .btn-spy { min-height: 56px; padding: 14px 28px; font-size: 1.02rem; }

/* ---------- Rodapé ---------- */
body.home .footer-spy { padding: 32px 0; font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.72); }
body.home .footer-spy a { color: var(--branco); text-decoration: underline; text-underline-offset: 3px; }
body.home .footer-spy a:hover { color: var(--dourado); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  body.home .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* ---------- Celular ---------- */
@media (max-width: 720px) {
  body.home .container-narrow { padding: 0 20px; }
  body.home .navbar-public .container-narrow { flex-direction: column; align-items: stretch; gap: 8px; }
  body.home .navbar-public nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 0 -8px;
  }
  body.home .navbar-public nav a { padding: 10px 8px; min-height: 44px; display: flex; align-items: center; }

  body.home .hero { padding: 48px 0 56px; }
  body.home .hero p.lead { font-size: 1.05rem; margin-bottom: 28px; }
  body.home .hero-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  body.home .hero-actions .btn-spy { width: 100%; }

  body.home .section { padding: 56px 0; }
  body.home .section-title { margin-bottom: 28px; }
  body.home .feature-grid { gap: 32px; }

  body.home .steps { grid-template-columns: 1fr; row-gap: 0; }
  body.home .step-pill {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    border-top: 0;
    border-left: 1px solid var(--home-linha);
    margin-left: 18px;
    padding: 0 0 28px 0;
  }
  body.home .step-pill:last-child { padding-bottom: 0; border-left-color: transparent; }
  body.home .step-pill .num { margin: 0 0 0 -18px; flex-shrink: 0; }
  body.home .step-pill { padding-top: 6px; }

  body.home .cta-final { flex-direction: column; align-items: stretch; gap: 24px; }
  body.home .cta-final .btn-spy { width: 100%; }
}
