/* style.css */

/* =========================
   Base / Reset simples
========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; }

/* =========================
   Variáveis (paleta)
========================= */
:root {
  --brand: #0F2A3D;
  --cta: #1F7A4D;

  --bg: #F7F9FB;
  --surface: #FFFFFF;

  --text: #1F2933;
  --muted: #6B7280;

  --border: #E5E7EB;

  --shadow: 0 10px 30px rgba(15, 42, 61, .10);
  --radius: 14px;

  --container: 1120px;

  --focus: rgba(31, 122, 77, .25);
}

/* =========================
   Utilitários
========================= */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section { padding: 56px 0; }
.section-alt { background: rgba(15, 42, 61, 0.03); }
.muted { color: var(--muted); }

.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 6px; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { margin: 0; color: var(--muted); max-width: 68ch; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-muted {
  background: rgba(15, 42, 61, 0.02);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* Acessibilidade */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 10px; outline: 3px solid var(--focus); }

/* =========================
   Botões
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  font-weight: 650;
}

.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.btn-primary {
  background: var(--cta);
  color: white;
  box-shadow: 0 10px 22px rgba(31, 122, 77, .18);
}
.btn-primary:hover { filter: brightness(0.98); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--brand);
}
.btn-ghost:hover { background: rgba(15, 42, 61, 0.04); }

.btn-lg {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 750;
}

.linklike {
  background: transparent;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}
.linklike:hover { background: rgba(15, 42, 61, 0.04); color: var(--text); }

/* =========================
   Header
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo-placeholder {
    background-image: url("img/logoescala2.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* ou cover */
    width: 200px;   /* ajuste conforme necessário */
    height: 100px;  /* ajuste conforme necessário */
}
.brand-text strong { display: block; font-weight: 800; color: var(--brand); line-height: 1.05; }
.brand-text span { display: block; font-size: 12px; color: var(--muted); }

/* =========================
   Hero
========================= */
.hero { padding-top: 46px; }
.hero-grid { display: grid; gap: 22px; }

.eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 42, 61, 0.14);
  background: rgba(15, 42, 61, 0.03);
  color: var(--brand);
  font-weight: 650;
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.subhead {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
  max-width: 60ch;
}

.bullets {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li { margin: 8px 0; }

.hero-cta { display: grid; gap: 10px; align-items: start; }
.microcopy { margin: 0; font-size: 13px; color: var(--muted); }

.hero-visual .visual-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 42, 61, 0.12);
  background: linear-gradient(180deg, rgba(15, 42, 61, 0.06), rgba(255, 255, 255, 0.7));
  box-shadow: var(--shadow);
}
.visual-top {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 42, 61, 0.10);
}
.dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(15, 42, 61, 0.20); }
.visual-body { padding: 16px; display: grid; gap: 14px; }

.kpi { display: flex; justify-content: space-between; align-items: center; }
.kpi-label { color: var(--muted); font-weight: 650; }
.kpi-value { color: var(--brand); font-weight: 850; letter-spacing: -0.01em; }

.bars { display: grid; gap: 10px; }
.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 122, 77, 0.18);
  position: relative;
}
.bar::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: rgba(31, 122, 77, 0.55);
  width: 70%;
}
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini {
  height: 56px;
  border-radius: 14px;
  background: rgba(15, 42, 61, 0.06);
  border: 1px solid rgba(15, 42, 61, 0.08);
}
.visual-caption { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

/* =========================
   Layout grids
========================= */
.grid-2 { display: grid; gap: 14px; }
.grid-3 { display: grid; gap: 14px; }
.steps { display: grid; gap: 12px; }

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; gap: 26px; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* =========================
   Checklist
========================= */
.checklist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(31, 122, 77, 0.12);
  color: var(--cta);
  font-weight: 900;
}

.checklist.cross li::before {
  content: "✕";
  background: rgba(107, 114, 128, 0.10);
  color: var(--muted);
}

.checklist-wide { margin-top: 16px; }
.checklist.cols { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .checklist.cols { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}

/* =========================
   Steps blocks
========================= */
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(15, 42, 61, 0.06);
  border: 1px solid rgba(15, 42, 61, 0.10);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.step-body h3 { margin: 0 0 6px; font-weight: 800; }
.step-body p { margin: 0; color: var(--muted); }

/* =========================
   Apply / Form
========================= */
.apply-grid { display: grid; gap: 14px; align-items: start; }
.form-card { padding: 16px; }
.side-card h3 { margin: 0 0 8px; font-weight: 850; }
.side-card p { margin: 0; }

@media (min-width: 1024px) {
  .apply-grid { grid-template-columns: 1.05fr 0.95fr; gap: 16px; }
}

.form-top { display: grid; gap: 10px; margin-bottom: 8px; }
.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 42, 61, 0.08);
  overflow: hidden;
  border: 1px solid rgba(15, 42, 61, 0.08);
}
.progress-bar {
  height: 100%;
  background: rgba(31, 122, 77, 0.85);
  border-radius: 999px;
  transition: width .25s ease;
}

.progress-label { margin: 0; color: var(--text); font-weight: 650; }
.progress-label .muted { font-weight: 500; }

.form-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.form-footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.field { margin-top: 12px; display: grid; gap: 8px; }
label { font-weight: 700; color: var(--brand); }
.help { margin: 0; color: var(--muted); font-size: 13px; }

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}

textarea { min-height: 110px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: rgba(31, 122, 77, 0.35);
  box-shadow: 0 0 0 4px var(--focus);
}

.error {
  font-size: 13px;
  color: #B42318;
  display: none;
}

/* =========================
   Result blocks
========================= */
.result-wrap { margin-top: 16px; }
.result { padding: 18px; }
.result h3 { margin: 0 0 8px; font-weight: 900; }
.result p { margin: 0; color: var(--muted); }

.result-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }

.result-success {
  border-color: rgba(31, 122, 77, 0.25);
  background: rgba(31, 122, 77, 0.06);
}

.result-danger {
  border-color: rgba(180, 35, 24, 0.20);
  background: rgba(180, 35, 24, 0.05);
}

/* =========================
   CTA final
========================= */
.final-cta { padding-top: 10px; }
.cta-card {
  display: grid;
  gap: 14px;
  align-items: center;
}
.cta-card h2 { margin: 0 0 6px; font-weight: 900; letter-spacing: -0.02em; color: var(--brand); }
.cta-card .section-sub { margin: 0; }
@media (min-width: 768px) {
  .cta-card { grid-template-columns: 1fr auto; }
}

/* =========================
   Footer
========================= */
.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   Modal (interno)
========================= */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 61, 0.55);
}

.modal-panel {
  position: relative;
  width: min(620px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-weight: 900; color: var(--brand); }
.modal-body { padding: 14px; color: var(--muted); }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(15, 42, 61, 0.04); }

/* =========================
   Reveal (animação leve)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Preferência do usuário (reduzir movimento) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .btn { transition: none; }
}
/* =========================
   Footer logos (centrais e maiores)
========================= */
.footer-logos {
  margin-top: 16px;
  display: flex;
  justify-content: center;   /* centraliza horizontal */
  align-items: center;
  gap: 28px;                 /* espaço confortável entre logos */
  opacity: 0.9;              /* presença clara */
}

.footer-logos img {
  height: 36px;              /* DOBRO do tamanho inicial (18px → 36px) */
  width: auto;
  display: block;
  filter: grayscale(0.3);    /* ainda sóbrio */
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}

.footer-logos img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-1px); /* micro-interação premium */
}

/* Footer totalmente centralizado */
.site-footer .footer-inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

