/* Assistec, site público.
   Paleta em dois azuis: azul-escuro (ink) de fundo e azul-claro (sky) de destaque. */

@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url('/fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap; src: url('/fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --ink: #0B2341;
  --bench: #E8EFF7;
  --paper: #F5F8FC;
  --mid: #1D5FAF;
  --sky: #7CC4F8;
  --silver: #B9C6D3;
  --muted: #4A5D78;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --text: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bench); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Cabeçalho: fica por cima da bancada escura */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; color: var(--paper); }
.top-row { display: flex; align-items: center; gap: 32px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; }
.nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: .98rem; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--sky); }

/* Botões */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; line-height: 1.2;
  padding: 15px 24px; border-radius: 3px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { padding: 10px 16px; font-size: .95rem; background: var(--sky); color: var(--ink); }
.btn-primary { background: var(--sky); color: var(--ink); }
.btn-sm:hover, .btn-primary:hover { background: var(--paper); color: var(--ink); }
.btn-ghost { border-color: rgba(245, 248, 252, .55); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* Bancada 3D: o canvas fica preso na tela enquanto os textos rolam por cima */
.stage { position: relative; background: var(--ink); color: var(--paper); }
.stage-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 68% 48%, rgba(29, 95, 175, .38), transparent 70%),
    var(--ink);
}
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease-out; }
.has-3d .stage-canvas { opacity: 1; }
.has-3d .stage-fallback { display: none; }
.stage-content { position: relative; margin-top: -100vh; margin-top: -100svh; }

.panel { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 96px 48px; }
.copy { max-width: 33rem; }
.panel-hero h1 {
  font-family: var(--display); font-weight: 900; font-size: clamp(3.6rem, 7.4vw, 7rem);
  line-height: .86; letter-spacing: -.005em; text-wrap: balance;
}
.lead { margin-top: 28px; max-width: 31em; font-size: 1.18rem; color: rgba(245, 248, 252, .8); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hours { margin-top: 28px; font-weight: 500; color: rgba(245, 248, 252, .8); }
.panel-hero { position: relative; }
.scroll-hint { position: absolute; left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); bottom: 34px; font-size: .92rem; color: rgba(245, 248, 252, .6); padding-left: 22px; }
.scroll-hint::before { content: ''; position: absolute; left: 4px; top: 50%; width: 2px; height: 22px; margin-top: -11px; background: var(--sky); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
/* em janelas baixas a dica de rolagem encostaria no horário: some */
@media (max-height: 760px) { .scroll-hint { display: none; } }
@keyframes hint { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 5.6vw, 5.2rem); line-height: .92; color: var(--paper); }
.card p { margin-top: 18px; font-size: 1.15rem; color: rgba(245, 248, 252, .8); max-width: 30em; }
.services-anchor { height: 0; }

/* Rótulos presos às peças (posição definida pelo script) */
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; height: 0; display: flex; align-items: center; opacity: 0; will-change: transform, opacity; }
.tag i { position: relative; flex: none; width: 12px; height: 12px; margin-left: -6px; margin-right: 40px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 5px rgba(124, 196, 248, .25); }
.tag i::after { content: ''; position: absolute; left: 14px; top: 5px; width: 26px; height: 2px; background: var(--sky); }
.tag.flip { flex-direction: row-reverse; }
.tag.flip i { margin-left: 40px; margin-right: -6px; }
.tag.flip i::after { left: auto; right: 14px; }
.tag b { font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--paper); background: rgba(11, 35, 65, .82); padding: 4px 10px; border-radius: 3px; border: 1px solid rgba(124, 196, 248, .45); }

/* Reserva sem WebGL: o desenho da placa */
.stage-fallback { position: absolute; top: 84px; right: 0; bottom: 0; width: 52%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%); mask-image: linear-gradient(to right, transparent 0, #000 18%); }
.board { position: absolute; inset: 0; width: 100%; height: 100%; }
.board .tr { fill: none; stroke: rgba(185, 198, 211, .45); stroke-width: 1.5; stroke-linejoin: round; }
.board .chip { fill: none; stroke: rgba(185, 198, 211, .45); stroke-width: 1.5; }
.board .ball, .board .mark { fill: rgba(185, 198, 211, .45); }
.board .gold { fill: none; stroke: var(--sky); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--draw) cubic-bezier(.55, 0, .3, 1) var(--start) forwards; }
.board .pad { opacity: 0; animation: pad-in .45s ease-out var(--t) forwards; transform-box: fill-box; transform-origin: center; }
.board .pad-ring { fill: var(--ink); stroke: var(--sky); stroke-width: 3; }
.board .pad-dot { fill: var(--sky); }
.board text { font-family: var(--text); font-weight: 600; font-size: 15px; fill: var(--paper); paint-order: stroke; stroke: var(--ink); stroke-width: 6px; stroke-linejoin: round; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pad-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board .gold { animation: none; stroke-dashoffset: 0; }
  .board .pad { animation: none; opacity: 1; }
  .scroll-hint::before { animation: none; }
  .stage-canvas { transition: none; }
}

