/* =========================================================
   SYNAPS EDTECH - CSS COMPLETO REORGANIZADO
   Versão: 2.0
   Autor: Synaps EdTech
   Data: 2025
   ========================================================= */

/* =========================================================
   1. RESET E CONFIGURAÇÕES BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #ffffff;
  overflow-x: hidden;
}

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

/* =========================================================
   2. VARIÁVEIS CSS
   ========================================================= */
:root {
  /* Cores principais */
  --white: #ffffff;
  --dark-text: #2c2c2c;
  --primary-purple: #44338a;
  --light-border: #eeedee;
  --accent-blue: #79bfd5;
  --subtitle-text: #4a4a4a;
  --detail-pink: #ab7594;
  --info-box: #d1e9ee;
  --link-blue: #4d8db7;
  --cta-orange: #f09341;
  --gradient-blue: #7eb8e3;
  --deep-blue: #000b46;
  
  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Transições */
  --transition-fast: 160ms ease-out;
  --transition-medium: 240ms ease-out;
  --transition-slow: 320ms ease-out;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
  
  /* Bordas */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* =========================================================
   3. UTILITÁRIOS E ACESSIBILIDADE
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 6px;
  background: var(--primary-purple);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Classes de cor */
.text-deep { color: var(--deep-blue) !important; }
.text-dark { color: var(--dark-text) !important; }
.text-subtitle { color: var(--subtitle-text) !important; }

/* =========================================================
   4. FUNDO GLOBAL
   ========================================================= */
body.page-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("bg-network.png") center/cover no-repeat;
  opacity: 0.26;
  mix-blend-mode: screen;
  z-index: -1;
  pointer-events: none;
}

/* =========================================================
   5. HEADER E NAVEGAÇÃO
   ========================================================= */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--light-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-medium), min-height var(--transition-medium);
}

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  min-height: 130px;
  flex-wrap: nowrap;
  transition: min-height var(--transition-medium);
}

.header.scrolled .container {
  min-height: 90px;
}

/* Logo */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 130px;
  width: auto;
  transition: transform var(--transition-fast), height var(--transition-medium);
  object-fit: contain;
  display: block;
}

.header.scrolled .logo-img {
  height: 90px;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Botão de toggle mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-purple);
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.nav-toggle:hover {
  background-color: var(--light-border);
}

.nav-toggle:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Navegação */
.nav {
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(0.75rem, 1.6vw, var(--spacing-lg));
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  background: transparent;
  display: inline-block;
}

.nav-link:hover {
  color: var(--accent-blue);
  background-color: rgba(121, 191, 213, 0.1);
}

.nav-link.active {
  color: var(--cta-orange);
  background-color: rgba(240, 147, 65, 0.1);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--cta-orange);
  border-radius: 1px;
}

.nav-link:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* =========================================================
   6. SEÇÕES BASE
   ========================================================= */
.section {
  padding: var(--spacing-xxl) 0;
  color: var(--dark-text);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark-text);
  text-align: center;
  margin-bottom: var(--spacing-md);
  scroll-margin-top: 90px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--subtitle-text);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* =========================================================
   7. HERO SECTION
   ========================================================= */
.hero {
  padding: var(--spacing-xxl) 0;
  position: relative;
  isolation: isolate;
  background: radial-gradient(90% 130% at 80% 10%, rgba(12, 38, 102, 0.85) 0%, rgba(8, 27, 70, 0.88) 40%, rgba(6, 20, 50, 0.92) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bg-network.png") center/cover no-repeat;
  opacity: 0.28;
  mix-blend-mode: screen;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   8. BOTÕES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-medium);
  border: 2px solid transparent;
  cursor: pointer;
  min-width: 160px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-primary {
  background-color: var(--cta-orange);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  border-color: var(--cta-orange);
}

.btn-primary:hover {
  background-color: var(--link-blue);
  border-color: var(--link-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Efeito ripple nos botões */
.btn::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(4);
  opacity: 1;
  transition: 0s;
}

.btn:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   9. CARDS E GRID
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

.card {
  background: var(--white);
  border: 2px solid var(--light-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 340px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Linha superior animada */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-blue), var(--primary-purple), var(--cta-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-out;
}

.card:hover::before {
  transform: scaleX(1);
}

/* Efeito de hover */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-blue);
}

/* Ícone do card */
.card-icon {
  font-size: 4.5rem;
  margin-bottom: var(--spacing-lg);
  display: block;
  line-height: 1;
  transition: all 0.3s ease-out;
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(68, 51, 138, 0.3));
}

/* Título do card */
.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Descrição do card */
.card-description {
  color: var(--dark-text);
  opacity: 0.95;
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  font-size: 1rem;
  flex: 1;
  text-align: center;
}

/* Link do card */
.card-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.card-link::after {
  content: "→";
  transition: transform var(--transition-fast);
}

.card-link:hover {
  color: var(--primary-purple);
  gap: 0.75rem;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* =========================================================
   10. FEATURES E LISTAS
   ========================================================= */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-medium);
  color: var(--dark-text);
}

.feature-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: var(--spacing-xs);
}

