/* =========================================== */
/* VARIÁVEIS DE DESIGN SYSTEM                 */
/* =========================================== */
:root {
  /* Cores principais */
  --primary: #3b82f6;
  --primary-light: #93c5fd;
  --primary-dark: #1d4ed8;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  
  /* Cor secundária */
  --secondary: #8b5cf6;
  --secondary-light: #c4b5fd;
  --secondary-dark: #7c3aed;
  
  /* Cor de destaque */
  --accent: #f97316;
  --accent-light: #fdba74;
  --accent-dark: #ea580c;
  
  /* Cores neutras */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-150: #e2e8f0;
  --neutral-200: #cbd5e1;
  --neutral-300: #94a3b8;
  --neutral-400: #64748b;
  --neutral-500: #475569;
  --neutral-600: #334155;
  --neutral-700: #1e293b;
  --neutral-800: #0f172a;
  --neutral-900: #020617;
  
  /* Cores semânticas */
  --success: #10b981;
  --success-light: #a7f3d0;
  --success-dark: #059669;
  
  --warning: #f59e0b;
  --warning-light: #fde68a;
  --warning-dark: #d97706;
  
  --error: #ef4444;
  --error-light: #fecaca;
  --error-dark: #dc2626;
  
  --info: #0ea5e9;
  --info-light: #bae6fd;
  --info-dark: #0284c7;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  
  /* Sombras */
  --shadow-subtle: 0 10px 30px rgba(59, 130, 246, 0.08);
  --shadow-medium: 0 20px 50px rgba(59, 130, 246, 0.12);
  --shadow-hover: 0 30px 60px rgba(59, 130, 246, 0.16);
  --shadow-accent: 0 20px 40px rgba(249, 115, 22, 0.15);
  
  /* Bordas */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  
  /* Transições */
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================== */
/* RESET E BASE                               */
/* =========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--neutral-50), #fff);
  color: var(--neutral-800);
  line-height: 1.7;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.03), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* =========================================== */
/* CONTAINER                                  */
/* =========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  min-height: calc(100vh - 100px);
}

/* =========================================== */
/* HEADER                                     */
/* =========================================== */
header {
  text-align: center;
  margin-bottom: 60px;
}

.header-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-subtle);
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--neutral-900), var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.header-subtitle {
  font-size: 1.375rem;
  color: var(--neutral-700);
  max-width: 800px;
  margin: 0 auto 40px;
}

/* =========================================== */
/* CARDS GRID                                 */
/* =========================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255,255,255,0.6);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-primary);
  transition: height 0.3s ease;
}

.card:hover::before {
  height: 8px;
}

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.05);
}

.card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 20px;
  line-height: 1.3;
}

.card ul {
  list-style: none;
  padding-left: 0;
  width: 100%;
  text-align: left;
}

.card ul li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  font-size: 1.05rem;
  color: var(--neutral-700);
}

.card ul li:last-child {
  border-bottom: none;
}

.card ul li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 2px;
}

.card.card-warning ul li::before {
  content: '⚠';
  color: var(--warning);
}

.card.card-synthesis {
  background: var(--gradient-subtle);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.card-synthesis p {
  font-size: 1.125rem;
  color: var(--neutral-800);
  line-height: 1.8;
  text-align: center;
  margin-top: 10px;
}

/* =========================================== */
/* CTA SECTION (CORRIGIDO)                    */
/* =========================================== */
.cta-section {
  text-align: center;
  margin: 50px 0 60px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  padding: 20px 40px;
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.3px;
  min-width: 280px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--secondary-light));
  transition: left 0.5s ease;
  z-index: -1;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.cta-button::after {
  content: '→';
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.cta-button:hover::after {
  transform: translateX(8px);
}

/* =========================================== */
/* MUNICÍPIOS SECTION                         */
/* =========================================== */
.municipalities-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--neutral-200);
}

.municipalities-section h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--neutral-900);
  text-align: center;
  margin: 0 0 15px;
  letter-spacing: -0.01em;
}

.municipalities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1000px;
  padding: 0 10px;
}

.municipality-link {
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-light);
  background: rgba(255,255,255,0.95);
  color: var(--neutral-800);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  min-width: 140px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.municipality-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary);
  color: var(--primary);
}

.municipalities-note {
  margin: 16px auto 0;
  max-width: 900px;
  text-align: center;
  color: var(--neutral-600);
  font-size: 0.9rem;
  font-style: italic;
  padding: 0 20px;
}

/* =========================================== */
/* PATROCÍNIOS                                */
/* =========================================== */
.sponsorships {
  margin-top: 0;
  padding: 25px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--neutral-200);
  margin-bottom: 40px;
}

.sponsorships h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 10px;
  text-align: center;
}

.sponsorships p {
  color: var(--neutral-600);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 15px;
  justify-items: stretch;
}

.sponsor-slot {
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 80px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--neutral-300);
  background: var(--neutral-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-500);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.sponsor-slot:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.sponsor-slot a {
  width: 100%;
  height: 100%;
  display: flex;
}

.sponsor-inner {
  width: 100%;
  height: 100%;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.2);
  transform-origin: center;
  filter: grayscale(100%);
  opacity: 0.85;
  display: block;
}

.sponsor-slot.has-logo span {
  display: none;
}

/* =========================================== */
/* FOOTER                                     */
/* =========================================== */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(248,250,252,0.8);
}

.footer-note {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 24px auto 32px;
  max-width: 800px;
  box-shadow: var(--shadow-subtle);
  border-left: 4px solid var(--primary);
}

footer p.sponsor-policy {
  font-size: 0.85rem;
  color: var(--neutral-600);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--neutral-200);
  max-width: 600px;
}

/* =========================================== */
/* RESPONSIVIDADE                             */
/* =========================================== */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sponsor-slot {
    height: 72px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .municipalities-grid {
    justify-content: center;
  }
  
  .municipality-link {
    min-width: 120px;
    font-size: 0.9rem;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 30px 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .header-subtitle {
    font-size: 1.1rem;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    padding: 18px 32px;
    font-size: 1.1rem;
  }
  
  .sponsor-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sponsor-slot {
    width: 100%;
    height: auto;
  }

  .sponsorships {
    padding: 20px 16px;
  }
}