/* Seções */
section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 5.4vw, 4.8rem); line-height: .95; text-wrap: balance; }
section h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.3; }

.more { background: var(--paper); padding-block: clamp(72px, 9vw, 120px); }
.more-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.more-item { position: relative; padding-top: 21px; }
.more-item::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sky); transform-origin: left; transform: scaleX(var(--line, 1)); }
.more-item p { margin-top: 8px; color: var(--muted); }

.work { padding-block: clamp(72px, 10vw, 130px); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 36px 28px; margin-top: 48px; }
.shot { margin: 0; }
.shot button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.shot button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--silver); border-radius: 2px; }
.shot figcaption { margin-top: 12px; }
.shot strong { display: block; font-weight: 600; }
.shot span { display: block; color: var(--muted); font-size: .95rem; }

/* Como funciona: sequência real, então numerada */
.how { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(72px, 10vw, 130px); }
.how > .wrap { position: relative; z-index: 1; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 72px; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 3px; background: rgba(124, 196, 248, .22); }
.steps::after { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 3px; background: var(--sky); box-shadow: 0 0 14px rgba(124, 196, 248, .8); transform-origin: left; transform: scaleX(var(--prog, 1)); }
.steps li::before { transition: box-shadow .4s, background-color .4s; z-index: 1; }
.steps li::after { z-index: 2; }
.steps li.on::before { background: #123a6b; box-shadow: 0 0 0 6px rgba(124, 196, 248, .18), 0 0 22px rgba(124, 196, 248, .7); }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before { content: ''; position: absolute; left: 0; top: 0; width: 29px; height: 29px; border-radius: 50%; background: var(--ink); border: 3px solid var(--sky); }
.steps li::after { content: counter(step); position: absolute; left: 0; top: 0; width: 29px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 29px; color: var(--sky); }
.steps h3 { font-size: 1.15rem; }
.steps p { margin-top: 8px; color: rgba(255, 255, 255, .78); font-size: .98rem; }

.contact { background: var(--paper); padding-block: clamp(72px, 10vw, 120px); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.contact-grid h3 { margin-bottom: 8px; }
.contact-grid p + p { margin-top: 4px; }
.link { font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--sky); }
.link:hover { text-decoration-color: var(--ink); }
.contact [data-address]:empty { display: none; }

.foot { background: var(--ink); color: rgba(255, 255, 255, .8); padding-block: 28px; font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Ver foto ampliada */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); width: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(6, 18, 36, .9); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lb-cap { margin-top: 12px; }
.lb-close { all: unset; cursor: pointer; display: block; margin: 0 0 12px auto; padding: 8px 14px; background: #fff; color: var(--ink); font-weight: 600; border-radius: 3px; }
.lb-close:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Barra fixa de contato no celular */
.dock { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .more-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 48px; padding-left: 0; }
  .steps::before, .steps::after { left: 13px; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--prog, 1)); }
  .steps li { padding: 0 0 32px 60px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { top: 0; }
  .steps li::after { top: 0; }
}