.feature-content p {
  color: var(--dark-text);
  opacity: 0.9;
  line-height: 1.6;
}

/* Features inline para seções específicas */
.features-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.feature-item-inline {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-border);
  transition: all var(--transition-medium);
}

.feature-item-inline:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.feature-item-inline .feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item-inline .feature-text {
  flex: 1;
  line-height: 1.5;
  color: var(--dark-text);
}

.feature-item-inline .feature-text strong {
  color: var(--primary-purple);
}

/* =========================================================
   11. ESTATÍSTICAS
   ========================================================= */
.stats-section {
  background: linear-gradient(135deg, rgba(121, 191, 213, 0.1) 0%, rgba(126, 184, 227, 0.1) 100%);
  padding: var(--spacing-xxl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-purple);
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: var(--dark-text);
  font-weight: 600;
}

/* =========================================================
   12. CERTIFICADOS
   ========================================================= */
.certificates-section {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.certificates-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.certificate-item {
  display: flex;
  gap: var(--spacing-xl);
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.certificate-item .certificate-image-container {
  flex-shrink: 0;
  width: 300px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  padding: var(--spacing-sm);
  border: 1px solid var(--light-border);
}

.certificate-item .certificate-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

.certificate-item .certificate-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.certificate-item .certificate-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: var(--spacing-xs);
}

.certificate-item .certificate-level {
  font-size: 1.1rem;
  color: var(--primary-purple);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.certificate-item .certificate-date {
  font-size: 0.9rem;
  color: var(--subtitle-text);
  margin-bottom: var(--spacing-md);
}

.certificate-item .certificate-description {
  color: var(--dark-text);
  line-height: 1.6;
  opacity: 0.9;
}

/* =========================================================
   13. IMPACTO E SUPORTE
   ========================================================= */
.impacto-legal,
.solucoes-suporte {
  background: linear-gradient(135deg, rgba(68, 51, 138, 0.04) 0%, rgba(121, 191, 213, 0.06) 100%);
}

.impacto-lista,
.suporte-lista {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.impacto-item,
.suporte-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.impacto-item:hover,
.suporte-item:hover {
  transform: translateX(6px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.impacto-icone,
.suporte-icone {
  font-size: 2.2rem;
  color: var(--primary-purple);
  flex-shrink: 0;
}

.impacto-item h3,
.suporte-item h3 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-text);
}

.impacto-item p,
.suporte-item p {
  margin: 0;
  color: var(--dark-text);
  opacity: 0.85;
  line-height: 1.6;
}

/* =========================================================
   14. SEÇÕES ESPECÍFICAS (GOVERNAMENTAL/PRIVADO)
   ========================================================= */
.governmental-section {
  background: linear-gradient(135deg, rgba(68, 51, 138, 0.05) 0%, rgba(121, 191, 213, 0.05) 100%);
}

.private-section {
  background: linear-gradient(135deg, rgba(240, 147, 65, 0.05) 0%, rgba(171, 117, 148, 0.05) 100%);
}

.section-contexto {
  background: linear-gradient(135deg, rgba(68, 51, 138, 0.03) 0%, rgba(121, 191, 213, 0.05) 100%);
}

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

.sector-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}

.sector-badge.governmental {
  background: var(--primary-purple);
  color: var(--white);
}

.sector-badge.private {
  background: var(--cta-orange);
  color: var(--white);
}

.sector-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.sector-description {
  font-size: 1.1rem;
  color: var(--dark-text);
  opacity: 0.95;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* =========================================================
   15. PÁGINA MÍDIA (GALERIA)
   ========================================================= */
.media-hero {
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  position: relative;
  isolation: isolate;
  text-align: center;
  color: var(--white);
  background: radial-gradient(90% 130% at 20% 10%, rgba(12, 38, 102, 0.85) 0%, rgba(8, 27, 70, 0.88) 45%, rgba(6, 20, 50, 0.92) 100%);
}

.media-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bg-network.png") center/cover no-repeat;
  opacity: 0.28;
  mix-blend-mode: screen;
  z-index: -1;
}

.media-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.media-hero p {
  color: var(--white);
  max-width: 820px;
  margin: 0 auto;
  opacity: 0.95;
}

.gallery-section {
  padding: var(--spacing-xxl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.gallery-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.gallery-media {
  background: #000;
  position: relative;
}

.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.ratio-16x9 iframe,
.ratio-16x9 video,
.ratio-16x9 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.gallery-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.gallery-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark-text);
}

.gallery-desc {
  color: var(--subtitle-text);
  line-height: 1.5;
}

.file-chip {
  align-self: flex-start;
  background: #f5f7ff;
  color: #1b3a8a;
  border: 1px solid #e4e8ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.media-actions {
  margin-top: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.media-actions .btn {
  min-width: auto;
  padding: 10px 14px;
  font-weight: 700;
}

/* =========================================================
   16. CALL TO ACTION FINAL
   ========================================================= */
.final-cta {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-blue) 100%);
  color: var(--white);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta .btn-primary {
  background-color: var(--cta-orange);
  border-color: var(--cta-orange);
}

.final-cta .btn-primary:hover {
  background-color: var(--white);
  color: var(--primary-purple);
  border-color: var(--white);
}

.final-cta .btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.final-cta .btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-purple);
  border-color: var(--white);
}

