/**
 * H Dias Extintores & LA Projetos - Styles
 * MVP Website - Tema escuro profissional
 */

/* ===============================================
   VARIÁVEIS CSS - DESIGN SYSTEM
   =============================================== */
:root {
  /* Nova paleta - tema escuro premium */
  --bg-base: #121212;
  --surface: #1E1E1E;
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --cta-primary: #D4AF37; /* Dourado clássico */
  --cta-whatsapp: #00C37A;
  --danger: #FF5555;
  --border: #2C2C2C;
  --overlay: rgba(18, 18, 18, 0.65);

  /* Tipografia */
  --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Espaçamentos simplificados */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;

  /* Bordas */
  --radius: 6px;
  --border-radius: 6px;
  --border-radius-lg: 10px;

  /* Transição padrão */
  --transition: .2s ease;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4);
  
  /* Layout */
  --header-height: 80px;
  
  /* Mapa - Variáveis específicas */
  --map-accent: #D4AF37; /* Cor da borda/marker - alinhada com cta-primary */
  --map-accent-opaque: rgba(212, 175, 55, 0.15); /* Preenchimento semi-transparente */
  --map-mask: rgba(18, 18, 18, 0.28); /* Escurecimento externo (efeito spotlight) */
  --map-height: 500px;
  --map-height-mobile: 350px;
}

/* ===============================================
   RESET E BASE
   =============================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===============================================
   TIPOGRAFIA
   =============================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--spacing-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 var(--spacing-md);
  color: var(--text-secondary);
}

a {
  color: var(--cta-primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

/* ===============================================
   LAYOUT E GRID
   =============================================== */
.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(3, 1fr);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* ===============================================
   BOTÕES
   =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta-primary);
  color: #121212;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.btn-whatsapp:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: 1.1rem;
}

/* ===============================================
   CARDS
   =============================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal);
  width: 100%;
  max-width: none;
}

.card:hover {
  transform: translateY(-4px);
}

.card-header {
  margin-bottom: var(--spacing-lg);
}

.card-title {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.card-description {
  color: var(--text-secondary);
}

/* ===============================================
   HEADER
   =============================================== */
.site-header {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: var(--spacing-md); /* Margem superior para compensar top-bar removido */
}

.top-bar {
  background: transparent;
  padding: 8px 0;
  font-size: 0.75rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.top-bar a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.top-bar a:hover {
  color: var(--cta-primary);
}

.nav-main {
  padding: var(--spacing-md) 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: var(--spacing-xl);
}

/* Navegação Esquerda e Direita */
.nav-left,
.nav-right {
  display: flex;
  gap: var(--spacing-md);
  flex: 0 0 auto;
  min-width: 320px;
  justify-content: center;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-left a,
.nav-right a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  min-width: 90px;
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius);
  display: block;
  transition: all var(--transition);
}

.nav-left a:hover,
.nav-right a:hover {
  color: var(--cta-primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Logo Central */
.logo {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.logo a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.logo-image {
  height: 45px;
  width: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-text .highlight {
  color: var(--cta-primary);
}

.logo:hover {
  opacity: 0.9;
  transition: opacity var(--transition);
}

/* Mobile Menu */
.hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius);
  transition: all var(--transition);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--cta-primary);
  color: var(--cta-primary);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height, 80px);
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

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

.mobile-menu-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.mobile-menu-content a {
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--spacing-md) var(--spacing-sm);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.mobile-menu-content a:hover {
  color: var(--cta-primary);
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius);
}

/* ===============================================
   SEÇÕES PRINCIPAIS
   =============================================== */
.section {
  padding: var(--spacing-3xl) 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: .5rem;
  text-align: center;
  color: var(--text-primary);
}

.section-subtitle {
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
  text-align: center;
}

.timeline {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.timeline-item {

  padding: var(--spacing-md);
  border-radius: var(--radius);
  flex: 1;
  min-width: 220px;

}

.timeline-badge {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cta-primary);
}

.timeline-content {
  font-size: .9rem;
  color: var(--text-primary);
}

.feature-list,
.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--text-primary);
  line-height: 1.6;
}

.feature-list li::before {
  content: "✅";
  margin-right: 8px;
}

.service-list li {
  margin-bottom: 6px;
}

