/* 
 * Conecta Resultados - Estilos Principais (Padrões 2027)
 * Agência de Marketing Digital & Inteligência Artificial
 * Itajaí / Santa Catarina - www.conectaresultados.com.br
 */

/* ==========================================================================
   1. DESIGN TOKENS & VARIÁVEIS CSS (MODO CLARO E ESCURO)
   ========================================================================== */
:root {
  /* Cores da Marca */
  --brand-blue: #0056A6;
  --brand-blue-hover: #004484;
  --brand-blue-light: #e8f2fc;
  --brand-green: #7ED957;
  --brand-green-hover: #6bc048;
  --brand-green-glow: rgba(126, 217, 87, 0.45);
  --brand-green-light: #eefbee;
  --brand-accent: #00d2ff;

  /* Superfícies & Cores de Fundo (Modo Claro) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-muted: #f1f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);

  /* Textos */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Bordas */
  --border-subtle: #e2e8f0;
  --border-glass: rgba(255, 255, 255, 0.3);
  --border-focus: var(--brand-blue);

  /* Sombras Modernas (Soft Elevation) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 24px var(--brand-green-glow);

  /* Gradientes */
  --grad-hero: linear-gradient(135deg, #003e7a 0%, #0056a6 50%, #0077cc 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  --grad-accent: linear-gradient(135deg, var(--brand-green) 0%, #5cb85c 100%);
  --grad-mesh: radial-gradient(at 0% 0%, rgba(0, 86, 166, 0.15) 0px, transparent 50%),
               radial-gradient(at 100% 100%, rgba(126, 217, 87, 0.15) 0px, transparent 50%);

  /* Tipografia Fluida (clamp) */
  --font-family-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-family-body: 'Open Sans', system-ui, -apple-system, sans-serif;

  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --font-size-sm: clamp(0.875rem, 0.825rem + 0.25vw, 0.9375rem);
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --font-size-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --font-size-2xl: clamp(1.6rem, 1.4rem + 1vw, 2rem);
  --font-size-3xl: clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --font-size-4xl: clamp(2.35rem, 1.9rem + 2.25vw, 3.5rem);

  /* Espaçamentos & Geometria */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --header-height: 76px;
  --container-max: 1240px;

  /* Transições Fluídas */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms ease;
  --transition-base: 250ms var(--ease-spring);
  --transition-slow: 400ms var(--ease-spring);
}

/* Modo Escuro (Tokens Invertidos e Calibrados) */
[data-theme="dark"] {
  --bg-body: #0b1120;
  --bg-surface: #131d33;
  --bg-surface-elevated: #1a2744;
  --bg-surface-muted: #1e293b;
  --bg-surface-glass: rgba(19, 29, 51, 0.85);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-subtle: #23324d;
  --border-glass: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.4), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.5);

  --grad-hero: linear-gradient(135deg, #05142a 0%, #092347 50%, #003666 100%);
  --grad-card: linear-gradient(145deg, rgba(26, 39, 68, 0.9), rgba(19, 29, 51, 0.7));
  --grad-mesh: radial-gradient(at 0% 0%, rgba(0, 86, 166, 0.3) 0px, transparent 60%),
               radial-gradient(at 100% 100%, rgba(126, 217, 87, 0.15) 0px, transparent 60%);
  --brand-blue-light: rgba(0, 86, 166, 0.25);
  --brand-green-light: rgba(126, 217, 87, 0.15);
}

/* ==========================================================================
   2. RESET MODERNO & CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
  background-image: var(--grad-mesh);
  background-attachment: fixed;
}

/* Balanceamento de Texto 2027 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  text-wrap: balance;
  margin-bottom: 0.75rem;
}

p {
  text-wrap: pretty;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-green);
}

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

button, input, select, textarea {
  font: inherit;
}

/* Foco Acessível (WCAG 2.2) */
:focus-visible {
  outline: 3px solid var(--brand-green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip to Content */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--brand-blue);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 99999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
}

