/* ==========================================================================
   4SR · 4 Seniors Brasil · Design System
   Estrutura: tokens → reset → base → utilitários → header/mega menu → hero →
   seções/componentes → footer → forms/modal → animações → responsivo
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;

  /* Marca */
  --brand-500: #2540a0;
  --brand-400: #4a63c0;
  --cyan-400: #6c83e0;
  --cyan-500: #3a52b0;
  --grad-brand: linear-gradient(135deg, #2540a0 0%, #3a52b0 100%);
  --grad-text: linear-gradient(90deg, #8ea2ee 0%, #6c83e0 100%);

  /* Tema escuro (padrão) */
  --bg-0: #04070f;
  --bg-1: #070b16;
  --bg-2: #0b1220;
  --bg-3: #101a2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --glass: rgba(13, 20, 36, 0.66);
  --glass-strong: rgba(9, 14, 26, 0.85);
  --stroke: rgba(148, 163, 184, 0.16);
  --stroke-strong: rgba(148, 163, 184, 0.3);
  --text-1: #e7edf6;
  --text-2: #9fb0c7;
  --text-3: #64748b;
  --ok: #34d399;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 8px 30px rgba(2, 6, 16, 0.45);
  --shadow-glow: 0 0 0 1px rgba(74, 99, 192, 0.25), 0 12px 44px rgba(37, 64, 160, 0.22);
  --header-h: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

:root[data-theme="light"] {
  --bg-0: #f6f8fc;
  --bg-1: #ffffff;
  --bg-2: #eef2f9;
  --bg-3: #e3eaf5;
  --surface: rgba(15, 23, 42, 0.03);
  --surface-2: rgba(15, 23, 42, 0.055);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --stroke: rgba(15, 23, 42, 0.1);
  --stroke-strong: rgba(15, 23, 42, 0.2);
  --text-1: #0b1526;
  --text-2: #3b4b63;
  --text-3: #64748b;
  --shadow-1: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 1px rgba(37, 64, 160, 0.18), 0 12px 40px rgba(37, 64, 160, 0.14);
  --grad-text: linear-gradient(90deg, #1d4ed8 0%, #3a52b0 100%);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--brand-500); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- 3. Base / utilitários ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-1); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan-400); margin-bottom: 14px;
}
:root[data-theme="light"] .kicker { color: #3a52b0; }
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--grad-brand); border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 1.06rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::before { display: none; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #d8482f 0%, #b23320 100%); color: #fff; box-shadow: 0 8px 24px rgba(216, 72, 47, 0.38); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(216, 72, 47, 0.5); }
.btn-ghost { border: 1px solid var(--stroke-strong); color: var(--text-1); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--brand-400); box-shadow: var(--shadow-glow); }
.btn-soft { border: 1px solid rgba(37, 64, 160, 0.42); color: var(--brand-400); background: rgba(37, 64, 160, 0.14); }
.btn-soft:hover { background: rgba(37, 64, 160, 0.22); border-color: var(--brand-400); box-shadow: var(--shadow-glow); }
.btn-soft .icon { color: var(--cyan-400); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- 4. Header + mega menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.menu-open {
  background: var(--glass-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-color: var(--stroke); box-shadow: var(--shadow-1);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; color: var(--text-3); text-transform: uppercase; }

.nav { margin-left: auto; }
.nav-cta { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; font-size: 0.93rem; font-weight: 500; color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text-1); background: var(--surface-2); }
.nav-link .icon { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }

/* Destaque do item LGPD no menu (todas as paginas / estados do header) */
.nav-link[href*="lgpd"] {
  color: #fff !important;
  background: var(--brand-500) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 64, 160, 0.32);
}
.nav-link[href*="lgpd"]:hover,
.nav-link[href*="lgpd"][aria-current="page"] {
  background: var(--brand-400) !important;
  box-shadow: 0 3px 12px rgba(37, 64, 160, 0.42);
}

/* Mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; left: 50%; top: calc(var(--header-h) - 8px);
  transform: translateX(-50%) translateY(10px);
  width: min(880px, calc(100vw - 48px));
  background: var(--glass-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stroke); border-radius: 20px; box-shadow: var(--shadow-1);
  padding: 22px; display: flex; flex-direction: column; gap: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.has-mega:hover .nav-link .icon, .has-mega.open .nav-link .icon { transform: rotate(180deg); }
.mega-col h4 {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px; font-family: var(--font-sans); font-weight: 600;
}
.mega-item { display: flex; gap: 12px; padding: 10px; border-radius: 12px; transition: background 0.2s; }
.mega-item:hover { background: var(--surface-2); }
.mega-item .icon { width: 20px; height: 20px; color: var(--cyan-400); margin-top: 3px; }
:root[data-theme="light"] .mega-item .icon { color: #3a52b0; }
.mega-item strong { display: block; font-size: 0.92rem; font-weight: 600; }
.mega-item span { display: block; font-size: 0.8rem; color: var(--text-2); line-height: 1.4; }
.mega-feature {
  grid-row: span 2; border-radius: 16px; padding: 24px;
  background: linear-gradient(160deg, rgba(37, 64, 160, 0.18), rgba(58, 82, 176, 0.1));
  border: 1px solid rgba(74, 99, 192, 0.3); display: flex; flex-direction: column; gap: 10px;
}
.mega-feature strong { font-family: var(--font-display); font-size: 1.08rem; }
.mega-feature p { font-size: 0.85rem; color: var(--text-2); flex: 1; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--stroke); background: var(--surface); transition: border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--brand-400); transform: rotate(12deg); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--stroke); align-items: center; justify-content: center; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 78% 10%, rgba(37, 64, 160, 0.18), transparent 60%),
    radial-gradient(760px 480px at 12% 82%, rgba(58, 82, 176, 0.12), transparent 60%),
    var(--bg-0);
}
:root[data-theme="light"] .hero {
  background:
    radial-gradient(1100px 600px at 82% 8%, rgba(37, 64, 160, 0.30), transparent 60%),
    radial-gradient(820px 520px at 8% 92%, rgba(58, 82, 176, 0.18), transparent 60%),
    linear-gradient(160deg, #04091c 0%, #041033 46%, #050b22 100%);
}
#particles { position: absolute; inset: 0; z-index: 0; opacity: 0.8; }
/* Fundo do herói = conceito 23 (Partículas ascendentes). Substitui as cenas cinematográficas. */
.hero-cinema { display: none !important; }
.hero-rise { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-rise svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-rise .hr { animation: heroRise 13s linear infinite; }
@keyframes heroRise { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-760px); opacity: 0; } }
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--stroke) 1px, transparent 1px),
    linear-gradient(90deg, var(--stroke) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke); backdrop-filter: blur(8px);
  font-size: 0.82rem; font-weight: 500; color: var(--text-2); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse-dot 2s infinite; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); margin-bottom: 20px; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--text-3); font-size: 0.85rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { width: 16px; height: 16px; color: var(--ok); }

