/* ============================================================
   BOLSAS DIGITAIS — Design System Global
   style.css: reset, variáveis, componentes, home, footer
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@700;800&display=swap');

/* ── Custom Properties ── */
:root {
  /* Cores */
  --azul-primario:    #1A4FBA;
  --azul-escuro:      #0D2E6E;
  --azul-claro:       #E8F0FE;
  --verde-cta:        #1DB954;
  --verde-hover:      #17A349;
  --amarelo-destaque: #FFD600;
  --texto-principal:  #111827;
  --texto-secundario: #4B5563;
  --texto-claro:      #FFFFFF;
  --borda:            #E5E7EB;
  --fundo-claro:      #F9FAFB;
  --fundo-branco:     #FFFFFF;
  --erro:             #DC2626;
  --sucesso:          #16A34A;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);

  /* Tipografia */
  --font-display: 'Montserrat', sans-serif;
  --font-corpo:   'Inter', sans-serif;

  /* Espaçamento (sistema 8px) */
  --xs:  4px;
  --sm:  8px;
  --md:  16px;
  --lg:  24px;
  --xl:  32px;
  --2xl: 48px;
  --3xl: 64px;

  /* Border radius */
  --radius-btn:   8px;
  --radius-card:  12px;
  --radius-input: 8px;
  --radius-badge: 999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-corpo);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto-principal);
  background: var(--fundo-branco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Iframes nunca ultrapassam o container */
iframe {
  max-width: 100%;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--md);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--lg); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--xl); }
}

.section {
  padding: var(--3xl) 0;
}

.section-fundo-claro {
  background: var(--fundo-claro);
}

.section-fundo-azul {
  background: var(--azul-claro);
}

/* ── Tipografia ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin-bottom: var(--md); }
p:last-child { margin-bottom: 0; }

.section-titulo {
  text-align: center;
  margin-bottom: var(--2xl);
}

.section-titulo h2 {
  color: var(--texto-principal);
  margin-bottom: var(--sm);
}

.section-titulo p {
  color: var(--texto-secundario);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  padding: 6px 14px;
  border-radius: var(--radius-badge);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-corpo);
}

.badge-amarelo {
  background: var(--amarelo-destaque);
  color: var(--texto-principal);
}

.badge-azul {
  background: var(--azul-claro);
  color: var(--azul-primario);
}

.badge-verde {
  background: #DCFCE7;
  color: #15803D;
}

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-corpo);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primario {
  background: var(--azul-primario);
  color: var(--texto-claro);
}

.btn-primario:hover:not(:disabled) {
  background: var(--azul-escuro);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,79,186,0.3);
}

.btn-whatsapp {
  background: var(--verde-cta);
  color: var(--texto-claro);
}

.btn-whatsapp:hover:not(:disabled) {
  background: var(--verde-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,185,84,0.3);
}

.btn-outline-branco {
  background: transparent;
  color: var(--texto-claro);
  border: 2px solid var(--texto-claro);
}

.btn-outline-branco:hover {
  background: rgba(255,255,255,0.12);
}

.btn-outline-azul {
  background: transparent;
  color: var(--azul-primario);
  border: 2px solid var(--azul-primario);
}

.btn-outline-azul:hover {
  background: var(--azul-claro);
}

.btn-full { width: 100%; }

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ── Form global ── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--md);
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--texto-principal);
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--borda);
  border-radius: var(--radius-input);
  font-family: var(--font-corpo);
  font-size: 1rem; /* ≥16px: evita zoom iOS */
  color: var(--texto-principal);
  background: var(--fundo-branco);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.input-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--azul-primario);
  box-shadow: 0 0 0 3px rgba(26,79,186,0.12);
}

.input-group input::placeholder {
  color: #9CA3AF;
}

.input-erro {
  border-color: var(--erro) !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10) !important;
}

.msg-erro {
  display: block;
  font-size: 0.8rem;
  color: var(--erro);
  margin-top: 2px;
}

