/* ═══════════════════════════════════════════════════════════════
   AMR ASSESSORIA CONTÁBIL - DESIGN SYSTEM
   Paleta: Azul Profissional + Verde Estratégico + Cinzas Neutros
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Cores Principais */
  --primary-dark: #1a5f7a;      /* Azul confiança */
  --primary-main: #2a7a94;      /* Azul médio */
  --primary-light: #4a9fb8;     /* Azul claro */
  
  --accent-dark: #268578;       /* Verde estratégia escuro */
  --accent-main: #2a9d8f;       /* Verde estratégia */
  --accent-light: #52b9ab;      /* Verde claro */
  
  /* Neutros */
  --gray-900: #1f2937;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #57646f;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-dark: #1f2937;
  
  /* Tipografia */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Containers */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Bordas */
  --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 {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-system);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-main);
}

/* ═══════════════════════════════════════════════════════════════
   TIPOGRAFIA
   ═══════════════════════════════════════════════════════════════ */

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

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

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

.text-large {
  font-size: 1.25rem;
  line-height: 1.7;
}

.text-small {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-dark); }
.text-accent { color: var(--accent-main); }
.text-muted { color: var(--gray-600); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */

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

.container-lg {
  max-width: var(--container-lg);
}

.container-md {
  max-width: var(--container-md);
}

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

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

.section-bg-gray {
  background-color: var(--bg-secondary);
}

.section-bg-dark {
  background-color: var(--bg-dark);
  color: var(--gray-100);
}

.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: var(--gray-50);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER E NAVEGAÇÃO
   ═══════════════════════════════════════════════════════════════ */

.header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--container-xl);
  margin: 0 auto;
}

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

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

.nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--gray-700);
  transition: color 0.3s ease;
  position: relative;
}

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

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

.nav-link: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-color: var(--gray-700);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO E SEÇÕES PRINCIPAIS
   ═══════════════════════════════════════════════════════════════ */

.hero {
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.05) 0%, rgba(42, 157, 143, 0.08) 100%);
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.375rem;
  color: var(--gray-600);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS E BLOCOS DE CONTEÚDO
   ═══════════════════════════════════════════════════════════════ */

.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));
}

.card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gray-200);
}

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

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

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.card-text {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   BLOCOS INFORMATIVOS
   ═══════════════════════════════════════════════════════════════ */

.info-block {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent-main);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

.info-block-warning {
  border-left-color: #f59e0b;
  background-color: #fffbeb;
}

.info-block-success {
  border-left-color: var(--accent-main);
  background-color: #f0fdfa;
}

.info-block-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--gray-900);
}

/* ═══════════════════════════════════════════════════════════════
   LISTAS E TABELAS
   ═══════════════════════════════════════════════════════════════ */

.list-checked {
  list-style: none;
  padding-left: 0;
}

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

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

.table-wrapper {
  overflow-x: auto;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-primary);
}

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

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

td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}

tbody tr:hover {
  background-color: var(--bg-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   FORMULÁRIO
   ═══════════════════════════════════════════════════════════════ */

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

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem var(--space-sm);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-system);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

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

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: #dc2626;
}

/* ═══════════════════════════════════════════════════════════════
   BOTÕES
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-system);
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-light) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

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

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-main) 0%, var(--accent-light) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */

.faq-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

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

.faq-question:hover {
  background-color: var(--bg-secondary);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-dark);
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-md);
}

.faq-answer.active {
  max-height: 500px;
  padding: var(--space-md);
}

.faq-answer p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   RODAPÉ
   ═══════════════════════════════════════════════════════════════ */

.footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-xl) 0 var(--space-md) 0;
}

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

.footer-section h4 {
  color: var(--gray-100);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.footer-section p,
.footer-section a {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--accent-main);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--gray-700);
  margin: var(--space-lg) 0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  opacity: 0.7;
  line-height: 1.5;
}

.footer-bottom p {
  margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITÁRIOS
   ═══════════════════════════════════════════════════════════════ */

.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); }

.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); }

.hidden { display: none; }

.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  border-left: 4px solid;
}

.alert-success {
  background-color: #f0fdf4;
  border-left-color: #22c55e;
  color: #166534;
}

.alert-error {
  background-color: #fef2f2;
  border-left-color: #dc2626;
  color: #991b1b;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVIDADE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  html { font-size: 15px; }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    gap: var(--space-sm);
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero-content {
    padding: var(--space-2xl) 0;
  }
  
  .btn {
    width: 100%;
  }
}
