/* ═══════════════════════════════════════════════════════════════════
   AKANTUS CONTABILIDADE - Sistema de Design Único
   Paleta: Azul Confiança + Dourado Estratégia + Neutros Organizados
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Cores Principais */
  --primary-deep: #1a4d6d;
  --primary-medium: #2d7a9f;
  --primary-light: #4a9bc4;
  --accent-gold: #d4a574;
  --accent-gold-light: #e8c4a0;
  
  /* Neutros */
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6b7280;
  --gray-600: #495057;
  --gray-700: #374151;
  --gray-800: #212529;
  --gray-900: #1f2937;
  
  /* Estados */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Tipografia */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  
  /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ═══════════════════════════════════════════════════════════════════
   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.6;
  color: var(--gray-800);
  background-color: white;
  overflow-x: hidden;
}

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

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

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

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

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

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

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

.logo-container {
  display: flex;
  align-items: center;
}

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

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

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

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

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

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

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

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gray-700);
  transition: all var(--transition-base);
}

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

.section {
  padding: var(--space-2xl) var(--space-md);
  position: relative;
}

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

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

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

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   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: 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);
}

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

.section-title h2 {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.text-emphasis {
  color: var(--primary-deep);
  font-weight: 600;
}

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

/* ═══════════════════════════════════════════════════════════════════
   COMPONENTS - CARDS
   ═══════════════════════════════════════════════════════════════════ */

.card {
  background: white;
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

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

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

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

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

/* ═══════════════════════════════════════════════════════════════════
   COMPONENTS - GRID LAYOUTS
   ═══════════════════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════════════════
   COMPONENTS - BUTTONS E CTA
   ═══════════════════════════════════════════════════════════════════ */

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-medium));
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-800);
  border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--gray-900);
  box-shadow: var(--shadow-md);
}

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

/* ═══════════════════════════════════════════════════════════════════
   COMPONENTS - FORMULÁRIO
   ═══════════════════════════════════════════════════════════════════ */

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

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

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

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

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

.form-error {
  color: var(--error);
  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: var(--error);
}

.form-success-message {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: var(--space-md);
  border-radius: 8px;
  text-align: center;
  display: none;
  animation: slideDown var(--transition-base);
}

.form-success-message.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   COMPONENTS - TABELAS
   ═══════════════════════════════════════════════════════════════════ */

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

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

thead {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-medium));
  color: white;
}

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

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

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

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

/* ═══════════════════════════════════════════════════════════════════
   COMPONENTS - LISTAS E CHECKMARKS
   ═══════════════════════════════════════════════════════════════════ */

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.checklist li:hover {
  background: var(--gray-50);
}

.checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-gold);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   COMPONENTS - FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════ */

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

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

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

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

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

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

.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) var(--space-lg);
  color: var(--gray-600);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════════
   COMPONENTS - DESTAQUE / HIGHLIGHT BOX
   ═══════════════════════════════════════════════════════════════════ */

.highlight-box {
  background: linear-gradient(135deg, var(--gray-50), white);
  border-left: 4px solid var(--accent-gold);
  padding: var(--space-lg);
  border-radius: 8px;
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-sm);
}

.highlight-box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.highlight-box-content {
  color: var(--gray-700);
  line-height: 1.8;
}

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

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

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

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

.footer-section p,
.footer-section li {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-xs);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: var(--space-md);
  text-align: center;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.6;
  opacity: 0.7;
  max-width: 900px;
  margin: 0 auto;
}

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

/* ═══════════════════════════════════════════════════════════════════
   ANIMAÇÕES
   ═══════════════════════════════════════════════════════════════════ */

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-base);
    padding: var(--space-lg);
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

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