/* ==========================================================================
   QUICK7 — DESIGN SYSTEM CORPORATIVO & OUTSOURCING DE TI (B2B & B2G)
   Paleta Slate Blue-Gray (Aço, Azul-Cinza Escuro + Azul-Aço Fosco #3e5c76 / #6b8caf)
   ========================================================================== */

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

:root,
[data-theme="dark"] {
  /* Paleta Slate Blue-Gray (Aço, Azul-Cinza Escuro) */
  --bg-dark: #090d16;          /* Fundo sóbrio ultra-escuro */
  --bg-surface: #0f172a;       /* Azul-Cinza Escuro Slate 900 */
  --bg-card: #1e293b;          /* Azul-Cinza Escuro Slate 800 */
  --bg-card-hover: #26354a;    /* Card Hover Aço */
  --border-color: #334155;     /* Borda Aço Slate 700 */
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Destaques Sóbrios em Azul-Aço Fosco (sem tom azul-céu brilhante) */
  --accent-primary: #3e5c76;   /* Azul-Aço Fosco */
  --accent-light: #6b8caf;     /* Azul-Aço Claro, Fosco */
  --accent-glow: rgba(107, 140, 175, 0.2);
  --accent-hover: #2b4359;

  /* Tipografia & Texto Sóbrio */
  --text-main: #f8fafc;        /* Texto Principal Claro Sóbrio */
  --text-muted: #94a3b8;       /* Texto Secundário Aço */
  --text-subtle: #64748b;
  --text-dark: #0f172a;

  /* Header Flutuante Ntiva Glassmorphism */
  --header-bg: rgba(15, 23, 42, 0.92);
  --header-bg-scrolled: rgba(15, 23, 42, 0.98);

  /* Filtro de Visibilidade da Logo */
  --logo-filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));

  /* Funcionais */
  --whatsapp: #25d366;
  --badge-b2b: #3e5c76;
  --badge-b2g: #4a6984;

  /* Bordas e Sombras Modernas */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 32px rgba(107, 140, 175, 0.18);

  /* Layout Header Flutuante Ntiva */
  --header-height: 76px;
  --header-height-scrolled: 70px;
  --max-width: 1360px;
}

/* ==========================================================================
   MODO CLARO (SLATE LIGHT THEME)
   ========================================================================== */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #f1f5f9;
  --bg-card-hover: #e2e8f0;
  --border-color: #cbd5e1;
  --border-subtle: rgba(15, 23, 42, 0.08);

  --accent-primary: #3e5c76;
  --accent-light: #3e5c76;
  --accent-glow: rgba(62, 92, 118, 0.12);
  --accent-hover: #2b4359;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;
  --text-dark: #0f172a;

  --header-bg: rgba(255, 255, 255, 0.92);
  --header-bg-scrolled: rgba(255, 255, 255, 0.98);

  --logo-filter: none;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(62, 92, 118, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-dark);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   CANVAS BACKGROUND
   ========================================================================== */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

/* ==========================================================================
   HEADER FLUTUANTE COM BORDAS ARREDONDADAS (ESTILO NTIVA.COM)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max-width));
  height: var(--header-height);
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  padding-inline: 24px;
}

.site-header.scrolled {
  top: 12px;
  height: var(--header-height-scrolled);
  background: var(--header-bg-scrolled);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(107, 140, 175, 0.3);
}

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

.brand-logo-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.brand-logo-wrap img,
.footer-brand img {
  filter: var(--logo-filter);
  transition: filter 0.3s ease, height 0.3s ease;
  object-fit: contain;
}

/* LOGO FIXO E PERMANENTE — NUNCA SOME AO ROLAR */
.logo-full {
  height: 44px;
  max-height: 44px;
  width: auto;
  display: block !important;
}

.logo-simple {
  display: none !important;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.site-nav a {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-main);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-light);
  border-radius: 2px;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(62, 92, 118, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107, 140, 175, 0.45);
}

/* BOTÃO TOGGLE DE TEMA (DARK / LIGHT) */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-light);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn .sun-icon {
  display: block;
}

.theme-toggle-btn .moon-icon {
  display: none;
}

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

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

/* Toggle Mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  transition: all 0.3s ease;
}

/* ==========================================================================
   BOTÕES MODERNOS (AZUL-AÇO FOSCO #3e5c76 / #6b8caf)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #3e5c76 0%, #2b4359 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(62, 92, 118, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(107, 140, 175, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2b4359 0%, #1e3142 100%);
  box-shadow: 0 8px 24px rgba(107, 140, 175, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  border-color: #6b8caf;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-light);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 140, 175, 0.15);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* BADGES EM TONS DE AÇO SÓBRIOS (SEM TEAL/VERDE E SEM AZUL-CÉU BRILHANTE) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-b2b {
  background: rgba(62, 92, 118, 0.2);
  color: #6b8caf;
  border: 1px solid rgba(107, 140, 175, 0.35);
}

.badge-b2g {
  background: rgba(92, 124, 153, 0.2);
  color: #8da9c4;
  border: 1px solid rgba(141, 169, 196, 0.35);
}

.badge-tech {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   SEÇÕES PRINCIPAIS & HERO
   ========================================================================== */
main {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-height) + 28px);
  min-height: 80vh;
}

