/* ═══════════════════════════════════════════════════════════════
   ACFOR - Sistema de Design e Estilos Principais
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta de Cores Exclusiva */
  --primary-dark: #1a4d7a;
  --primary: #2d6ba3;
  --primary-light: #4a8bc7;
  --secondary: #5a7a94;
  --accent: #e67e22;
  --accent-light: #f39c12;
  
  /* Neutros */
  --gray-50: #f8f9fa;
  --gray-100: #e8eef3;
  --gray-200: #d4dfe8;
  --gray-300: #b8c7d4;
  --gray-400: #8fa3b5;
  --gray-500: #6b8099;
  --gray-600: #5a7a94;
  --gray-700: #3d5466;
  --gray-800: #2a3f52;
  --gray-900: #1a2733;
  
  /* Semântica */
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --info: #3498db;
  
  /* Tipografia */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                 Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 
               Consolas, 'Courier New', monospace;
  
  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(26, 77, 122, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 77, 122, 0.12);
  --shadow-lg: 0 8px 24px rgba(26, 77, 122, 0.15);
  --shadow-xl: 0 16px 48px rgba(26, 77, 122, 0.18);
  
  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   Reset e Base
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-system);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-800);
  background-color: var(--gray-50);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   Tipografia
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
}

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

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

strong {
  font-weight: 600;
  color: var(--gray-900);
}

/* ═══════════════════════════════════════════════════════════════
   Layout Principal
   ═══════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.container-wide {
  max-width: 1400px;
}

section {
  padding: var(--space-2xl) 0;
}

/* ═══════════════════════════════════════════════════════════════
   Header e Navegação
   ═══════════════════════════════════════════════════════════════ */

.header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

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

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  min-height: 80px;
}

.logo {
  height: 50px;
  width: auto;
  display: block;
}

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

.nav-menu a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--gray-700);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-menu a:hover {
  color: var(--primary);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  transition: all var(--transition-base);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e8eef3 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url('../assets/hero.svg');
  background-size: cover;
  background-position: center right;
  opacity: 0.6;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-label {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════════
   Cards e Blocos de Conteúdo
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-dark);
}

.card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════════════
   Grid Systems
   ═══════════════════════════════════════════════════════════════ */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ═══════════════════════════════════════════════════════════════
   Seções com Background
   ═══════════════════════════════════════════════════════════════ */

.section-alt {
  background: white;
}

.section-pattern {
  background-image: url('../assets/pattern.svg');
  background-size: 400px;
  background-repeat: repeat;
}

.section-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}

.section-gradient h2,
.section-gradient h3,
.section-gradient h4 {
  color: white;
}

.section-gradient p {
  color: rgba(255, 255, 255, 0.9);
}

/* ═══════════════════════════════════════════════════════════════
   Tabelas
   ═══════════════════════════════════════════════════════════════ */

.table-wrapper {
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--primary);
  color: white;
}

th {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
}

td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

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

tbody tr:hover {
  background: var(--gray-50);
}

/* ═══════════════════════════════════════════════════════════════
   Listas Estilizadas
   ═══════════════════════════════════════════════════════════════ */

.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 1.25rem;
}

.list-styled {
  padding-left: var(--space-lg);
}

.list-styled li {
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ / Accordion
   ═══════════════════════════════════════════════════════════════ */

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

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

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

.faq-question:hover {
  background: var(--gray-50);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-content {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--gray-700);
  line-height: 1.8;
}

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

/* ═══════════════════════════════════════════════════════════════
   Formulário de Contato
   ═══════════════════════════════════════════════════════════════ */

.form-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}

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

.form-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.form-intro h2 {
  color: white;
  margin-bottom: var(--space-sm);
}

.form-intro p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.contact-form {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-system);
  font-size: 1rem;
  color: var(--gray-800);
  transition: all var(--transition-fast);
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 107, 163, 0.1);
}

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

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-system);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
  display: block;
}

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

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

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

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */

.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

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

.footer h4 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  font-size: 0.8125rem;
  opacity: 0.5;
  line-height: 1.6;
}

.footer-info {
  margin-bottom: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════════════════════════════ */

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ═══════════════════════════════════════════════════════════════
   Responsividade
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    font-size: 15px;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-base);
    align-items: flex-start;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .hero::before {
    width: 100%;
    opacity: 0.3;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: var(--space-xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
}

/* ═══════════════════════════════════════════════════════════════
   Animações
   ═══════════════════════════════════════════════════════════════ */

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════
   Print Styles
   ═══════════════════════════════════════════════════════════════ */

@media print {
  .header,
  .nav-toggle,
  .form-section,
  .footer {
    display: none;
  }
  
  body {
    background: white;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
}
