/* ════════════════════════════════════════════════════════════════════
   ABCON CONTABILIDADE - CSS PRINCIPAL
   Paleta: Azuis profissionais + Verde confiança + Neutros elegantes
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* Cores principais */
  --primary-dark: #1e3a5f;
  --primary-medium: #2d5a8c;
  --primary-base: #3d7ac2;
  --primary-light: #4a9eff;
  --primary-ultra-light: #e8f2ff;
  
  /* Acento verde (confiança/crescimento) */
  --accent-green: #00c896;
  --accent-green-light: #e6faf5;
  
  /* Neutros */
  --neutral-50: #f8fafb;
  --neutral-100: #f0f4f8;
  --neutral-200: #e1eaf3;
  --neutral-300: #cbd5e0;
  --neutral-400: #a0aec0;
  --neutral-500: #718096;
  --neutral-600: #4a5568;
  --neutral-700: #2d3748;
  --neutral-800: #1a202c;
  
  /* Tipografia */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
  
  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Bordas */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.12);
  --shadow-lg: 0 8px 24px rgba(30, 58, 95, 0.15);
}

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

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

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

body {
  font-family: var(--font-system);
  line-height: 1.7;
  color: var(--neutral-700);
  background-color: var(--neutral-50);
}

/* ════════════════════════════════════════════════════════════════════
   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: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

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

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

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

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

header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--neutral-200);
}

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

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

.logo-container img {
  height: 50px;
  width: auto;
}

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

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--neutral-600);
  padding: var(--space-xs) 0;
  position: relative;
}

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

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

nav a:hover::after {
  width: 100%;
}

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

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

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

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

.content-wrapper {
  max-width: 800px;
}

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

/* ════════════════════════════════════════════════════════════════════
   SECTIONS ALTERNADAS
   ════════════════════════════════════════════════════════════════════ */

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

section:nth-child(odd) {
  background: var(--neutral-50);
}

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

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: 1.1rem;
  color: var(--neutral-500);
  max-width: 700px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════════════
   CARDS E BOXES
   ════════════════════════════════════════════════════════════════════ */

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

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

.info-box {
  background: var(--primary-ultra-light);
  border-left: 4px solid var(--primary-base);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

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

.success-box {
  background: var(--accent-green-light);
  border-left: 4px solid var(--accent-green);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

/* ════════════════════════════════════════════════════════════════════
   GRIDS
   ════════════════════════════════════════════════════════════════════ */

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

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

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

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

.table-container {
  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-dark);
  color: white;
}

th {
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

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

.custom-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.custom-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.2rem;
}

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

.numbered-list li {
  counter-increment: item;
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  background: var(--primary-base);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  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: var(--primary-base);
  color: white;
}

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

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

.btn-secondary:hover {
  background: #00b386;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-base);
  box-shadow: 0 0 0 3px var(--primary-ultra-light);
}

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

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

.form-success {
  background: var(--accent-green-light);
  border: 2px solid var(--accent-green);
  color: var(--neutral-700);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  display: none;
}

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

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

.accordion-header {
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-dark);
  transition: background 0.2s ease;
}

.accordion-header:hover {
  background: var(--neutral-50);
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--primary-base);
}

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

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--neutral-600);
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

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

footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) var(--space-md) var(--space-md);
}

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

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

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

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

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

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

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: var(--space-md);
    gap: 0;
  }
  
  nav li {
    border-bottom: 1px solid var(--neutral-200);
  }
  
  nav a {
    display: block;
    padding: var(--space-md) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }
}

/* ════════════════════════════════════════════════════════════════════
   UTILIDADES
   ════════════════════════════════════════════════════════════════════ */

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

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

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

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

.py-lg {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-md {
  gap: var(--space-md);
}
