/* ─────────────────────────────────────────────────────────────
   hz-design.css | HZ Invest
   Identidade visual compartilhada por todas as páginas do site,
   derivada do design do Diagnóstico Financeiro.

   Como usar numa página:
     1. No <head>, carregue as fontes Fraunces + Manrope;
     2. Logo em seguida, <link rel="stylesheet" href="hz-design.css">;
     3. Depois vem o <style> específico da página, que pode usar
        os tokens abaixo via var(--nome).

   Os nomes antigos de variável (--navy-dark, --teal, --white...)
   continuam existindo como apelidos, apontando para os valores
   novos, para o CSS já escrito nas páginas seguir funcionando.
   ───────────────────────────────────────────────────────────── */

:root {
  /* ── superfícies ── */
  --bg:            #F6F4EE;  /* fundo da página, off-white quente */
  --bg-alt:        #F1EEE6;  /* faixa alternada entre seções */
  --surface:       #FBFAF6;  /* cartões e caixas */
  --surface-sunk:  rgba(27,27,92,0.04);

  /* ── tinta e texto ── */
  --ink:           #15153F;
  --ink-strong:    #1B1B5C;
  /* Os níveis de opacidade abaixo foram calibrados para passar no
     WCAG AA (4,5:1) sobre as três superfícies claras do site. */
  --text:          rgba(21,21,63,0.84);
  --muted:         rgba(21,21,63,0.68);
  --faint:         rgba(21,21,63,0.62);

  /* ── marca ── */
  --navy:          #1B1B5C;  /* navy profundo: botões, painéis, títulos */
  --navy-deep:     #15153F;
  --navy-soft:     #2A2A6E;  /* hover de superfícies navy */
  /* O sage claro é o acento da marca, mas sobre o fundo creme ele
     rende só 3,5:1. Por isso ele fica reservado para linhas, fundos,
     ícones e títulos grandes, e o texto pequeno usa o --sage-deep,
     que é o mesmo tom mais fechado e chega a 5,2:1. */
  --sage:          #4F8C84;  /* acento decorativo: linhas, fundos, ícones */
  --sage-deep:     #3E6F69;  /* acento em texto e em botões preenchidos */
  --sage-darker:   #2F5651;  /* hover do sage-deep */
  --sage-light:    #6FA8A0;  /* acento sobre fundo navy */
  --sage-dim:      rgba(79,140,132,0.10);
  --sage-border:   rgba(79,140,132,0.28);

  /* ── linhas ── */
  --border:        rgba(27,27,92,0.14);
  --border-strong: rgba(27,27,92,0.20);

  /* ── estados ── */
  --critico:       #B34747;
  --alerta:        #C48A3E;  /* só para fundos, anéis e barras */
  --alerta-texto:  #8A5F22;  /* versão legível do alerta em texto */
  --bom:           #3E6F69;
  --otimo:         #1B1B5C;

  /* ── tipografia ── */
  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Manrope', system-ui, sans-serif;

  /* ── raios ── */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  /* ─────────────────────────────────────────────
     Apelidos da paleta antiga (escura). Mantidos
     para o CSS existente das páginas continuar
     válido enquanto a migração é concluída.
     ───────────────────────────────────────────── */
  --navy-dark:   #F6F4EE;   /* era o fundo da página */
  --navy-mid:    #FBFAF6;   /* era o fundo dos cartões */
  --navy-light:  #F1EEE6;
  --teal:        #3E6F69;   /* acento da marca em texto e botões (AA) */
  --teal-accent: #4F8C84;   /* o mesmo acento em versão clara, decorativa */
  --teal-light:  #2F5651;   /* hover sobre fundo claro */
  --teal-dim:    rgba(79,140,132,0.10);
  --teal-border: rgba(79,140,132,0.28);
  --white:       #1B1B5C;   /* era a cor de texto forte */
  --white-pure:  #15153F;
  --green:       #3E6F69;   /* texto positivo */
  --amber:       #8A5F22;   /* texto de alerta */
  --red:         #9E3B3B;   /* texto negativo */
  --card:        #FBFAF6;
  --navy-card:   #FBFAF6;
}

/* ── base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* o fundo antigo era escuro com brilhos e pontilhado; no tema
   claro isso vira um brilho sage bem discreto */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 8%, rgba(79,140,132,0.07) 0%, transparent 62%),
    radial-gradient(ellipse 50% 60% at 82% 92%, rgba(79,140,132,0.05) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
body::after { content: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--navy); }
::selection { background: rgba(111,168,160,0.35); }

/* ── navegação ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  background: rgba(246,244,238,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo, .footer-logo, .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-decoration: none;
}
/* seletor com elemento + classe para vencer o text-transform das páginas */
a.nav-logo, a.footer-logo, a.brand { text-transform: none; letter-spacing: 0.01em; }
.nav-logo span, .footer-logo span, .brand em {
  color: var(--sage-deep);
  font-style: italic;
  font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

/* ── botões ─────────────────────────────────────────────── */
.btn-primary, .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #FBFAF6;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 2rem;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover, .btn-cta:hover {
  background: var(--sage-deep);
  color: #FBFAF6;
  transform: translateY(-1px);
  box-shadow: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: var(--sage);
  background: var(--sage-dim);
  color: var(--navy);
}

/* ── cabeçalhos de seção ────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
  opacity: 1;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.14;
}
.section-sub { color: var(--muted); font-weight: 400; }
.teal-line { width: 48px; height: 2px; background: var(--sage); }

/* ── cartões ────────────────────────────────────────────── */
.card, .offer-card, .tool-card, .course-card, .team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: none;
  color: var(--text);
}
.offer-card:hover, .tool-card:hover, .course-card:hover {
  border-color: var(--sage-border);
  background: var(--surface);
}

/* ── formulários ────────────────────────────────────────── */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); }
input::placeholder, textarea::placeholder { color: rgba(21,21,63,0.35); }
label { color: var(--muted); }

/* ── painel navy (blocos de destaque) ───────────────────── */
.panel-navy {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #FBFAF6;
  border-radius: var(--r-md);
}
.panel-navy h1, .panel-navy h2, .panel-navy h3 { color: #FBFAF6; }
.panel-navy a { color: var(--sage-light); }
.panel-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,168,160,0.35) 0%, rgba(111,168,160,0) 70%);
  pointer-events: none;
}

/* ── rodapé ─────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--muted);
}
footer p { color: var(--muted); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--navy); }

/* ── utilitários herdados ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  nav { padding: 0 6%; height: 66px; }
  body { font-size: 16px; }
}

/* ── títulos de cartão na serifada da marca ─────────────── */
.course-title, .tool-card h3, .offer-card h3, .card-title, .lesson-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