/* ===============================================
   MODAL ESTIMATIVA
   =============================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.modal-overlay.show {
  opacity: 1;
}

.modal-container {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 600px;
  width: 90%;
  max-height: 98vh;
  height: 98vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.show .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--spacing-md) var(--spacing-lg);
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-footer {
  display: flex !important;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  gap: var(--spacing-md);
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
}

.modal-footer button {
  visibility: visible !important;
  opacity: 1 !important;
}

.modal-footer #btnProximo {
  display: inline-flex !important;
}

.modal-footer #btnVoltar {
  /* Display será controlado pelo JavaScript baseado no step atual */
  visibility: visible !important;
  opacity: 1 !important;
}

/* Progress Bar */
.form-progress {
  margin-bottom: var(--spacing-xl);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all var(--transition);
}

.step.active,
.step.completed {
  background: var(--cta-primary);
  color: var(--bg-base);
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--cta-primary);
  transition: width 0.3s ease;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.form-step h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.3rem;
}

.step-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* Form Groups */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-stack);
  transition: border-bottom-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--cta-primary);
}

/* Select customizado */
.form-group select {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
  background: var(--bg-base);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-stack);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  background-size: 16px;
}

.form-group select:hover {
  border-color: var(--cta-primary);
  background-color: rgba(212, 175, 55, 0.05);
}

.form-group select:focus {
  outline: none;
  border-color: var(--cta-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  background-color: rgba(212, 175, 55, 0.02);
}

/* Optgroups estilizados */
.form-group select optgroup {
  font-weight: 600;
  color: var(--cta-primary);
  font-style: normal;
  background: var(--bg-muted);
}

.form-group select option {
  padding: var(--spacing-sm);
  background: var(--bg-base);
  color: var(--text-primary);
  font-weight: 400;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

/* Toggle Groups */
.toggle-group {
  display: flex;
  gap: var(--spacing-md);
}

.toggle-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: var(--spacing-md);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  flex: 1;
  justify-content: center;
}

.toggle-option:hover {
  border-color: var(--cta-primary);
}

.toggle-option input[type="radio"] {
  display: none;
}

.toggle-option input[type="radio"]:checked + span {
  color: var(--cta-primary);
  font-weight: 600;
}

.toggle-option input[type="radio"]:checked {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--cta-primary);
}

/* Radio Groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: var(--spacing-md);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.radio-option:hover {
  border-color: var(--cta-primary);
}

.radio-option input[type="radio"] {
  width: auto;
  margin-right: var(--spacing-sm);
  accent-color: var(--cta-primary);
}

.radiomark {
  margin-left: var(--spacing-sm);
}

/* Checkbox Groups */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.checkbox-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: var(--spacing-md);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.checkbox-option:hover {
  border-color: var(--cta-primary);
}

.checkbox-option input[type="checkbox"] {
  width: auto;
  margin-right: var(--spacing-sm);
  accent-color: var(--cta-primary);
}

.checkmark {
  margin-left: var(--spacing-sm);
}

/* Error Messages */
.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: var(--spacing-sm);
  display: none;
  animation: fadeInError 0.3s ease-in-out;
}

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

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

/* Resultado */
.resultado-step {
  text-align: center;
}

.resultado-resumo {
  background: var(--bg-base);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border);
}

.resultado-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border);
}

.resultado-item:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cta-primary);
}

.disclaimer {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--cta-primary);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.resultado-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

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

/* Novos estilos para o modal atualizado */
.info-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: var(--spacing-md);
}

.risco-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 var(--spacing-sm);
  border-radius: var(--radius);
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  box-sizing: border-box;
}

.risco-baixo {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid #4CAF50;
  box-sizing: border-box;
}

.risco-medio {
  background: rgba(255, 193, 7, 0.2);
  color: #FFC107;
  border: 1px solid #FFC107;
  box-sizing: border-box;
}

.risco-alto {
  background: rgba(244, 67, 54, 0.2);
  color: #F44336;
  border: 1px solid #F44336;
  box-sizing: border-box;
}

.precos-info {
  margin: var(--spacing-sm) 0;
  font-size: 0.9rem;
}

.observacao-info {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--cta-primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 0.9rem;
}

.documento-display {
  margin-top: var(--spacing-sm);
}

.documento-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 var(--spacing-sm);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9em;
  line-height: 1;
  box-sizing: border-box;
}