/* Tela em pé (celular, tablet): o aparelho fica em cima e o texto embaixo */
@media (max-aspect-ratio: 21/20) {
  .panel { align-items: flex-end; padding-block: 88px 28px; }
  .panel-hero h1 { font-size: clamp(3rem, 13vw, 5.4rem); }
  .lead { margin-top: 18px; font-size: 1.05rem; }
  .cta-row { margin-top: 22px; }
  .hours { margin-top: 18px; }
  .stage-sticky::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(to bottom, rgba(11, 35, 65, 0), rgba(11, 35, 65, .7) 35%, rgba(11, 35, 65, .92) 70%); pointer-events: none; }
  /* sem caixa: o texto fica direto sobre a cena, legível por uma sombra escura suave em volta das letras */
  .card { background: none; padding: 0; border: 0; }
  .card h2, .card p { text-shadow: 0 1px 2px rgba(5, 15, 32, .95), 0 0 14px rgba(5, 15, 32, .9), 0 0 32px rgba(5, 15, 32, .75); }
  .card p { color: rgba(245, 248, 252, .92); }
  .card h2 { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  .card p { margin-top: 10px; font-size: 1rem; }
  .scroll-hint { display: none; }
  .stage-fallback { width: 100%; bottom: 45%; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
}

@media (max-width: 600px) {
  .top .btn { display: none; }
  .brand { margin-right: auto; }
  .dock { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px; display: block; text-align: center; text-decoration: none; background: var(--sky); color: var(--ink); font-weight: 600; padding: 16px; border-radius: 3px; box-shadow: 0 6px 24px rgba(11, 35, 65, .35); }
  .dock[hidden] { display: none; }
  .foot { padding-bottom: 88px; }
  .panel { padding-bottom: 92px; }
  .panel-hero .btn-primary { display: none; }
  .board text { font-size: 26px; stroke-width: 10px; }
  .board .tr, .board .chip { stroke-width: 2.6; }
  .board .gold { stroke-width: 5.5; }
  .board .pad-ring { stroke-width: 5; }
}

/* ───────── Movimento ───────── */
.fx-traces { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.sw { display: inline-block; white-space: nowrap; }
.sc { display: inline-block; will-change: transform; transition: color .25s; }
.fx-pending .panel-hero .copy, .fx-pending .top-row, .fx-pending .scroll-hint { visibility: hidden; }

/* barra de progresso da rolagem */
.progress { position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: 3px; background: var(--sky); box-shadow: 0 0 10px rgba(124, 196, 248, .8); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* brilho que corre no botão ao passar o mouse */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%); transform: translateX(-130%); transition: transform .7s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(130%); }

/* ponteira que segue o cursor */
.probe { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .25s; }
.probe.on { opacity: 1; }
.probe-ring, .probe-dot { position: absolute; left: 0; top: 0; }
/* o anel é só o ponto de ancoragem; o desenho gira num elemento interno para não somar ao deslocamento */
.probe-ring i { position: absolute; width: 38px; height: 38px; left: -19px; top: -19px; border-radius: 50%; border: 1.5px dashed rgba(124, 196, 248, .85); box-shadow: 0 0 14px rgba(124, 196, 248, .45), inset 0 0 10px rgba(124, 196, 248, .25); animation: probe-spin 6s linear infinite; transition: width .25s, height .25s, left .25s, top .25s, background-color .25s, border-color .25s; }
.probe-ring i::before, .probe-ring i::after { content: ''; position: absolute; background: rgba(124, 196, 248, .9); }
.probe-ring i::before { left: 50%; top: -7px; bottom: -7px; width: 1.5px; margin-left: -.75px; -webkit-mask: linear-gradient(#000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); mask: linear-gradient(#000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); }
.probe-ring i::after { top: 50%; left: -7px; right: -7px; height: 1.5px; margin-top: -.75px; -webkit-mask: linear-gradient(90deg, #000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); mask: linear-gradient(90deg, #000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); }
.probe-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #e8f5ff; box-shadow: 0 0 10px 3px rgba(124, 196, 248, .9); }
.probe.hover .probe-ring i { width: 64px; height: 64px; left: -32px; top: -32px; background: rgba(124, 196, 248, .12); border-style: solid; }
.probe.down .probe-ring i { width: 26px; height: 26px; left: -13px; top: -13px; border-color: #e8f5ff; }
@keyframes probe-spin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .probe { display: none; }
  .btn::after { display: none; }
  .progress { display: none; }
}

/* ───────── Ajustes de encaixe em telas pequenas ───────── */
/* links do contato com área de toque confortável no celular */
@media (pointer: coarse) {
  .contact .link { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-grid p { margin-top: 0; }
}
/* celular em pé com tela baixa: abertura mais compacta para sobrar espaço ao aparelho */
@media (max-aspect-ratio: 21/20) and (max-height: 700px) {
  .panel-hero h1 { font-size: clamp(2.4rem, 11vw, 3.1rem); }
  .lead { margin-top: 12px; font-size: .95rem; line-height: 1.5; }
  .cta-row { margin-top: 16px; }
  .hours { margin-top: 12px; }
  .card h2 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .card p { font-size: .95rem; }
}
@media (max-aspect-ratio: 21/20) and (max-height: 600px) {
  .panel-hero .lead { display: none; }
}
/* celular deitado: título e espaços menores para caber na altura */
@media (min-aspect-ratio: 21/20) and (max-height: 520px) {
  .top-row { padding-block: 12px; }
  .panel { padding-block: 64px 20px; }
  .panel-hero h1 { font-size: clamp(2.2rem, 6.2vw, 3.2rem); }
  .lead { margin-top: 12px; font-size: 1rem; max-width: 28em; }
  .cta-row { margin-top: 16px; }
  .btn { padding: 11px 18px; }
  .hours { margin-top: 12px; }
  .copy { max-width: 27rem; }
  .card h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
  .card p { margin-top: 10px; font-size: 1rem; }
}
