/* Extras compartilhados pelas 4 páginas (home, segurança, empresas, ia).
   Carregado depois do <style> de cada página. Mudança de versão: trocar o ?v= nos links. */

.nav-curto { display: none; }
/* Link IA no cabeçalho: no celular estreito, "Segurança eletrônica" encurta para "Segurança" */
.sc-header-link--ia { color: #c4a265; font-weight: 700; }
@media (max-width: 440px) {
  .nav-longo { display: none; }
  .nav-curto { display: inline; }
  .sc-header-link { font-size: 0.82rem; }
  .sc-header-nav { gap: 0.3rem; }
}

/* WhatsApp flutuante vira botão redondo só com o ícone até 1100 px: fica na margem, fora da coluna de texto */
@media (max-width: 1100px) {
  .sc-wa-fixed { width: 48px; height: 48px; min-height: 48px; padding: 0; gap: 0; right: 0.75rem; bottom: 0.75rem; }
  .sc-wa-fixed .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cut-scene--right .cut-inner { padding-right: 4.5rem; }
}

/* WhatsApp flutuante sai da frente do texto corrido no celular: some nas seções de leitura
   (o CTA em linha dessas seções assume) e volta no resto da página */
@media (max-width: 1100px) {
  .sc-wa-fixed.wa-quiet { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); }
}

/* CTA em linha ao fim das seções de leitura (mesmo desenho do CTA principal) */
.cta-fim { margin: 0 0 3rem 0; }
.cta-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 1.1rem 2.25rem; background-color: #c4a265; color: #0f1d33;
  font-family: var(--sc-font-text); font-size: 1.1rem; font-weight: 800; border-radius: 8px;
  text-decoration: none; box-shadow: 0 8px 24px rgba(196, 162, 101, 0.4);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.cta-primary:hover { background-color: #d5b679; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(196, 162, 101, 0.55); }
@media (max-width: 768px) { .cta-primary { width: 100%; text-align: center; } }

/* Empresas: seção final no mesmo fundo escuro de Segurança (sem bloco branco depois das cenas) */
.closing-section { background-color: #0f1d33; border-top: 1px solid rgba(196, 162, 101, 0.25); }
.closing-section .closing-h2 { color: #ffffff; }
.closing-section .service-list-item { border-top-color: rgba(196, 162, 101, 0.25); }
.closing-section .service-list-item:last-child { border-bottom-color: rgba(196, 162, 101, 0.25); }
.closing-section .service-summary { color: #f1f3f5; }
.closing-section .service-summary:hover { color: #c4a265; }
.closing-section .service-content { color: #a6b4c8; }
.closing-section .degrau-row { border-top-color: rgba(196, 162, 101, 0.25); }
.closing-section .degrau-row:last-child { border-bottom-color: rgba(196, 162, 101, 0.25); }
.closing-section .degrau-num { color: #c4a265; }
.closing-section .degrau-title { color: #ffffff; }

/* Cenas do Empresas e da IA: foto com deriva leve (a foto sobra 18% para a deriva não abrir fresta) */
.cut-scene-bg[data-sc-parallax] { inset: -9% 0; height: 118%; }
@media (max-width: 860px) { [data-sc-parallax] { transform: none !important; } .cut-scene-bg[data-sc-parallax] { inset: 0; height: 100%; } }

/* Vídeos tocam uma vez: o toque pausa e retoma */
video.loop-video { cursor: pointer; }

/* Rodapé: parceira em atendimento com IA */
.sc-footer-parceira a { display: inline-block; padding: 0.7rem 0.25rem; color: #c4a265; text-decoration: underline; text-underline-offset: 3px; }
.sc-footer-parceira a:hover, .sc-footer-parceira a:focus-visible { color: #ffffff; }

/* Porta para /ia/ na home: terceiro caminho, faixa na base da tela */
.ia-gate {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 15; min-height: 3.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  padding: 0.5rem 9rem 0.5rem 1.5rem; text-decoration: none;
  background: rgba(8, 17, 29, 0.94); border-top: 1px solid rgba(196, 162, 101, 0.55);
  color: #f1f3f5; font-family: var(--sc-font-text); transition: background-color 160ms ease;
}
.ia-gate:hover, .ia-gate:focus-visible { background: #0f1d33; }
.ia-gate:focus-visible { outline: 2px solid #c4a265; outline-offset: -4px; }
.ia-gate__tag { font-family: var(--sc-font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #c4a265; white-space: nowrap; }
.ia-gate__txt { font-size: 1rem; font-weight: 600; }
.ia-gate__txt::after { content: " →"; color: #c4a265; font-weight: 700; }
.split-stage .split-col--day { padding-bottom: 3.5rem; }
@media (max-width: 768px) {
  .ia-gate { justify-content: center; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.45rem 4.75rem 0.45rem 1rem; }
  .ia-gate__txt { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { .ia-gate { transition: none; } }

/* Hero e fecho da /ia/ */
.hero-content .cta-primary { margin-top: 1.75rem; }
.closing-section .fecho-text { color: #cdd6e2; }