.documento-clcb {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border: 1px solid #4CAF50;
  box-sizing: border-box;
}

.documento-avcb {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
  border: 1px solid #2196F3;
  box-sizing: border-box;
}

.documento-display small {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
}

.checkbox-option:hover {
  border-color: var(--cta-primary);
  background: rgba(212, 175, 55, 0.05);
}

.checkbox-option input[type="checkbox"]:checked + .checkmark + .sistema-nome {
  color: var(--cta-primary);
  font-weight: 600;
}

.sistema-nome {
  flex: 1;
  margin-left: var(--spacing-sm);
}

.sistema-valor {
  font-weight: 600;
  color: var(--cta-primary);
}

.modo-expresso {
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--cta-primary);
  margin-top: var(--spacing-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.modo-expresso-texto {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modo-expresso-texto strong {
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.modo-expresso-texto small {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

.alert {
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid #FFC107;
  color: #F57C00;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid #4CAF50;
  color: #2E7D32;
}

.alert-error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid #F44336;
  color: #C62828;
}

/* Resultado */
.resultado-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.resultado-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border);
}

.resultado-item.destaque {
  background: rgba(212, 175, 55, 0.1);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  margin: var(--spacing-sm) 0;
  border: 1px solid var(--cta-primary);
}

.resultado-item.subtotal {
  border-top: 2px solid var(--border);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
}

.resultado-item.expresso {
  background: rgba(255, 193, 7, 0.1);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  margin: var(--spacing-sm) 0;
}

.resultado-item.total {
  background: var(--cta-primary);
  color: var(--bg-base);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-md);
  border: none;
  font-size: 1.1rem;
}

.resultado-item-small {
  display: flex;
  justify-content: space-between;
  padding: 4px var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sistemas-grupo {
  margin: var(--spacing-md) 0;
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius);
}

.resultado-item-header {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--spacing-sm);
}

.resultado-observacao {
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid var(--cta-primary);
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--spacing-md);
  }
  
  .toggle-group,
  .resultado-actions {
    flex-direction: column;
  }
  
  .progress-steps .step {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .checkbox-option {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .resultado-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

/* ===============================================
   HERO SECTION
   ===============================================
   Nota: A seção Hero principal está definida em assets/css/components.css
   As versões responsivas (mobile) estão definidas abaixo nas media queries
   =============================================== */

/* Estrutura dos sistemas adicionais - Checkboxes */
.sistemas-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sistema-checkbox {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-base);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sistema-checkbox:hover {
  border-color: var(--cta-primary);
  background: rgba(212, 175, 55, 0.05);
}

.sistema-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.sistema-checkbox .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  margin-right: var(--spacing-md);
  position: relative;
  background: var(--bg-base);
  transition: all 0.3s ease;
}

.sistema-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--cta-primary);
  border-color: var(--cta-primary);
}

.sistema-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sistema-nome {
  font-weight: 500;
  color: var(--text);
  font-size: 1em;
  transition: color 0.3s ease;
}

.sistema-checkbox:hover .sistema-nome {
  color: var(--cta-primary);
}

.sistema-checkbox input[type="checkbox"]:checked + .checkmark + .sistema-nome {
  color: var(--cta-primary);
  font-weight: 600;
}

/* Estado desabilitado para toggle-group */
.toggle-group.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.toggle-group.disabled input[type="radio"] {
  cursor: not-allowed;
}

.toggle-group.disabled label {
  color: var(--text-muted) !important;
  cursor: not-allowed;
}

.explanation-text {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
}

