/* ==========================================================================
   NORFAC FOMENTO MERCANTIL — IDENTIDADE VISUAL E DESIGN SYSTEM (v1.0.0)
   Paleta Institucional Verde NORFAC + Suporte Completo Light / Dark Mode
   Tipografia: Plus Jakarta Sans (Display/Títulos) & Inter (Corpo/UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Paleta Institucional NORFAC (Obrigatória) */
  --norfac-darkest: #042818;      /* Rodapé / Top Bar */
  --norfac-forest-deep: #063923;  /* Hero / Títulos Principais */
  --norfac-forest: #006B22;       /* Hero Gradiente / Títulos Secundários */
  --norfac-primary: #088A29;      /* Botões, Destaques, Sliders */
  --norfac-vibrant: #0A8F2E;      /* Hover, Badges Ativos, Indicadores */
  --norfac-soft-mint: #DCFCE7;    /* Verde Suave / Badges / Bordas */
  --norfac-soft-bg: #F0FDF4;      /* Fundos Secundários */

  /* Tokens Semânticos — Modo Claro (Padrão) */
  --bg-main: #FFFFFF;
  --bg-secondary: #F0FDF4;
  --bg-accent: #DCFCE7;
  --bg-card: #FFFFFF;
  --bg-input: #F8FAFC;
  --bg-header: rgba(255, 255, 255, 0.96);
  --text-heading: #063923;
  --text-subheading: #006B22;
  --text-body: #1E293B;
  --text-muted: #475569;
  --border-subtle: rgba(8, 138, 41, 0.16);
  --border-strong: rgba(8, 138, 41, 0.32);
  --shadow-sm: 0 2px 8px rgba(4, 40, 24, 0.06);
  --shadow-md: 0 10px 30px -5px rgba(4, 40, 24, 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(4, 40, 24, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  /* Superfícies no Modo Escuro — Verde-floresta profundo (#03180E e #072417) sem preto puro */
  --bg-main: #03180E;
  --bg-secondary: #051F13;
  --bg-accent: rgba(8, 138, 41, 0.22);
  --bg-card: #072417;
  --bg-input: #041C11;
  --bg-header: rgba(4, 40, 24, 0.96);
  --text-heading: #F0FDF4;
  --text-subheading: #4ADE80;
  --text-body: #E2E8F0;
  --text-muted: #94A3B8;
  --border-subtle: rgba(16, 185, 129, 0.2);
  --border-strong: rgba(16, 185, 129, 0.4);
  --shadow-sm: 0 4px 12px rgba(2, 14, 8, 0.35);
  --shadow-md: 0 12px 32px -4px rgba(2, 14, 8, 0.5);
  --shadow-lg: 0 24px 48px -8px rgba(2, 14, 8, 0.65);
}

/* Reset e Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  color: var(--norfac-primary);
  text-decoration: none;
  transition: color var(--transition), all var(--transition);
}

a:hover {
  color: var(--norfac-vibrant);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   TOP BAR & CABEÇALHO ADAPTATIVO
   ========================================================================== */
.top-bar {
  background-color: var(--norfac-darkest);
  color: #DCFCE7;
  font-size: 0.825rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(220, 252, 231, 0.1);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #DCFCE7;
  font-weight: 500;
}

.top-bar-item a {
  color: #DCFCE7;
}

.top-bar-item a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  color: #4ADE80;
  flex-shrink: 0;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-badge {
  background: rgba(8, 138, 41, 0.35);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #F0FDF4;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition), border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1.5rem;
}

/* ==========================================================================
   1. BLOCO ESQUERDA: Logotipo com Contraste Adaptativo
   ========================================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.25rem 0;
  text-decoration: none;
}

.brand-logo img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform var(--transition);
}

.brand-logo:hover img {
  transform: scale(1.02);
}

.logo-light-mode {
  display: block;
}

.logo-dark-mode {
  display: none;
}

[data-theme="dark"] .logo-light-mode {
  display: none;
}

[data-theme="dark"] .logo-dark-mode {
  display: block;
}

/* ==========================================================================
   2. BLOCO CENTRO: Links de Navegação (Linha Única & Simetria Rigorosa)
   ========================================================================== */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px; /* Espaçamento simétrico entre itens */
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-heading);
  border-radius: 8px;
  letter-spacing: 0.02em;
  white-space: nowrap; /* Rigorosamente linha única */
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Padronização de Estados Hover e Active */
.nav-link:hover {
  color: var(--norfac-primary);
  background-color: var(--bg-secondary);
  border-color: rgba(8, 138, 41, 0.16);
}

