/* ═══════════════════════════════════════════════════════════════
   ACM ASSESSORIA CONTÁBIL - DESIGN SYSTEM
   Paleta: Azuis profissionais + tons de confiança
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta Principal */
  --primary-dark: #1e4d7b;
  --primary: #2c6ba0;
  --primary-light: #3a7bc8;
  --accent: #4a8fd8;
  
  /* Neutros */
  --neutral-50: #f8fafb;
  --neutral-100: #f1f4f7;
  --neutral-200: #e4e9ee;
  --neutral-300: #d1dae3;
  --neutral-400: #a3b5c7;
  --neutral-500: #7a8fa5;
  --neutral-600: #5a7a95;
  --neutral-700: #3d5a75;
  --neutral-800: #2a3f56;
  --neutral-900: #1a2733;
  
  /* Semântica */
  --success: #2d7a5f;
  --warning: #c97a2f;
  --error: #b83e3e;
  --info: var(--primary);
  
  /* Tipografia */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  
  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(30, 77, 123, 0.06);
  --shadow-md: 0 4px 8px rgba(30, 77, 123, 0.08), 0 2px 4px rgba(30, 77, 123, 0.04);
  --shadow-lg: 0 12px 24px rgba(30, 77, 123, 0.12), 0 4px 8px rgba(30, 77, 123, 0.06);
  --shadow-xl: 0 24px 48px rgba(30, 77, 123, 0.16), 0 8px 16px rgba(30, 77, 123, 0.08);
  
  /* Transições */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET E BASE
   ═══════════════════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-50);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

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

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  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;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-700);
}

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

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

em {
  font-style: italic;
  color: var(--primary-dark);
}

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

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

section:nth-child(even) {
  background-color: white;
}

/* ═══════════════════════════════════════════════════════════════
   NAVEGAÇÃO
   ═══════════════════════════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

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

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  gap: var(--space-lg);
}

.logo-container {
  flex-shrink: 0;
}

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

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--neutral-700);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--neutral-100);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-sm);
  right: var(--space-sm);
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ═══════════════════════════════════════════════════════════════
   HERO / ABERTURA
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  opacity: 0.6;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(44, 107, 160, 0.08);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.hero h1 {
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--neutral-700);
  margin-bottom: var(--space-xl);
}

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

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

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

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

.card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 0;
}

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

.info-block {
  background: white;
  border-left: 4px solid var(--primary);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.info-block h4 {
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.info-block.warning {
  border-left-color: var(--warning);
  background: rgba(201, 122, 47, 0.03);
}

.info-block.success {
  border-left-color: var(--success);
  background: rgba(45, 122, 95, 0.03);
}

/* ═══════════════════════════════════════════════════════════════
   TABELAS
   ═══════════════════════════════════════════════════════════════ */

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

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

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

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

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

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

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

/* ═══════════════════════════════════════════════════════════════
   LISTAS
   ═══════════════════════════════════════════════════════════════ */

.styled-list {
  list-style: none;
  margin: var(--space-lg) 0;
}

.styled-list li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.styled-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

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

.faq-container {
  max-width: 900px;
  margin: var(--space-xl) auto;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-900);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: var(--neutral-50);
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition-base);
}

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

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

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

.faq-answer-content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--neutral-700);
  line-height: 1.7;
}

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

.form-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: var(--space-xl) auto;
}

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

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

input, textarea, select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--neutral-50);
}

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

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

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

input.error, textarea.error, select.error {
  border-color: var(--error);
}

input.error + .form-error,
textarea.error + .form-error,
select.error + .form-error {
  display: block;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   SEÇÃO COM BACKGROUND
   ═══════════════════════════════════════════════════════════════ */

.section-bg {
  position: relative;
  background: var(--neutral-900);
  color: white;
}

.section-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/pattern.svg');
  opacity: 0.03;
  pointer-events: none;
}

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

.section-bg p {
  color: var(--neutral-300);
}

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

.footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.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;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.footer a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
  display: block;
  margin-bottom: var(--space-xs);
}

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

.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding-top: var(--space-lg);
  font-size: 0.8125rem;
  opacity: 0.5;
  line-height: 1.4;
}

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

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

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

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

.mt-0 { margin-top: 0; }
.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-0 { margin-bottom: 0; }
.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); }

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

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-link {
    padding: var(--space-md);
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }
  
  .hero-background {
    width: 100%;
    height: 40%;
    bottom: 0;
    top: auto;
    opacity: 0.3;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: var(--space-lg);
  }
  
  section {
    padding: var(--space-2xl) 0;
  }
}

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