/* ── Card ── */
.card {
  background: var(--fundo-branco);
  border-radius: var(--radius-card);
  border: 1px solid var(--borda);
  padding: var(--xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icone {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--azul-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--md);
  font-size: 1.4rem;
}

/* ── Badge reCAPTCHA ── */
.grecaptcha-badge {
  z-index: 9998 !important;
  bottom: 100px !important;
}

/* ── WhatsApp Flutuante ── */
#whatsapp-flutuante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  animation: pulse-whatsapp 2.5s infinite;
}

#whatsapp-flutuante:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  animation: none;
}

@keyframes pulse-whatsapp {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 639px) {
  #whatsapp-flutuante {
    bottom: 80px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

/* ── Animações de entrada ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HOME — Header
   ============================================================ */
.home-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fundo-branco);
  box-shadow: var(--shadow-sm);
}

.home-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--md);
  padding-bottom: var(--md);
}

.home-header-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sm);
}

.home-header-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--azul-primario);
  line-height: 1;
}

.home-header-tagline {
  font-size: 0.75rem;
  color: var(--texto-secundario);
  font-weight: 400;
  display: none;
}

@media (min-width: 640px) {
  .home-header-tagline { display: block; }
}

.home-header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  line-height: 0;
}

.home-header-logo-img {
  height: 208px;
  width: auto;
}

@media (max-width: 639px) {
  .home-header .container {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sm);
    padding-bottom: var(--sm);
    row-gap: var(--sm);
    column-gap: 0;
  }

  .home-header-logo {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
    order: -1;
  }

  .home-header-logo-img {
    height: 110px;
    margin-top: -16px;
    margin-bottom: -16px;
  }

  .home-header-brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .home-header-brand .home-header-logo-text {
    font-size: 1rem;
  }

  .home-header .btn-primario {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* ── Vídeo responsivo 16:9 ── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Nota Máxima MEC ── */
.section-nota-maxima {
  line-height: 0;
}

.nota-maxima-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   HOME — Hero
   ============================================================ */
.home-hero {
  background: linear-gradient(135deg, #0D2E6E 0%, #1A4FBA 100%);
  position: relative;
  overflow: hidden;
  padding: var(--3xl) 0;
}

/* Padrão de pontos decorativo */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.home-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .home-hero .container {
    grid-template-columns: 1fr 420px;
    padding-top: var(--3xl);
    padding-bottom: var(--3xl);
  }
}

.home-hero-content {
  color: var(--texto-claro);
}

.home-hero-content .badge {
  margin-bottom: var(--lg);
  background: rgba(255,214,0,0.15);
  color: var(--amarelo-destaque);
  border: 1px solid rgba(255,214,0,0.3);
}

.home-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--texto-claro);
  margin-bottom: var(--md);
  line-height: 1.15;
}

.home-hero-content .hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--xl);
  max-width: 540px;
}

.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--md);
}

.home-hero-image {
  display: none;
}

@media (min-width: 1024px) {
  .home-hero-image {
    display: block;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }

  .home-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
  }

  .home-hero-image iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
  }

  .home-hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-card);
    border: 2px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    text-align: center;
    padding: var(--lg);
  }
}

/* ============================================================
   HOME — Como Funciona
   ============================================================ */
.como-funciona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lg);
}

@media (min-width: 768px) {
  .como-funciona-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.passo-card {
  display: flex;
  align-items: flex-start;
  gap: var(--md);
  padding: var(--xl);
  background: var(--fundo-branco);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--borda);
  position: relative;
}

.passo-numero {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--azul-primario);
  color: var(--texto-claro);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passo-conteudo h3 {
  margin-bottom: var(--xs);
}

.passo-conteudo p {
  font-size: 0.9rem;
  color: var(--texto-secundario);
  margin: 0;
}

/* ============================================================
   HOME — Benefícios
   ============================================================ */
.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lg);
}

@media (min-width: 640px) {
  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   HOME — Depoimentos
   ============================================================ */
.depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lg);
}