/* ==========================================================================
   3. LAYOUT & HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: clamp(4rem, 6vw, 6.5rem);
  position: relative;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.text-center { text-align: center; }
.text-azul { color: var(--brand-blue); }
.text-verde { color: var(--brand-green); }

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 86, 166, 0.2);
  margin-bottom: 1rem;
}

[data-theme="dark"] .badge {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(126, 217, 87, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(126, 217, 87, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(126, 217, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 217, 87, 0); }
}

/* ==========================================================================
   4. BOTÕES MODERNOS 2027
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-family-display);
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.2;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-blue);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(0, 86, 166, 0.35);
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 166, 0.45);
}

.btn-secondary {
  background: var(--brand-green);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(126, 217, 87, 0.35);
}

.btn-secondary:hover {
  background: var(--brand-green-hover);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(126, 217, 87, 0.55);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--brand-blue);
  border-color: #ffffff;
  transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
  background: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: var(--font-size-base);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: var(--font-size-xs);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-icon:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

/* ==========================================================================
   5. HEADER & NAVEGAÇÃO FLUTUANTE GLASS
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.header.header-scrolled {
  height: 68px;
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-glass);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 42px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.logo-link:hover .logo-img {
  transform: scale(1.03);
}

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

.nav-link {
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.5rem;
}

.nav-link:hover {
  color: var(--brand-blue);
}

.nav-link.active {
  color: var(--brand-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-green);
  border-radius: 2px;
  transition: width var(--transition-base);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Alternador de Tema Dark/Light */
.theme-toggle-btn {
  background: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  transform: rotate(15deg);
}

.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   6. HERO SECTION DE ALTO IMPACTO
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-height) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(4rem, 6vw, 6rem);
  background: var(--grad-hero);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .highlight-green {
  color: var(--brand-green);
  text-shadow: 0 0 20px var(--brand-green-glow);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
}

.trust-item i {
  color: var(--brand-green);
  font-size: 1.1rem;
}

.hero-media {
  position: relative;
}

.hero-card-glow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card-glow img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-card-glow:hover img {
  transform: scale(1.02);
}

/* Floating Metric Badges no Hero */
.hero-floating-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-lg);
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.badge-top-left {
  top: 16px;
  left: -20px;
}

