/* ═══════════════════════════════════════════════════════════════
   ABILITY GESTÃO CONTÁBIL - CSS PRINCIPAL
   Paleta: Azuis profissionais com toques de confiança
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta de cores exclusiva */
  --primary-dark: #1a5f7a;      /* Azul profundo - confiança */
  --primary: #2d8a9e;           /* Azul médio - profissionalismo */
  --primary-light: #57a6bb;     /* Azul claro - acessibilidade */
  --accent: #159895;            /* Verde-azulado - crescimento */
  --neutral-100: #f8fcfd;       /* Quase branco */
  --neutral-200: #e8f4f8;       /* Azul muito claro */
  --neutral-300: #d1e7ed;       /* Azul claro neutro */
  --neutral-700: #2c3e50;       /* Texto escuro */
  --neutral-800: #1a252f;       /* Texto muito escuro */
  
  /* Tipografia */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(26, 95, 122, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 95, 122, 0.12);
  --shadow-lg: 0 8px 24px rgba(26, 95, 122, 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: #ffffff;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--neutral-800);
  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-md);
  max-width: 75ch;
}

strong {
  font-weight: 600;
  color: var(--primary-dark);
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-300);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--neutral-700);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: var(--primary);
  background-color: var(--neutral-200);
}

.nav a.cta {
  background-color: var(--primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
}

.nav a.cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Menu mobile */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

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

.section-dark {
  background-color: var(--neutral-800);
  color: var(--neutral-200);
}

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

.section-light {
  background-color: var(--neutral-100);
}

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

/* ═══════════════════════════════════════════════════════════════
   HERO CONCEITUAL
   ═══════════════════════════════════════════════════════════════ */

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

.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: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  background-color: var(--primary-light);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  margin-bottom: var(--space-md);
}

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

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--neutral-700);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   GRID SYSTEMS
   ═══════════════════════════════════════════════════════════════ */

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

.grid-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

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

.card {
  background: white;
  border-radius: 12px;
  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(-3px);
}

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

.card h3 {
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: 0.95rem;
  color: var(--neutral-700);
}

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

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

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

thead {
  background-color: 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-300);
}

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

/* ═══════════════════════════════════════════════════════════════
   LISTAS E CHECKMARKS
   ═══════════════════════════════════════════════════════════════ */

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

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

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

/* ═══════════════════════════════════════════════════════════════
   FAQ INTERATIVO
   ═══════════════════════════════════════════════════════════════ */

.faq {
  margin: var(--space-xl) 0;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: var(--space-md);
  overflow: hidden;
  border: 1px solid var(--neutral-300);
  transition: all 0.3s ease;
}

.faq-question {
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-dark);
  user-select: none;
}

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

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

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

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

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

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

/* ═══════════════════════════════════════════════════════════════
   FORMULÁRIO DE CONTATO
   ═══════════════════════════════════════════════════════════════ */

.contact-form {
  background: white;
  padding: var(--space-xl);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-300);
}

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

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

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

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 138, 158, 0.1);
}

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

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-block {
  width: 100%;
}

.form-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: var(--space-md);
  border-radius: 8px;
  margin-top: var(--space-md);
  display: none;
}

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

/* ═══════════════════════════════════════════════════════════════
   HIGHLIGHT BOXES
   ═══════════════════════════════════════════════════════════════ */

.highlight-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: var(--space-xl);
  border-radius: 12px;
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.highlight-box h3 {
  color: white;
}

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

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════
   CREDIBILIDADE E SELO
   ═══════════════════════════════════════════════════════════════ */

.credibility-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  border: 2px solid var(--primary);
  font-weight: 600;
  color: var(--primary-dark);
}

.badge-icon {
  font-size: 1.5rem;
}

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

.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding: var(--space-xl) 0 var(--space-md);
}

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

.footer p,
.footer a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--neutral-300);
}

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

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

.footer-bottom p {
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}

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

@media (max-width: 968px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .grid-sidebar {
    grid-template-columns: 1fr;
  }
  
  .hero::before {
    width: 100%;
    opacity: 0.3;
  }
}

@media (max-width: 640px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }
  
  section {
    padding: var(--space-xl) 0;
  }
  
  .header-container {
    padding: var(--space-sm);
  }
  
  .hero {
    min-height: 70vh;
  }
}

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

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

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

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

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

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

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

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

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