@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&family=Roboto:wght@600;700&display=swap');

/* ===========================
   Perdeu Achou — Estilos Globais
   =========================== */

:root {
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --success: #16A34A;
  --success-dark: #166534;
  --warning: #D97706;
  --warning-dark: #92400E;
  --danger: #DC2626;
  --danger-dark: #991B1B;
  --neutral: #6B7280;
  --neutral-dark: #374151;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --text-dark: #111827;
  --text-gray: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.auth-title,
.page-header h1,
.process-title,
.card-doc-title,
.summary-info h3,
.footer-col h4 {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.section-subtitle,
.hero-subtitle,
.auth-subtitle,
.page-header p,
p,
li,
a,
label,
input,
select,
textarea,
button,
td,
th,
span {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Flexbox */
.flex {
  display: flex;
  gap: 1rem;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Seções */
  padding: 5rem 0 4rem;
  margin-bottom: 2.5rem;
}

/* Títulos de seção */
 .section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
}

 .section-subtitle {
  color: var(--text-gray);
  font-size: 1.18rem;
  margin-bottom: 2.2rem;
  font-weight: 500;
}

.text-center {
  text-align: center;
}

/* Utilitários de margem */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Página */
.page-header {
  background: white;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.page-header p {
  color: var(--text-gray);
  margin-top: 0.3rem;
}

/* Espaçamento da página principal (sem hero) */
.page-content {
  padding: 2rem 0 4rem;
}

/* Tabelas */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

thead {
  background: var(--bg-light);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-gray);
  border-bottom: 2px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

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

tr:hover td {
  background: var(--bg-light);
}

/* Linha risco alto */
tr.risco-alto td {
  background: #FEF2F2;
}

tr.risco-alto:hover td {
  background: #FEE2E2;
}

/* Linha risco médio */
tr.risco-medio td {
  background: #FFFBEB;
}

tr.risco-medio:hover td {
  background: #FEF3C7;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Barra de progresso */
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-bar-fill.success {
  background: var(--success);
}

/* Checklist */
.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.checklist li .check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.checklist li .check-icon.success {
  background: #DCFCE7;
  color: var(--success);
}

.checklist li .check-icon.pending {
  background: var(--border);
  color: var(--neutral);
}

/* Texto com ícone */
.icon-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Esconder / mostrar */
.hidden {
  display: none !important;
}

/* ══════════════════════════════════════
   HERO COM CAROUSEL DE IMAGENS
   ══════════════════════════════════════ */

.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0;
}

/* Slides de fundo */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Gradiente escuro: forte à esquerda, suave à direita */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(10, 28, 60, 0.90) 0%,
    rgba(10, 28, 60, 0.72) 45%,
    rgba(10, 28, 60, 0.30) 100%
  );
}

/* Conteúdo do hero */
.hero-body {
  position: relative;
  z-index: 2;
  padding: 6rem 0 5.5rem;
  width: 100%;
}

.hero-content {
  max-width: 620px;
  text-align: left;
  margin-right: auto;
  margin-left: 0;
  align-self: flex-start;
}

.hero-body > .container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.92);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.3rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 2.4rem;
  max-width: 540px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  background: #2563EB;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid #2563EB;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-hero-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  background: transparent;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-1px);
}

/* Linha de confiança */
.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-trust span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* Indicadores (dots) do carousel */
.hero-indicators {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.hero-dot.active {
  background: white;
  width: 28px;
}

/* ═══ Responsividade do hero ═══ */
@media (max-width: 900px) {
  .hero-section { min-height: 70vh; }
  .hero-body { padding: 5rem 0 4rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-content { max-width: 100%; margin-left: 0; text-align: left; }
  .hero-actions { justify-content: flex-start; align-items: center; }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10,28,60,0.85) 0%,
      rgba(10,28,60,0.65) 100%
    );
  }
}

@media (max-width: 600px) {
  .hero-section { min-height: 60vh; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .btn-hero-primary,
  .btn-hero-outline { padding: 13px 22px; font-size: 0.95rem; }
  .hero-trust { gap: 0.8rem; }
  .hero-trust span { font-size: 0.75rem; }
}


.card-process {
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.process-step {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8EEF8;
  color: #12305f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-copy {
  font-size: 0.92rem;
  color: var(--text-gray);
}

.cta-section {
  background: #EEF3F8;
  color: var(--text-dark);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  overflow: hidden;
}

.partners-marquee-full {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.partners-track-full {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: partners-scroll-full 20s linear infinite;
}

.partner-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-image {
  background: transparent;
}

.partner-logo-image img {
  display: block;
  width: auto;
  max-width: 140px;
  max-height: 60px;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: opacity 0.2s, filter 0.2s;
}

.partner-logo-image img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes partners-scroll-full {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stats-section {
  background: #12305f;
  color: white;
}

.stat-card-muted {
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}

.stat-number-light {
  color: white;
}

.stat-label-light {
  color: rgba(255,255,255,0.78);
}

/* ===========================
   Responsividade
   =========================== */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .stat-card, .card {
    padding: 1.3rem 1rem;
  }

  .partners-marquee {
    min-height: 76px;
  }

  .partners-track {
    gap: 2.5rem;
  }

  .partner-logo-image img {
    max-width: 180px;
    max-height: 56px;
  }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .container {
    padding: 0 0.5rem;
  }
  .card {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .stat-card, .card {
    padding: 1rem 0.7rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .partners-marquee {
    padding: 0.35rem 0;
    min-height: 62px;
  }

  .partners-track {
    gap: 2rem;
    animation-duration: 16s;
  }

  .partner-logo-image img {
    max-width: 150px;
    max-height: 46px;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  th, td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .hero-section {
    padding: 2.2rem 0;
    border-radius: 0 0 18px 18px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn-lg {
    padding: 10px 18px;
    font-size: 0.98rem;
  }

  .cta-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .card-doc-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .card-doc-footer .btn {
    margin-left: 0;
    width: 100%;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
}
