/* i99 — estilos compartilhados (tema claro/escuro, sem tons de roxo) */

:root {
  --navy: #10233f;
  --blue: #2e6fdb;
  --blue-dark: #1f4fa8;
  --blue-light: #eaf2ff;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --card: #ffffff;
  --text: #1a2433;
  --muted: #5a6b81;
  --green: #15793d; /* AA (4.5:1+) em texto pequeno/negrito sobre branco */
  --red: #c0392b;
  --border: #e3e8ef;
  --radius: 14px;
}

/* Tema escuro: tons de azul-marinho/ardósia — nunca roxo. Ativado por preferência do
   sistema OU pelo botão (atributo data-theme="dark" tem prioridade sobre a media query). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #eef3fb;
    --blue: #5b9bf2;
    --blue-dark: #7fb0f5;
    --blue-light: #142238;
    --bg: #0a1220;
    --bg-alt: #0f1a2c;
    --card: #131f33;
    --text: #e6ebf3;
    --muted: #93a2b8;
    --green: #34c77a; /* AA sobre fundos escuros do tema dark */
    --border: #1f2c42;
  }
}
:root[data-theme="dark"] {
  --navy: #eef3fb;
  --blue: #5b9bf2;
  --blue-dark: #7fb0f5;
  --blue-light: #142238;
  --bg: #0a1220;
  --bg-alt: #0f1a2c;
  --card: #131f33;
  --text: #e6ebf3;
  --muted: #93a2b8;
  --green: #34c77a;
  --border: #1f2c42;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* garante que o atributo hidden nunca seja
  sobrescrito por display:flex/grid de alguma classe do componente (ex.: .resumo, .card) */
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  transition: background-color .15s ease, color .15s ease;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky; top: 0; background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); z-index: 10;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; display: block; }
.brand .word { font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -0.5px; }
.brand .word span { color: var(--blue); }
nav.links { display: flex; gap: 24px; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--muted); font-weight: 600; }
nav.links a:hover, nav.links a.active { color: var(--blue-dark); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; border: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(46,111,219,0.28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--card); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--navy); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--blue); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

section { padding: 56px 0; }
h2.section-title { font-size: 30px; color: var(--navy); text-align: center; margin: 0 0 8px; font-weight: 800; }
p.section-sub { text-align: center; color: var(--muted); margin: 0 0 40px; font-size: 16px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

footer { padding: 36px 0 50px; text-align: center; color: var(--muted); font-size: 13.5px; }
footer .brand { justify-content: center; margin-bottom: 10px; }

.badge { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--muted); font-weight: 600; }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28); z-index: 100; text-decoration: none;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* Widget do reCAPTCHA v2 ("não sou um robô") dentro dos formulários. */
.g-recaptcha { margin: 16px 0 4px; }
@media (max-width: 480px) {
  .whatsapp-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

form input, form select, form textarea {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1.5px solid var(--border);
  font-size: 15px; font-family: inherit; background: var(--bg-alt); color: var(--text);
}
/* Cor explícita nas opções do dropdown — sem isso o Windows/Chrome herda cores do SO
   e o texto pode sair invisível sobre o fundo claro do <select>. */
form select { color: var(--text); }
form select option { background: #ffffff; color: var(--navy); }
form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin: 14px 0 6px; }