/* Painel glass do hero (mock de console) */
.hero-panel {
  position: relative; border-radius: 22px; padding: 26px;
  background: var(--glass); border: 1px solid var(--stroke);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-1);
  animation: float 7s ease-in-out infinite;
}
.hero-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(142, 162, 238, 0.5), transparent 40%, rgba(108, 131, 224, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head strong { font-size: 0.9rem; display: inline-flex; gap: 8px; align-items: center; }
.panel-head .icon { width: 17px; height: 17px; color: var(--cyan-400); }
.panel-status { font-size: 0.72rem; font-weight: 600; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.panel-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.panel-rows { display: grid; gap: 12px; }
.panel-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--stroke); font-size: 0.85rem;
}
.panel-row .icon { width: 18px; height: 18px; color: var(--brand-400); }
.panel-row em { font-style: normal; margin-left: auto; font-size: 0.75rem; color: var(--ok); font-weight: 600; }
.panel-bar { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.panel-bar i { display: block; height: 100%; border-radius: 4px; background: var(--grad-brand); animation: bar-load 2.4s var(--ease) both; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  color: var(--text-3); animation: bounce-hint 2.2s infinite;
}

/* ---------- 6. Indicadores / contadores ---------- */
.stats-band { border-block: 1px solid var(--stroke); background: var(--bg-1); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 72px; padding: 52px 0; }
.stat { text-align: center; min-width: 150px; }
.stat-value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; }
.stat-label { color: var(--text-2); font-size: 0.9rem; margin-top: 4px; }

/* ---------- 7. Cards ---------- */
.card {
  position: relative; border-radius: var(--radius); padding: 30px;
  background: var(--surface); border: 1px solid var(--stroke);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, background 0.35s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(480px 200px at var(--mx, 50%) var(--my, 0%), rgba(74, 99, 192, 0.14), transparent 65%);
  transition: opacity 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(74, 99, 192, 0.45); box-shadow: var(--shadow-glow); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.93rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(140deg, rgba(37, 64, 160, 0.2), rgba(58, 82, 176, 0.14));
  border: 1px solid rgba(74, 99, 192, 0.35); color: var(--cyan-400);
  transition: transform 0.35s var(--ease);
}
:root[data-theme="light"] .card-icon { color: #3a52b0; }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.88rem; font-weight: 600; color: var(--brand-400); }
.card-link .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card:hover .card-link .icon { transform: translateX(5px); }
.card ul { display: grid; gap: 8px; margin-top: 14px; }
.card ul li { display: flex; gap: 9px; font-size: 0.88rem; color: var(--text-2); }
.card ul .icon { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }

.card--feature { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }

/* ---------- 8. Marquee de logos ---------- */
.marquee { overflow: hidden; position: relative; padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--stroke);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text-2);
  white-space: nowrap; transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.logo-chip:hover { color: var(--text-1); border-color: var(--brand-400); transform: translateY(-3px); }

/* ---------- 9. Timeline ---------- */
.timeline { position: relative; max-width: 780px; margin-inline: auto; }
/* trilho de fundo */
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: rgba(148, 163, 184, 0.16); }
/* linha com preenchimento (scroll) + cometa contínuo */
.tl-line { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; z-index: 1; }
.tl-line::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--tl, 0%); border-radius: 3px; background: linear-gradient(180deg, #2540a0, #6c83e0); box-shadow: 0 0 14px rgba(108, 131, 224, 0.6); transition: height 0.25s linear; }
.tl-comet {
  position: absolute; left: 50%; margin-left: -6px; top: -2%; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #eef2ff 0%, #6c83e0 55%, rgba(108, 131, 224, 0) 72%);
  box-shadow: 0 0 18px 5px rgba(108, 131, 224, 0.65);
  animation: tl-comet 5s ease-in-out infinite; z-index: 2;
}
@keyframes tl-comet { 0% { top: -2%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.tl-item { position: relative; padding: 0 0 22px 64px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 7px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-1); border: 2px solid var(--brand-400); display: grid; place-items: center; z-index: 3;
}
.tl-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-brand); }
/* card de vidro com conector para o ponto */
.tl-card {
  position: relative; border-radius: 16px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--stroke); backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.tl-card::before {
  content: ""; position: absolute; left: -7px; top: 16px; width: 13px; height: 13px; transform: rotate(45deg);
  background: var(--surface); border-left: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke);
}
.tl-card:hover { transform: translateX(7px); border-color: rgba(74, 99, 192, 0.5); box-shadow: var(--shadow-glow); background: var(--surface-2); }
.tl-year { display: inline-block; font-family: var(--font-display); font-weight: 700; color: var(--cyan-400); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
:root[data-theme="light"] .tl-year { color: #3a52b0; }
.tl-item h3 { font-size: 1.14rem; margin: 0 0 8px; }
.tl-item p { color: var(--text-2); font-size: 0.94rem; }

/* ---------- 10. Mapa do Brasil ---------- */
.map-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.br-map { width: 100%; max-width: 470px; margin-inline: auto; overflow: visible; }
.br-map .land { fill: var(--surface-2); stroke: var(--stroke-strong); stroke-width: 1.2; }
.br-map .city-dot { fill: var(--cyan-400); }
.br-map .city-pulse { fill: none; stroke: var(--cyan-400); stroke-width: 1.5; opacity: 0; transform-origin: center; animation: map-pulse 2.6s ease-out infinite; }
.br-map .city-label { font-family: var(--font-sans); font-size: 8.5px; font-weight: 600; fill: var(--text-1); }
.br-map .city-line { stroke: var(--stroke-strong); stroke-width: 0.8; stroke-dasharray: 2 3; }
.map-list { display: grid; gap: 14px; margin-top: 26px; }
.map-list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--stroke); transition: border-color 0.25s, transform 0.25s;
}
.map-list li:hover { border-color: var(--brand-400); transform: translateX(6px); }
.map-list .icon { color: var(--cyan-400); }
:root[data-theme="light"] .map-list .icon { color: #3a52b0; }
.map-list strong { font-size: 0.95rem; }
.map-list span { display: block; font-size: 0.82rem; color: var(--text-2); }

/* ---------- 11. Depoimentos ---------- */
.quote-card { display: flex; flex-direction: column; gap: 18px; }
.quote-card .quote-mark { width: 34px; height: 34px; color: var(--brand-400); opacity: 0.7; }
.quote-card blockquote { font-size: 0.98rem; color: var(--text-1); line-height: 1.65; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-family: var(--font-display); font-size: 0.95rem;
}
.quote-author strong { display: block; font-size: 0.92rem; }
.quote-author span { font-size: 0.8rem; color: var(--text-2); }

/* ---------- 12. Cases ---------- */
.case-card { display: flex; flex-direction: column; gap: 16px; padding: 34px; }
.case-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(37, 64, 160, 0.16);
  border: 1px solid rgba(74, 99, 192, 0.35); color: var(--brand-400);
}
.case-card h3 { font-size: 1.3rem; }
.case-metrics { display: flex; gap: 26px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--stroke); }
.case-metrics strong { font-family: var(--font-display); font-size: 1.45rem; display: block; }
.case-metrics span { font-size: 0.78rem; color: var(--text-2); }

/* ---------- 13. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(40px, 6vw, 72px); text-align: center;
  background: linear-gradient(140deg, rgba(37, 64, 160, 0.22), rgba(58, 82, 176, 0.12)), var(--bg-2);
  border: 1px solid rgba(74, 99, 192, 0.3);
}
.cta-band::before {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 70%, rgba(108, 131, 224, 0.14), transparent 85%);
  animation: spin 14s linear infinite;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-2); max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- 14. Página interna: hero compacto ---------- */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 64px; position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 80% 0%, rgba(37, 64, 160, 0.16), transparent 60%),
    var(--bg-0);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 16px; max-width: 780px; }
.page-hero p { color: var(--text-2); font-size: 1.08rem; max-width: 640px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--text-3); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--text-1); }
.breadcrumbs .icon { width: 13px; height: 13px; }

