/* ============================================================
   Semeia Negócios — base (variáveis, reset, componentes)
   Paleta derivada do logótipo.
   ============================================================ */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
  --navy: #173a73;
  --navy-dark: #0f2a55;
  --teal: #1c92bd;
  --teal-dark: #137396;
  --green: #34a853;
  --green-dark: #2b8a44;
  --gold: #f6a623;
  --gold-dark: #d98b10;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1f2d3d;
  --muted: #6b7a90;
  --line: #e3e9f2;

  --ok: #34a853;
  --warn: #f6a623;
  --err: #e2554f;
  --info: #1c92bd;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(23, 58, 115, 0.08);
  --shadow-lg: 0 16px 48px rgba(23, 58, 115, 0.14);
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); text-decoration: none; }
.btn-accent { background: var(--gold); color: #3a2a00; }
.btn-accent:hover { background: var(--gold-dark); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho global ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--navy); font-weight: 600; padding: 8px 10px; border-radius: 6px; }
.nav-links a:hover { background: var(--bg); text-decoration: none; }
.site-footer .copyright a { color: #b8c9e6; font-weight: 600; }
.site-footer .copyright a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--navy-dark); color: #cdd9ee; margin-top: 64px;
  padding: 36px 0 24px;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer .copyright { width: 100%; border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 16px; font-size: .85rem; color: #9fb2d4; }

/* ---------- Cartões ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Badges de estado ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-rascunho { background: #eef1f6; color: #64748b; }
.badge-submetido { background: #e6f4fb; color: var(--teal-dark); }
.badge-triagem_ct, .badge-analise_tecnico, .badge-revisao_gerente,
.badge-deliberacao_ct, .badge-pitch, .badge-analise { background: #fff3df; color: var(--gold-dark); }
.badge-pitch-agendado { background: linear-gradient(135deg, #e6f4fb 0%, #d4ecf5 100%); color: var(--teal-dark); font-weight: 800; }
.badge-aprovado, .badge-contratado, .badge-desembolsado { background: #e6f6ec; color: var(--green-dark); }
.badge-reprovado { background: #fcebea; color: var(--err); }

/* ---------- Mensagens ---------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9rem; }
.alert-success { background: #e6f6ec; color: var(--green-dark); }
.alert-error { background: #fcebea; color: var(--err); }
.alert-warning { background: #fff3df; color: var(--gold-dark); }
.alert-info { background: #e6f4fb; color: var(--teal-dark); }

/* ---------- Loader ---------- */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
.spinner-dark { border: 3px solid var(--line); border-top-color: var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* Bootstrap Icons — utilitários */
.bi-inline { vertical-align: -.125em; }
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.icon-box > .bi { line-height: 1; }
.btn .bi { margin-right: 6px; }
.btn .bi:last-child { margin-right: 0; margin-left: 6px; }
.btn .bi:only-child { margin: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 68px; right: 0; left: 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 10px 18px; gap: 4px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-toggle { display: block; }
}
