/* ===== DESIGN SYSTEM - GRUPO AC ===== */

/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Variáveis CSS - Paleta de cores extraída da logo */
:root {
  /* Cores principais */
  --azul-primario: #306098;
  --azul-secundario: #4878A8;
  --dourado-acento: #F0B048;
  --cinza-claro-ui: #E0E8F0;
  --preto-texto: #1F2D3D;
  --branco: #FFFFFF;
  
  /* Gradientes */
  --gradiente-azul: linear-gradient(90deg, #306098 0%, #4878A8 100%);
  --gradiente-dourado: linear-gradient(90deg, #F0B048 0%, #FFD06A 100%);
  
  /* Tipografia */
  --font-headings: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  
  /* Espaçamento 8-pt */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  
  /* Bordas e sombras */
  --border-radius: 12px;
  --border-radius-card: 16px;
  --border-color: var(--cinza-claro-ui);
  --shadow-subtle: 0 2px 8px rgba(31, 45, 61, 0.08);
  --shadow-elevated: 0 8px 24px rgba(31, 45, 61, 0.12);
  
  /* Transições */
  --transition-fast: 180ms ease-out;
  --transition-normal: 300ms ease-out;
  --transition-slow: 400ms ease-out;
  --transition-accordion: 240ms ease-out;
}

/* Reset CSS moderno */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--preto-texto);
  background-color: var(--branco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--preto-texto);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

a {
  color: var(--azul-primario);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--azul-secundario);
}

a:focus {
  outline: 2px solid var(--azul-primario);
  outline-offset: 2px;
}

/* Listas */
ul, ol {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* Imagens responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Botões base */
button, .btn {
  font-family: var(--font-body);
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  min-height: 48px; /* Acessibilidade - área de toque mínima */
}

button:focus, .btn:focus {
  outline: 2px solid var(--azul-primario);
  outline-offset: 2px;
}

/* Formulários base */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--azul-primario);
  box-shadow: 0 0 0 3px rgba(48, 96, 152, 0.1);
}

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

/* Skip link para navegação por teclado */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--azul-primario);
  color: var(--branco);
  padding: var(--spacing-xs) var(--spacing-sm);
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* Responsividade base */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.375rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Classes utilitárias para animações */
.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out;
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) ease-out;
}

.animate-scale-in {
  animation: scaleIn var(--transition-normal) ease-out;
}

/* Prefers reduced motion */
@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;
  }
}

