/* ═══════════════════════════════════════════════════════════════
   AION CONTABILIDADE - Stylesheet Principal
   Conceito: Organização, Clareza, Confiança e Sofisticação
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta de Cores Exclusiva - Verde Profissional com Tons Terra */
  --primary-dark: #1a4d2e;
  --primary-medium: #2d6a4f;
  --primary-light: #40916c;
  --accent-green: #52b788;
  --accent-mint: #74c69d;
  --neutral-cream: #f1faee;
  --neutral-ice: #a8dadc;
  --neutral-slate: #457b9d;
  --text-dark: #1b263b;
  --text-medium: #415a77;
  --text-light: #778da9;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  
  /* Tipografia Refinada - System Stack */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Espaçamento Harmonioso */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Transições Suaves */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
  
  /* Sombras Profundas */
  --shadow-sm: 0 2px 8px rgba(26, 77, 46, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 77, 46, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 77, 46, 0.16);
}

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

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  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(--text-medium);
}

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

a {
  color: var(--primary-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-green);
}

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

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

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

.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-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo {
  height: 50px;
  width: auto;
  transition: transform var(--transition-medium);
}

.logo:hover {
  transform: scale(1.05);
}

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

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-xs) 0;
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

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

.container {
  max-width: 1400px;
  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;
  position: relative;
}

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

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

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/hero.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero-label {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-medium);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeIn 0.8s ease 0.3s forwards;
}

.hero h1 {
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

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

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  text-align: center;
  letter-spacing: 0.03em;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

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

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

.section-header p {
  font-size: 1.125rem;
  color: var(--text-medium);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */

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

.card {
  background: white;
  padding: var(--space-md);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  border: 1px solid rgba(26, 77, 46, 0.1);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-green), var(--primary-medium));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.75rem;
}

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

.card p {
  color: var(--text-medium);
  line-height: 1.7;
}

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

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

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

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

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td {
  padding: 1rem;
  border-bottom: 1px solid rgba(26, 77, 46, 0.1);
}

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

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

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

.faq-container {
  max-width: 900px;
  margin: var(--space-lg) auto 0;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(26, 77, 46, 0.1);
}

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

.faq-question:hover {
  color: var(--accent-green);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.faq-answer-content {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-medium);
  line-height: 1.8;
}

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

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

.form-container {
  max-width: 700px;
  margin: var(--space-lg) auto 0;
  background: white;
  padding: var(--space-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

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

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

input,
textarea,
select {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid rgba(26, 77, 46, 0.2);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: white;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.1);
}

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

.form-message {
  padding: var(--space-sm);
  border-radius: 4px;
  margin-bottom: var(--space-md);
  display: none;
}

.form-message.success {
  background: rgba(82, 183, 136, 0.1);
  color: var(--primary-dark);
  border: 1px solid var(--accent-green);
}

.form-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #c92a2a;
  border: 1px solid #dc3545;
}

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

footer {
  background: var(--primary-dark);
  color: white;
  padding: var(--space-lg) 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-section h4 {
  color: white;
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

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

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

.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-legal {
  margin-top: var(--space-sm);
}

.footer-legal a {
  margin: 0 var(--space-xs);
  font-size: 0.8rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

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

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

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

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

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

.highlight {
  background: linear-gradient(120deg, rgba(82, 183, 136, 0.3) 0%, rgba(82, 183, 136, 0.3) 100%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 85%;
  padding: 0 0.25rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  margin: var(--space-lg) 0;
}

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

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    padding: var(--space-sm);
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    transition: left var(--transition-medium);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  nav li {
    border-bottom: 1px solid rgba(26, 77, 46, 0.1);
  }
  
  nav a {
    display: block;
    padding: var(--space-sm) 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .hero {
    min-height: 70vh;
    padding: var(--space-lg) 0;
  }
  
  section {
    padding: var(--space-lg) 0;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: var(--space-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
