/* ════════════════════════════════════════════════════════════════
   FORNECER ASSESSORIA E CONSULTORIA - ESTILO EDITORIAL REFINADO
   Conceito: Elegância técnica, autoridade silenciosa, precisão
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta Sofisticada */
  --primary-deep: #1e3a5f;        /* Azul-acinzentado profundo */
  --primary-medium: #2c5282;       /* Azul intermediário */
  --accent-emerald: #2d5a4a;       /* Verde-esmeralda escuro */
  --accent-sage: #4a7c59;          /* Verde-sálvia */
  
  /* Neutros Refinados */
  --neutral-50: #f8f9fa;
  --neutral-100: #e9ecef;
  --neutral-200: #dee2e6;
  --neutral-300: #ced4da;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-900: #212529;
  
  /* Tipografia */
  --font-display: 'Palatino', 'Palatino Linotype', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Espaçamento */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Breakpoints */
  --mobile: 768px;
}

/* ════════════════════════════════════════════════════════════════
   RESET E 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(--neutral-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-deep);
  margin-bottom: var(--spacing-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: 1.25rem;
}

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

.lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--neutral-700);
  font-weight: 300;
}

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

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

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

.site-header.scrolled {
  background: rgba(248, 249, 250, 0.98);
  box-shadow: 0 2px 20px rgba(30, 58, 95, 0.08);
}

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

.logo-link {
  display: block;
  text-decoration: none;
}

.logo {
  height: 45px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--neutral-700);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-emerald);
  transition: width 0.3s ease;
}

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

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

/* Menu Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary-deep);
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

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

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

.section {
  padding: var(--spacing-xl) 0;
}

.section-alt {
  background: white;
}

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

/* ════════════════════════════════════════════════════════════════
   HERO - ABERTURA CONCEITUAL
   ════════════════════════════════════════════════════════════════ */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url('../assets/hero.svg');
  background-size: cover;
  background-position: center;
  margin-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(248, 249, 250, 0.95) 0%, 
    rgba(233, 236, 239, 0.9) 100%);
}

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

.hero-eyebrow {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--accent-emerald);
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .lead-text {
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-300);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2.5rem;
  font-family: var(--font-display);
  color: var(--accent-emerald);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.card {
  background: white;
  border: 1px solid var(--neutral-200);
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-emerald);
  transition: height 0.4s ease;
}

.card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.12);
}

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

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

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

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

/* ════════════════════════════════════════════════════════════════
   GRID LAYOUTS
   ════════════════════════════════════════════════════════════════ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--neutral-200);
}

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

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

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

td {
  padding: 1rem;
  border-bottom: 1px solid var(--neutral-200);
}

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

/* ════════════════════════════════════════════════════════════════
   LISTAS CUSTOMIZADAS
   ════════════════════════════════════════════════════════════════ */

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

.custom-list li {
  padding-left: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.custom-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: bold;
}

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

.faq-item {
  background: white;
  border: 1px solid var(--neutral-200);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--neutral-50);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-emerald);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
  color: var(--neutral-700);
  line-height: 1.7;
}

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

.contact-form {
  background: white;
  padding: 3rem;
  border: 1px solid var(--neutral-200);
  max-width: 700px;
  margin: 0 auto;
}

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

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--neutral-300);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--neutral-50);
}

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

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

.form-error {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  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: #d32f2f;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-deep), var(--accent-emerald));
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.25);
}

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

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1.5rem;
  border-left: 4px solid #2e7d32;
  margin-top: 1.5rem;
  display: none;
}

.form-success.show {
  display: block;
  animation: slideInDown 0.5s ease;
}

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

.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem 0;
  margin-top: var(--spacing-xl);
}

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

.footer-section h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.5;
  line-height: 1.6;
}

.footer-legal {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  line-height: 1.4;
}

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

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

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

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

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

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

@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }
  
  .header-container {
    padding: 1rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .main-nav.active {
    max-height: 400px;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }
  
  .main-nav li {
    border-bottom: 1px solid var(--neutral-100);
  }
  
  .main-nav a {
    display: block;
    padding: 1rem;
  }
  
  .hero {
    min-height: 70vh;
    margin-top: 70px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-asymmetric {
    grid-template-columns: 1fr;
  }
  
  .container,
  .container-narrow {
    padding: 0 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}