/* ── Reset e base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:      #022b3a;
  --verde:     #0558b6;
  --brand-logo-tone: #2E2F84;
  --brand-title-size: 27px;
  --brand-sub-size: 21.6px;
  --brand-title-line-height: 1.1;
  --brand-sub-line-height: 1.15;
  --brand-text-gap: 4px;
  --branco:    #ffffff;
  --bg:        #f4f6f9;
  --cinza:     #e8eaee;
  --texto:     #1a1f2e;
  --muted:     #6b7280;
  --borda:     #d0d5dd;
  --radius:    14px;
  --sombra:    0 4px 24px rgba(0,0,0,.10);
  --slide-box-height: 280px;
  --slide-image-height: 200px;
}

html, body {
  background: var(--bg);
  color: var(--texto);
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── Página wrapper ────────────────────────────────────── */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Header ────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: var(--sombra);
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: var(--brand-text-gap);
}

.brand-logo {
  height: calc(
    (var(--brand-title-size) * var(--brand-title-line-height)) +
    (var(--brand-sub-size) * var(--brand-sub-line-height)) +
    var(--brand-text-gap)
  );
  width: calc(
    (var(--brand-title-size) * var(--brand-title-line-height)) +
    (var(--brand-sub-size) * var(--brand-sub-line-height)) +
    var(--brand-text-gap)
  );
  object-fit: contain;
  flex-shrink: 0;
}

.brand-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: var(--brand-title-size);
  line-height: var(--brand-title-line-height);
  color: var(--brand-logo-tone);
}

.brand-mark {
  color: var(--brand-logo-tone);
  font-weight: 700;
}

.brand-sub {
  font-size: var(--brand-sub-size);
  line-height: var(--brand-sub-line-height);
  color: var(--muted);
}

.header-badge {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--borda);
  color: var(--muted);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.header-btn {
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--borda);
  background: var(--branco);
  color: var(--texto);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}

.header-btn:hover {
  background: var(--bg);
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.header-btn--primary {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
  box-shadow: 0 4px 14px rgba(2,43,58,.28);
}

.header-btn--primary:hover {
  background: #011c27;
  border-color: #011c27;
}

.dot-verde {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--verde);
  flex-shrink: 0;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 28px 28px 24px;
  align-items: center;
}

.hero-kicker {
  font-size: var(--brand-sub-size);
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--verde);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-titulo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw + 12px, 28px);
  color: var(--azul);
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--borda);
  background: var(--bg);
  color: var(--muted);
}

.hero-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  background: var(--azul);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2,43,58,.30);
  transition: background .15s, transform .15s;
}

.hero-btn:hover { background: #011c27; transform: translateY(-1px); }

.hero-img-card {
  background: var(--bg);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 12px;
}

.hero-img-card img {
  border-radius: 10px;
  width: 100%;
  object-fit: cover;
}

.hero-img-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.meta-item { display: flex; flex-direction: column; gap: 2px; }

.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.meta-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--azul);
}

/* ── Slider shell ──────────────────────────────────────── */
.slider-shell {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.slider-head-title {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--azul);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  min-width: 160px;
  justify-content: flex-end;
}

.progress-label { font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-label strong { color: var(--azul); }

.progress-bar-bg {
  flex: 1;
  max-width: 160px;
  height: 5px;
  background: var(--cinza);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--verde), #0ea5e9);
  width: 10%;
  transition: width .25s ease;
}

/* ── Slide ─────────────────────────────────────────────── */
.slide { display: none; }
.slide.ativo { display: grid; }

.slide {
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: stretch;
}

.slide-texto {
  background: var(--bg);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-height: var(--slide-box-height);
  height: var(--slide-box-height);
  overflow: auto;
}

.slide-titulo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--azul);
  margin-bottom: 8px;
}

.slide-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.slide-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-lista li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--texto);
  align-items: flex-start;
}

.slide-lista li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--verde);
  flex-shrink: 0;
  margin-top: 5px;
}

.slide-visual {
  background: var(--bg);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: var(--slide-box-height);
  height: var(--slide-box-height);
}

.slide-visual img {
  border-radius: 10px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  height: var(--slide-image-height);
  max-height: var(--slide-image-height);
  background: var(--branco);
}

/* ── Grid de dados ───────────────────────────────────────── */
.dados-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.dado-item {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 10px;
  padding: 10px 12px;
}

.dado-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 3px;
}

.dado-valor {
  font-size: 13px;
  font-weight: 600;
  color: var(--azul);
}

/* ── Tabela ───────────────────────────────────────────────── */
.tabela-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--borda);
  margin-top: 4px;
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 320px;
}

.tabela th, .tabela td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--cinza);
  text-align: left;
}

.tabela th {
  background: var(--bg);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--muted);
  font-weight: 600;
}

.tabela tr:last-child td { border-bottom: none; }

.tabela td:first-child { color: var(--muted); }
.tabela td:last-child  { font-weight: 600; color: var(--azul); }

/* ── Navegação ─────────────────────────────────────────── */
.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding-top: 4px;
  border-top: 1px solid var(--cinza);
  min-height: 52px;
}

.nav-bar .progress-row {
  order: 2;
  flex: 1 1 100%;
  justify-content: center;
  min-width: 0;
  width: min(100%, 420px);
  margin: 2px auto 0;
  pointer-events: auto;
}

.nav-bar .progress-bar-bg {
  max-width: none;
}

.nav-grupo {
  order: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-btn {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  border: 1px solid var(--borda);
  background: var(--branco);
  color: var(--texto);
  transition: background .15s, border-color .15s, transform .15s, opacity .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-btn:hover:not(:disabled) {
  background: var(--bg);
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.nav-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.nav-btn-cta {
  order: 1;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  background: var(--azul);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, transform .15s;
  box-shadow: 0 4px 14px rgba(2,43,58,.28);
  margin-left: auto;
}

.nav-btn-cta:hover { background: #011c27; transform: translateY(-1px); }

.nav-dica {
  order: 1;
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 2px;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  box-shadow: var(--sombra);
}

.footer-note-right {
  width: 100%;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  margin-top: -6px;
  padding: 0 2px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-left: 0;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--azul);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.contact-item:hover {
  text-decoration: underline;
}

.contact-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ── Responsivo ────────────────────────────────────────── */
@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .hero-img-card { max-width: 360px; }

  .slide.ativo {
    grid-template-columns: 1fr;
  }

  .slide-texto,
  .slide-visual {
    min-height: 0;
    height: auto;
  }

  .slide-visual img {
    height: auto;
    max-height: 220px;
  }

  .dados-grid { grid-template-columns: 1fr; }

  .nav-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-bar .progress-row {
    order: 2;
    width: 100%;
    max-width: none;
    min-width: 0;
    pointer-events: auto;
    justify-content: flex-start;
    margin: 0;
  }

  .nav-grupo { justify-content: center; }
  .nav-btn-cta { justify-content: center; }
  .nav-dica { justify-content: center; }

  .footer-contact {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .page { padding: 12px 12px 30px; gap: 14px; }
  .header { padding: 10px 14px; }
  .slider-shell { padding: 14px 14px 16px; }
  .progress-bar-bg { display: none; }
  .slide-titulo { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
