/* Página do portfólio técnico (só usada em portfolio.html). Usa os tokens de estilo.css. */
.port-hero .hero-conteudo p { max-width: 640px; }
.port-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.port-acoes .botao { margin-top: 0; }
.port-acoes .botao svg { width: 18px; height: 18px; flex: none; }
.port-info { font-size: 13px; color: rgb(255 255 255 / .7); margin-top: 12px; }

/* Leitor: as 8 páginas empilhadas, uma por vez, centradas */
.port-leitor { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); max-width: 920px; margin: 0 auto; }
.port-pagina { margin: 0; }
.port-pagina a { display: block; border-radius: var(--raio); overflow: hidden; background: var(--marinho);
  box-shadow: 0 24px 60px -32px rgb(15 31 54 / .55), 0 0 0 1px rgb(15 31 54 / .08); }
.port-pagina img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 1978; transition: transform .6s var(--ease); }
.port-pagina a:hover img { transform: scale(1.015); }
.port-pagina figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--texto-suave); }
.port-pagina figcaption strong { color: var(--texto); font-weight: 600; }

/* Botão de download flutuante: embaixo, só enquanto as páginas estão na tela (não cobre títulos) */
.port-barra { position: fixed; left: 50%; bottom: 22px; z-index: 40; display: flex; gap: 10px; transform: translate(-50%, 140%); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
.port-barra.visivel { transform: translate(-50%, 0); opacity: 1; }
.port-barra a { pointer-events: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 168px; padding: 11px 16px; border-radius: 999px; background: var(--acento); color: #fff;
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; box-shadow: 0 14px 34px -12px rgb(211 36 43 / .75), 0 2px 8px rgb(0 0 0 / .18); }
.port-barra.visivel a { pointer-events: auto; }
.port-barra svg { width: 15px; height: 15px; flex: none; }

/* QR code */
.port-qr { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.port-qr-codigo { background: #fff; padding: 18px; border-radius: 14px; box-shadow: 0 24px 60px -30px rgb(15 31 54 / .5); }
.port-qr-codigo img { display: block; width: 100%; height: auto; }
.port-qr-codigo span { display: block; text-align: center; margin-top: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #0f1f36; font-weight: 600; }
.port-qr h2 { margin-top: 0; }
.port-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.port-link code { font-family: inherit; font-size: 14px; padding: 10px 14px; border-radius: 8px; background: var(--fundo-2); border: 1px solid var(--linha); overflow-wrap: anywhere; }
.port-link button { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 8px; border: 0; background: var(--acento-2); color: #fff; cursor: pointer; }
.port-link button[data-ok] { background: #2e7d4f; }

@media (max-width: 760px) {
  .port-qr { grid-template-columns: minmax(0, 1fr); }
  .port-qr-codigo { max-width: 260px; margin: 0 auto; }
  .port-barra { left: 16px; bottom: 18px; transform: translateY(140%); }
  .port-barra.visivel { transform: none; }
  .port-barra { gap: 8px; }
  .port-barra a { font-size: 13px; padding: 10px 13px; min-width: 0; }
}
@media print {
  .topo, .faixa-cta, .rodape, .whats, .port-barra, .port-acoes { display: none !important; }
}
.port-pagina .foto::after { display: none; }

/* Foto do topo: equipe real nos cestos (técnicos à direita, longe do texto) + crédito */
.port-hero-foto { object-position: 72% 30%; }
.port-credito { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; font-size: 11px; letter-spacing: .04em; color: rgb(255 255 255 / .72); text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
@media (max-width: 760px) { .port-hero-foto { object-position: 78% 30%; } .port-credito { font-size: 10px; bottom: 10px; } }

/* ── Teste: a página no mesmo marinho do portfólio, e as 8 páginas como uma folha só ── */
.port-continuo { --folha: #0e1724; background: var(--folha); }
.port-continuo .port-folha-bloco { background: var(--folha); color: #eef2f7; --texto: #eef2f7; --texto-suave: rgb(238 242 247 / .72); --acento-2: #7aa7e6; --linha: rgb(238 242 247 / .14); }
.port-continuo .port-folha-bloco h2 { color: #fff; }
.port-continuo .port-leitor { gap: 0; position: relative; padding-left: 2.2%; background: var(--folha);
  box-shadow: 0 40px 120px -40px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .06); }
.port-continuo .port-leitor::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2.2%; background: #1a24a8; }
.port-continuo .port-pagina a { border-radius: 0; box-shadow: none; background: var(--folha); }
.port-continuo .port-pagina img { aspect-ratio: auto; }
.port-continuo .port-pagina a:hover img { transform: none; }
.port-continuo .port-link code { background: rgb(255 255 255 / .06); color: #fff; }
.port-continuo .revelar { transition-delay: 0s !important; }

/* ── QR de bolso: aba discreta na borda direita + janela que desliza com o QR grande ── */
.qr-aba { position: fixed; left: 0; top: 50%; z-index: 60; transform: translateY(-50%); display: flex; align-items: center; justify-content: center;
  width: 34px; height: 54px; border: 0; border-radius: 0 10px 10px 0; background: rgb(15 31 54 / .78); color: #fff; cursor: pointer;
  box-shadow: 4px 6px 18px -8px rgb(0 0 0 / .5); backdrop-filter: blur(6px); opacity: .55; transition: opacity .25s, width .25s; }
.qr-aba:hover, .qr-aba:focus-visible { opacity: 1; width: 40px; }
.qr-aba--dir { left: auto; right: 0; border-radius: 10px 0 0 10px; box-shadow: -4px 6px 18px -8px rgb(0 0 0 / .5); }
.qr-aba svg { width: 18px; height: 18px; }
.qr-fundo { position: fixed; inset: 0; z-index: 70; background: rgb(8 14 24 / .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.qr-gaveta { position: fixed; top: 0; left: 0; bottom: 0; z-index: 71; width: min(440px, 100vw); background: #fff; color: #0f1f36;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px 24px;
  transform: translateX(-105%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); box-shadow: 20px 0 60px -20px rgb(0 0 0 / .5); touch-action: pan-y; }
.qr-dir .qr-gaveta { left: auto; right: 0; transform: translateX(105%); box-shadow: -20px 0 60px -20px rgb(0 0 0 / .5); }
.qr-aberto .qr-fundo { opacity: 1; pointer-events: auto; }
.qr-aberto .qr-gaveta { transform: translateX(0); }
.qr-gaveta img { width: min(360px, 82vw, 62vh); height: auto; image-rendering: pixelated; }
.qr-gaveta h2 { margin: 0; font-size: clamp(22px, 5vw, 28px); text-align: center; color: #0f1f36; }
.qr-gaveta p { margin: 0; text-align: center; font-size: 15px; color: #4a5566; }
.qr-gaveta .qr-logo { width: 150px; height: auto; }
.qr-fechar { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #eef1f5; color: #0f1f36; font-size: 20px; cursor: pointer; }
.qr-dica { font-size: 12px !important; color: #8a93a3 !important; }
@media (max-width: 760px) { .qr-gaveta { width: 100vw; } }
@media print { .qr-aba, .qr-gaveta, .qr-fundo { display: none !important; } }

/* ── Conheça o site: link no topo + bloco com atalhos ── */
.port-site-link { display: inline-flex; gap: 8px; margin-top: 14px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .45); padding-bottom: 2px; }
.port-site-link:hover { border-bottom-color: #fff; }
.port-site-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.port-site-topo h2 { margin: 0 0 8px; }
.port-site-topo p { margin: 0; max-width: 560px; }
.port-site-topo .botao { margin-top: 0; font-size: 16px; padding-inline: 26px; }
.port-atalhos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.port-atalho { position: relative; display: block; border-radius: var(--raio); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; aspect-ratio: 4 / 3; background: var(--marinho); }
.port-atalho img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s var(--ease); }
.port-atalho::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 18 30 / .85), transparent 60%); }
.port-atalho span { position: absolute; left: 14px; right: 14px; bottom: 12px; font-weight: 600; font-size: 15px; }
.port-atalho span::after { content: " →"; }
.port-atalho:hover img { transform: scale(1.05); }
.port-continuo .port-site { border-top: 1px solid rgb(255 255 255 / .08); }
@media (max-width: 760px) { .port-atalhos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .port-atalho span { font-size: 13px; left: 10px; bottom: 9px; } .port-site-topo .botao { width: 100%; } }

/* Botão secundário (Conhecer o site): mesmo tamanho, branco com contorno, para o PDF ser a ação principal */
.port-barra a + a { background: #fff; color: var(--marinho); box-shadow: inset 0 0 0 1.5px rgb(15 31 54 / .18), 0 12px 30px -14px rgb(0 0 0 / .45); }