.nav-link.active {
  color: var(--norfac-primary);
  background-color: var(--bg-secondary);
  border-color: rgba(8, 138, 41, 0.28);
  font-weight: 800;
}

[data-theme="dark"] .nav-link {
  color: var(--text-heading);
}

[data-theme="dark"] .nav-link:hover {
  color: #4ADE80;
  background-color: rgba(8, 138, 41, 0.2);
  border-color: rgba(74, 222, 128, 0.25);
}

[data-theme="dark"] .nav-link.active {
  color: #4ADE80;
  background-color: rgba(8, 138, 41, 0.28);
  border-color: rgba(74, 222, 128, 0.4);
  font-weight: 800;
}

/* Indicador refinado de página ativa (pill uniforme) */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--norfac-primary);
  border-radius: 2px;
}

[data-theme="dark"] .nav-link.active::after {
  background-color: #4ADE80;
}

/* ==========================================================================
   3. BLOCO DIREITA: Ações (CTAs com Altura Idêntica: 42px)
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 14px;
  white-space: nowrap;
}

/* Botão Alternador de Tema (Modo Claro / Modo Escuro) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-secondary);
  color: var(--text-heading);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap; /* Rigorosamente linha única */
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-accent);
  border-color: var(--norfac-primary);
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.theme-toggle-btn .icon-sun {
  display: none;
  color: #FACC15;
}

.theme-toggle-btn .icon-moon {
  display: block;
  color: var(--norfac-forest-deep);
}

[data-theme="dark"] .theme-toggle-btn .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
  display: none;
}

/* Botão Primário de Ação do Cabeçalho (Cadastre sua Empresa) */
.header-actions .btn,
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap; /* Rigorosamente linha única */
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
  background-color: var(--norfac-primary);
  color: #FFFFFF !important;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(8, 138, 41, 0.3);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-actions .btn:hover,
.btn-header-cta:hover {
  background-color: var(--norfac-vibrant);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 143, 46, 0.4);
}

/* Botões Globais */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--norfac-primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(8, 138, 41, 0.3);
}

.btn-primary:hover {
  background-color: var(--norfac-vibrant);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 143, 46, 0.4);
}

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

[data-theme="dark"] .btn-outline {
  border-color: #4ADE80;
  color: #4ADE80;
}

.btn-outline:hover {
  background-color: var(--norfac-primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--norfac-forest-deep) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background-color: var(--norfac-soft-mint);
  color: var(--norfac-darkest) !important;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 1.85rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem;
}

/* Menu Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-secondary);
  color: var(--text-heading);
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-drawer {
  display: none;
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--border-strong);
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  animation: slideDownMobile 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .mobile-drawer {
  background-color: #042417;
  border-bottom-color: rgba(74, 222, 128, 0.25);
}

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

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.25rem 0;
  padding: 0;
}

.mobile-nav-list .nav-link {
  width: 100%;
  height: auto;
  min-height: 46px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: flex-start;
  white-space: normal;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-list .nav-link:hover,
.mobile-nav-list .nav-link.active {
  background-color: rgba(8, 138, 41, 0.15);
  border-color: var(--norfac-primary);
  color: var(--norfac-primary);
}

[data-theme="dark"] .mobile-nav-list .nav-link:hover,
[data-theme="dark"] .mobile-nav-list .nav-link.active {
  background-color: rgba(74, 222, 128, 0.18);
  border-color: #4ADE80;
  color: #4ADE80;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer-actions .btn,
.mobile-drawer-actions .theme-toggle-btn {
  width: 100%;
  height: 46px;
  min-height: 46px;
  font-size: 0.9rem;
}

/* ==========================================================================
   SEÇÕES E ESPAÇAMENTO (ZERO SOBREPOSIÇÃO)
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background-color: var(--norfac-soft-mint);
  color: var(--norfac-forest-deep);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

[data-theme="dark"] .section-badge {
  background-color: rgba(8, 138, 41, 0.28);
  color: #86EFAC;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO SECTION (HOME) + SIMULADOR INTERATIVO DE ANTECIPAÇÃO
   ========================================================================== */
