/* ════════════════════════════════════════════════════════════════════
   ACR ASSESSORIA CONTÁBIL RURAL - DESIGN SYSTEM
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta de cores exclusiva - Verde Institucional */
  --primary-dark: #1a4d2e;
  --primary: #2d6a4f;
  --primary-light: #52b788;
  --accent: #7cb342;
  --accent-light: #aed581;
  
  /* Neutros sofisticados */
  --neutral-50: #f8faf9;
  --neutral-100: #f1f8f4;
  --neutral-200: #e8f5e9;
  --neutral-300: #c8e6c9;
  --neutral-700: #3e4a42;
  --neutral-800: #2a3229;
  --neutral-900: #1a1f1d;
  
  /* Feedback */
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  
  /* Tipografia */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Sombras sofisticadas */
  --shadow-sm: 0 1px 3px rgba(26, 77, 46, 0.06), 0 1px 2px rgba(26, 77, 46, 0.04);
  --shadow-md: 0 4px 6px rgba(26, 77, 46, 0.07), 0 2px 4px rgba(26, 77, 46, 0.05);
  --shadow-lg: 0 10px 15px rgba(26, 77, 46, 0.1), 0 4px 6px rgba(26, 77, 46, 0.05);
  --shadow-xl: 0 20px 25px rgba(26, 77, 46, 0.15), 0 10px 10px rgba(26, 77, 46, 0.08);
  
  /* Transições */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

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

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

body {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.7;
  color: var(--neutral-800);
  background-color: var(--neutral-50);
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

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: 70ch;
}

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

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(248, 250, 249, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-200);
  z-index: 1000;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(248, 250, 249, 0.98);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

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

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

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--neutral-800);
  position: relative;
  padding: var(--space-xs) 0;
  letter-spacing: 0.01em;
}

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

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

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

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

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

/* ════════════════════════════════════════════════════════════════════
   SEÇÕES E CONTAINERS
   ════════════════════════════════════════════════════════════════════ */

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

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

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: 1.125rem;
  color: var(--neutral-700);
  line-height: 1.8;
}

/* ════════════════════════════════════════════════════════════════════
   HERO SECTION (ABERTURA CONCEITUAL)
   ════════════════════════════════════════════════════════════════════ */

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url('../assets/hero.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--primary-dark);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--neutral-700);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

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

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--neutral-200);
}

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

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

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.375rem;
}

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

/* Grid de cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* ════════════════════════════════════════════════════════════════════
   TABELAS COMPARATIVAS E EDUCATIVAS
   ════════════════════════════════════════════════════════════════════ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}

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

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

.comparison-table tbody tr:hover {
  background: var(--neutral-100);
}

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

.table-check {
  color: var(--success);
  font-weight: 700;
  font-size: 1.25rem;
}

.table-times {
  color: var(--error);
  font-weight: 700;
  font-size: 1.25rem;
}

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

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

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  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-base);
  font-family: var(--font-system);
}

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

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

.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);
  color: var(--neutral-700);
  line-height: 1.8;
}

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

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

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

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-system);
  transition: all var(--transition-base);
  background: var(--neutral-50);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

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

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

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .form-select {
  border-color: var(--error);
}

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.form-success {
  background: linear-gradient(135deg, var(--success) 0%, #66bb6a 100%);
  color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
  animation: slideInUp var(--transition-base);
}

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

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

/* ════════════════════════════════════════════════════════════════════
   BACKGROUNDS ESPECIAIS
   ════════════════════════════════════════════════════════════════════ */

.bg-pattern {
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/pattern.svg');
  opacity: 0.5;
  z-index: -1;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 50%, var(--neutral-200) 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}

.bg-gradient-dark h2,
.bg-gradient-dark h3,
.bg-gradient-dark h4 {
  color: white;
}

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

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

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

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

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

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

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

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  line-height: 1.6;
}

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

/* ════════════════════════════════════════════════════════════════════
   BADGES E CREDENCIAIS
   ════════════════════════════════════════════════════════════════════ */

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}

.credential-badge {
  background: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border: 2px solid var(--neutral-200);
  transition: all var(--transition-base);
}

.credential-badge:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.credential-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.credential-text {
  text-align: left;
}

.credential-label {
  font-size: 0.75rem;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credential-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ════════════════════════════════════════════════════════════════════
   LISTAS ESTILIZADAS
   ════════════════════════════════════════════════════════════════════ */

.styled-list {
  list-style: none;
  margin: var(--space-lg) 0;
}

.styled-list li {
  padding-left: 2rem;
  margin-bottom: var(--space-md);
  position: relative;
  line-height: 1.7;
}

.styled-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

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

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }
  
  .header-container {
    padding: var(--space-md);
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    margin-top: 80px;
    min-height: 70vh;
  }
  
  .hero::before {
    width: 100%;
    opacity: 0.3;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .comparison-table {
    font-size: 0.85rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-sm) var(--space-md);
  }
}

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

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

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

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

.highlight {
  background: linear-gradient(180deg, transparent 60%, var(--accent-light) 60%);
  padding: 0 0.25rem;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  margin: var(--space-lg) auto;
  border-radius: 2px;
}

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
