/* ══════════════════════════════════════════════════════════════
   A&F CONSULTORIA EMPRESARIAL - SISTEMA DE DESIGN
   ══════════════════════════════════════════════════════════════ */

/* RESET E FUNDAMENTOS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* PALETA DE CORES EXCLUSIVA */
  --primary-dark: #1e3a5f;
  --primary-medium: #2d5986;
  --primary-light: #4a7ba7;
  
  --accent-blue: #4a9eff;
  --accent-light: #6bb8ff;
  --accent-subtle: #e8f4ff;
  
  --neutral-900: #1a1a2e;
  --neutral-700: #3d4451;
  --neutral-500: #6b7280;
  --neutral-300: #9ca3af;
  --neutral-100: #f3f4f6;
  --neutral-50: #fafbfc;
  
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  
  /* TIPOGRAFIA */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', '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 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.12);
  --shadow-lg: 0 10px 30px rgba(30, 58, 95, 0.15);
  
  /* BORDAS */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

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

/* TIPOGRAFIA HIERÁRQUICA */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--neutral-700);
  max-width: 70ch;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-medium);
}

/* NAVEGAÇÃO FIXA */
.navbar {
  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(30, 58, 95, 0.08);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  height: 45px;
  width: auto;
}

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

.nav-menu a {
  color: var(--neutral-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color 0.3s ease;
}

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

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

.nav-menu 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: 3px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* LAYOUT PRINCIPAL */
main {
  margin-top: 70px;
}

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

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

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

/* HERO ABERTURA CONCEITUAL */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.hero-content .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
  margin-bottom: var(--space-lg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  max-width: 800px;
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

/* SEÇÕES ALTERNADAS */
.section-light {
  background: white;
}

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

.section-accent {
  background: var(--accent-subtle);
}

/* CABEÇALHOS DE SEÇÃO */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: var(--space-sm);
}

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

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

/* GRID RESPONSIVO */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

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

/* CARDS */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(30, 58, 95, 0.05);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--accent-blue);
  font-size: 1.5rem;
  font-weight: 700;
}

.card h3 {
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  font-size: 1.35rem;
}

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

/* TABELAS INFORMATIVAS */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--space-lg) 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table thead {
  background: var(--primary-dark);
  color: white;
}

.info-table th {
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.info-table tbody tr:hover {
  background: var(--accent-subtle);
}

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

/* LISTAS ESTILIZADAS */
.styled-list {
  list-style: none;
  margin: var(--space-md) 0;
}

.styled-list li {
  padding: var(--space-sm) 0 var(--space-sm) var(--space-lg);
  position: relative;
  color: var(--neutral-700);
}

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

/* ALERTAS E DESTAQUES */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin: var(--space-md) 0;
}

.alert-info {
  background: #eff6ff;
  border-color: var(--accent-blue);
  color: var(--primary-dark);
}

.alert-warning {
  background: #fef3c7;
  border-color: var(--warning);
  color: #92400e;
}

.alert-success {
  background: #d1fae5;
  border-color: var(--success);
  color: #065f46;
}

/* 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);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

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

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

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

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-lg) var(--space-md);
}

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

/* FORMULÁRIO DE CONTATO */
.contact-form {
  max-width: 700px;
  margin: var(--space-xl) auto;
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-family: var(--font-system);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

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

.form-error {
  color: var(--danger);
  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 {
  border-color: var(--danger);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-system);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
}

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

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
}

.success-message {
  display: none;
  padding: var(--space-md);
  background: var(--success);
  color: white;
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  text-align: center;
}

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

/* CREDENCIAIS E INSTITUCIONAL */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.credential-badge {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--neutral-100);
}

.credential-icon {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: var(--space-sm);
}

.credential-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.credential-detail {
  font-size: 0.9rem;
  color: var(--neutral-500);
}

/* RODAPÉ */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

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

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

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  opacity: 0.5;
  line-height: 1.3;
}

.footer-company-info {
  margin-bottom: var(--space-sm);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .contact-form {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* UTILITÁRIOS */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-dark);
}

.text-accent {
  color: var(--accent-blue);
}

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

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

.hidden {
  display: none;
}