/* Avatar para testemunhos */
.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #c7971a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Resultado simplificado */
.resultado-valor {
  background: linear-gradient(135deg, #1a5f7a, #57a0d3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  margin: var(--spacing-md) 0;
  color: white;
  box-shadow: 0 8px 32px rgba(26, 95, 122, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.valor-final {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

.valor-final .label {
  font-size: 1.3em;
  font-weight: 600;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.valor-final .preco {
  font-size: 3em;
  font-weight: 800;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #ffffff, #f0f8ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.valor-observacao {
  margin-top: var(--spacing-md);
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-sm);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.sistemas-selecionados {
  background: var(--bg-base);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  margin: var(--spacing-md) 0;
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.sistemas-selecionados ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sistemas-selecionados li {
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-muted);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 500;
}

/* Resultado - Informações principais */
.resultado-info {
  background: var(--bg-base);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.resultado-info h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.4em;
  text-align: center;
  border-bottom: 2px solid var(--primary);
  padding-bottom: var(--spacing-sm);
}

.resultado-info p {
  font-size: 1.1em;
  margin: var(--spacing-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm);
  background: var(--bg-muted);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.resultado-info strong {
  color: var(--primary);
  font-weight: 600;
}

.modo-expresso-info {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 2px solid #f39c12;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  text-align: center;
  color: #8a6d3b;
  font-weight: 600;
}

.modo-expresso-info:before {
  content: "⚡";
  font-size: 1.2em;
  margin-right: var(--spacing-xs);
}

/* Container para risco e documento lado a lado */
.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
}

.documento-info {
  display: inline-flex;
  align-items: center;
}

/* ===============================================
   CONTADORES
   =============================================== */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-3xl) 0;
}

.counter-item {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
}

.counter {
  display: block;
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--cta-primary);
  margin-bottom: var(--spacing-sm);
}

.counter-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

/* ===============================================
   TESTIMONIALS
   ===============================================
   Nota: Os estilos de testimonials estão definidos em assets/css/components.css
   =============================================== */

/* ===============================================
   FORMULÁRIO
   =============================================== */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-bottom-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: var(--cta-primary);
}

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

/* ===============================================
   FOOTER
   =============================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

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

.footer-section h3 {
  color: var(--cta-primary);
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom .copyright {
  text-align: center;
  margin: 0 auto;
}

.footer-bottom .copyright p {
  margin: var(--spacing-xs) 0;
  line-height: 1.5;
}

/* ===============================================
   RESPONSIVIDADE
   =============================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    flex-direction: column;
    align-items: center;
  }
  
  .timeline-item {
    min-width: 100%;
    max-width: none;
  }
}

/* Desabilitação para motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .slide-left, .slide-right, .scale-in, .fade-up, 
  .rotate-in, .bounce-in, .blur-in, .section-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  .floating-bg {
    animation: none !important;
  }
  
  .typing-effect {
    animation: none !important;
    border-right: none !important;
  }
  
  .scroll-progress {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Header Mobile */
  .nav-left,
  .nav-right {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .logo {
    flex: 0 0 auto;
  }
  
  .logo-image {
    height: 35px;
  }
  
  .nav-layout {
    justify-content: center;
    gap: var(--spacing-md);
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .nav-layout {
    justify-content: space-between;
  }
  
  /* Hero Mobile */
  .hero {
    min-height: 90vh;
    padding: var(--spacing-md) 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-inner {
    grid-template-columns: 3fr 1fr;
    padding-top: 80px;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    gap: var(--spacing-md);
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: var(--spacing-lg);
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-sm);
  }
  
  .trust-bar {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
    text-align: center;
  }
  
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
  }
  
  /* Centralizar botões em geral no mobile */
  .section .btn,
  .card .btn,
  .timeline-item .btn {
    margin: 0 auto;
    display: block;
    text-align: center;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Melhor espaçamento do texto hero no mobile */
  .hero-text {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .counters {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  /* Floating elements menor em mobile */
  .floating-bg.circle {
    width: 60px;
    height: 60px;
  }
  
  .floating-bg.square {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero {
    min-height: 85vh;
    padding: var(--spacing-sm) 0;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Esconder floating elements em telas muito pequenas */
  .floating-bg {
    display: none;
  }
  
  /* Scroll progress mais fino em mobile */
  .scroll-progress {
    height: 2px;
  }
  
  .hero-inner {
    padding-top: 60px;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-lg);
    padding: 0;
  }
  
  .trust-bar {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    padding: 0;
    line-height: 1.3;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .counters {
    grid-template-columns: 1fr;
  }
  
  .counter {
    font-size: 2.5rem;
  }
}

/* ===============================================
   ELEMENTOS VISUAIS
   ===============================================
   Nota: Elementos visuais e animações estão definidos em assets/css/animations.css
   =============================================== */

/* ===============================================
   UTILITÁRIOS
   =============================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===============================================
   ANIMAÇÕES
   ===============================================
   Nota: Todas as animações estão definidas em assets/css/animations.css
   =============================================== */

/* ===============================================
   ESTADOS DE FOCO E ACESSIBILIDADE
   =============================================== */
.btn:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--cta-primary);
  outline-offset: 2px;
}

/* ===============================================
   SEÇÃO SPLIT - NOSSA HISTÓRIA E EXPERTISE
   =============================================== */

/* Container principal */
.history-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

/* Cada metade */
.half {
  position: relative;
  flex: 1 1 50%;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition);
  background-attachment: fixed;
}

/* Overlay escuro para contraste */
.half .overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.65);
  z-index: 1;
  transition: background var(--transition);
}

/* Container do logo */
.half .logo-wrapper {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Dica de hover sutil */
.hover-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Logo das empresas */
.company-logo {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Informações ocultas por padrão */
.half .info {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  text-align: center;
}

/* Título da empresa */
.company-title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  margin: 0;
  color: var(--cta-primary);
}

/* Subtítulo */
.company-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Lista de serviços */
.company-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  text-align: left;
}

.company-bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.company-bullets li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cta-primary);
  font-size: 1rem;
  font-weight: bold;
}