/* Service detail blocks */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--stroke); }
.service-block:first-of-type { border-top: 0; }
.service-block.reverse .service-copy { order: 2; }
.service-media {
  position: relative; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--stroke);
  padding: 42px 30px 30px; backdrop-filter: blur(10px);
  background:
    radial-gradient(680px 320px at 82% -12%, rgba(37, 64, 160, 0.20), transparent 62%),
    linear-gradient(160deg, rgba(37, 64, 160, 0.10), var(--surface));
  box-shadow: 0 30px 66px rgba(2, 6, 16, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-media:hover { transform: translateY(-5px); box-shadow: 0 40px 80px rgba(2, 6, 16, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.service-media::before {
  content: ""; position: absolute; top: 16px; left: 20px; z-index: 3;
  width: 9px; height: 9px; border-radius: 50%; background: #e5643f;
  box-shadow: 15px 0 0 #eac25a, 30px 0 0 #4a63c0;
}
.service-media::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 22%, transparent 82%);
  mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 22%, transparent 82%);
}
.service-media svg { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 3px 14px rgba(37, 64, 160, 0.30)); }
:root[data-theme="light"] .service-media { box-shadow: 0 24px 50px rgba(2, 6, 16, 0.14); }
:root[data-theme="light"] .service-media svg { filter: drop-shadow(0 3px 10px rgba(37, 64, 160, 0.18)); }
.service-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.service-copy > p { color: var(--text-2); margin-bottom: 20px; }
.feature-list { display: grid; gap: 12px; margin-bottom: 26px; }
.feature-list li { display: flex; gap: 11px; color: var(--text-2); font-size: 0.95rem; }
.feature-list .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 4px; }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--bg-1); border-top: 1px solid var(--stroke); padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-family: var(--font-sans); }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); font-size: 0.9rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--cyan-400); }
.footer-about p { color: var(--text-2); font-size: 0.9rem; margin: 16px 0 20px; max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--stroke); background: var(--surface); color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.socials a:hover { color: var(--cyan-400); border-color: var(--brand-400); transform: translateY(-3px); }
.socials .icon { width: 17px; height: 17px; }
.footer-contact li { display: flex; gap: 10px; color: var(--text-2); font-size: 0.88rem; align-items: flex-start; }
.footer-contact .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--cyan-400); }
.footer-bottom {
  border-top: 1px solid var(--stroke); padding-top: 26px; display: flex; gap: 16px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  color: var(--text-3); font-size: 0.82rem;
}

/* ---------- 16. FAB WhatsApp + modal agendar ---------- */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center;
  padding: 0; text-decoration: none; font-weight: 700; letter-spacing: -0.01em;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.03); }
.whatsapp-fab .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; flex: none; }
.whatsapp-fab-text { display: none; }
.whatsapp-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); animation: pulse-ring 2.4s infinite;
}

.modal-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(2, 6, 16, 0.7);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: min(520px, 100%); border-radius: 22px; padding: 34px;
  background: var(--glass-strong); border: 1px solid var(--stroke);
  backdrop-filter: blur(20px); box-shadow: var(--shadow-1);
  transform: translateY(16px) scale(0.98); transition: transform 0.3s var(--ease);
}
.modal-backdrop.open .modal { transform: none; }
.modal h3 { font-size: 1.35rem; margin-bottom: 8px; }
.modal > p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 24px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--stroke); }
.modal { position: relative; }
.meet-options { display: grid; gap: 12px; }
.meet-option {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--stroke);
  transition: border-color 0.25s, transform 0.25s;
}
.meet-option:hover { border-color: var(--brand-400); transform: translateX(6px); }
.meet-option .opt-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.meet-option .opt-icon .icon { width: 22px; height: 22px; }
.meet-option strong { display: block; font-size: 0.95rem; }
.meet-option span { font-size: 0.8rem; color: var(--text-2); }
.meet-option > .icon { margin-left: auto; width: 18px; height: 18px; color: var(--text-3); }

/* ---------- 17. Formulários ---------- */
.form-shell { border-radius: 22px; padding: clamp(26px, 4vw, 44px); background: var(--surface); border: 1px solid var(--stroke); backdrop-filter: blur(12px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 13px 16px; border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--stroke); color: var(--text-1); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(74, 99, 192, 0.2);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 0.75rem; color: var(--text-3); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #f87171; }
.field .error-msg { display: none; font-size: 0.76rem; color: #f87171; }
.field.invalid .error-msg { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--stroke);
  background: var(--surface); font-size: 0.85rem; font-weight: 500; color: var(--text-2);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--brand-400); color: var(--text-1); }
.chip.active { background: var(--grad-brand); border-color: transparent; color: #fff; }
.form-note { font-size: 0.78rem; color: var(--text-3); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success .icon { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 18px; }
.form-shell.sent form { display: none; }
.form-shell.sent .form-success { display: block; }

/* Mapa google */
.gmap { border-radius: 20px; overflow: hidden; border: 1px solid var(--stroke); filter: saturate(0.85); }
:root:not([data-theme="light"]) .gmap { filter: invert(0.9) hue-rotate(185deg) saturate(0.7) brightness(0.9); }
.gmap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- 18. Blog ---------- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-cover { height: 180px; position: relative; background: linear-gradient(140deg, rgba(37, 64, 160, 0.35), rgba(58, 82, 176, 0.2)); display: grid; place-items: center; }
.post-cover .icon { width: 44px; height: 44px; color: rgba(255, 255, 255, 0.85); }
.post-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-3); }
.post-body h3 { font-size: 1.12rem; }
.post-body p { flex: 1; }

/* Vagas */
.job-row {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--stroke);
  transition: border-color 0.25s, transform 0.25s;
}
.job-row:hover { border-color: var(--brand-400); transform: translateX(6px); }
.job-row .icon { color: var(--cyan-400); }
.job-row strong { display: block; }
.job-row span { font-size: 0.82rem; color: var(--text-2); }
.job-row .btn { margin-left: auto; }

/* ---------- 19. Animações ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bar-load { from { width: 0; } }
@keyframes bounce-hint { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes map-pulse { 0% { opacity: 0.9; r: 4; } 100% { opacity: 0; r: 16; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ---------- 20. Responsivo ---------- */
@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mega { grid-template-columns: 1fr 1fr; }
  .mega-feature { grid-row: auto; grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Menu recolhe para hambúrguer quando não há largura para a navegação completa */
@media (max-width: 1500px) {
  .nav-burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); background: var(--bg-0);
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    padding: 24px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; display: none; z-index: 99;
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { justify-content: space-between; padding: 15px 12px; font-size: 1.05rem; border-radius: 12px; }
  .has-mega { position: relative; }
  .mega {
    position: static; transform: none; width: 100%; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 8px 12px; grid-template-columns: 1fr; gap: 18px;
    display: none; opacity: 1; visibility: visible; pointer-events: auto;
  }
  .has-mega.open .mega { display: grid; transform: none; }
  .has-mega:hover:not(.open) .mega { display: none; }
  .mega-feature { display: none; }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-25 { transform: none; }
  .hero-panel { max-width: 520px; }
  .map-wrap, .service-block, .card--feature { grid-template-columns: 1fr; }
  .service-block.reverse .service-copy { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

/* CTAs saem do header e entram no menu quando o espaco aperta */
@media (max-width: 1020px) {
  .header-cta { display: none; }
  .nav-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--stroke); }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 15px 20px; font-size: 1.02rem; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .case-metrics { flex-wrap: wrap; gap: 16px; }
  .container { width: calc(100% - 36px); }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-fab { right: 12px; bottom: 14px; width: 52px; height: 52px; padding: 0; }
  .whatsapp-fab .icon { width: 24px; height: 24px; }
}