/* =========================================================
   17. RODAPÉ
   ========================================================= */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--light-border);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section {
  min-width: 250px;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: var(--spacing-md);
}

.footer-section p {
  color: var(--dark-text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.footer-section a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--link-blue);
  text-decoration: underline;
}

.footer-address {
  font-size: 0.9rem;
  opacity: 0.8;
  color: var(--dark-text);
}

.footer-bottom {
  border-top: 1px solid var(--light-border);
  padding-top: var(--spacing-lg);
  text-align: center;
}

.ods-text {
  font-size: 0.9rem;
  color: var(--dark-text);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.ods-text strong {
  color: var(--primary-purple);
}

.footer-bottom p:last-child {
  font-size: 0.8rem;
  color: var(--subtitle-text);
}

/* =========================================================
   18. ELEMENTOS FLUTUANTES
   ========================================================= */
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  transition: all var(--transition-medium);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 4px;
  border-radius: 50%;
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-medium);
  display: block;
}

.whatsapp-float:hover .whatsapp-icon {
  box-shadow: 0 8px 25px rgba(77, 141, 183, 0.4);
}

/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-blue));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(68, 51, 138, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 4px;
}

/* Barra de Progresso de Scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cta-orange), var(--accent-blue));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 2000;
  transition: transform 0.1s ease-out;
}

/* =========================================================
   19. ANIMAÇÕES ON-SCROLL
   ========================================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate="slide-left"] {
  transform: translateX(-30px);
}

[data-animate="slide-left"].visible {
  transform: translateX(0);
}

[data-animate="slide-right"] {
  transform: translateX(30px);
}

[data-animate="slide-right"].visible {
  transform: translateX(0);
}

[data-animate="scale"] {
  transform: scale(0.9);
}

[data-animate="scale"].visible {
  transform: scale(1);
}

/* =========================================================
   20. FORMULÁRIO DE CONTATO
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form,
.contact-info {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-border);
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: var(--spacing-md);
}

.contact-info p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
  color: var(--dark-text);
}

.social-icons {
  margin-top: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons a:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 50%;
}

.social-icons img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  display: block;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background-color: var(--white);
  color: var(--dark-text);
  font-family: var(--font-family);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(121, 191, 213, 0.1);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.error-message {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: 0.875rem;
  color: #dc3545;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.form-message {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  animation: slideInDown 0.4s ease-out;
  font-size: 0.95rem;
}

.form-message.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.form-message strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   21. RESPONSIVIDADE
   ========================================================= */

/* Tablets (até 1024px) */
@media (max-width: 1024px) {
  .logo-img {
    height: 110px;
  }
  .header .container {
    min-height: 120px;
  }
  .header.scrolled .logo-img {
    height: 80px;
  }
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
  }
  .card {
    min-height: 300px;
    padding: var(--spacing-lg);
  }
  .card-icon {
    font-size: 3.5rem;
  }
  .card-title {
    font-size: 1.3rem;
  }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
  /* Header e Navegação */
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--light-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    max-height: 0;
    overflow: hidden;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--light-border);
  }
  .logo-img {
    height: 90px;
  }
  .header .container {
    min-height: 105px;
  }
  .header.scrolled .logo-img {
    height: 70px;
  }
  .header.scrolled .container {
    min-height: 85px;
  }
  
  /* Hero e Seções */
  .hero,
  .media-hero {
    padding: var(--spacing-xl) 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  .card {
    min-height: 280px;
    max-width: none;
    margin: 0;
  }
  .card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
  }
  .card-title {
    font-size: 1.25rem;
    min-height: auto;
    margin-bottom: var(--spacing-sm);
  }
  .card-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Estatísticas */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Rodapé */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Seções específicas */
  .feature-item-inline {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
  
  /* Certificados */
  .certificate-item {
    flex-direction: column;
    text-align: center;
  }
  
  /* Impacto e Suporte */
  .impacto-item,
  .suporte-item {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md);
  }
  
  .impacto-icone,
  .suporte-icone {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
  }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  .logo-img {
    height: 80px;
  }
  .header .container {
    min-height: 96px;
  }
  .header.scrolled .logo-img {
    height: 60px;
  }
  .header.scrolled .container {
    min-height: 76px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .card {
    padding: var(--spacing-lg);
  }
  .btn {
    min-width: 140px;
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* =========================================================
   22. AJUSTES FINAIS E OTIMIZAÇÕES
   ========================================================= */
/* Garantir legibilidade */
.card,
.card * {
  color: inherit;
}

/* Smooth scrolling para âncoras */
html {
  scroll-padding-top: 100px;
}

/* Melhorias de performance */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevenção de quebra de layout */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Estados de hover para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* Foco acessível */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

*:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

[aria-hidden="true"] {
  display: none;
}

/* Estilos para impressão */
@media print {
  .header,
  .nav,
  .whatsapp-float,
  .back-to-top,
  .scroll-progress,
  .btn {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .section {
    page-break-inside: avoid;
  }
}