/* ═══════════════════════════════════════════════════════════════
   DR CONSULT EMPRESARIAL A2 - STYLESHEET PRINCIPAL
   Conceito: Precisão Editorial Técnica
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta de cores exclusiva */
  --azul-prussiano: #1a3a52;
  --azul-profundo: #2d5f7f;
  --azul-medio: #3d7aa0;
  --azul-claro: #5ab8d8;
  --verde-contabil: #2d5a45;
  --verde-claro: #4a8b6a;
  --dourado: #c9a961;
  --dourado-claro: #d4b976;
  --cinza-escuro: #2a3744;
  --cinza-medio: #5a6d7f;
  --cinza-claro: #a8b5c2;
  --cinza-fundo: #f8f9fa;
  --branco-puro: #ffffff;
  --preto-suave: #1a1d23;
  
  /* Tipografia */
  --font-serif: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  
  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(26, 58, 82, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 58, 82, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 58, 82, 0.16);
  --shadow-xl: 0 16px 48px rgba(26, 58, 82, 0.2);
}

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

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cinza-escuro);
  background: var(--cinza-fundo);
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--azul-prussiano);
  margin-bottom: 1rem;
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.875rem;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cinza-medio);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  max-width: 70ch;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--cinza-medio);
  font-weight: 400;
}

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 58, 82, 0.1);
  box-shadow: 0 2px 16px rgba(26, 58, 82, 0.04);
  transition: all var(--transition-normal);
}

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

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo-container:hover {
  opacity: 0.85;
}

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

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

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--azul-prussiano);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

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

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--azul-prussiano);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

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

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

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

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

.section-pretitle {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dourado);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--cinza-medio);
  max-width: 700px;
  margin: 0 auto;
}

/* Alternância de backgrounds */
.section-light {
  background: var(--branco-puro);
}

.section-gray {
  background: var(--cinza-fundo);
}

.section-dark {
  background: var(--azul-prussiano);
  color: var(--cinza-claro);
}

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

.section-dark .section-pretitle {
  color: var(--dourado-claro);
}

.section-pattern {
  background-image: url('../assets/pattern.svg');
  background-size: 400px 400px;
  background-repeat: repeat;
}

/* ═══════════════════════════════════════════════════════════════
   GRID EDITORIAL
   ═══════════════════════════════════════════════════════════════ */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin: var(--space-lg) 0;
}

.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }
.col-span-12 { grid-column: span 12; }

/* ═══════════════════════════════════════════════════════════════
   CARTÕES E BLOCOS DE CONTEÚDO
   ═══════════════════════════════════════════════════════════════ */

.content-card {
  background: var(--branco-puro);
  border: 1px solid rgba(26, 58, 82, 0.08);
  border-radius: 4px;
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--dourado), var(--azul-claro));
  transition: height var(--transition-slow);
}

.content-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(26, 58, 82, 0.12);
}

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

.content-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.content-card p {
  color: var(--cinza-medio);
  line-height: 1.7;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--branco-puro);
  font-family: var(--font-sans);
}

thead {
  background: var(--azul-prussiano);
  color: var(--branco-puro);
}

thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--dourado);
}

tbody tr {
  border-bottom: 1px solid rgba(26, 58, 82, 0.06);
  transition: background var(--transition-fast);
}

tbody tr:hover {
  background: rgba(90, 184, 216, 0.04);
}

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

tbody td {
  padding: 1rem 1.5rem;
  color: var(--cinza-escuro);
}

tbody td:first-child {
  font-weight: 500;
  color: var(--azul-profundo);
}

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

.check-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.check-list li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  line-height: 1.6;
  color: var(--cinza-escuro);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--verde-claro);
  color: var(--branco-puro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.numbered-list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: var(--space-md) 0;
}

.numbered-list li {
  counter-increment: item;
  padding: 1rem 0 1rem 3.5rem;
  position: relative;
  line-height: 1.7;
  color: var(--cinza-escuro);
}

.numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.875rem;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-medio));
  color: var(--branco-puro);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.125rem;
  font-family: var(--font-serif);
}

/* ═══════════════════════════════════════════════════════════════
   BOTÕES E CTA
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-medio));
  color: var(--branco-puro);
  box-shadow: 0 4px 12px rgba(45, 95, 127, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(45, 95, 127, 0.35);
  transform: translateY(-2px);
}

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

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

.btn-accent {
  background: linear-gradient(135deg, var(--dourado), var(--dourado-claro));
  color: var(--azul-prussiano);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.25);
}

.btn-accent:hover {
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.35);
  transform: translateY(-2px);
}

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

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

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

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

.form-label .required {
  color: #c44;
  margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--cinza-escuro);
  background: var(--branco-puro);
  border: 2px solid rgba(26, 58, 82, 0.15);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--azul-medio);
  box-shadow: 0 0 0 4px rgba(61, 122, 160, 0.1);
}

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

.form-error {
  color: #c44;
  font-size: 0.875rem;
  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: #c44;
}

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

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

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

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

.faq-item {
  background: var(--branco-puro);
  border: 1px solid rgba(26, 58, 82, 0.08);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--azul-prussiano);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition-fast);
}

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

.faq-icon {
  font-size: 1.5rem;
  color: var(--dourado);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.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 1.5rem 1.5rem;
  color: var(--cinza-medio);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   BADGES E TAGS
   ═══════════════════════════════════════════════════════════════ */

.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  background: var(--azul-claro);
  color: var(--branco-puro);
}

.badge-success {
  background: var(--verde-claro);
}

.badge-warning {
  background: var(--dourado);
  color: var(--azul-prussiano);
}

.badge-neutral {
  background: var(--cinza-claro);
  color: var(--cinza-escuro);
}

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

.footer {
  background: var(--azul-prussiano);
  color: var(--cinza-claro);
  padding: var(--space-xl) var(--space-md) var(--space-md);
  border-top: 3px solid var(--dourado);
}

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

.footer-grid {
  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(--branco-puro);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--cinza-claro);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--dourado-claro);
  text-decoration: underline;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(168, 181, 194, 0.2);
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.5;
  line-height: 1.4;
}

.footer-bottom p {
  margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMAÇÕES E TRANSIÇÕES
   ═══════════════════════════════════════════════════════════════ */

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

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

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

@media (max-width: 1024px) {
  .editorial-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .col-span-3,
  .col-span-4,
  .col-span-5,
  .col-span-7,
  .col-span-8,
  .col-span-9 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-xxl: 4rem;
  }
  
  .header-container {
    padding: 1rem 1.5rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform var(--transition-normal);
    border-bottom: 1px solid rgba(26, 58, 82, 0.1);
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .nav-menu a {
    padding: 1rem 2rem;
    width: 100%;
    border-bottom: 1px solid rgba(26, 58, 82, 0.06);
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .section {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .col-span-3,
  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-9,
  .col-span-12 {
    grid-column: span 1;
  }
  
  .content-card {
    padding: var(--space-md);
  }
  
  .contact-form {
    padding: var(--space-md);
  }
  
  thead th,
  tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .table-wrapper {
    font-size: 0.85rem;
  }
  
  thead th,
  tbody td {
    padding: 0.625rem 0.75rem;
  }
}

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

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ═══════════════════════════════════════════════════════════════
   FIM DO STYLESHEET
   ═══════════════════════════════════════════════════════════════ */