/* ==========================================================================
   21. Adições v2 · logo oficial, selo 25 anos, logos reais de parceiros,
       jornada do portfólio, frameworks
   ========================================================================== */

/* Logo oficial (emblema PNG num chip branco para destacar em qualquer fundo) */
/* Emblema (oval) · sem caixa, direto no fundo escuro */
.logo-emblem {
  height: 56px; width: auto; display: block; flex: none;
  filter: drop-shadow(0 3px 11px rgba(0, 0, 0, 0.4));
}
.logo-word {
  font-family: var(--font-sans); font-weight: 700; font-size: 1.12rem;
  line-height: 1; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-1); white-space: nowrap;
}
/* Badge 25 anos · destaque ao lado do nome */
.logo-25 {
  height: 38px; width: auto; display: block; flex: none;
  margin-left: 2px; padding-left: 11px; border-left: 1px solid var(--stroke);
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.45));
}
.site-footer .logo-25 { height: 34px; }

/* Arte de 25 anos como protagonista do hero */
.hero-visual { display: grid; place-items: center; position: relative; min-height: 360px; }
.hero-25 { position: relative; display: grid; place-items: center; text-align: center; transform: translateY(-142px); }
.hero-25::before {
  content: ""; position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  width: 88%; aspect-ratio: 1; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(214, 178, 92, 0.30), rgba(37, 64, 160, 0.16) 46%, transparent 70%);
  filter: blur(14px);
  animation: pulse-glow 6s ease-in-out infinite;
}
.hero-25 img {
  position: relative; z-index: 1;
  width: clamp(108px, 12vw, 158px); height: auto; display: block;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.5));
  animation: seal-spin-in 1.1s var(--ease) both, float 8s ease-in-out infinite 1s;
}
.hero-25-title {
  position: relative; z-index: 1; margin: 20px 0 0; max-width: 360px;
  font-family: var(--font-display); font-weight: 700; line-height: 1.28;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #f4f7ff; font-size: clamp(1rem, 1.7vw, 1.4rem);
  text-shadow: 0 2px 14px rgba(2, 6, 16, 0.55);
}
.hero-25-title b { color: #eac25a; font-weight: 700; }
.hero-25-years {
  position: relative; z-index: 1; margin-top: 16px; padding: 0 18px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em;
  color: #eac25a; font-size: clamp(1rem, 1.5vw, 1.25rem);
}
.hero-25-years .dash { opacity: 0.85; }
.hero-25-years::before, .hero-25-years::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #eac25a);
}
.hero-25-years::after { transform: scaleX(-1); }
/* selo/tema claro: o hero mantém fundo escuro, então o dourado segue legível */
@keyframes seal-spin-in { from { opacity: 0; transform: scale(0.82) translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
.hero-seal-inline { display: inline-flex; align-items: center; gap: 12px; }

/* Marquee com logos reais (chips brancos) */
.logo-chip--img {
  background: #fff; padding: 14px 24px; min-width: 150px; justify-content: center;
}
.logo-chip--img img { height: 30px; width: auto; max-width: 130px; object-fit: contain; display: block; }

/* Grid de parceiros com logos reais */
.partner-cat { margin-bottom: 40px; }
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partner-chip {
  background: #fff; border-radius: 14px; height: 96px; display: grid; place-items: center;
  padding: 16px; border: 1px solid rgba(15,23,42,.1);
  transition: transform .28s var(--ease), box-shadow .28s;
}
.partner-chip:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); }
.partner-chip img { max-height: 48px; max-width: 84%; width: auto; object-fit: contain; display: block; }

/* Jornada do portfólio (steps escalonados) */
.journey { display: grid; gap: 14px; counter-reset: step; }
.journey-item {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.journey-item:hover { transform: translateX(10px); border-color: var(--brand-400); background: var(--surface-2); }
.journey-item[data-focus] { border-color: rgba(74,99,192,.5); box-shadow: var(--shadow-glow); background: linear-gradient(120deg, rgba(37,64,160,.14), rgba(58,82,176,.07)); }
.journey-num {
  counter-increment: step; width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  background: var(--grad-brand); color: #fff; font-size: 1.05rem;
}
.journey-item[data-focus] .journey-num { box-shadow: 0 0 0 4px rgba(74,99,192,.25); }
.journey-ico {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(37, 64, 160, 0.95), rgba(58, 82, 176, 0.9)); color: #fff;
  transition: transform 0.3s var(--ease);
}
.journey-ico .icon { width: 23px; height: 23px; }
.journey-item:hover .journey-ico { transform: scale(1.08) rotate(-4deg); }
.journey-item[data-focus] .journey-ico { box-shadow: 0 0 0 4px rgba(74, 99, 192, 0.25); }
.journey-body { flex: 1; }
.journey-body strong { display: block; font-family: var(--font-display); font-size: 1.08rem; }
.journey-body span { font-size: .88rem; color: var(--text-2); }
.journey-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan-400); padding: 5px 11px; border-radius: 999px;
  background: rgba(108,131,224,.12); border: 1px solid rgba(108,131,224,.3); white-space: nowrap;
}
:root[data-theme="light"] .journey-tag { color: #3a52b0; }

/* Frameworks (badges) */
.frameworks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.fw-badge {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--stroke); min-width: 128px;
}
.fw-badge strong { font-family: var(--font-display); font-size: .98rem; }
.fw-badge span { font-size: .76rem; color: var(--text-2); }

/* Sub-serviços (chips de cibersegurança) */
.subservices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.subservice {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--stroke); font-size: .88rem; font-weight: 500;
}
.subservice .icon { width: 16px; height: 16px; color: var(--cyan-400); }
:root[data-theme="light"] .subservice .icon { color: #3a52b0; }

/* Grid de segmentos */
.segment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.segment {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--stroke);
  transition: transform .25s var(--ease), border-color .25s;
}
.segment:hover { transform: translateY(-4px); border-color: var(--brand-400); }
.segment .icon { width: 22px; height: 22px; color: var(--cyan-400); flex: none; }
:root[data-theme="light"] .segment .icon { color: #3a52b0; }
.segment strong { font-size: .95rem; font-weight: 600; }

@media (max-width: 1060px) {
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .segment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .segment-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 240px; }
  .hero-25 img { width: clamp(96px, 30vw, 132px); }
  .hero-25-title { font-size: 0.98rem; letter-spacing: 0.06em; }
  .hero-25-years { font-size: 0.98rem; letter-spacing: 0.18em; }
  .journey-item { flex-wrap: wrap; }
  .logo-word { font-size: 0.98rem; letter-spacing: 0.04em; }
  .logo-emblem { height: 46px; }
}

/* ==========================================================================
   22. Identidade 4SR · hero navy com swoosh, streaks de luz, clientes
   ========================================================================== */
