/* ════════════════════════════════════════════════════════════════
   AJR CONTABILIDADE - DESIGN SYSTEM
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta de cores exclusiva */
  --primary-dark: #1a4d6d;      /* Azul profundo - confiança */
  --primary-main: #2d7a9f;       /* Azul estratégico - estabilidade */
  --primary-light: #4a9ec4;      /* Azul claro - clareza */
  --accent-orange: #e8833a;      /* Laranja inteligente - ação */
  --accent-warm: #f4a261;        /* Laranja suave - acessibilidade */
  
  --neutral-900: #1a1f2e;        /* Texto principal */
  --neutral-700: #3d4556;        /* Texto secundário */
  --neutral-500: #5a7a8f;        /* Texto suave */
  --neutral-300: #b8c5d0;        /* Bordas */
  --neutral-100: #e8f1f5;        /* Background suave */
  --neutral-50: #f8f9fb;         /* Background claro */
  
  --success: #2a9d5f;
  --warning: #e8833a;
  --danger: #d84a4a;
  
  /* Tipografia */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 77, 109, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 77, 109, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 77, 109, 0.16);
}

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-system);
  line-height: 1.7;
  color: var(--neutral-900);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  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.75rem);
  letter-spacing: -0.01em;
}

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

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

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

.text-large {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--neutral-700);
}

.text-small {
  font-size: 0.875rem;
  color: var(--neutral-500);
}

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

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

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section-lg {
  padding: calc(var(--space-xl) * 1.5) 0;
}

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

.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

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

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

.nav-link {
  font-weight: 500;
  color: var(--neutral-700);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
}

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

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

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* ════════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════════ */

.hero {
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  position: relative;
  overflow: hidden;
}

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

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

.hero h1 {
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.hero .text-large {
  max-width: 650px;
  margin-bottom: var(--space-lg);
}

.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-orange);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════════════════════════════
   CARDS E COMPONENTES
   ════════════════════════════════════════════════════════════════ */

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--neutral-300);
}

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

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

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

.card p {
  margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════════════
   GRID LAYOUTS
   ════════════════════════════════════════════════════════════════ */

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

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

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

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

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

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

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

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--neutral-300);
}

th {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

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

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

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

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

.checklist li {
  padding: var(--space-sm);
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: var(--space-sm);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.process-list {
  counter-reset: process-counter;
  list-style: none;
  padding: 0;
}

.process-list li {
  counter-increment: process-counter;
  padding: var(--space-md);
  padding-left: 4rem;
  position: relative;
  margin-bottom: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.process-list li::before {
  content: counter(process-counter);
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.125rem;
}

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

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

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

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

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

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

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

.btn-accent:hover {
  background: var(--accent-warm);
}

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

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

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--neutral-900);
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem var(--space-sm);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-family: var(--font-system);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

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

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

.form-error {
  color: var(--danger);
  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-textarea,
.form-group.error .form-select {
  border-color: var(--danger);
}

.form-success {
  padding: var(--space-md);
  background: rgba(42, 157, 95, 0.1);
  border: 2px solid var(--success);
  border-radius: var(--radius-md);
  color: var(--success);
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-success.active {
  display: block;
}

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

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

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

.faq-question:hover {
  color: var(--primary-main);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--accent-orange);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

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

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

/* ════════════════════════════════════════════════════════════════
   ALERT BOXES
   ════════════════════════════════════════════════════════════════ */

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

.alert-info {
  background: rgba(45, 122, 159, 0.1);
  border-color: var(--primary-main);
  color: var(--primary-dark);
}

.alert-warning {
  background: rgba(232, 131, 58, 0.1);
  border-color: var(--accent-orange);
  color: #8a4a1a;
}

.alert-success {
  background: rgba(42, 157, 95, 0.1);
  border-color: var(--success);
  color: #1a5d38;
}

/* ════════════════════════════════════════════════════════════════
   BACKGROUNDS
   ════════════════════════════════════════════════════════════════ */

.bg-white {
  background: white;
}

.bg-light {
  background: var(--neutral-50);
}

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

.bg-gradient {
  background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--primary-dark);
  color: white;
  padding: var(--space-xl) 0 var(--space-md);
}

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

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

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

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

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

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

.footer-bottom p {
  margin-bottom: var(--space-xs);
  font-size: 0.8rem;
}

/* ════════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════════ */

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

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

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

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

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

.hidden {
  display: none;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --space-xl: 2.5rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    gap: var(--space-md);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero::before {
    width: 100%;
    opacity: 0.3;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .table-container {
    font-size: 0.875rem;
  }
  
  th, td {
    padding: var(--space-xs) var(--space-sm);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .btn {
    width: 100%;
  }
  
  .card {
    padding: var(--space-md);
  }
}
