/* ============================================================
   educacao-tempo-investimento.css
   Estilos específicos desta página.
   Depende de: base.css + educacao.css + theme.css
   ============================================================ */

/* ============================================================
   Educação — O Tempo é o Melhor Investimento
   CSS corrigido para seguir o mesmo contrato visual das páginas
   de educação: article-hero fora do page-wrap e conteúdo dentro
   do page-wrap. Mantém #site-header/#site-footer para o build.
   ============================================================ */
.theme-toggle{display:inline-flex;align-items:center;gap:0.45rem;background:rgba(255,255,255,0.03);border:1px solid var(--muted-3);color:var(--muted-1);border-radius:10px;padding:0.45rem 0.65rem;font-family:var(--font-body);font-size:0.78rem;cursor:pointer;}

/* LAYOUT */
.page-wrap{max-width:820px;margin:0 auto;padding:0 2.5rem;}

/* HERO — mesmo padrão da página de referência */
.article-hero{padding:8rem 2.5rem 4rem;max-width:820px;margin:0 auto;}

.article-eyebrow{display:inline-flex;align-items:center;gap:0.65rem;color:var(--green);font-size:0.72rem;letter-spacing:2.4px;text-transform:uppercase;font-weight:600;margin-bottom:1.5rem;}

.article-eyebrow::before{content:'';width:28px;height:1px;background:var(--green);}

.article-hero h1{font-family:var(--font-display);font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.05;letter-spacing:-1.5px;margin-bottom:1.5rem;color:var(--white);}

.article-hero h1 em{color:var(--green);font-style:italic;}

.article-meta{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;padding:1rem 0;border-top:1px solid var(--muted-3);border-bottom:1px solid var(--muted-3);margin-bottom:2.5rem;}

.meta-item{font-size:0.78rem;color:var(--muted-2);display:flex;align-items:center;gap:0.4rem;}

.meta-dot{width:4px;height:4px;border-radius:50%;background:var(--muted-3);display:inline-block;}

.article-lead{font-size:1.1rem;line-height:1.8;color:var(--muted-1);font-weight:300;}

.article-lead strong{color:var(--white);font-weight:600;}

/* CORPO */
.article-body{padding-bottom:2rem;}

.article-body h2{font-family:var(--font-display);font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.1;letter-spacing:-0.8px;margin:3.5rem 0 1.25rem;color:var(--white);}

.article-body h2 em{color:var(--green);font-style:italic;}

.article-body h3{font-family:var(--font-display);font-size:1.2rem;line-height:1.2;margin:2rem 0 0.75rem;color:var(--white);}

.article-body p{color:var(--muted-1);font-size:0.98rem;line-height:1.82;margin-bottom:1.2rem;font-weight:300;}

.article-body p strong{color:var(--white);font-weight:600;}

.article-body a{color:var(--green);text-decoration:none;border-bottom:1px solid var(--green-border);transition:border-color 0.2s;}

.article-body a:hover{border-color:var(--green);}

/* PULL QUOTE */
.pull-quote{border-left:3px solid var(--green);padding:1.25rem 1.5rem;margin:2.5rem 0;background:var(--green-soft);border-radius:0 12px 12px 0;}

.pull-quote p{font-family:var(--font-display);font-size:1.1rem;font-style:italic;color:var(--white);line-height:1.55;margin:0;}

/* SEÇÃO VISUAL full-bleed */
.visual-section{margin:3.5rem -2.5rem;background:var(--bg-2);border-top:1px solid var(--muted-3);border-bottom:1px solid var(--muted-3);padding:3rem 2.5rem;}

.visual-section-inner{max-width:820px;margin:0 auto;}

.visual-label{font-size:0.65rem;letter-spacing:2px;text-transform:uppercase;color:var(--green);font-weight:600;margin-bottom:0.75rem;}

.visual-title{font-family:var(--font-display);font-size:clamp(1.3rem,2.5vw,1.8rem);line-height:1.15;margin-bottom:1.5rem;color:var(--white);}

/* Perfis */
.sec-label{font-size:0.65rem;letter-spacing:2px;text-transform:uppercase;color:var(--green);font-weight:600;margin:3rem 0 1.25rem;}

.perfis{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-bottom:2rem;}

.perfil-card{background:var(--bg-card);border:1px solid var(--muted-3);border-radius:14px;padding:1.5rem;box-shadow:var(--shadow-soft);}