:root { --brand-navy: #041033; --brand-navy-2: #071b4d; --brand-red: #d8482f; }

/* Hero na identidade da marca (navy + swoosh + tech) */
/* Hero sempre em navy (identidade 4SR), independente do tema */
.hero {
  background:
    radial-gradient(1100px 600px at 82% 8%, rgba(37, 64, 160, 0.30), transparent 60%),
    radial-gradient(820px 520px at 8% 92%, rgba(58, 82, 176, 0.18), transparent 60%),
    linear-gradient(160deg, #04091c 0%, var(--brand-navy) 46%, #050b22 100%);
}
.hero .hero-grid-lines { opacity: 0.35; background-image:
  linear-gradient(rgba(148,163,184,0.14) 1px, transparent 1px),
  linear-gradient(90deg, rgba(148,163,184,0.14) 1px, transparent 1px); }

/* Swoosh assinatura da 4SR */
.hero-swoosh { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-swoosh svg { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: 78%; height: 130%; opacity: 0.9; }
.hero-swoosh .sw-fill { opacity: 0.10; }
:root[data-theme="light"] .hero-swoosh .sw-fill { opacity: 0.07; }
.hero-swoosh .sw-line { fill: none; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(142, 162, 238, 0.55)); stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: sw-draw 3.2s var(--ease) 0.3s forwards; }
.hero-swoosh .sw-line.two { animation-delay: 0.7s; opacity: 0.6; }
@keyframes sw-draw { to { stroke-dashoffset: 0; } }

/* Streaks de luz (tech tunnel) */
.hero-streaks { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 30%, transparent 78%); }
.hero-streaks i {
  position: absolute; top: -30%; width: 1px; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(142, 162, 238, 0.85), transparent);
  animation: streak 5.5s linear infinite;
}
:root[data-theme="light"] .hero-streaks i { background: linear-gradient(180deg, transparent, rgba(37, 64, 160, 0.5), transparent); }
.hero-streaks i:nth-child(1){ left: 58%; animation-delay: 0s; }
.hero-streaks i:nth-child(2){ left: 66%; animation-delay: 1.1s; height: 32%; }
.hero-streaks i:nth-child(3){ left: 74%; animation-delay: 2.2s; }
.hero-streaks i:nth-child(4){ left: 82%; animation-delay: 0.6s; height: 36%; }
.hero-streaks i:nth-child(5){ left: 90%; animation-delay: 1.7s; }
.hero-streaks i:nth-child(6){ left: 50%; animation-delay: 3s; height: 30%; }
@keyframes streak { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(320%); opacity: 0; } }