.hero-home {
  background: linear-gradient(135deg, #042818 0%, #063923 55%, #006B22 100%);
  color: #FFFFFF;
  padding: 5rem 0 5.5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--norfac-primary);
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(220, 252, 231, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 252, 231, 0.14);
  border: 1px solid rgba(220, 252, 231, 0.3);
  color: #DCFCE7;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: #86EFAC;
}

.hero-lead {
  font-size: 1.15rem;
  color: #E2F8EC;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(220, 252, 231, 0.2);
}

.hero-metric-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #86EFAC;
}

.hero-metric-item span {
  font-size: 0.84rem;
  color: #DCFCE7;
}

/* Central de Antecipação Rápida (Substitui o Simulador de Juros Fixos) */
.quick-proposal-card {
  background-color: var(--bg-card);
  color: var(--text-body);
  border-radius: var(--radius-lg);
  padding: 2.15rem;
  box-shadow: 0 25px 50px -12px rgba(2, 16, 9, 0.55);
  border: 1.5px solid var(--border-strong);
  position: relative;
}

.qp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.qp-title {
  font-size: 1.28rem;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.qp-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qp-badge {
  background-color: var(--norfac-soft-mint);
  color: var(--norfac-forest-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.73rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .qp-badge {
  background-color: rgba(8, 138, 41, 0.35);
  color: #86EFAC;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Passo a Passo Compacto (Inspirado em LN Fomento / Antecipa Fácil) */
.qp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.qp-step-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.qp-step-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.qp-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--norfac-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qp-step-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-heading);
}

.qp-step-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Seletor Interativo de Recebíveis e Finalidade */
.qp-section-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.55rem;
}

.qp-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.qp-chip-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-input);
  color: var(--text-body);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.qp-chip-btn svg {
  width: 16px;
  height: 16px;
  color: var(--norfac-primary);
  flex-shrink: 0;
  transition: color var(--transition);
}

[data-theme="dark"] .qp-chip-btn svg {
  color: #4ADE80;
}

.qp-chip-btn:hover {
  border-color: var(--norfac-primary);
  background-color: var(--bg-secondary);
}

.qp-chip-btn.active {
  background-color: var(--norfac-primary);
  border-color: var(--norfac-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(8, 138, 41, 0.28);
}

.qp-chip-btn.active svg {
  color: #FFFFFF;
}

/* Destaques Executivos (Inspirado em Líber Capital & Antecipa.com) */
.qp-highlights {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.qp-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-body);
  font-weight: 500;
}

.qp-highlight-item svg {
  width: 17px;
  height: 17px;
  color: var(--norfac-primary);
  flex-shrink: 0;
}

[data-theme="dark"] .qp-highlight-item svg {
  color: #4ADE80;
}

.qp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.qp-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.65rem;
}

/* ==========================================================================
   PAGE HERO (PÁGINAS INTERNAS)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #042818 0%, #063923 55%, #006B22 100%);
  color: #FFFFFF;
  padding: 4rem 0 4.25rem 0;
  border-bottom: 4px solid var(--norfac-primary);
  position: relative;
}

.page-hero-inner {
  max-width: 820px;
}

.page-hero h1 {
  color: #FFFFFF;
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: #DCFCE7;
  font-size: 1.12rem;
}

/* ==========================================================================
   CARDS E GRIDS (8 PILARES, BENEFÍCIOS, MISSÃO/VISÃO/VALORES)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--norfac-forest), var(--norfac-primary));
  opacity: 0.85;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--norfac-primary);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  color: var(--norfac-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .pillar-icon {
  color: #4ADE80;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.pillar-card h3 {
  font-size: 1.12rem;
  color: var(--text-heading);
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Grid 4 Benefícios */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.benefit-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition);
}

