/* ======================================================= */
/* === ESTILOS GLOBAIS / RESET OTIMIZADO ================= */
/* ======================================================= */

/* Aplicar box-sizing também a pseudo-elementos para consistência */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Fundamental: Aplica o Border-Box para todos os elementos */
}

html {
  font-size: 62.5%; /* 1rem = 10px (base 16px * 0.625) */
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
  background-color: #f8f9fb;
  color: #333;
  font-size: 1.6rem;
  overflow-x: hidden; /* Previne scroll horizontal acidental */
  /* Prefer modern property name */
  overflow-wrap: break-word; /* Garante quebras de palavra em URLs longas */
}

strong {
  font-weight: 700;
}

.App {
  width: 100%;
}

/* ------------------------------------------------- */
/* ==================== Variáveis CSS ===================== */
/* ------------------------------------------------- */
:root {
  --primary: #0056b3; /* Azul Principal */
  --secondary: #ffcc00; /* Amarelo/Dourado de Destaque */
  --dark: #222; /* Preto Quase Total para Header e Diferenciais */
  --light: #fff; /* Branco */

  /* Refatoração e Padronização de Tons de Cinza/Texto */
  --gray-light: #f8f9fb;
  --gray-medium: #e1e4e8;
  --gray-dark: #6c757d; /* Novo: Um cinza mais escuro para subtítulos/detalhes */

  --text-dark: var(--dark); /* Agora aponta para o #222 */
  --text-medium: var(
    --gray-dark
  ); /* Aponta para o novo cinza escuro, mais legível */

  /* Evitar 'all' por performance; listar propriedades específicas */
  --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* NOVAS VARIAVEIS DE STATUS */
  --success: #28a745; /* Verde para sucesso */
  --danger: #dc3545; /* Vermelho/Carmesim para erro */
}

/* ------------------------------------------------- */
/* ==================== Estrutura e Grid ===================== */
/* ------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px; /* Mantido o max-width */
  margin: 0 auto;
  padding: 0 2rem;
}

/* ------------------------------------------------- */
/* ==================== Estilos de Títulos Comuns ===================== */
/* ------------------------------------------------- */
.section-title {
  text-align: center;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.8rem;
  color: var(--text-medium); /* Usando a variável padronizada */
  margin-bottom: 5rem;
  /* font-weight: 400; */
}

/* ------------------------------------------------- */
/* ==================== Media Query Global ===================== */
/* ------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    width: 95%;
    max-width: unset; /* Permite que o width: 95% ocupe toda a tela no mobile */
    padding: 0 1.5rem;
  }

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

  .section-subtitle {
    font-size: 1.6rem;
    margin-bottom: 3rem;
  }
}

/* ------------------------------------------------- */
/* ==================== Animações Globais ===================== */
/* ------------------------------------------------- */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.96;
  }
}

/* Prefer users that reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Focus-visible for accessibility */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

/* Botão Flutuante WhatsApp (CSS plano, sem sintaxe SCSS) */
.whatsapp-float {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.28s ease, opacity 0.28s ease;
  will-change: transform, opacity;
  z-index: 999;
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
  }
}

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

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}