.perfil-card.rafael{border-top:3px solid var(--green);}

.perfil-card.thiago{border-top:3px solid var(--gold);}

.perfil-nome{font-family:var(--font-display);font-size:1.4rem;font-weight:700;margin-bottom:0.2rem;}

.perfil-card.rafael .perfil-nome{color:var(--green);}

.perfil-card.thiago .perfil-nome{color:var(--gold);}

.perfil-tag{font-size:0.72rem;font-weight:500;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted-2);margin-bottom:1.2rem;}

.perfil-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:0.5rem 0;border-bottom:1px solid var(--muted-3);font-size:0.88rem;}

.perfil-row:last-child{border-bottom:none;}

.perfil-row span:first-child{color:var(--muted-2);}

.perfil-row span:last-child{color:var(--white);font-weight:500;text-align:right;}

/* Timeline */
.timeline-wrap{background:var(--bg-card);border:1px solid var(--muted-3);border-radius:16px;padding:1.75rem;margin-bottom:0;box-shadow:var(--shadow-soft);overflow-x:auto;}

.timeline-idades{min-width:700px;display:flex;justify-content:space-between;padding:0 0.5rem;margin-bottom:1rem;font-size:0.75rem;color:var(--muted-2);}

.timeline-person{min-width:700px;margin-bottom:1.5rem;}

.timeline-person:last-child{margin-bottom:0;}

.timeline-person-label{font-size:0.75rem;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;margin-bottom:0.4rem;}

.timeline-person-label.rafael{color:var(--green);}

.timeline-person-label.thiago{color:var(--gold);}

.timeline-track{position:relative;height:66px;background:rgba(255,255,255,0.025);border:1px solid var(--muted-3);border-radius:10px;overflow:hidden;}

.tbar{position:absolute;height:30px;display:flex;align-items:center;padding:0 0.9rem;font-size:0.78rem;font-weight:600;white-space:nowrap;overflow:hidden;border-radius:8px;transition:width 1.4s cubic-bezier(0.22,1,0.36,1),left 1.4s cubic-bezier(0.22,1,0.36,1);}

.tbar-r-ativo{top:8px;left:0;width:0;background:linear-gradient(90deg,rgba(0,200,83,0.85),rgba(0,200,83,0.48));color:#041009;}

.tbar-r-cresce{top:36px;left:0;width:0;background:rgba(0,200,83,0.08);border:1px dashed var(--green-border);color:var(--green);}

.tbar-t-ativo{top:8px;left:0;width:0;background:linear-gradient(90deg,rgba(201,168,76,0.85),rgba(201,168,76,0.48));color:#041009;}

.tbar-t-cresce{top:36px;left:0;width:0;background:rgba(201,168,76,0.08);border:1px dashed var(--gold-border);color:var(--gold);}

/* Resultado */
.resultado-section{margin:2.5rem 0;}

.resultado-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:1rem;align-items:center;}

.resultado-card{background:var(--bg-card);border:1px solid var(--muted-3);border-radius:16px;padding:1.75rem 1.35rem;text-align:center;box-shadow:var(--shadow-soft);}

.resultado-card.rafael-card{background:radial-gradient(ellipse at 90% 0%,rgba(0,200,83,0.09),transparent 55%),var(--bg-card);border-top:3px solid var(--green);}

.resultado-card.thiago-card{background:radial-gradient(ellipse at 90% 0%,rgba(201,168,76,0.09),transparent 55%),var(--bg-card);border-top:3px solid var(--gold);}

.resultado-nome{font-family:var(--font-display);font-size:1.15rem;font-weight:700;margin-bottom:0.55rem;}

.rafael-card .resultado-nome,.rafael-card .resultado-valor{color:var(--green);}

.thiago-card .resultado-nome,.thiago-card .resultado-valor{color:var(--gold);}

.resultado-valor{font-family:var(--font-display);font-size:clamp(1.45rem,3vw,2.05rem);font-weight:900;line-height:1.1;margin-bottom:0.55rem;}

.resultado-investido{font-size:0.82rem;color:var(--muted-2);}

.resultado-vs{font-size:0.72rem;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted-2);font-weight:700;}

.resultado-destaque{background:var(--green-soft);border:1px solid var(--green-border);border-radius:14px;padding:1.25rem 1.5rem;text-align:center;margin-top:1rem;}