.benefit-card:hover {
  border-color: var(--norfac-primary);
  box-shadow: var(--shadow-md);
}

.benefit-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFFFFF;
  background-color: var(--norfac-primary);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   FORMULÁRIOS E MÁSCARAS AUTOMÁTICAS
   ========================================================================== */
.form-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-block {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-subtle);
}

.form-block-step {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--norfac-primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-block-title {
  font-size: 1.35rem;
  color: var(--text-heading);
}

.form-block-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-sub-heading {
  font-size: 1.05rem;
  color: var(--text-subheading);
  margin: 1.5rem 0 1rem 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--norfac-primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: start; /* Impede que mensagens de status de um campo desloquem ou estiquem campos vizinhos */
}

/* Sistema Proporcional Completo de 12 Colunas */
.col-12 { grid-column: span 12; }
.col-11 { grid-column: span 11; }
.col-10 { grid-column: span 10; }
.col-9  { grid-column: span 9; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }
.col-2  { grid-column: span 2; }
.col-1  { grid-column: span 1; }

/* Larguras mínimas seguras para campos de endereço e documentos */
.form-group-cep,
input[data-mask="cep"] {
  min-width: 145px;
}

.form-group-cidade,
#form-field-cidade {
  min-width: 160px;
}

.form-group-uf,
#form-field-enderuf,
#form-field-estado {
  min-width: 75px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.form-label .req {
  color: #DC2626;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 12px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--text-body);
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}

/* Padronização de estilos de todos os tipos de inputs */
input.form-control,
select.form-control,
textarea.form-control {
  background-color: var(--bg-input);
  color: var(--text-body);
}

[data-theme="dark"] input.form-control,
[data-theme="dark"] select.form-control,
[data-theme="dark"] textarea.form-control {
  background-color: #041C11;
  color: #E2E8F0;
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] select.form-control option {
  background-color: #072417;
  color: #E2E8F0;
}

/* Correção definitiva de autofill do navegador (evita caixas brancas sólidas no Dark Mode) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #F8FAFC inset !important;
  -webkit-text-fill-color: #1E293B !important;
  caret-color: #1E293B !important;
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] input:-webkit-autofill:active,
[data-theme="dark"] select:-webkit-autofill,
[data-theme="dark"] select:-webkit-autofill:hover,
[data-theme="dark"] select:-webkit-autofill:focus,
[data-theme="dark"] textarea:-webkit-autofill,
[data-theme="dark"] textarea:-webkit-autofill:hover,
[data-theme="dark"] textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #041C11 inset !important;
  -webkit-text-fill-color: #E2E8F0 !important;
  caret-color: #E2E8F0 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-control:focus {
  outline: none;
  border-color: var(--norfac-primary);
  box-shadow: 0 0 0 3px rgba(8, 138, 41, 0.2);
}

[data-theme="dark"] .form-control:focus {
  border-color: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

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

.radio-group, .checkbox-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.radio-label, .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--text-body);
}

.radio-label input, .checkbox-label input {
  accent-color: var(--norfac-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ==========================================================================
   FEEDBACK DE VALIDAÇÃO, AUTOCOMPLETE (CNPJ/CEP) E ESTADOS DE FORMULÁRIO
   ========================================================================== */
.form-group {
  position: relative;
}

.form-control.is-valid {
  border-color: #088A29 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23088A29' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1.15rem;
  padding-left: 12px;
  padding-right: 36px !important;
  box-shadow: 0 0 0 3px rgba(8, 138, 41, 0.12);
}