/* Estados de hover e focus */
.half:hover .info,
.half:focus-within .info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.half:hover .logo-wrapper,
.half:focus-within .logo-wrapper {
  transform: scale(0.9);
  opacity: 0.3;
}

.half:hover .hover-hint,
.half:focus-within .hover-hint {
  opacity: 0;
}

.half:hover .overlay,
.half:focus-within .overlay {
  background: rgba(18, 18, 18, 0.85);
}

/* Backgrounds específicos */
.half-left {
  background-image: url('../images/hero-h-dias-bg.jpg');
}

.half-right {
  background-image: url('../images/hero-la-projetos-bg.jpg');
}

/* Acessibilidade - outline para foco */
.half:focus {
  outline: 2px solid var(--cta-primary);
  outline-offset: -2px;
}

/* Touch devices - classe para ativação manual */
@media (hover: none) {
  .hover-hint {
    font-size: 0.8rem;
  }
  
  .half.touch-active .info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .half.touch-active .logo-wrapper {
    transform: scale(0.9);
    opacity: 0.3;
  }
  
  .half.touch-active .hover-hint {
    opacity: 0;
  }
  
  .half.touch-active .overlay {
    background: rgba(18, 18, 18, 0.85);
  }
}

/* Responsividade */
@media (max-width: 900px) {
  .history-expertise {
    flex-direction: column;
  }
  
  .half {
    flex: 1 1 100%;
    min-height: 400px;
    background-attachment: scroll; /* Melhor performance em mobile */
    padding: 0;
  }
  
  .company-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .half {
    min-height: 350px;
    padding: 0;
  }
  
  .company-logo {
    max-width: 140px;
  }
  
  .company-title {
    font-size: 1.3rem;
  }
  
  .company-bullets li {
    font-size: 0.9rem;
  }
  
  .half .info {
    padding: var(--spacing-sm);
  }
}

/* Seção sem padding para split colado, mas com espaço para header */
.section.no-padding {
  padding: var(--spacing-3xl) 0 0;
  margin: 0;
}

/* ===============================================
   SEÇÃO CONTADORES MELHORADA
   =============================================== */

.section-counters {
  background: #0E0E0E;
  padding: 60px 0;
  color: var(--text-primary);

  border-bottom: 1px solid var(--border);
}

.counters-header {
  text-align: center;
  position: relative;
  margin-bottom: 32px;
}