.badge-bottom-right {
  bottom: 20px;
  right: -15px;
  animation-delay: -2s;
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.hero-floating-badge .metric-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--brand-green);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hero-floating-badge .metric-num {
  font-size: var(--font-size-base);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.hero-floating-badge .metric-label {
  font-size: var(--font-size-xs);
  color: #94a3b8;
}

/* ==========================================================================
   7. BARRA DE DESTAQUES & MÉTRICAS (PROVA SOCIAL)
   ========================================================================== */
.stats-banner {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-box {
  text-align: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--border-subtle);
}

.stat-box:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .stat-number {
  color: #60a5fa;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   8. SEÇÃO SOBRE & PILARES DA AGÊNCIA
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  transition: all var(--transition-fast);
}

.pillar-card:hover .pillar-icon {
  background: var(--brand-green);
  color: #0f172a;
}

.pillar-title {
  font-size: var(--font-size-base);
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   9. SERVIÇOS 2027 (DESIGN CARDS & HOVER GLOW)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-wrap {
  background: var(--brand-green);
  color: #0f172a;
  transform: rotate(5deg);
}

.service-title {
  font-size: var(--font-size-xl);
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-deliverables {
  list-style: none;
  padding: 0;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.service-deliverables li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.service-deliverables li i {
  color: var(--brand-green);
  font-size: 0.85rem;
}

/* ==========================================================================
   10. CALCULADORA INTERATIVA DE CRESCIMENTO COM IA (FEATURE 2027)
   ========================================================================== */
.calc-section {
  background: var(--bg-surface-elevated);
  border-block: 1px solid var(--border-subtle);
  position: relative;
}

.calc-container {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.calc-select, .calc-range {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

.calc-range-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calc-range-value {
  font-weight: 800;
  color: var(--brand-blue);
  min-width: 120px;
}

[data-theme="dark"] .calc-range-value {
  color: #60a5fa;
}

.calc-result-box {
  background: var(--grad-hero);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.calc-result-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.calc-result-content {
  position: relative;
  z-index: 2;
}

.calc-result-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.calc-projection-number {
  font-family: var(--font-family-display);
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--brand-green);
  text-shadow: 0 0 20px var(--brand-green-glow);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.calc-projection-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   11. CASES DE SUCESSO (GRID MODERNO COM RESULTADOS)
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

.case-media {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.case-card:hover .case-media img {
  transform: scale(1.06);
}

.case-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.case-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-location {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .case-location {
  color: #60a5fa;
}

.case-title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.75rem;
}

.case-summary {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.case-metrics-badge {
  margin-top: auto;
  background: var(--brand-green-light);
  border: 1px solid rgba(126, 217, 87, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: #1b5e20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .case-metrics-badge {
  color: #86efac;
}

/* ==========================================================================
   12. DEPOIMENTOS (AVALIAÇÃO & CONFIANÇA)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.testimonial-quote {
  font-size: var(--font-size-base);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-green);
}

.testimonial-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.testimonial-role {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ==========================================================================
   13. REGIÃO DE ATUAÇÃO (FOCO LOCAL SANTA CATARINA)
   ========================================================================== */
.region-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.region-map-frame {
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.region-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 1.75rem;
}

.city-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.city-pill:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.city-pill i {
  color: var(--brand-green);
}

.city-pill:hover i {
  color: #ffffff;
}

/* ==========================================================================
   14. FAQ ACCORDION (SEO SEMÂNTICO & USABILIDADE)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-family-display);
  font-size: var(--font-size-base);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--brand-blue);
  transition: transform var(--transition-base);
}

[data-theme="dark"] .faq-icon {
  color: #60a5fa;
}

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

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ==========================================================================
   15. CONTATO & FORMULÁRIO COM ENVIOS DIRETOS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.contact-card-item:hover {
  transform: translateX(6px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.contact-card-item:hover .contact-card-icon {
  background: var(--brand-green);
  color: #0f172a;
}

.contact-card-title {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-card-value {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Card do Formulário */
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-muted);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-blue);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(0, 86, 166, 0.15);
  outline: none;
}

.form-control.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

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

.form-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: var(--font-size-sm);
}

.form-feedback.success {
  display: block;
  background: var(--brand-green-light);
  border: 1px solid rgba(126, 217, 87, 0.4);
  color: #1b5e20;
}

/* ==========================================================================
   16. FOOTER MODERNO 2027
   ========================================================================== */
.footer {
  background: #090f1e;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: var(--font-size-sm);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-title {
  color: #ffffff;
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-link a {
  color: #94a3b8;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-link a:hover {
  color: var(--brand-green);
}

.social-links-list {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--brand-green);
  color: #0f172a;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--brand-green);
}

/* ==========================================================================
   17. BOTÃO FLUTUANTE WHATSAPP & VOLTAR AO TOPO
   ========================================================================== */
.floating-actions-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  z-index: 999;
}

.whatsapp-float-btn {
  background: #25d366;
  color: #ffffff;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: all var(--transition-base);
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background: #20ba59;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-online-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-online-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
}

.back-to-top-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-base);
  cursor: pointer;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

/* ==========================================================================
   18. ANIMAÇÕES NATIVAS 2027 (SCROLL INTERSECTION OBSERVER)
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Preferência do Usuário por Redução de Movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   19. RESPONSIVIDADE (MOBILE & TABLET BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .calc-grid,
  .region-wrapper,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

  .stat-box:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 860px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: min(320px, 85vw);
    height: calc(100vh - var(--header-height));
    background: var(--bg-surface-elevated);
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    gap: 1.25rem;
    transition: right var(--transition-base);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-item {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    font-size: var(--font-size-base);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-box {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.25rem;
  }

  .stat-box:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-floating-badge {
    position: static;
    margin-top: 1rem;
    animation: none;
  }
}
