/* Página de serviços. Depende de tokens.css e site.css. */

/* ---------- Temas por seção ----------
   Sem JS, cada seção tem o próprio fundo. Com JS (body.js-fundo), as seções ficam transparentes
   e uma camada fixa (.sv-fundo) troca de cor suavemente conforme a rolagem. */
/* temas de cor por seção: ver site.css */
.pg-servicos main > section { background: var(--bg); color: var(--fg); position: relative; }
.pg-servicos.js-fundo main > section { background: transparent; }
.sv-fundo { position: fixed; inset: 0; z-index: -1; background: var(--roxo); }
.pg-servicos { background: transparent; }
.pg-servicos .kicker { color: var(--destaque); }
.pg-servicos [data-tema="claro"] .kicker, .pg-servicos [data-tema="verde"] .kicker { color: var(--roxo); }

/* ---------- Abertura: "A gente [verbo]" ---------- */
.sv-abertura { min-height: 100vh; min-height: 100svh; display: grid; overflow: hidden; isolation: isolate; }
.sv-abertura__fundo { position: absolute; inset: 0; z-index: -1; }
.sv-abertura__fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.sv-abertura__fundo img:first-child { opacity: 1; }
/* véu roxo: a marca na frente, o vídeo como textura */
.sv-abertura__fundo::after { content: ""; position: absolute; inset: 0; z-index: 5; background: linear-gradient(100deg, rgb(var(--roxo-rgb) / .96) 0%, rgb(var(--roxo-rgb) / .86) 45%, rgb(var(--roxo-rgb) / .55) 100%); }
.sv-abertura__conteudo { align-self: center; padding-block: clamp(7rem, 16vh, 10rem) clamp(4rem, 10vh, 7rem); }
.sv-abertura__titulo { font-size: clamp(3rem, 0.8rem + 8.4vw, 9.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.sv-abertura__fixo { display: block; }
.rotor { display: grid; height: 1.08em; overflow: hidden; color: var(--verde); }
.rotor__palavra { grid-area: 1 / 1; display: block; }
.rotor__palavra:not(:first-child) { visibility: hidden; } /* sem JS: fica a primeira */
.sv-abertura__sub { margin-top: clamp(1.4rem, 3vw, 2.4rem); max-width: 34rem; font-size: var(--t-3); font-weight: 500; line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Trilho auxiliar: em que serviço estou (aparece só nos serviços) ---------- */
.trilho-sv {
  position: fixed; right: clamp(.8rem, 1.6vw, 1.6rem); top: 50%; translate: 0 -50%; z-index: var(--z-trilho);
  display: grid; gap: .55rem; padding: .7rem .55rem; border-radius: var(--pilula);
  background: rgb(var(--noite-rgb) / .78); backdrop-filter: blur(10px); box-shadow: var(--sombra-cartao);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-lenta) var(--ease), translate var(--dur-lenta) var(--ease);
}
.trilho-sv.is-visivel { opacity: 1; pointer-events: auto; }
.trilho-sv__linha { position: absolute; left: 50%; top: 1.2rem; bottom: 1.2rem; width: 2px; translate: -50% 0; background: rgb(var(--branco-rgb) / .18); }
.trilho-sv__linha i { position: absolute; inset: 0; background: var(--verde); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.trilho-sv a { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; text-decoration: none; color: rgb(var(--branco-rgb) / .7); background: var(--noite); font: 700 var(--t-rotulo)/1 var(--f-titulo); transition: background-color var(--dur), color var(--dur), transform var(--dur) var(--ease); }
.trilho-sv a span {
  position: absolute; right: calc(100% + .7rem); top: 50%; translate: 8px -50%; white-space: nowrap;
  padding: .55em .9em; border-radius: var(--pilula); background: var(--noite); color: var(--branco); font: 600 var(--t-rotulo)/1 var(--f-titulo);
  opacity: 0; pointer-events: none; transition: opacity var(--dur), translate var(--dur) var(--ease);
}
.trilho-sv a.is-ativo { background: var(--verde); color: var(--roxo); transform: scale(1.12); }
.trilho-sv a.is-ativo span, .trilho-sv a:hover span { opacity: 1; translate: 0 -50%; }
.trilho-sv a:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }

/* ---------- Serviço ---------- */
.sv { padding-top: var(--secao); overflow: clip; }
.sv__grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.sv__texto { position: sticky; top: 16vh; display: grid; gap: 1.1rem; justify-items: start; }
.sv__num { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(3rem, 2rem + 4vw, 6.5rem); line-height: 1; color: var(--destaque); letter-spacing: -0.04em; }
.sv__titulo { font-size: clamp(2rem, 1.1rem + 2.7vw, 3.9rem); font-weight: 800; letter-spacing: -0.02em; max-width: 11ch; overflow-wrap: break-word; }
.sv__desc { font-size: var(--t-3); line-height: 1.45; max-width: 30rem; font-weight: 500; }
.sv__inclui { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.sv__inclui li { padding: .5em 1em; border-radius: var(--pilula); border: 1.5px solid var(--linha); font-weight: 700; font-size: var(--t-legenda); }
.sv__midia { display: grid; gap: clamp(1rem, 2vw, 1.6rem); padding-bottom: 4rem; }
.sv__nota { font-size: var(--t-mini); opacity: .75; }
[data-tema="claro"] .sv__titulo { color: var(--roxo); }

/* telas (vídeo com camada de interface por cima) */
.tela { margin: 0; position: relative; border-radius: var(--raio); overflow: hidden; aspect-ratio: 16 / 9; background: var(--noite); isolation: isolate; }
.tela video { width: 100%; height: 100%; object-fit: cover; }
.tela--retrato { aspect-ratio: 4 / 5; max-width: 480px; justify-self: end; width: 100%; }

/* fluxo: duas colunas de imagens que correm em velocidades diferentes com a rolagem */
.fluxo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 1.6vw, 1.4rem); align-items: start; }
.fluxo__col { display: grid; gap: clamp(.8rem, 1.6vw, 1.4rem); will-change: transform; }
.fluxo__col:nth-child(2) { margin-top: 18%; }
.fluxo img { width: 100%; height: auto; border-radius: var(--raio-p); }
.clique { margin: 0; position: relative; border-radius: var(--raio-p); overflow: hidden; }
.clique::after { content: ""; position: absolute; inset: 0; background: var(--branco); opacity: 0; pointer-events: none; }
.clique.is-flash::after { animation: flash .55s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }

/* 01, visor de câmera */
.visor__canto { position: absolute; width: 34px; height: 34px; border: 3px solid var(--verde); z-index: 1; }
.visor__canto--1 { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.visor__canto--2 { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.visor__canto--3 { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.visor__canto--4 { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.visor__rec, .visor__tc { position: absolute; top: 26px; z-index: 1; font: 700 var(--t-mini)/1 var(--f-titulo); color: var(--branco); letter-spacing: .06em; text-shadow: 0 1px 6px rgb(var(--preto-rgb) / .5); }
.visor__rec { left: 66px; display: flex; align-items: center; gap: .45rem; }
.visor__rec::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--vivo); animation: pisca 1.1s steps(2, jump-none) infinite; }
.visor__tc { right: 66px; font-variant-numeric: tabular-nums; }
@keyframes pisca { 50% { opacity: .15; } }

/* 02, ao vivo */
.live__selo { position: absolute; top: 18px; left: 18px; z-index: 1; display: flex; align-items: center; gap: .5rem; padding: .45em .9em; border-radius: var(--pilula); background: var(--verde); color: var(--roxo); font: 800 var(--t-mini)/1 var(--f-titulo); letter-spacing: .08em; }
.live__selo i { width: 9px; height: 9px; border-radius: 50%; background: var(--roxo); animation: pulsa 1.4s var(--ease) infinite; }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 rgb(var(--roxo-rgb) / .6); } 100% { box-shadow: 0 0 0 10px rgb(var(--roxo-rgb) / 0); } }
.live__publico { position: absolute; top: 18px; right: 18px; z-index: 1; padding: .45em .9em; border-radius: var(--pilula); background: rgb(var(--tinta-rgb) / .65); backdrop-filter: blur(6px); color: var(--branco); font: 600 var(--t-mini)/1 var(--f-texto); }
.live__publico b { font-variant-numeric: tabular-nums; }
.live__chat { position: absolute; left: 18px; bottom: 18px; z-index: 1; margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; justify-items: start; max-width: 70%; }
.live__chat li { background: rgb(var(--branco-rgb) / .92); color: var(--tinta); padding: .45em .8em; border-radius: 14px 14px 14px 4px; font-size: var(--t-mini); font-weight: 600; box-shadow: var(--sombra-cartao); }
.live__chat li b { color: var(--roxo); margin-right: .35em; }

/* 04, drone */
.drone__imagem { position: absolute; inset: 0; transform-origin: 50% 55%; }
.drone__imagem video { width: 100%; height: 100%; object-fit: cover; }
.drone__mira { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%; z-index: 1; border: 2px solid rgb(var(--branco-rgb) / .85); border-radius: 50%; }
.drone__mira::before, .drone__mira::after { content: ""; position: absolute; background: rgb(var(--branco-rgb) / .85); }
.drone__mira::before { left: 50%; top: -14px; bottom: -14px; width: 2px; translate: -50% 0; }
.drone__mira::after { top: 50%; left: -14px; right: -14px; height: 2px; translate: 0 -50%; }
.drone__dado { position: absolute; z-index: 1; font: 700 var(--t-mini)/1 var(--f-titulo); letter-spacing: .06em; color: var(--branco); background: rgb(var(--tinta-rgb) / .55); padding: .5em .8em; border-radius: 8px; font-variant-numeric: tabular-nums; }
.drone__dado--alt { left: 18px; bottom: 18px; background: var(--roxo); color: var(--verde); }
.drone__dado--info { left: 18px; top: 18px; }
.drone__dado--bat { right: 18px; top: 18px; }
.drone__escala { position: absolute; right: 22px; top: 25%; bottom: 25%; width: 10px; z-index: 1;
  background: repeating-linear-gradient(to bottom, rgb(var(--branco-rgb) / .8) 0 2px, transparent 2px 12px); }

/* 05, monitor + linha do tempo */
.monitor__rotulo { position: absolute; top: 16px; left: 16px; z-index: 1; font: 700 var(--t-rotulo)/1 var(--f-titulo); letter-spacing: .12em; color: var(--noite); background: var(--verde); padding: .5em .8em; border-radius: 6px; }
.linha-tempo { position: relative; border-radius: var(--raio-p); background: var(--noite-funda); padding: 2.4rem 0 1rem; overflow: hidden; display: grid; gap: .45rem; border: 1px solid rgb(var(--branco-rgb) / .08); }
.linha-tempo::before { /* agulha de reprodução, fixa no centro */
  content: ""; position: absolute; left: 50%; top: 1.6rem; bottom: 0; width: 2px; background: var(--verde); z-index: 2; box-shadow: 0 0 12px var(--verde); }
.linha-tempo__cabeca { position: absolute; left: 50%; top: .5rem; translate: -50% 0; z-index: 2; background: var(--verde); color: var(--noite); font: 700 var(--t-rotulo)/1 var(--f-titulo); padding: .35em .6em; border-radius: 5px; font-variant-numeric: tabular-nums; }
.trilha { display: flex; gap: 4px; padding-left: 50%; width: max-content; will-change: transform; }
.trilha--v1 img { height: 64px; width: auto; border-radius: 6px; border: 2px solid var(--roxo); }
.bloco { display: grid; place-items: center; height: 30px; padding: 0 2.6rem; border-radius: 6px; background: var(--roxo); color: var(--verde); font: 700 var(--t-rotulo)/1 var(--f-titulo); letter-spacing: .1em; font-style: normal; margin-right: 6rem; }
.bloco--largo { padding: 0 5rem; }
.trilha--v2 { padding-left: calc(50% + 4rem); }
.onda-audio { display: flex; align-items: center; gap: 3px; height: 34px; padding: 0 4px; border-radius: 6px; background: rgb(var(--verde-rgb) / .12); font-style: normal; }
.onda-audio b { display: block; width: 3px; border-radius: 2px; background: var(--verde); opacity: .8; } /* barras geradas em servicos.js */

/* "Próximo": faixa grande que desliza com a rolagem e leva ao serviço seguinte */
.proximo {
  display: flex; align-items: baseline; gap: 1.4rem; white-space: nowrap; text-decoration: none; color: inherit;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--linha); margin-top: clamp(2rem, 4vw, 4rem);
}
.proximo span { font-family: var(--f-titulo); font-size: var(--t-mini); font-weight: 600; letter-spacing: var(--espaco-rotulo); text-transform: uppercase; color: var(--destaque); flex-shrink: 0; }
.proximo strong { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(2.6rem, 1rem + 7vw, 8rem); letter-spacing: -0.03em; line-height: 1; will-change: transform; transition: color var(--dur); }
.proximo:hover strong { color: var(--destaque); }