[data-theme="dark"] .form-control.is-valid {
  border-color: #4ADE80 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ADE80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.form-control.is-invalid {
  border-color: #DC2626 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1.15rem;
  padding-left: 12px;
  padding-right: 36px !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

[data-theme="dark"] .form-control.is-invalid {
  border-color: #F87171 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F87171' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.form-control.is-loading {
  border-color: var(--norfac-primary) !important;
}

.form-field-status {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  line-height: 1.25;
  min-height: 0.95rem;
}

.status-msg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  animation: fadeInStatus 0.2s ease-in-out;
  white-space: nowrap;
}

.status-msg.status-success {
  color: #059669;
}

[data-theme="dark"] .status-msg.status-success {
  color: #4ADE80;
}

.status-msg.status-error {
  color: #DC2626;
}

[data-theme="dark"] .status-msg.status-error {
  color: #F87171;
}

.status-msg.status-warning {
  color: #D97706;
}

[data-theme="dark"] .status-msg.status-warning {
  color: #FBBF24;
}

.status-msg.status-loading {
  color: var(--text-muted);
}

.status-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(8, 138, 41, 0.25);
  border-top-color: var(--norfac-primary);
  border-radius: 50%;
  animation: spinStatus 0.7s linear infinite;
  flex-shrink: 0;
}

[data-theme="dark"] .status-spinner {
  border-color: rgba(74, 222, 128, 0.25);
  border-top-color: #4ADE80;
}

@keyframes spinStatus {
  to { transform: rotate(360deg); }
}

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

/* Animação suave com box-shadow preservando o token de cor de fundo do tema */
@keyframes autofillPulse {
  0% {
    box-shadow: 0 0 0 3px rgba(8, 138, 41, 0.35);
    border-color: var(--norfac-primary);
  }
  100% {
    box-shadow: none;
    border-color: var(--border-strong);
  }
}

@keyframes autofillPulseDark {
  0% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35);
    border-color: #4ADE80;
  }
  100% {
    box-shadow: none;
    border-color: rgba(16, 185, 129, 0.4);
  }
}

.field-autofilled {
  animation: autofillPulse 1.4s ease-out;
}

[data-theme="dark"] .field-autofilled {
  animation: autofillPulseDark 1.4s ease-out;
}