@media (min-width: 768px) {
  .depoimentos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.depoimento-card {
  background: var(--fundo-branco);
  border-radius: var(--radius-card);
  padding: var(--xl);
  border: 1px solid var(--borda);
  box-shadow: var(--shadow-sm);
}

.depoimento-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--azul-primario);
  color: var(--texto-claro);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--md);
  flex-shrink: 0;
}

.depoimento-estrelas {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: var(--sm);
  letter-spacing: 2px;
}

.depoimento-texto {
  font-size: 0.95rem;
  color: var(--texto-secundario);
  font-style: italic;
  margin-bottom: var(--md);
  line-height: 1.7;
}

.depoimento-autor {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--texto-principal);
}

.depoimento-info {
  font-size: 0.8rem;
  color: var(--texto-secundario);
}

/* ============================================================
   HOME — Seção Polos
   ============================================================ */
/* Dois grupos de estado lado a lado */
.polos-colunas {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--xl);
}

@media (min-width: 640px) {
  .polos-colunas { grid-template-columns: 1fr 1fr; }
}

.polos-coluna-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.55);
  padding-bottom: 10px;
  margin-bottom: var(--md);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.polos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--md);
}

@media (min-width: 640px) {
  .polos-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.polo-card {
  background: var(--fundo-branco);
  border-radius: var(--radius-card);
  padding: var(--lg) var(--xl);
  border: 1px solid var(--borda);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  text-decoration: none;
  color: var(--texto-principal);
  transition: all 0.2s ease;
}

.polo-card:hover {
  border-color: var(--azul-primario);
  box-shadow: 0 4px 16px rgba(26,79,186,0.15);
  transform: translateY(-2px);
}

.polo-card-info {
  display: flex;
  align-items: center;
  gap: var(--md);
}

.polo-card-icone {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--azul-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--azul-primario);
}

.polo-card-nome {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.polo-card-estado {
  font-size: 0.8rem;
  color: var(--texto-secundario);
}

.polo-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--azul-primario);
  background: var(--azul-claro);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.polo-card:hover .polo-card-link {
  background: var(--verde-cta);
  color: #fff;
  border-color: var(--verde-cta);
}

/* ============================================================
   FOOTER GLOBAL
   ============================================================ */
.site-footer {
  background: var(--azul-escuro);
  color: rgba(255,255,255,0.85);
  padding: var(--2xl) 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--lg);
}

@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--texto-claro);
  display: block;
  margin-bottom: var(--xs);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--md);
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--texto-claro);
}

/* ============================================================
   Acessibilidade
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--azul-primario);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Honeypot anti-bot — não remover */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── Cookie Consent ── */
#cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
#cookie-modal {
  background: var(--fundo-branco);
  max-width: 420px;
  width: 90%;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
#cookie-modal h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--texto-principal);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
#cookie-modal p {
  color: var(--texto-secundario);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
#cookie-modal a { color: var(--azul-primario); }
#cookie-aceitar { width: 100%; margin-top: 16px; }
#cookie-recusar {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--texto-secundario);
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  padding: 4px;
  font-family: inherit;
}
#cookie-recusar:hover { color: var(--texto-principal); }
#cookie-gerenciar {
  background: none;
  border: none;
  color: var(--texto-secundario);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}
#cookie-gerenciar:hover { color: var(--texto-principal); }

/* ── Embed Placeholders (Maps + YouTube) ── */
.maps-placeholder,
.yt-placeholder {
  background: var(--fundo-claro);
  border: 1px solid var(--borda);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.maps-placeholder { min-height: 280px; }
.yt-placeholder   { aspect-ratio: 16/9; min-height: 200px; }
.maps-placeholder p,
.yt-placeholder p  { margin: 0; font-size: 0.9rem; color: var(--texto-secundario); }
.btn-ver-mapa,
.btn-ver-video {
  background: var(--azul-primario);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
}
.btn-ver-mapa:hover,
.btn-ver-video:hover { background: var(--azul-escuro); }
