/* ════════════════════════════════════════════════════════════════
   AMS ASSESSORIA CONTÁBIL - SISTEMA DE DESIGN
   Minimalismo Editorial Sofisticado com Arquitetura Financeira
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta de Cores Principal */
  --primary-dark: #1A4D5C;      /* Azul-petróleo profundo */
  --primary-medium: #2A6B7C;    /* Azul-petróleo médio */
  --accent-coral: #E07856;      /* Coral suave */
  --accent-coral-light: #F39977;
  
  /* Tons Neutros Arquitetônicos */
  --gray-900: #1A1F2E;
  --gray-800: #2D3748;
  --gray-700: #4A5568;
  --gray-600: #5A7580;
  --gray-500: #718096;
  --gray-400: #A0AEC0;
  --gray-300: #CBD5E0;
  --gray-200: #E2E8F0;
  --gray-100: #F7FAFC;
  --white: #FFFFFF;
  
  /* Backgrounds com Profundidade */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFB;
  --bg-tertiary: #F0F4F7;
  --bg-dark: #1A4D5C;
  --bg-pattern: url('../images/pattern.svg');
  
  /* Sistema de Tipografia */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Escalas Tipográficas */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  --text-7xl: 4.5rem;    /* 72px */
  
  /* Espaçamentos Harmônicos */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Sombras e Elevação */
  --shadow-sm: 0 1px 2px 0 rgba(26, 77, 92, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(26, 77, 92, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(26, 77, 92, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(26, 77, 92, 0.2);
  
  /* Transições Suaves */
  --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);
  
  /* Bordas e Raios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Layout Containers */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

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

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--accent-coral);
  color: var(--white);
}

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

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

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
  font-family: var(--font-body);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-family: var(--font-body);
  font-weight: 600;
}

h6 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

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

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

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

em {
  font-style: italic;
  color: var(--gray-700);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 77, 92, 0.1);
  transition: all var(--transition-base);
}

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

.header-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-dark);
}

.site-logo img {
  height: 45px;
  width: auto;
}

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

.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-dark);
  border-bottom-color: var(--accent-coral);
}

/* Menu Mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

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

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

.main-content {
  margin-top: 73px; /* Altura do header */
}

.section {
  padding: var(--space-20) var(--space-6);
  position: relative;
  overflow: hidden;
}

.section-container {
  max-width: var(--container-lg);
  margin: 0 auto;
}

.section-wide {
  max-width: var(--container-xl);
  margin: 0 auto;
}

/* Variações de Background */
.section-light {
  background: var(--bg-primary);
}

.section-gray {
  background: var(--bg-secondary);
}

.section-pattern {
  background: var(--bg-tertiary);
  background-image: var(--bg-pattern);
  background-size: 400px 400px;
  background-position: center;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

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

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

/* ════════════════════════════════════════════════════════════════
   COMPONENTES - NÚMEROS GRANDES (HERO NUMBERS)
   ════════════════════════════════════════════════════════════════ */

.hero-number {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 700;
  color: var(--primary-dark);
  opacity: 0.08;
  position: absolute;
  z-index: 1;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   COMPONENTES - CARDS
   ════════════════════════════════════════════════════════════════ */

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

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

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

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card-description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   COMPONENTES - TABELAS EXPLICATIVAS
   ════════════════════════════════════════════════════════════════ */

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

.content-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.content-table thead {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  color: var(--white);
}

.content-table th {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
}

.content-table tbody tr:hover {
  background: var(--bg-secondary);
}

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

/* ════════════════════════════════════════════════════════════════
   COMPONENTES - LISTAS ESTILIZADAS
   ════════════════════════════════════════════════════════════════ */

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

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

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 2px;
  background: var(--accent-coral);
}

/* ════════════════════════════════════════════════════════════════
   COMPONENTES - FAQ ACORDEÃO
   ════════════════════════════════════════════════════════════════ */

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

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

.faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-base);
}

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

.faq-icon {
  font-size: var(--text-2xl);
  color: var(--accent-coral);
  transition: transform var(--transition-base);
}

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

.faq-answer-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--gray-700);
  line-height: 1.7;
}

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

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

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--gray-800);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--gray-800);
  transition: all var(--transition-base);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(26, 77, 92, 0.1);
}

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

.form-button {
  width: 100%;
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

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

.form-message {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  text-align: center;
}

.form-message.success {
  background: rgba(72, 187, 120, 0.1);
  color: #2F855A;
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.form-message.error {
  background: rgba(245, 101, 101, 0.1);
  color: #C53030;
  border: 1px solid rgba(245, 101, 101, 0.3);
}

/* ════════════════════════════════════════════════════════════════
   COMPONENTES - BOTÕES
   ════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  color: var(--white);
}

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

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

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

/* ════════════════════════════════════════════════════════════════
   COMPONENTES - BADGES E TAGS
   ════════════════════════════════════════════════════════════════ */

.badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  background: var(--accent-coral);
  color: var(--white);
}

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

.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-content {
  max-width: var(--container-xl);
  margin: 0 auto;
}

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

.footer-section h4 {
  color: var(--white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-3);
}

.footer-section a {
  color: var(--gray-400);
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  opacity: 0.6;
  line-height: 1.8;
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

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

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

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --section-padding: var(--space-12);
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  
  .main-nav.active ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav.active a {
    display: block;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
  }
  
  .section {
    padding: var(--space-12) var(--space-4);
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  .contact-form-wrapper {
    padding: var(--space-6);
  }
}