.resultado-destaque p{font-size:0.95rem;font-weight:500;color:var(--green);margin:0;line-height:1.65;}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:2.5rem 0;}

.stat-card{background:var(--bg-card);border:1px solid var(--muted-3);border-radius:12px;padding:1.25rem;text-align:center;box-shadow:var(--shadow-soft);}

.stat-num{font-family:var(--font-display);font-size:2rem;font-weight:700;color:var(--green);line-height:1;margin-bottom:0.4rem;}

.stat-desc{font-size:0.82rem;color:var(--muted-2);line-height:1.5;}

/* Gráfico */
.grafico-wrap{background:var(--bg-card);border:1px solid var(--muted-3);border-radius:14px;padding:1.25rem;box-shadow:var(--shadow-soft);}

#grafico{min-height:320px;}

/* Boxes explicativos */
.warning-box{background:rgba(201,168,76,0.08);border:1px solid var(--gold-border);border-radius:12px;padding:1.25rem 1.5rem;margin:2rem 0;display:flex;gap:1rem;align-items:flex-start;}

.warning-icon{font-size:1.1rem;flex-shrink:0;margin-top:2px;}

.warning-box p{color:rgba(240,220,160,0.85);font-size:0.88rem;line-height:1.7;margin:0;}

/* Moral */
.moral{text-align:center;padding:3.5rem 1rem;border-top:1px solid var(--muted-3);margin-top:3rem;}

.moral h2{font-family:var(--font-display);font-size:clamp(1.6rem,4vw,2.4rem);font-weight:700;line-height:1.25;margin-bottom:1rem;color:var(--white);}

.moral h2 em{font-style:italic;color:var(--green);}

.moral p{font-size:1rem;color:var(--muted-1);max-width:52ch;margin:0 auto 0.75rem;font-weight:300;}

.moral p strong{color:var(--white);}