.sim-transfer-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--norfac-soft-mint);
  color: var(--norfac-forest-deep);
  border: 1.5px solid var(--norfac-primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

[data-theme="dark"] .sim-transfer-banner {
  background-color: rgba(8, 138, 41, 0.25);
  color: #DCFCE7;
}

.sim-transfer-banner.active {
  display: flex;
}

/* ==========================================================================
   TABELA COMPARATIVA: BANCOS VS. FOMENTO COMERCIAL
   ========================================================================== */
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 1.35rem 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison-table th.col-bank {
  background-color: #1E293B;
  color: #F8FAFC;
  width: 50%;
}

.comparison-table th.col-factoring {
  background: linear-gradient(90deg, var(--norfac-forest-deep), var(--norfac-primary));
  color: #FFFFFF;
  width: 50%;
}

.comparison-table td {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.96rem;
  vertical-align: top;
}

.comparison-table tr:nth-child(even) td {
  background-color: var(--bg-secondary);
}

.comparison-table td.cell-factoring {
  font-weight: 600;
  color: var(--text-heading);
  border-left: 2px solid var(--norfac-primary);
}

/* ==========================================================================
   GALERIA E LIGHTBOX MODAL
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gallery-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.gallery-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--norfac-primary);
}

.gallery-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: var(--norfac-darkest);
}

.gallery-banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background-color: #087A24;
  color: #DDF02B;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  padding: 0.45rem 1rem;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-thumb-wrap img {
  transform: scale(1.06);
}

.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 40, 24, 0.8), rgba(4, 40, 24, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-card:hover .gallery-zoom-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  background-color: var(--norfac-primary);
  color: #FFFFFF;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.gallery-body {
  padding: 1.5rem;
}

.gallery-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--norfac-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .gallery-meta {
  color: #4ADE80;
}

.gallery-title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.gallery-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(3, 24, 14, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-content {
  max-width: 960px;
  width: 100%;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  position: relative;
}

.lightbox-img-container {
  background-color: #021009;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-container img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-caption-bar {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(4, 40, 24, 0.85);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-size: 1.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background-color: var(--norfac-primary);
}

.lightbox-nav-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  color: var(--text-heading);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.lightbox-nav-btn:hover {
  background-color: var(--norfac-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   RODAPÉ INSTITUCIONAL (#042818)
   ========================================================================== */
.site-footer {
  background-color: var(--norfac-darkest);
  color: #E2F8EC;
  padding: 4.5rem 0 0 0;
  border-top: 4px solid var(--norfac-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.9fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer-brand img {
  height: 58px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: #A7F3D0;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  background-color: rgba(8, 138, 41, 0.3);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.footer-social-link:hover {
  background-color: var(--norfac-primary);
  border-color: #86EFAC;
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  color: #86EFAC;
}

.footer-brand-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background-color: rgba(6, 57, 35, 0.75);
  border: 1.5px solid rgba(74, 222, 128, 0.35);
  color: #DCFCE7;
  box-shadow: 0 4px 14px rgba(2, 16, 9, 0.35);
  transition: all var(--transition);
  user-select: none;
}

.footer-visit-counter:hover {
  border-color: var(--norfac-vibrant);
  background-color: rgba(8, 138, 41, 0.32);
  transform: translateY(-2px);
}

.footer-visit-counter svg {
  width: 20px;
  height: 20px;
  color: #4ADE80;
  flex-shrink: 0;
}

.footer-visit-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.footer-visit-number {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.footer-visit-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: #86EFAC;
  text-transform: lowercase;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: var(--norfac-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #DCFCE7;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #4ADE80;
  transform: translateX(3px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: #DCFCE7;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-contact-list svg {
  width: 18px;
  height: 18px;
  color: #4ADE80;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-list a {
  color: #DCFCE7;
}

.footer-contact-list a:hover {
  color: #4ADE80;
  text-decoration: underline;
}

.footer-bottom {
  background-color: #021B10;
  border-top: 1px solid rgba(220, 252, 231, 0.12);
  padding: 1.35rem 0;
  font-size: 0.84rem;
  color: #A7F3D0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #86EFAC;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   COMPONENTES AUXILIARES (TIMELINE, CHECKLIST, MAPA, CTA BANNER)
   ========================================================================== */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
}

.checklist li svg {
  width: 20px;
  height: 20px;
  color: var(--norfac-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

[data-theme="dark"] .checklist li svg {
  color: #4ADE80;
}

.map-embed-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  height: 380px;
}

.map-embed-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-banner {
  background: linear-gradient(135deg, #063923 0%, #006B22 60%, #088A29 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #FFFFFF;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: #DCFCE7;
  font-size: 1.05rem;
}

/* ==========================================================================
   ARQUITETURA RESPONSIVA MOBILE-FIRST (320px ATÉ 1024px+ | ZERO OVERFLOW-X)
   ========================================================================== */

/* 1. TABLETS & NOTEBOOKS COMPACTOS (< 1024px) */
@media (max-width: 1024px) {
  /* Substituição da barra horizontal pelo Menu Hambúrguer limpo */
  .main-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  /* Oculta botão de ação do topo desktop para evitar sobrecarga (destacado no Drawer) */
  .header-actions .btn-header-cta {
    display: none !important;
  }

  .header-inner {
    min-height: 72px;
    gap: 1rem;
  }

  .brand-logo img {
    height: 46px;
    max-width: 175px;
  }

  /* Grids de 2 colunas em tablets */
  .hero-grid,
  .two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }

  .pillars-grid,
  .gallery-grid-3,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }

  /* Proteção de tabelas comparativas com rolagem touch suave */
  .comparison-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .comparison-table {
    min-width: 620px;
  }
}

/* 2. TABLETS PORTRAIT & TELAS MÉDIAS (< 768px) */
@media (max-width: 768px) {
  /* Top Bar Mobile: oculta selo ANFAC e horário de atendimento; contatos essenciais em linha única */
  .top-bar-badge {
    display: none !important;
  }

  .top-bar-info .top-bar-item:nth-child(3) {
    display: none !important; /* Oculta horário de funcionamento secundário */
  }

  .top-bar-inner {
    justify-content: center !important;
    text-align: center;
    gap: 0.85rem;
    padding-block: 0.45rem;
  }

  .top-bar-info {
    justify-content: center;
    gap: 0.85rem;
  }

  .top-bar-social {
    justify-content: center;
    gap: 0.85rem;
  }

  /* Formulários no Tablet: campos amplos em 12 colunas e campos compactos agrupados em 2 colunas */
  .col-12, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6 {
    grid-column: span 12 !important;
  }
  .col-5, .col-4, .col-3, .col-2, .col-1 {
    grid-column: span 6 !important;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem 1.5rem;
    gap: 1.5rem;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .container {
    padding-inline: 20px;
  }
}

/* 3. SMARTPHONES EM GERAL (< 640px) */
@media (max-width: 640px) {
  /* Grids convertidos estritamente para 1 coluna */
  .three-col-grid,
  .benefits-grid,
  .pillars-grid,
  .gallery-grid,
  .gallery-grid-3,
  .footer-grid,
  .hero-metrics,
  .qp-steps,
  .qp-chip-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  /* Espaçamento interno mobile para que o conteúdo respire nas bordas */
  .container {
    padding-inline: 16px !important;
  }

  .section {
    padding: 3rem 0;
  }

  .form-card,
  .form-block,
  .quick-proposal-card {
    padding: 1.25rem 1rem !important;
  }

  /* Tipografia Fluida Responsiva (clamp) */
  h1, .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem) !important;
    line-height: 1.25;
    word-break: break-word;
  }

  h2, .section-title {
    font-size: clamp(1.4rem, 5.2vw, 1.9rem) !important;
    line-height: 1.3;
    word-break: break-word;
  }

  h3 {
    font-size: clamp(1.15rem, 4.2vw, 1.35rem) !important;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Formulários no celular: todos os campos ocupam 100% da largura */
  .col-12, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2, .col-1 {
    grid-column: span 12 !important;
  }

  .form-group-cep,
  input[data-mask="cep"],
  .form-group-cidade,
  #form-field-cidade,
  .form-group-uf,
  #form-field-enderuf,
  #form-field-estado {
    min-width: 0 !important;
  }

  /* Acessibilidade Touch: inputs >= 48px e fonte 16px para evitar auto-zoom no iOS */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 48px;
  }

  /* Botões de Ação Full-Width no Mobile */
  .btn {
    min-height: 46px;
    font-size: 0.92rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Botão de Tema Compacto ao lado do Hambúrguer */
  .header-actions .theme-toggle-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .header-actions .theme-toggle-btn .theme-label {
    display: none !important;
  }

  .header-actions {
    gap: 8px;
  }
}

/* 4. SMARTPHONES COMPACTOS (< 480px até 320px) */
@media (max-width: 480px) {
  /* Top Bar ultra-compacto em linha única: prioriza WhatsApp e Instagram */
  .top-bar-info .top-bar-item:nth-child(1) {
    display: none !important; /* Esconde telefone fixo */
  }

  .top-bar-inner {
    font-size: 0.76rem;
    gap: 0.65rem;
    padding-block: 0.35rem;
  }

  .top-bar-item svg {
    width: 13px;
    height: 13px;
  }

  /* Cabeçalho compacto */
  .header-inner {
    min-height: 64px;
  }

  .brand-logo img {
    height: 38px;
    max-width: 140px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .header-actions .theme-toggle-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .quick-proposal-card {
    padding: 1.15rem 0.85rem !important;
  }

  .qp-summary-row {
    font-size: 0.85rem;
  }

  .qp-btn-main {
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
  }

  .hero-metric-item {
    padding: 1rem 0.75rem;
  }

  .hero-metric-item .metric-number {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   FORMULÁRIOS COMPLETOS PF / PJ — NAVEGAÇÃO POR ETAPAS, SUB-CARDS E MODAL PDF
   ========================================================================== */
.form-stepper-nav {
  position: sticky;
  top: 76px;
  z-index: 40;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.form-stepper-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
}

.form-stepper-pill:hover,
.form-stepper-pill.active {
  background-color: var(--norfac-primary);
  border-color: var(--norfac-primary);
  color: #FFFFFF;
}

.form-stepper-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(8, 138, 41, 0.14);
  color: var(--norfac-primary);
  font-size: 0.7rem;
  font-weight: 800;
}

[data-theme="dark"] .form-stepper-num {
  background-color: rgba(74, 222, 128, 0.18);
  color: #4ADE80;
}

.form-stepper-pill:hover .form-stepper-num,
.form-stepper-pill.active .form-stepper-num {
  background-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

.form-block[id] {
  scroll-margin-top: 145px;
}

.form-repeat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.15rem;
}

.form-repeat-card:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .form-repeat-card {
  background-color: rgba(4, 28, 17, 0.55);
  border-color: rgba(16, 185, 129, 0.24);
}

.form-repeat-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-repeat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background-color: var(--norfac-soft-mint);
  color: var(--norfac-forest-deep);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .form-repeat-badge {
  background-color: rgba(8, 138, 41, 0.3);
  color: #86EFAC;
}

.form-repeat-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.form-note-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  background-color: var(--norfac-soft-mint);
  border: 1px solid var(--border-strong);
  color: var(--norfac-forest-deep);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .form-note-banner {
  background-color: rgba(8, 138, 41, 0.18);
  border-color: rgba(74, 222, 128, 0.32);
  color: #DCFCE7;
}

.form-note-banner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--norfac-primary);
}

[data-theme="dark"] .form-note-banner svg {
  color: #4ADE80;
}

.form-submit-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.form-submit-bar .btn-primary {
  flex: 1 1 280px;
}

/* Modal de Confirmação, PDF, E-mail e WhatsApp */
.proposal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(2, 16, 9, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.proposal-modal-backdrop.open {
  display: flex;
}

.proposal-modal {
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  position: relative;
  color: var(--text-body);
}

.proposal-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-secondary);
  color: var(--text-heading);
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.proposal-modal-close:hover {
  background-color: var(--norfac-primary);
  border-color: var(--norfac-primary);
  color: #FFFFFF;
}

.proposal-modal-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding-right: 2.25rem;
}

.proposal-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #063923, #088A29);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proposal-modal-icon svg {
  width: 26px;
  height: 26px;
}

.proposal-modal-title {
  font-size: 1.3rem;
  color: var(--text-heading);
  margin: 0 0 0.2rem 0;
}

.proposal-modal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.proposal-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem 0;
}

.proposal-status-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.proposal-status-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 1px;
}

.proposal-status-item.is-ok .proposal-status-dot {
  background-color: rgba(8, 138, 41, 0.16);
  color: #059669;
}

[data-theme="dark"] .proposal-status-item.is-ok .proposal-status-dot {
  background-color: rgba(74, 222, 128, 0.2);
  color: #4ADE80;
}

.proposal-status-item.is-pending .proposal-status-dot {
  background-color: rgba(217, 119, 6, 0.16);
  color: #D97706;
}

.proposal-status-item.is-error .proposal-status-dot {
  background-color: rgba(220, 38, 38, 0.16);
  color: #DC2626;
}

.proposal-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proposal-modal-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.proposal-modal-actions .btn {
  width: 100%;
  justify-content: center;
}

.proposal-wa-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.65rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .form-stepper-nav {
    top: 64px;
    padding: 0.5rem 0.65rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .form-repeat-card {
    padding: 1rem 0.85rem;
  }

  .proposal-modal {
    padding: 1.35rem 1.1rem;
  }

  .proposal-modal-actions-row {
    grid-template-columns: 1fr;
  }
}