.counters-header h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.counters-header .subtitle {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.badge-trust {
  position: absolute;
  top: -10px;
  right: 0;
  background: rgba(40, 40, 40, 0.9);
  border: 1px solid var(--cta-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  display: inline-block;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.counters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
  align-items: flex-end;
}

.counter-card {
  background: rgba(30, 30, 30, 0.95);
  padding: 1.5rem 1.25rem;
  border-radius: 10px;
  flex: 1 1 180px;
  position: relative;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 160px;
  max-width: 220px;
}

.counter-card.highlight {
  flex: 1.5 1 280px;
  border: 2px solid var(--cta-primary);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
  max-width: 300px;
}

.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(212, 175, 55, 0.15);
}

.counter-number {
  font-size: 2.25rem;
  margin: 8px 0;
  color: var(--cta-primary);
  font-weight: var(--font-weight-bold);
}



.counter-label {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.counter-card .icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: var(--cta-primary);
  display: block;
}

.counters-footnote {
  margin-top: 18px;
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

/* Responsividade para contadores */
@media (max-width: 1200px) {
  .counters {
    gap: 12px;
  }
  
  .counter-card {
    min-width: 140px;
    max-width: 200px;
  }
  
  .counter-card.highlight {
    max-width: 260px;
  }
}

@media (max-width: 900px) {
  .section-counters {
    padding: 40px 0;
  }
  
  .counters-header h2 {
    font-size: 2rem;
  }
  
  .badge-trust {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 16px;
    display: inline-block;
  }
  
  .counters {
    gap: 12px;
    align-items: stretch;
  }
  
  .counter-card {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    max-width: none;
  }
  
  .counter-card.highlight {
    flex: 1 1 100%;
    margin: 0 0 12px 0;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .counter-card {
    flex: 1 1 100%;
    margin-bottom: 8px;
    max-width: none;
  }
  
  .counter-card.highlight {
    flex: 1 1 100%;
    margin: 0 0 12px 0;
    max-width: none;
  }
  
  .counters {
    gap: 12px;
  }
  
  .counter-number {
    font-size: 2rem;
  }
}

/* ===============================================
   TIMELINE DE SERVIÇOS
   =============================================== */

.services-timeline {
  background: var(--bg-base);
  padding: var(--spacing-3xl) 0;
  color: var(--text-primary);
}

.services-header {
  text-align: center;
  position: relative;
  margin-bottom: var(--spacing-2xl);
}

.services-header h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.services-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

.services-timeline .badge-trust {
  display: inline-block;
  background: rgba(40, 40, 40, 0.9);
  border: 1px solid var(--cta-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--cta-primary);
  font-weight: var(--font-weight-medium);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.vertical-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(212, 175, 55, 0.4);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.timeline-item.left {
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
}

.timeline-item.right {
  justify-content: flex-start;
  padding-left: calc(50% + 30px);
}

.timeline-card {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.timeline-card.highlight {
  background: linear-gradient(    135deg, #FFAA33 0%, #D38C14 100%);
  border: none;
  box-shadow: 0 30px 70px rgba(212, 175, 55, 0.25);
}

.timeline-card.highlight .card-content {
  position: relative;
  z-index: 2;
}

.timeline-card.highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.15);
  border-radius: 12px;
  z-index: 1;
}

.timeline-card.highlight:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 35px 80px rgba(212, 175, 55, 0.35);
}

.timeline-card.highlight .card-sub {
  color: rgba(255, 255, 255, 0.85);
}

.timeline-card.highlight ul li {
  color: var(--text-primary);
}



.card-content h3 {
  margin: 0 0 var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.card-sub {
  margin: 0 0 var(--spacing-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md);
}

.timeline-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.timeline-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cta-primary);
  font-size: 1rem;
  font-weight: bold;
}

.card-actions {
  margin-top: var(--spacing-md);
}

.timeline-card .btn.btn-outline.small {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.timeline-card .btn.btn-outline.small:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.timeline-card.highlight .btn.btn-outline.small {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.timeline-card.highlight .btn.btn-outline.small:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--cta-primary);
  border: 2px solid var(--bg-base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.timeline-dot span {
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--bg-base);
}

.timeline-cta {
  text-align: center;
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border);
}

/* Responsividade */
@media (max-width: 900px) {
  .services-timeline {
    padding: var(--spacing-2xl) 0;
  }
  
  .services-header h2 {
    font-size: 2rem;
  }
  
  .timeline-wrapper {
    padding-left: 40px;
  }
  
  .vertical-line {
    left: 20px;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-card {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .services-header {
    margin-bottom: var(--spacing-2xl);
  }
  
  .timeline-wrapper {
    padding-left: 20px;
  }
  
  .vertical-line {
    left: 10px;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    padding-left: 40px;
  }
  
  .timeline-dot {
    left: 10px;
    width: 24px;
    height: 24px;
  }
  
  .timeline-dot span {
    font-size: 0.65rem;
  }
  
  .timeline-card {
    padding: 20px;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
  }
}

/* ===============================================
   LOGOS DOS ÓRGÃOS REGULADORES
   ===============================================
   Nota: Os estilos dos logos dos órgãos estão definidos em assets/css/components.css
   =============================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===============================================
   ANIMAÇÕES DE SCROLL
   ===============================================
   Nota: Estas animações foram mantidas aqui pois são específicas do layout
   As animações gerais estão em assets/css/animations.css
   =============================================== */

/* Elementos antes de animar */
.service-card,
.counter-card,
.testimonial-card,
.feature-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

/* Elementos animados */
.service-card.animate-in,
.counter-card.animate-in,
.testimonial-card.animate-in,
.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animação escalonada para cards */
.counter-card:nth-child(1).animate-in { transition-delay: 0.1s; }
.counter-card:nth-child(2).animate-in { transition-delay: 0.2s; }
.counter-card:nth-child(3).animate-in { transition-delay: 0.3s; }
.counter-card:nth-child(4).animate-in { transition-delay: 0.4s; }
.counter-card:nth-child(5).animate-in { transition-delay: 0.5s; }

.service-card:nth-child(1).animate-in { transition-delay: 0.1s; }
.service-card:nth-child(2).animate-in { transition-delay: 0.2s; }
.service-card:nth-child(3).animate-in { transition-delay: 0.3s; }

/* Animação de bounce para contadores */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Aplicar bounce aos contadores quando animados */
.counter-card.animate-in {
  animation: bounceIn 0.6s ease both;
}

/* ===============================================
   SEÇÃO MAPA - LOCALIZAÇÃO
   =============================================== */

.map-section {
  padding: var(--spacing-3xl) 0;
  background: var(--bg-base);
  position: relative;
}

.map-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  align-items: stretch;
}

.map-canvas {
  height: var(--map-height);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--surface);
}

/* Estados do mapa */
.map-loading,
.map-error {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-secondary);
  z-index: 10;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--map-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--spacing-md);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.map-info {
  padding-left: var(--spacing-md);
  height: var(--map-height);
  display: flex;
  flex-direction: column;
}

.map-info .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: var(--spacing-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.map-info h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-semibold);
}

