/* ═══════════════════════════════════════════════════════════
   ABOVE INTELIGÊNCIA CONTÁBIL - STYLESHEET PRINCIPAL
   ═══════════════════════════════════════════════════════════ */

/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de cores exclusiva */
  --azul-profundo: #1a4d7a;
  --azul-corporativo: #2d6fa3;
  --azul-medio: #3d8fc7;
  --azul-claro: #4da6e0;
  --azul-suave: #e8f2f9;
  
  --laranja-destaque: #e67e22;
  --laranja-hover: #d35400;
  
  --cinza-escuro: #2c3e50;
  --cinza-texto: #5a6c7d;
  --cinza-claro: #95a5a6;
  --cinza-fundo: #ecf0f1;
  
  --branco: #ffffff;
  --preto: #1a1a1a;
  
  /* Sombras */
  --sombra-leve: 0 2px 8px rgba(26, 77, 122, 0.08);
  --sombra-media: 0 4px 16px rgba(26, 77, 122, 0.12);
  --sombra-forte: 0 8px 32px rgba(26, 77, 122, 0.16);
  
  /* Transições */
  --transicao: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.7;
  color: var(--cinza-texto);
  background-color: var(--branco);
  overflow-x: hidden;
}

/* TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
  color: var(--azul-profundo);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

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: 1rem;
  color: var(--cinza-texto);
}

a {
  color: var(--azul-corporativo);
  text-decoration: none;
  transition: var(--transicao);
}

a:hover {
  color: var(--azul-profundo);
}

/* HEADER E NAVEGAÇÃO */
.header {
  background-color: var(--branco);
  box-shadow: var(--sombra-leve);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--azul-suave);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--cinza-escuro);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--azul-profundo);
  margin: 5px 0;
  transition: var(--transicao);
  border-radius: 2px;
}

/* SEÇÕES */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background-color: var(--azul-suave);
  background-image: url('../assets/pattern.svg');
  background-size: 400px 400px;
  background-position: center;
}

.section-dark {
  background: linear-gradient(135deg, var(--azul-profundo) 0%, var(--azul-corporativo) 100%);
  color: var(--branco);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--branco);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.9);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--laranja-destaque);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--cinza-texto);
  font-weight: 400;
  margin-top: 1.5rem;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, rgba(26, 77, 122, 0.95) 0%, rgba(45, 111, 163, 0.95) 100%), 
              url('../assets/hero.svg') center/cover;
  color: var(--branco);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--branco);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-lead {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
}

.hero-highlight {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: var(--laranja-destaque);
  border-radius: 4px;
  font-weight: 600;
}

/* BOTÕES */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: var(--transicao);
  text-align: center;
}

.btn-primary {
  background-color: var(--laranja-destaque);
  color: var(--branco);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
  background-color: var(--laranja-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 126, 34, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--branco);
  color: var(--azul-profundo);
}

/* CARDS E BLOCOS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: var(--branco);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--sombra-media);
  transition: var(--transicao);
  border-top: 4px solid var(--azul-corporativo);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--azul-corporativo), var(--azul-medio));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--branco);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--azul-profundo);
}

.card-text {
  color: var(--cinza-texto);
  line-height: 1.7;
}

/* LISTAS ESTILIZADAS */
.checklist {
  list-style: none;
  margin: 2rem 0;
}

.checklist li {
  padding: 1rem 0;
  padding-left: 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(149, 165, 166, 0.2);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 24px;
  height: 24px;
  background-color: var(--laranja-destaque);
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

/* TABELAS */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: var(--sombra-leve);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--branco);
}

thead {
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-corporativo));
  color: var(--branco);
}

thead th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

tbody tr {
  border-bottom: 1px solid var(--cinza-fundo);
  transition: var(--transicao);
}

tbody tr:hover {
  background-color: var(--azul-suave);
}

tbody td {
  padding: 1.25rem 1.5rem;
  color: var(--cinza-texto);
}

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

/* DESTAQUE EM BLOCOS */
.destaque-box {
  background: linear-gradient(135deg, var(--azul-suave) 0%, rgba(77, 166, 224, 0.1) 100%);
  border-left: 4px solid var(--laranja-destaque);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 6px;
}

.destaque-box h4 {
  color: var(--azul-profundo);
  margin-bottom: 1rem;
}

/* ACCORDION FAQ */
.faq-container {
  max-width: 900px;
  margin: 3rem auto;
}

.faq-item {
  background-color: var(--branco);
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: var(--sombra-leve);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background-color: var(--branco);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul-profundo);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transicao);
}

.faq-question:hover {
  background-color: var(--azul-suave);
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--azul-suave);
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--cinza-texto);
  line-height: 1.8;
}

/* FORMULÁRIO */
.form-container {
  max-width: 700px;
  margin: 3rem auto;
  background-color: var(--branco);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--sombra-media);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--azul-profundo);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--cinza-fundo);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--cinza-escuro);
  transition: var(--transicao);
  background-color: var(--branco);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--azul-corporativo);
  box-shadow: 0 0 0 3px rgba(45, 111, 163, 0.1);
}

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

.form-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  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: #e74c3c;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #28a745;
  display: none;
}

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

/* FOOTER */
.footer {
  background-color: var(--cinza-escuro);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 2rem 2rem 2rem;
}

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

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

.footer-section h4 {
  color: var(--branco);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transicao);
}

.footer-links a:hover {
  color: var(--branco);
  padding-left: 5px;
}

.footer-info {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.5;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-info strong {
  color: rgba(255, 255, 255, 0.9);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--branco);
    box-shadow: var(--sombra-media);
    padding: 1rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-lead {
    font-size: 1.1rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 2rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }
}

/* ANIMAÇÕES */
@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;
}

.text-muted {
  color: var(--cinza-claro);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

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