/* Força texto claro no hero mesmo em tema claro (fundo navy é sempre escuro) */
.hero h1 { color: #eef4ff; }
.hero .hero-lead { color: #b8c6de; }
.hero .hero-badge { color: #c8d6ee; }
.hero .hero-trust { color: #93a4c4; }

/* Header transparente sobre o hero navy (apenas na home): texto claro no topo */
.site-header.header-on-hero:not(.is-scrolled) .nav-link { color: rgba(233, 240, 250, 0.82); }
.site-header.header-on-hero:not(.is-scrolled) .nav-link:hover,
.site-header.header-on-hero:not(.is-scrolled) .nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.12); }
.site-header.header-on-hero:not(.is-scrolled) .logo { color: #fff; }
.site-header.header-on-hero:not(.is-scrolled) .logo-word { color: #fff; }
.site-header.header-on-hero:not(.is-scrolled) .theme-toggle,
.site-header.header-on-hero:not(.is-scrolled) .nav-burger { border-color: rgba(255,255,255,0.28); color: #fff; background: rgba(255,255,255,0.06); }
.site-header.header-on-hero:not(.is-scrolled) .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }
.site-header.header-on-hero:not(.is-scrolled) .btn-soft { color: #cfe0ff; border-color: rgba(120,170,255,0.5); background: rgba(120,170,255,0.18); }
.site-header.header-on-hero:not(.is-scrolled) .btn-soft .icon { color: #7fe9ff; }
/* Menu mobile aberto: o painel usa o fundo do tema, entao os links voltam a cor normal
   (sem isso, no tema claro o texto ficava branco sobre fundo claro = invisivel) */
.site-header.header-on-hero.menu-open:not(.is-scrolled) .nav-link { color: var(--text-2); }
.site-header.header-on-hero.menu-open:not(.is-scrolled) .nav-link:hover,
.site-header.header-on-hero.menu-open:not(.is-scrolled) .nav-link[aria-current="page"] { color: var(--text-1); background: var(--surface-2); }
.site-header.header-on-hero.menu-open:not(.is-scrolled) .nav-cta .btn-ghost { color: var(--text-1); border-color: var(--stroke); background: transparent; }
.site-header.header-on-hero.menu-open:not(.is-scrolled) .nav-cta .btn-soft { color: var(--brand-500, #2540a0); border-color: var(--stroke); background: var(--surface); }
.site-header.header-on-hero.menu-open:not(.is-scrolled) .nav-cta .btn-soft .icon { color: inherit; }
/* Barra do topo enquanto o menu esta aberto: fundo solido do tema e texto/icones do tema
   (senao no tema claro o logo/toggle/burger ficavam brancos sobre fundo claro) */
.site-header.header-on-hero.menu-open:not(.is-scrolled) { background: var(--bg-0); border-bottom: 1px solid var(--stroke); transition: none; }
.site-header.header-on-hero.menu-open:not(.is-scrolled) .logo,
.site-header.header-on-hero.menu-open:not(.is-scrolled) .logo-word { color: var(--text-1); }
.site-header.header-on-hero.menu-open:not(.is-scrolled) .theme-toggle,
.site-header.header-on-hero.menu-open:not(.is-scrolled) .nav-burger { border-color: var(--stroke); color: var(--text-1); background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
  .hero-swoosh .sw-line { animation: none; stroke-dashoffset: 0; }
  .hero-streaks { display: none; }
  .hero-rise .hr { animation: none; opacity: 0.7; }
}

/* Seção de clientes (marquee menor) */
.clients-track .logo-chip--img { min-width: 148px; height: 74px; padding: 12px 22px; }
.clients-track .logo-chip--img img { max-height: 34px; height: auto; max-width: 118px; width: auto; object-fit: contain; }
.marquee--reverse .marquee-track { animation-direction: reverse; }

/* Botão vermelho da marca (usado em CTAs de destaque, como o "Saiba Mais") */
.btn-brand { background: linear-gradient(135deg, #d8482f, #b23320); color: #fff; box-shadow: 0 8px 24px rgba(216, 72, 47, 0.35); }
.btn-brand:hover { box-shadow: 0 12px 32px rgba(216, 72, 47, 0.45); }

@media (max-width: 880px) {
  .hero-swoosh svg { width: 130%; right: -30%; opacity: 0.5; }
}

/* ==========================================================================
   23. Hero cinematográfico · player de cenas (data center, gás, varejo,
       profissional de TI, dashboards) com cross-fade e Ken Burns
   ========================================================================== */
.hero-cinema { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-cinema::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, var(--brand-navy) 10%, rgba(4,16,51,0.74) 40%, rgba(4,16,51,0.30) 68%, rgba(4,16,51,0.50) 100%),
    linear-gradient(0deg, rgba(4,9,28,0.9), transparent 42%);
}
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.7s ease; will-change: opacity; }
.scene.active { opacity: 1; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .sc-kb { transform-origin: 62% 50%; }
.scene.active .sc-kb { animation: sc-kb 7s ease-out both; }
@keyframes sc-kb { from { transform: scale(1.16); } to { transform: scale(1.0); } }

/* micro-animações das cenas */
.sc-led { animation: sc-blink 2.4s infinite; }
@keyframes sc-blink { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }
.sc-flow { stroke-dasharray: 13 11; animation: sc-flow 1.3s linear infinite; }
@keyframes sc-flow { to { stroke-dashoffset: -24; } }
.sc-needle { transform-box: fill-box; transform-origin: bottom center; animation: sc-needle 3.6s ease-in-out infinite alternate; }
@keyframes sc-needle { from { transform: rotate(-40deg); } to { transform: rotate(44deg); } }
.sc-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.scene.active .sc-draw { animation: sc-draw 3.2s ease forwards; }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
.sc-rise { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0.05); }
.scene.active .sc-rise { animation: sc-rise 1.5s var(--ease) forwards; }
@keyframes sc-rise { to { transform: scaleY(1); } }
.sc-cursor { animation: sc-cursor 5s ease-in-out infinite; }
@keyframes sc-cursor { 0%,100% { transform: translate(0,0); } 45% { transform: translate(26px,-16px); } 70% { transform: translate(-10px,8px); } }
.sc-dot { animation: sc-dot 3.2s ease-in-out infinite; }
@keyframes sc-dot { 0% { opacity:0; } 20%{opacity:1;} 100% { offset-distance: 100%; opacity:0; } }
.sc-pan { animation: sc-pan 9s ease-in-out infinite alternate; }
@keyframes sc-pan { from { transform: translateX(-8px); } to { transform: translateX(8px); } }

@media (prefers-reduced-motion: reduce) {
  .scene { transition: none; }
  .scene.active .sc-kb, .scene.active .sc-draw, .scene.active .sc-rise { animation: none; }
  .sc-led, .sc-flow, .sc-needle, .sc-cursor, .sc-dot, .sc-pan { animation: none; }
  .sc-rise { transform: scaleY(1); }
  .sc-draw { stroke-dashoffset: 0; }
}
@media (max-width: 880px) {
  .hero-cinema::after { background:
    linear-gradient(90deg, var(--brand-navy) 20%, rgba(4,16,51,0.7) 60%, rgba(4,16,51,0.55) 100%),
    linear-gradient(0deg, rgba(4,9,28,0.92), transparent 46%); }
}

/* ==========================================================================
   24. Equipe · foto com tratamento profissional uniforme (duotone -> cor no hover)
   ========================================================================== */
.member { text-align: center; }
.member-photo {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px; padding: 3px;
  background: linear-gradient(135deg, #2540a0, #3a52b0);
  box-shadow: 0 10px 30px rgba(2, 6, 16, 0.4); position: relative;
}
.member-photo .ph { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative; background: var(--bg-3); }
.member-photo .ph { background: #fff; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block;
  filter: saturate(1.03) contrast(1.02);
  transition: transform 0.45s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member h3 { font-size: 1.08rem; margin-bottom: 2px; }
.member .role { color: var(--text-2); font-size: 0.9rem; }
.member .mail { display: inline-block; margin-top: 8px; font-size: 0.82rem; color: var(--brand-400); word-break: break-word; }
.member .mail:hover { text-decoration: underline; }

/* ==========================================================================
   25. Contratação sob demanda · pacote de horas e adição de licenças
   ========================================================================== */
.offer { display: flex; flex-direction: column; padding: 34px; position: relative; overflow: hidden; }
.offer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background: radial-gradient(420px 180px at 100% 0%, rgba(216, 72, 47, 0.10), transparent 60%);
}
.offer > * { position: relative; }
.offer .card-icon {
  background: linear-gradient(140deg, rgba(216, 72, 47, 0.18), rgba(37, 64, 160, 0.14));
  border-color: rgba(216, 72, 47, 0.35); color: #fb7185;
}
.offer-tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(216, 72, 47, 0.14); border: 1px solid rgba(216, 72, 47, 0.34); color: #fb7185;
}
.offer h3 { font-size: 1.3rem; margin-bottom: 8px; }
.offer > p { color: var(--text-2); margin-bottom: 18px; }
.offer .feature-list { margin-bottom: 26px; }
.offer .offer-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.offer .offer-note { margin-top: 16px; font-size: 0.8rem; color: var(--text-3); }
.offer .offer-note a { color: var(--brand-400); }
.offer .offer-note a:hover { text-decoration: underline; }

/* Tela de compra de horas */
.hours-field { margin-bottom: 20px; }
.hours-field > label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.stepper { display: flex; align-items: center; gap: 16px; }
.stepper button {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface);
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1; color: var(--text-1);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.stepper button:hover { border-color: var(--brand-400); }
.stepper button:active { transform: scale(0.94); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper .stepper-value { min-width: 118px; text-align: center; }
.stepper .stepper-value strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stepper .stepper-value span { font-size: 0.78rem; color: var(--text-3); }
.hours-presets { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hours-preset { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); font-size: 0.82rem; color: var(--text-2); transition: all 0.2s; }
.hours-preset:hover { border-color: var(--brand-400); color: var(--text-1); }
.hours-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 14px; margin: 4px 0 20px;
  background: var(--surface); border: 1px solid var(--stroke); font-size: 0.92rem;
}
.hours-summary strong { color: var(--text-1); }
.hours-summary .badge { font-family: var(--font-display); font-weight: 700; color: var(--cyan-400); }
:root[data-theme="light"] .hours-summary .badge { color: #3a52b0; }

/* ==========================================================================
   26. Timeline animada · linha que preenche no scroll + itens em sequência
   ========================================================================== */
/* revelação dos cards em sequência + brilho do ponto */
.tl-item { opacity: 0; transform: translateX(30px) scale(0.985); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.tl-item.tl-in { opacity: 1; transform: none; }
.tl-dot { transform: scale(0.4); transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.tl-item.tl-in .tl-dot { transform: scale(1); border-color: var(--cyan-400); box-shadow: 0 0 0 5px rgba(108, 131, 224, 0.12), 0 0 18px rgba(108, 131, 224, 0.6); }
.tl-dot::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--cyan-400); opacity: 0; pointer-events: none; }
.tl-item.tl-in .tl-dot::before { animation: tl-ring 1.2s ease-out; }
.tl-item.tl-in .tl-dot::after { animation: tl-dotpop 0.55s var(--ease); }
@keyframes tl-ring { 0% { opacity: 0.85; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes tl-dotpop { 0% { transform: scale(0); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .tl-item { opacity: 1; transform: none; }
  .tl-dot { transform: scale(1); }
  .tl-comet { animation: none; opacity: 0; }
  .tl-line::before { height: 100% !important; }
}

/* ==========================================================================
   27. Cabeçalho responsivo · cabe em telas menores; menu recolhe antes
   ========================================================================== */
.site-header .header-inner { width: min(1560px, 100% - 44px); }
.nav-list { gap: 2px; }
.nav-link { padding: 9px 9px; font-size: 0.875rem; }
.header-cta { padding: 11px 15px; }
.header-cta .icon { width: 17px; height: 17px; }

/* Clientes agrupados por indústria */
.client-cat { margin-bottom: 34px; }
.client-cat-label { display: block; text-align: center; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-400); margin-bottom: 18px; }
:root[data-theme="light"] .client-cat-label { color: #3a52b0; }

/* ===== Blog: filtro por público + selo de audiência ===== */
.blog-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 34px; }
.blog-search { position: relative; flex: 1 1 300px; min-width: 220px; max-width: 460px; }
.blog-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.blog-search input { width: 100%; padding: 12px 16px 12px 42px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--bg-1); color: var(--text-1); font: inherit; }
.blog-search input::placeholder { color: var(--text-3); }
.blog-search input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(74, 99, 192, 0.2); }
.blog-select { padding: 12px 40px 12px 16px; border-radius: 12px; border: 1px solid var(--stroke); background-color: var(--bg-1); color: var(--text-1); font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c83e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; }
.blog-select:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(74, 99, 192, 0.2); }
.blog-filter .chips { margin-left: auto; gap: 8px; }
.blog-empty { text-align: center; color: var(--text-2); padding: 20px 0 8px; font-size: 1.02rem; }
.blog-topic { padding-top: 6px; }
.blog-topic + .blog-topic { margin-top: 8px; }
.blog-topic .topic-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.blog-topic .topic-head .icon { width: 22px; height: 22px; color: var(--cyan-400); flex: none; }
.blog-topic .topic-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.blog-topic .topic-head span { color: var(--text-3); font-size: 0.9rem; }
.post-meta .post-aud { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.post-aud.aud-exec { color: var(--cyan-400); background: rgba(37, 64, 160, 0.18); border: 1px solid rgba(74, 99, 192, 0.42); }
.post-aud.aud-tech { color: #b9c4d4; background: rgba(148, 163, 184, 0.14); border: 1px solid rgba(148, 163, 184, 0.32); }
:root[data-theme="light"] .post-aud.aud-tech { color: #475569; }
:root[data-theme="light"] .post-aud.aud-exec { color: #2540a0; }

/* ===== Carrossel de cases (auto-rotativo) ===== */
.cases-carousel { position: relative; margin-top: 10px; }
.cases-viewport { overflow: hidden; }
.cases-track { display: flex; transition: transform .7s var(--ease); will-change: transform; }
.cases-slide { min-width: 100%; box-sizing: border-box; padding: 6px 2px; }
.cases-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.cases-dot { width: 10px; height: 10px; border-radius: 999px; border: 0; cursor: pointer; background: var(--stroke); transition: width .3s var(--ease), background .3s var(--ease); padding: 0; }
.cases-dot.is-active { background: var(--brand-500); width: 30px; }
.cases-dot:hover { background: var(--brand-400); }
/* ===== Banner de cookies / consentimento (LGPD) ===== */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 16px;
  background: var(--bg-1); border: 1px solid var(--stroke);
  box-shadow: 0 18px 50px rgba(2, 6, 16, 0.42);
  transform: translateY(160%); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cookie-bar.show { transform: translateY(0); opacity: 1; }
.cookie-text { flex: 1 1 320px; font-size: .9rem; color: var(--text-2); line-height: 1.5; margin: 0; }
.cookie-text a { color: var(--brand-400); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { padding: 10px 22px; }
@media (max-width: 560px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
/* ===================== Landings de serviço (acento configurável) ===================== */
.lp-hr { --lp-accent: #e5482f; --lp-accent-rgb: 229,72,47; --lp-accent-2: #f0a83e; }   /* Risco Humano: vermelho */
.lp-as { --lp-accent: #e0a83e; --lp-accent-rgb: 224,168,62; --lp-accent-2: #eac25a; }   /* Assessment: dourado */

.lp-hero { position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 clamp(64px, 9vh, 110px);
  background:
    radial-gradient(1200px 620px at 72% -10%, rgba(var(--lp-accent-rgb),0.20), transparent 60%),
    linear-gradient(180deg, #0b0e20 0%, #0a0b1a 58%, #0b1026 100%); }
.lp-hero-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 300px at 12% 95%, rgba(var(--lp-accent-rgb),0.12), transparent 70%); }
.lp-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.lp-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--lp-accent-2);
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-accent); box-shadow: 0 0 0 4px rgba(var(--lp-accent-rgb),0.25); animation: pulse-glow 2s ease-in-out infinite; }
.lp-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 20px; color: #fff; }
.lp-danger { color: var(--lp-accent); }
.lp-lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: rgba(244,247,255,0.86); max-width: 720px; line-height: 1.6; margin: 0; }
.lp-lead strong { color: #fff; }
.lp-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.lp-hero-note { margin-top: 22px; font-size: 0.9rem; color: rgba(244,247,255,0.66); }

:root[data-theme="light"] .lp-hero {
  background:
    radial-gradient(1200px 620px at 72% -10%, rgba(var(--lp-accent-rgb),0.22), transparent 60%),
    linear-gradient(180deg, #0b0e20 0%, #0a0b1a 58%, #0b1026 100%);
}
:root[data-theme="light"] .lp-h1,
:root[data-theme="light"] .lp-lead strong {
  color: #fff;
}
:root[data-theme="light"] .lp-lead {
  color: rgba(244,247,255,0.86);
}
:root[data-theme="light"] .lp-hero-note {
  color: rgba(244,247,255,0.66);
}

.lp-kicker-red { color: var(--lp-accent) !important; }
.lp-pain { border-color: rgba(var(--lp-accent-rgb),0.22); }
.lp-pain:hover { border-color: rgba(var(--lp-accent-rgb),0.5); box-shadow: 0 18px 40px rgba(var(--lp-accent-rgb),0.14); transform: translateY(-4px); }
.lp-pain-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(var(--lp-accent-rgb),0.12); border: 1px solid rgba(var(--lp-accent-rgb),0.3); color: var(--lp-accent); margin-bottom: 16px; }
.lp-pain-ico .icon { width: 24px; height: 24px; }
.lp-pain h3 { margin-bottom: 8px; }

.lp-turn { padding: clamp(70px, 10vh, 120px) 0; text-align: center; border-block: 1px solid var(--stroke);
  background: linear-gradient(160deg, #0a1740, #0a1024); }
.lp-turn-inner { max-width: 820px; margin: 0 auto; }
.lp-turn-eyebrow { color: var(--lp-accent-2); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; }
.lp-turn-h { font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 14px 0 16px; line-height: 1.22; }
.lp-turn-p { color: var(--text-2); font-size: 1.08rem; line-height: 1.6; max-width: 680px; margin: 0 auto; }
.lp-turn-big { margin-top: 30px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.1rem); color: #fff; }
.lp-gold { color: var(--lp-accent-2); }

.lp-steps { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.lp-step { display: flex; gap: 22px; align-items: flex-start; padding: 26px 28px; border-radius: 18px;
  background: var(--bg-2); border: 1px solid var(--stroke); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.lp-step:hover { border-color: rgba(var(--lp-accent-rgb),0.55); transform: translateX(6px); }
.lp-step-n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--lp-accent); flex: none; width: 52px; }
.lp-step h3 { margin-bottom: 6px; }
.lp-step p { color: var(--text-2); margin: 0; }

.lp-result { text-align: center; display: grid; gap: 6px; justify-items: center; padding: 24px 14px; }
.lp-result .icon { width: 20px; height: 20px; color: var(--cyan-400); background: rgba(37,64,160,0.16); border-radius: 12px; padding: 8px; box-sizing: content-box; margin-bottom: 8px; }
.lp-result strong { font-family: var(--font-display); font-size: 1.05rem; }
.lp-result span { color: var(--text-3); font-size: 0.9rem; }

.lp-final-card { text-align: center; max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vh, 70px) clamp(24px, 5vw, 64px); border-radius: 26px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(var(--lp-accent-rgb),0.16), transparent 60%), linear-gradient(160deg, rgba(37,64,160,0.2), var(--bg-2)); border: 1px solid var(--stroke); }
.lp-final-card h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lp-final-card p { color: var(--text-2); margin: 14px auto 26px; max-width: 520px; }
.lp-final-card .hero-ctas { justify-content: center; }
/* Carreiras: pills de areas de atuacao */
.career-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 780px; margin: 0 auto; }
.career-areas span { padding: 11px 20px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--bg-2); color: var(--text-2); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.career-areas span:hover { border-color: var(--brand-400); color: var(--text-1); transform: translateY(-3px); }

/* Cases: enfase e hover premium nos cards */
.cases-slide .case-card { transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.cases-slide .case-card:hover { transform: translateY(-8px); border-color: rgba(74,99,192,.5); box-shadow: 0 26px 60px rgba(2,6,16,.5), 0 0 0 1px rgba(74,99,192,.25); }
/* Botoes fantasma sobre heros sempre-escuros: legiveis nos dois temas */
.hero .btn-ghost, .lp-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.32); }
.hero .btn-ghost:hover, .lp-hero .btn-ghost:hover { border-color: rgba(255,255,255,0.62); background: rgba(255,255,255,0.08); box-shadow: none; }
.hero .btn-ghost .icon, .lp-hero .btn-ghost .icon { color: #fff; }
/* Mega menu: dois cards de destaque empilhados (Assessment + Risco Humano) */
.mega-features { display: flex; flex-direction: column; gap: 14px; }
.mega-features .mega-feature { flex: 1; padding: 20px; grid-row: auto; }
.mega-feature--hr { background: linear-gradient(160deg, rgba(229,72,47,0.16), rgba(240,168,62,0.08)); border-color: rgba(229,72,47,0.32); }
.mega-feature--hr:hover { border-color: rgba(229,72,47,0.5); }
/* ===== Mega menu redesenhado: spotlights + grid ===== */
.mega-spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mega-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 15px;
  padding: 16px 18px; border-radius: 15px; text-decoration: none;
  background: linear-gradient(135deg, rgba(37,64,160,0.22), rgba(58,82,176,0.06));
  border: 1px solid rgba(74,99,192,0.3);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.mega-hero::before { content: ""; position: absolute; top: -50%; left: -12%; width: 150px; height: 150px; pointer-events: none;
  background: radial-gradient(circle, rgba(74,99,192,0.4), transparent 70%); opacity: 0.55; }
.mega-hero:hover { transform: translateY(-3px); border-color: rgba(74,99,192,0.65); box-shadow: 0 16px 40px rgba(2,6,16,0.42); }
.mega-hero-ico { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: rgba(74,99,192,0.2); border: 1px solid rgba(74,99,192,0.4); color: var(--cyan-400); }
.mega-hero-ico .icon { width: 23px; height: 23px; }
.mega-hero-txt { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mega-hero-txt strong { font-family: var(--font-display); font-size: 1rem; color: var(--text-1); }
.mega-hero-txt span { font-size: 0.8rem; color: var(--text-2); line-height: 1.4; }
.mega-hero-arrow { position: relative; z-index: 1; width: 18px; height: 18px; flex: none; color: var(--cyan-400); transition: transform 0.3s var(--ease); }
.mega-hero:hover .mega-hero-arrow { transform: translateX(5px); }
/* Variante Risco Humano (vermelho) */
.mega-hero--hr { background: linear-gradient(135deg, rgba(229,72,47,0.2), rgba(240,168,62,0.05)); border-color: rgba(229,72,47,0.34); }
.mega-hero--hr::before { background: radial-gradient(circle, rgba(229,72,47,0.42), transparent 70%); }
.mega-hero--hr:hover { border-color: rgba(229,72,47,0.62); }
.mega-hero--hr .mega-hero-ico { background: rgba(229,72,47,0.16); border-color: rgba(229,72,47,0.4); color: #ef7a5a; }
.mega-hero--hr .mega-hero-arrow { color: #ef7a5a; }
:root[data-theme="light"] .mega-hero-txt strong { color: #0f172a; }

.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 4px; border-top: 1px solid var(--stroke); }
/* Sobre: hero institucional com selo lateral, sem estouro de texto */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}
.about-hero-copy {
  min-width: 0;
  max-width: 860px;
}
.about-hero-copy h1 {
  max-width: 860px;
  overflow-wrap: anywhere;
}
.about-hero-copy p {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 1.08rem;
  max-width: 720px;
}
.hero-25--inline { flex: none; margin: 0; }
.hero-25--inline img { width: clamp(112px, 13vw, 158px); }
.hero-25--inline .hero-25-title { font-size: clamp(0.78rem, 1vw, 0.95rem); margin-top: 12px; max-width: 260px; }
.hero-25--inline .hero-25-years { font-size: clamp(0.82rem, 1vw, 0.98rem); margin-top: 8px; }
.about-hero-seal {
  justify-self: center;
  padding: 22px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--stroke);
}
.page-hero .hero-25-title { color: var(--text-1); }

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-hero-seal {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .about-hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .about-hero-seal {
    width: 100%;
    box-sizing: border-box;
  }
}
/* Blindagem de contraste do formulario Bitrix24 (fica legivel independente do tema/cache) */
.b24-wrap input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.b24-wrap textarea,
.b24-wrap select {
  background-color: #0b1533 !important;
  color: #f2f5ff !important;
  -webkit-text-fill-color: #f2f5ff !important;
  caret-color: #f2f5ff !important;
}
.b24-wrap input::placeholder, .b24-wrap textarea::placeholder {
  color: #93a4c4 !important; -webkit-text-fill-color: #93a4c4 !important; opacity: 1;
}
.b24-wrap option { background-color: #0b1533; color: #f2f5ff; }
/* Esconde o botao "Debug: fill fields" do Bitrix (modo teste) por seguranca */
.b24-wrap form > span { display: none !important; }

/* Layout da pagina de contato */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: start;
}

/* Correcoes mobile finais: evita estouro lateral do header, CTAs e formulario */
@media (max-width: 640px) {
  .site-header .header-inner {
    width: calc(100% - 16px);
    gap: 8px;
    min-width: 0;
    justify-content: space-between;
    overflow: visible;
  }

  .logo {
    min-width: 0;
    gap: 8px;
    font-size: 1.05rem;
    max-width: calc(100vw - 108px);
    overflow: hidden;
    flex: 1 1 auto;
  }

  .logo-word {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-mark,
  .logo-emblem {
    width: 34px;
    height: auto;
  }

  .logo small {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .header-actions {
    gap: 5px;
    flex: none;
    margin-left: auto;
    max-width: 82px;
  }

  .header-actions .lang-switch {
    display: none !important;
  }

  .theme-toggle,
  .nav-burger {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex: 0 0 38px;
  }

  .nav {
    padding: 14px 14px calc(28px + env(safe-area-inset-bottom));
  }

  .nav-link {
    padding: 13px 10px;
    font-size: 1rem;
  }

  .mega {
    padding: 8px 0 10px;
  }

  .mega-spotlight,
  .mega-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .mega-hero,
  .mega-item {
    width: 100%;
    box-sizing: border-box;
  }

  .mega-hero-txt {
    min-width: 0;
  }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-ctas,
  .lp-hero-ctas {
    width: 100%;
  }

  .hero-ctas .btn,
  .lp-hero-ctas .btn {
    width: 100%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-shell,
  .b24-wrap,
  .b24-wrap > div,
  .b24-wrap iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

/* Mobile/tablet estreito: o seletor de idiomas no topo corta o menu.
   Mantemos tema + menu no cabeçalho e deixamos o idioma fora da área crítica. */
@media (max-width: 900px) {
  .header-actions .lang-switch {
    display: none !important;
  }

  .site-header .header-inner {
    width: calc(100% - 16px);
    max-width: 100%;
    overflow: visible;
  }

  .header-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .nav-burger {
    flex: 0 0 40px;
  }
}

@media (max-width: 380px) {
  .logo-word {
    display: none;
  }
}

/* Blindagem final do botão flutuante: somente ícone, sem texto visual */
@media (max-width: 640px) {
  .whatsapp-fab {
    display: grid !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    overflow: visible !important;
  }

  .whatsapp-fab-text {
    display: none !important;
  }
}

/* Correção de compatibilidade: mantém os carrosséis de marcas em movimento no Windows/Edge/Chrome */
.marquee-track {
  min-width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .marquee .marquee-track {
    animation: marquee 42s linear infinite !important;
    animation-iteration-count: infinite !important;
  }
  .marquee:hover .marquee-track {
    animation-play-state: paused !important;
  }
}