.btn-moral{display:inline-block;margin-top:2rem;background:var(--green);color:#041009;font-family:var(--font-body);font-size:0.9rem;font-weight:700;padding:0.85rem 2rem;border-radius:8px;text-decoration:none;box-shadow:0 8px 20px var(--green-glow);transition:opacity 0.2s,transform 0.2s;}

.btn-moral:hover{opacity:0.88;transform:translateY(-2px);}

/* CTA */
.article-cta{background:var(--bg-green-card);border:1px solid var(--green-border);border-radius:20px;padding:2.5rem;margin:3.5rem 0;display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap;}

.article-cta h3{font-family:var(--font-display);font-size:1.6rem;line-height:1.1;letter-spacing:-0.5px;margin-bottom:0.5rem;color:var(--white);}

.article-cta p{color:var(--muted-1);font-size:0.9rem;line-height:1.6;}

.btn-cta{display:inline-flex;align-items:center;gap:0.5rem;background:var(--green);color:#041009 !important;padding:0.9rem 1.75rem;border-radius:8px;font-family:var(--font-body);font-weight:700;font-size:0.92rem;text-decoration:none;border:none;transition:transform 0.2s,box-shadow 0.2s;white-space:nowrap;}

.btn-cta:hover{transform:translateY(-1px);box-shadow:0 12px 34px rgba(0,200,83,0.28);border-bottom:none;color:#041009 !important;}

/* RELACIONADOS */
.related{margin:2.5rem 0 5rem;}

.related-label{font-size:0.65rem;letter-spacing:2px;text-transform:uppercase;color:var(--muted-2);font-weight:600;margin-bottom:1.25rem;}

.related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;}

.related-card{display:block;background:var(--bg-card);border:1px solid var(--muted-3);border-radius:14px;padding:1.25rem;text-decoration:none;color:inherit;transition:background 0.2s,border-color 0.2s;}

.related-card:hover{background:var(--bg-hover);border-color:var(--green-border);}

.related-card-cat{font-size:0.65rem;letter-spacing:1.8px;text-transform:uppercase;color:var(--green);font-weight:600;margin-bottom:0.5rem;}

.related-card h4{font-family:var(--font-display);font-size:1rem;line-height:1.2;margin-bottom:0.4rem;color:var(--white);}

.related-card p{font-size:0.82rem;color:var(--muted-2);line-height:1.5;}

/* Footer — mantido para compatibilidade com o footer injetado */
footer{border-top:1px solid var(--muted-3);padding:2rem 2.5rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;max-width:1200px;margin:0 auto;}

/* SCROLL REVEAL */
[data-reveal]{opacity:0;transform:translateY(24px);transition:opacity 0.65s cubic-bezier(0.22,1,0.36,1),transform 0.65s cubic-bezier(0.22,1,0.36,1);}

/* LIGHT MODE */
html.light-mode body,html[data-theme="light"] body{background:#F4F7F5;color:#132019;}

html.light-mode .article-hero h1,html[data-theme="light"] .article-hero h1,
html.light-mode .article-body h2,html[data-theme="light"] .article-body h2,
html.light-mode .article-body h3,html[data-theme="light"] .article-body h3,
html.light-mode .visual-title,html[data-theme="light"] .visual-title,
html.light-mode .moral h2,html[data-theme="light"] .moral h2,
html.light-mode .related-card h4,html[data-theme="light"] .related-card h4{color:#132019;}

html.light-mode .article-lead,html[data-theme="light"] .article-lead,
html.light-mode .article-body p,html[data-theme="light"] .article-body p,
html.light-mode .moral p,html[data-theme="light"] .moral p{color:rgba(19,32,25,0.72);}

html.light-mode .article-lead strong,html[data-theme="light"] .article-lead strong,
html.light-mode .article-body p strong,html[data-theme="light"] .article-body p strong,
html.light-mode .moral p strong,html[data-theme="light"] .moral p strong{color:#132019;}

html.light-mode .pull-quote p,html[data-theme="light"] .pull-quote p{color:#132019;}

html.light-mode .visual-section,html[data-theme="light"] .visual-section{background:#EAF0EC;}

html.light-mode .perfil-card,html[data-theme="light"] .perfil-card,
html.light-mode .resultado-card,html[data-theme="light"] .resultado-card,
html.light-mode .stat-card,html[data-theme="light"] .stat-card,
html.light-mode .timeline-wrap,html[data-theme="light"] .timeline-wrap,
html.light-mode .grafico-wrap,html[data-theme="light"] .grafico-wrap,
html.light-mode .related-card,html[data-theme="light"] .related-card{background:#fff;}

html.light-mode .timeline-track,html[data-theme="light"] .timeline-track{background:#F4F7F5;}

html.light-mode .perfil-row span:last-child,html[data-theme="light"] .perfil-row span:last-child{color:#132019;}

html.light-mode .warning-box p,html[data-theme="light"] .warning-box p{color:rgba(90,70,20,0.82);}

html.light-mode .article-cta,html[data-theme="light"] .article-cta{background:linear-gradient(135deg,#D6EFE0,#E8F5EC);border-color:rgba(0,200,83,0.35);}

html.light-mode .article-cta h3,html[data-theme="light"] .article-cta h3{color:#0A1F12;}

html.light-mode .article-cta p,html[data-theme="light"] .article-cta p{color:rgba(10,31,18,0.65);}

@media(max-width:768px){
          .article-hero,.page-wrap{padding-left:1.25rem;padding-right:1.25rem;}
  .visual-section{margin:3rem -1.25rem;padding:2rem 1.25rem;}
  .perfis,.resultado-grid,.stats,.related-grid{grid-template-columns:1fr;}
  .resultado-vs{text-align:center;}
  .article-cta{flex-direction:column;align-items:flex-start;}
  .btn-cta{width:100%;justify-content:center;}
  footer{flex-direction:column;align-items:flex-start;padding:2rem 1.25rem;}
  .footer-links{flex-wrap:wrap;gap:1rem;}
}

/* ============================================================
   Ajuste final de direção visual
   - Seções visuais como cards completos, não faixas cortadas
   - Timeline sem scroll no desktop
   - Timeline mobile com layout próprio em blocos
   ============================================================ */

/* Cards visuais grandes — mais bonito e consistente com o CTA */
.visual-section {
  margin: 3.75rem 0;
  padding: 0;
  background: transparent;
  border: none;
}

.visual-section-inner {
  max-width: none;
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(0,200,83,0.075), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,0.026), rgba(255,255,255,0.012)),
    var(--bg-card);
  border: 1px solid var(--muted-3);
  border-radius: 22px;
  padding: 2.6rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.visual-label {
  letter-spacing: 2.4px;
  margin-bottom: 0.85rem;
}

.visual-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 1.75rem;
}

/* Timeline desktop — proporcional, sem barra de rolagem */
.timeline-wrap {
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--muted-3);
  border-radius: 18px;
  padding: 1.75rem;
  margin: 0;
  box-shadow: none;
  overflow: visible;
}

.timeline-idades,
.timeline-person {
  min-width: 0;
}

.timeline-idades {
  padding: 0 0.35rem;
  margin-bottom: 1rem;
}

.timeline-person {
  margin-bottom: 1.6rem;
}

.timeline-person:last-child {
  margin-bottom: 0;
}

.timeline-track {
  width: 100%;
  height: 68px;
  background: rgba(255,255,255,0.022);
  border: 1px solid rgba(240,244,242,0.13);
  border-radius: 12px;
}

.tbar {
  height: 30px;
  font-size: 0.72rem;
  padding: 0 0.75rem;
  border-radius: 9px;
}

.tbar-r-ativo,
.tbar-t-ativo {
  top: 8px;
}

.tbar-r-cresce,
.tbar-t-cresce {
  top: 38px;
}

/* Gráfico em card interno, sem cara de seção cortada */
.grafico-wrap {
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--muted-3);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 1.25rem;
  box-shadow: none;
  overflow: hidden;
}

#grafico {
  width: 100%;
  min-height: 320px;
}

.visual-section-inner > p {
  margin-top: 1.25rem !important;
  color: var(--muted-2) !important;
  font-size: 0.86rem !important;
  line-height: 1.75 !important;
}

/* CTA fica como o card mais chamativo da página */
.article-cta {
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

/* Light mode dos cards visuais */
html.light-mode .visual-section,
html[data-theme="light"] .visual-section {
  background: transparent;
}

html.light-mode .visual-section-inner,
html[data-theme="light"] .visual-section-inner {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(0,200,83,0.11), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(244,247,245,0.96));
  border-color: rgba(19,32,25,0.12);
}

html.light-mode .timeline-wrap,
html[data-theme="light"] .timeline-wrap,
html.light-mode .grafico-wrap,
html[data-theme="light"] .grafico-wrap {
  background: rgba(19,32,25,0.035);
  border-color: rgba(19,32,25,0.12);
}

html.light-mode .timeline-track,
html[data-theme="light"] .timeline-track {
  background: rgba(255,255,255,0.65);
  border-color: rgba(19,32,25,0.12);
}

/* ============================================================
   Mobile próprio — não é o mesmo desenho espremido
   ============================================================ */
@media (max-width: 768px) {
  .visual-section {
    margin: 2.75rem 0;
  }

  .visual-section-inner {
    padding: 1.45rem;
    border-radius: 18px;
  }

  .visual-title {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
  }

  /* No mobile, a timeline vira cards de fases. Nada de régua espremida. */
  .timeline-wrap {
    padding: 1.15rem;
    border-radius: 16px;
  }

  .timeline-idades {
    display: none;
  }

  .timeline-person {
    margin-bottom: 1.25rem;
  }

  .timeline-person-label {
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
  }

  .timeline-track {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    background: transparent;
    border: none;
    overflow: visible;
  }

  .tbar {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto;
    min-height: 42px;
    padding: 0.75rem 0.85rem;
    font-size: 0.78rem;
    white-space: normal;
    overflow: visible;
    border-radius: 12px;
  }

  .tbar-r-ativo::after {
    content: '  •  dos 20 aos 30 anos';
    font-weight: 500;
    opacity: 0.8;
  }

  .tbar-r-cresce::after {
    content: '  •  dos 30 aos 65 anos';
    font-weight: 500;
    opacity: 0.8;
  }

  .tbar-t-ativo::after {
    content: '  •  dos 30 aos 50 anos';
    font-weight: 500;
    opacity: 0.8;
  }

  .tbar-t-cresce::after {
    content: '  •  dos 50 aos 65 anos';
    font-weight: 500;
    opacity: 0.8;
  }

  .grafico-wrap {
    padding: 0.85rem;
    border-radius: 16px;
  }

  #grafico {
    min-height: 300px;
  }

  .visual-section-inner > p {
    font-size: 0.82rem !important;
  }
}

@media (max-width: 480px) {
  .visual-section-inner {
    padding: 1.2rem;
  }

  .timeline-wrap {
    padding: 1rem;
  }

  .tbar {
    font-size: 0.74rem;
    min-height: 40px;
  }
}
