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

:root {
  /* Paleta de cores exclusiva */
  --primary-dark: #1e3a5f;
  --primary: #2c5282;
  --primary-light: #3182ce;
  --accent: #4299e1;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  
  /* Tipografia */
  --font-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Espaçamento */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Tamanhos de fonte */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transições */
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-system);
  line-height: 1.6;
  color: var(--neutral-700);
  background-color: var(--neutral-50);
  overflow-x: hidden;
}

/* ============================================================
   HEADER E NAVEGAÇÃO
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 45px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--neutral-700);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-light);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-light);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--primary);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--neutral-700);
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================================
   SEÇÕES GERAIS
   ============================================================ */
.section {
  padding: var(--spacing-3xl) var(--spacing-lg);
}

.section-sm {
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

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

.section-subtitle {
  color: var(--primary-light);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   HERO / ABERTURA
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/pattern.svg');
  opacity: 0.5;
  z-index: 0;
}

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

.hero-content h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.hero-content .lead {
  font-size: var(--text-xl);
  color: var(--neutral-600);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary-light);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--neutral-600);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   CARDS E BLOCOS DE CONTEÚDO
   ============================================================ */
.card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: white;
  font-weight: 700;
  font-size: var(--text-xl);
}

.card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--neutral-600);
  line-height: 1.7;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

/* ============================================================
   SEÇÃO DE RISCOS (CONCEITUAL)
   ============================================================ */
.risks-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.risk-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.risk-card h3 {
  color: white;
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.risk-card ul {
  list-style: none;
  margin-top: var(--spacing-md);
}

.risk-card li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  opacity: 0.9;
}

.risk-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============================================================
   TABELAS E LISTAS EDUCATIVAS
   ============================================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: var(--spacing-xl) 0;
}

.info-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.info-table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--neutral-200);
}

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

.info-table tr:hover {
  background-color: var(--neutral-50);
}

.checklist {
  list-style: none;
  margin: var(--spacing-lg) 0;
}

.checklist li {
  padding: var(--spacing-sm) 0;
  padding-left: var(--spacing-xl);
  position: relative;
  font-size: var(--text-base);
  color: var(--neutral-700);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
  font-size: var(--text-lg);
}

/* ============================================================
   FAQ INTERATIVO
   ============================================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--spacing-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-icon {
  font-size: var(--text-2xl);
  transition: transform 0.3s ease;
  color: var(--primary-light);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--neutral-600);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ============================================================
   FORMULÁRIO DE CONTATO
   ============================================================ */
.contact-form-section {
  background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-xs);
  font-size: var(--text-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius);
  font-family: var(--font-system);
  font-size: var(--text-base);
  transition: var(--transition);
  background-color: var(--neutral-50);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-button:active {
  transform: translateY(0);
}

.form-message {
  padding: var(--spacing-md);
  border-radius: var(--radius);
  margin-top: var(--spacing-md);
  display: none;
}

.form-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* ============================================================
   CREDENCIAIS E CERTIFICAÇÕES
   ============================================================ */
.credentials-section {
  background-color: white;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.credential-badge {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--neutral-50);
  border-radius: var(--radius-lg);
  border: 2px solid var(--neutral-200);
}

.credential-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-sm);
}

.credential-label {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: var(--text-sm);
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
  background-color: var(--neutral-900);
  color: var(--neutral-400);
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--neutral-800);
}

.footer-brand h3 {
  color: white;
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-md);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  opacity: 0.8;
}

.footer-section h4 {
  color: white;
  font-size: var(--text-base);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: var(--spacing-lg);
  font-size: var(--text-xs);
  opacity: 0.5;
  line-height: 1.4;
}

.footer-bottom p {
  margin-bottom: var(--spacing-xs);
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-container {
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-menu.active {
    max-height: 500px;
  }
  
  .hero-container,
  .grid-2,
  .grid-3,
  .grid-4,
  .risk-grid,
  .credentials-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--spacing-3xl);
  }
  
  .hero-content h1 {
    font-size: var(--text-4xl);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  .form-container {
    padding: var(--spacing-lg);
  }
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.bg-light {
  background-color: var(--neutral-50);
}

.bg-white {
  background-color: white;
}

.highlight {
  color: var(--primary-light);
  font-weight: 600;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--neutral-300), transparent);
  margin: var(--spacing-2xl) 0;
}