/* ---------- Combinações ---------- */
.combos__grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.combo { border-radius: var(--raio); padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--nevoa); color: var(--tinta); display: grid; gap: 1rem; align-content: start; }
.combo h3 { font-size: var(--t-2); color: var(--roxo); }
.combo--roxo { background: var(--roxo); color: var(--branco); }
.combo--roxo h3 { color: var(--verde); }
.combo--verde { background: var(--verde); color: var(--roxo); }
.combo--verde h3 { color: var(--roxo); }
.combo__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.combo__tags li { font: 700 var(--t-rotulo)/1 var(--f-titulo); padding: .55em .9em; border-radius: var(--pilula); border: 1.5px solid currentColor; }
.pg-servicos .cta { color: var(--roxo); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .sv__grade { grid-template-columns: 1fr; }
  .sv__texto { position: relative; top: 0; }
  /* no celular o trilho vira uma barrinha abaixo do topo com o serviço atual */
  .trilho-sv { right: 0; left: 0; top: 58px; translate: 0 -6px; border-radius: 0; padding: .45rem var(--gutter); display: flex; gap: .4rem; box-shadow: none; }
  .trilho-sv.is-visivel { translate: 0 0; }
  .trilho-sv__linha { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 2px; translate: 0 0; }
  .trilho-sv__linha i { transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
  .trilho-sv a { display: inline-flex; align-items: center; width: auto; height: 36px; padding: 0 .6rem; border-radius: var(--pilula); background: transparent; white-space: nowrap; }
  .trilho-sv a span { display: none; }
  .trilho-sv a.is-ativo { transform: none; }
  .trilho-sv a.is-ativo span { display: inline; position: static; translate: none; opacity: 1; padding: 0 0 0 .4rem; background: none; color: inherit; font-size: var(--t-rotulo); }
  .combos__grade { grid-template-columns: 1fr; }
  .tela--retrato { justify-self: stretch; max-width: none; }
  .visor__rec { left: 58px; } .visor__tc { right: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .fluxo__col:nth-child(2) { margin-top: 0; }
}

/* ---------- Como a gente calcula ---------- */
.calculo { background: var(--nevoa); }
.calculo__sub { margin-top: 1rem; max-width: 40rem; font-size: var(--t-3); color: var(--texto-2); }
.calculo__lista { list-style: none; counter-reset: calc; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.calculo__lista li { counter-increment: calc; background: var(--branco); border-radius: var(--raio-p); padding: 1.4rem; display: grid; gap: .5rem; box-shadow: var(--sombra-linha); }
.calculo__lista li::before { content: counter(calc, decimal-leading-zero); font: 700 var(--t-mini)/1 var(--f-titulo); color: var(--texto-3); }
.calculo__lista b { font: 700 1.1rem/1.15 var(--f-titulo); color: var(--roxo); }
.calculo__lista span { color: var(--texto-2); font-size: var(--t-legenda); }
@media (max-width: 900px) { .calculo__lista { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .calculo__lista { grid-template-columns: 1fr; } }