.map-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* Estilos específicos do Leaflet customizados */
.leaflet-container {
  background: var(--surface) !important;
  font-family: var(--font-stack) !important;
}

.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-popup-content {
  margin: var(--spacing-md) !important;
  font-family: var(--font-stack) !important;
  color: var(--text-primary) !important;
}

.leaflet-popup-content h3 {
  color: var(--map-accent) !important;
  margin: 0 0 var(--spacing-sm) 0 !important;
  font-weight: var(--font-weight-semibold) !important;
}

.leaflet-popup-content p {
  color: var(--text-secondary) !important;
  margin: var(--spacing-xs) 0 !important;
  font-size: 0.9rem !important;
}

.leaflet-popup-tip {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-control-zoom a {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--map-accent) !important;
  color: var(--bg-base) !important;
}

.leaflet-control-attribution {
  background: rgba(30, 30, 30, 0.8) !important;
  color: var(--text-secondary) !important;
  font-size: 0.75rem !important;
}

.leaflet-control-attribution a {
  color: var(--map-accent) !important;
}

/* Customização dos polígonos do mapa - Remove bordas internas */
.leaflet-interactive {
  stroke: none !important;
}

/* Contorno externo do estado usando filter drop-shadow */
.leaflet-overlay-pane svg {
  filter: drop-shadow(0 0 0 2px var(--map-accent));
}

/* Responsivo */
@media (max-width: 768px) {
  .map-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .map-canvas {
    height: var(--map-height-mobile);
    order: 2;
  }
  
  .map-info {
    padding-left: 0;
    order: 1;
    height: auto;
    min-height: fit-content;
  }
  
  .map-info .card {
    position: static;
  }
}

@media (max-width: 480px) {
  .map-section {
    padding: var(--spacing-2xl) 0;
  }
  
  .map-canvas {
    height: 300px;
    border-radius: var(--border-radius);
  }
  
  .map-info .card {
    padding: var(--spacing-lg);
    height: auto;
    justify-content: flex-start;
  }
  
  /* Ajustar popup em mobile */
  .leaflet-popup-content-wrapper {
    max-width: 280px !important;
  }
  
  .leaflet-popup-content {
    margin: var(--spacing-sm) !important;
  }
}
