/* ═══════════════════════════════════════════════════════════════
   M. MACHADO CONTABILIDADE - DESIGN SYSTEM
   Conceito: Estrutura, Clareza e Confiança Profissional
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta Exclusiva - Verde Profissional + Laranja Estratégico */
  --primary-dark: #1a4d2e;
  --primary-main: #2d7a4f;
  --primary-light: #4a9b6f;
  --primary-pale: #d4e7dc;
  
  --accent-warm: #f4a261;
  --accent-deep: #e76f51;
  
  --neutral-900: #212529;
  --neutral-700: #495057;
  --neutral-500: #6c757d;
  --neutral-300: #adb5bd;
  --neutral-100: #e9ecef;
  --neutral-50: #f8f9fa;
  --white: #ffffff;
  
  /* Tipografia Distintiva */
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Courier New", monospace;
  
  /* Espacamentos Ritmados */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  
  /* Sistema de Sombras */
  --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);
  
  /* Transições Sutis */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

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

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

/* ═══════════════════════════════════════════════════════════════
   TIPOGRAFIA HIERÁRQUICA
   ═══════════════════════════════════════════════════════════════ */

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

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);
  max-width: 65ch;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-100);
  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-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

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

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

.nav-link {
  color: var(--neutral-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--primary-main);
  background: var(--primary-pale);
}

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

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

.section-alt {
  background: var(--neutral-50);
}

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

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

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

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

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

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

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-main) 100%);
}

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

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  animation: fadeInUp 1s ease;
}

.hero-title {
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--space-lg);
  opacity: 0.95;
  font-weight: 400;
  max-width: 600px;
}

.hero-accent {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-warm);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENTES DE CONTEÚDO
   ═══════════════════════════════════════════════════════════════ */

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

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

.section-label {
  display: inline-block;
  color: var(--accent-warm);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

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

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

/* ═══════════════════════════════════════════════════════════════
   CARDS & BOXES
   ═══════════════════════════════════════════════════════════════ */

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

.card {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-warm);
  transition: height var(--transition-base);
  border-radius: 8px 0 0 8px;
}

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

.card:hover::before {
  height: 100%;
}

.card-title {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-pale);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-main);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   LISTAS & TABELAS
   ═══════════════════════════════════════════════════════════════ */

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

.list-styled li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-md);
  position: relative;
  border-bottom: 1px solid var(--neutral-100);
}

.list-styled li:last-child {
  border-bottom: none;
}

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

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-lg) 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.comparison-table th {
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

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

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

.comparison-table tr:nth-child(even) td {
  background: var(--neutral-50);
}

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

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

.faq-item {
  background: var(--white);
  border: 1px solid var(--neutral-100);
  border-radius: 8px;
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

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

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-warm);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

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

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

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

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

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

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--neutral-100);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px var(--primary-pale);
}

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

.form-button {
  background: var(--primary-main);
  color: var(--white);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-base);
  width: 100%;
  margin-top: var(--space-sm);
}

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

.form-button:active {
  transform: translateY(0);
}

.form-message {
  padding: var(--space-md);
  border-radius: 6px;
  margin-top: var(--space-md);
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-message.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.form-message.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.form-message.visible {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   BOXES INFORMATIVOS
   ═══════════════════════════════════════════════════════════════ */

.info-box {
  background: linear-gradient(135deg, var(--primary-pale) 0%, rgba(233, 236, 239, 0.5) 100%);
  border-left: 4px solid var(--accent-warm);
  padding: var(--space-md);
  border-radius: 6px;
  margin: var(--space-md) 0;
}

.info-box-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

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

/* ═══════════════════════════════════════════════════════════════
   RODAPÉ
   ═══════════════════════════════════════════════════════════════ */

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

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

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

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

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

.footer-links a {
  color: var(--neutral-300);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-warm);
}

.footer-info {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.7;
}

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

/* ═══════════════════════════════════════════════════════════════
   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 {
  animation: fadeIn 0.6s ease;
}

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

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .section {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: var(--space-md);
  }
  
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-sm);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    padding: var(--space-sm);
  }
  
  .logo {
    height: 40px;
  }
}