.hero-section {
  position: relative;
  padding-block: clamp(60px, 8vw, 120px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-content h1 span.highlight {
  background: linear-gradient(135deg, #6b8caf, #8da9c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--accent-light);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.hero-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-media:hover img {
  transform: scale(1.03);
}

.hero-overlay-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 20px;
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-overlay-card strong {
  font-size: 1.1rem;
  color: var(--text-main);
  display: block;
}

.hero-overlay-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PROPOSTA DE VALOR & SEÇÃO "COMO RESOLVEMOS"
   ========================================================================== */
.value-proposition-strip {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-color);
  padding-block: 48px;
}

.value-prop-box {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.value-prop-box h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.value-prop-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-padding {
  padding-block: clamp(60px, 8vw, 100px);
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  margin-block: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

.problem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.problem-card:hover {
  background: var(--bg-card);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(62, 92, 118, 0.18);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.35;
  min-height: 2.7em;
  display: flex;
  align-items: flex-start;
}

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

/* ==========================================================================
   DIFERENCIAIS & RESULTADOS / FASE 0
   ========================================================================== */
.differentials-section {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-color);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.differential-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.differential-card .badge {
  align-self: flex-start;
}

.differential-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-block: 16px 10px;
  line-height: 1.35;
  min-height: 2.7em;
  display: flex;
  align-items: flex-start;
}

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

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
}

.metric-box {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  padding-inline: 16px;
}

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

.metric-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   QUEM ATENDEMOS (B2B & B2G)
   ========================================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.audience-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.audience-card.b2b::before {
  background: linear-gradient(90deg, #3e5c76, #6b8caf);
}

.audience-card.b2g::before {
  background: linear-gradient(90deg, #4a6984, #8da9c4);
}

.audience-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-block: 16px 12px;
}

.audience-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.audience-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.audience-list li svg {
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   SERVIÇOS / PLANOS DE TERCEIRIZAÇÃO
   ========================================================================== */
.services-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.service-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.service-item-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-glow);
}

.service-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-item-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.35;
  min-height: 2.7em;
  display: flex;
  align-items: flex-start;
}

.service-item-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.service-features li svg {
  color: var(--accent-light);
}

/* ==========================================================================
   PORTAL DE CHAMADOS DESTAQUE (TECNOLOGIA APLICADA)
   ========================================================================== */
.portal-feature-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-block: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.portal-feature-banner.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.portal-feature-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text-main);
  margin-block: 12px;
}

.portal-feature-copy p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.portal-feature-media img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   FAQ & CONTATO FINAL / FORMULÁRIO
   ========================================================================== */
.faq-section {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-color);
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.cta-final-section {
  padding-block: clamp(60px, 8vw, 100px);
  position: relative;
}

.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  box-shadow: var(--shadow-glow);
}

.cta-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--text-main);
  margin-block: 12px 16px;
}

.cta-copy p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(107, 140, 175, 0.2);
  background: var(--bg-surface);
}

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

/* ==========================================================================
   FOOTER INSTITUCIONAL
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding-block: 64px 32px;
  clear: both;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 90px;
  max-height: 90px;
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-subtle);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header {
    width: calc(100% - 24px);
    top: 12px;
    padding-inline: 16px;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .header-cta-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* No mobile/tablet, oculta o botão extenso 'Solicitar Proposta' do header para garantir exibição perfeita do botão claro/escuro e idioma */
  .header-cta-group .nav-cta {
    display: none;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .lang-switcher {
    padding: 3px 8px;
    font-size: 0.76rem;
    flex-shrink: 0;
  }

  .hero-grid,
  .audience-grid,
  .differentials-grid,
  .portal-feature-banner,
  .portal-feature-banner.reverse,
  .cta-box {
    grid-template-columns: 1fr !important;
  }

  .metrics-strip {
    grid-template-columns: 1fr 1fr;
  }

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

  .site-nav {
    display: none;
  }

  .site-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .metrics-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    height: 320px;
  }

  .metric-box {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 16px;
  }

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

/* ==========================================================================
   BLOG & ARTIGOS — DESIGN SYSTEM EXCLUSIVO
   ========================================================================== */

.article-body {
  line-height: 1.85;
  font-size: 1.08rem;
  color: var(--text-main);
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--accent-light);
}

.article-body p {
  margin-bottom: 20px;
  color: var(--text-main);
  opacity: 0.94;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-body strong {
  color: #ffffff;
}

[data-theme="light"] .article-body strong {
  color: #0f172a;
}

/* Author Box */
.author-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-top: 48px;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--accent-light);
}

.author-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.author-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Dedicated Blog CTA Card */
.blog-article-cta {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #132238 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 38px 32px;
  margin-top: 36px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.blog-article-cta h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-article-cta p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.blog-article-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Slot de Anúncios Exclusivo para o Blog */
.blog-ad-slot {
  margin: 32px auto;
  text-align: center;
  max-width: 728px;
  min-height: 0;
  overflow: hidden;
}

/* Oculta completamente o container de anúncio se o AdSense estiver vazio ou em aprovação */
.blog-ad-slot ins:empty,
.blog-ad-slot ins[data-ad-status="unfilled"],
.blog-ad-slot:has(ins[data-ad-status="unfilled"]) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   Seletor de Idioma (Segmented Control Pill PT | EN)
   ========================================================================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 4px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switcher .lang-pill,
.lang-switcher a.lang-link,
.lang-switcher span.lang-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 9999px;
  min-width: 32px;
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-switcher a.lang-link {
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switcher a.lang-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .lang-switcher a.lang-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lang-switcher span.lang-active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(62, 92, 118, 0.45);
}

.lang-switcher .lang-sep {
  display: none;
}
