/* Shiramoto · montagem ao vivo + peças novas (carregamento, menu do celular, tema, card de navegação, rodapé) */

/* ---------- ilhas escuras precisam de fundo próprio no tema claro ---------- */
.hero, .contact, .footer-bg { background: var(--bg); }
body { transition: background .3s, color .3s; }

/* ---------- montagem: peças escondidas até o ponteiro chegar ---------- */
.sh-building [data-b] { opacity: 0; transition: opacity .3s ease; transition-delay: 0s !important; }
.sh-building [data-b].sh-in { opacity: 1; }
.sh-ch { opacity: 0; }
.sh-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 110; }
body { position: relative; }
.sh-cur { position: absolute; left: 0; top: 0; width: 13px; height: 13px; opacity: 0; will-change: transform;
  transition: transform .38s cubic-bezier(.3, .7, .2, 1), opacity .5s ease; }
.sh-cur.is-on { opacity: .95; }
.sh-cur.is-parked { opacity: 0; } /* sai da leitura e aguarda a próxima tarefa na margem */
.sh-cur svg { width: 13px; height: 13px; overflow: visible; animation: sh-bob 2.6s ease-in-out infinite; }
@keyframes sh-bob { 50% { transform: translate(2px, -5px); } }
.sh-cur.has-tag svg { animation: none; }
.sh-cur path { fill: #fff; stroke: #0B0E11; stroke-width: 1.4; stroke-linejoin: round; }
/* etiqueta do ponteiro: diz o que ele está fazendo (ouro, o destaque da marca) */
.sh-cur b { position: absolute; left: 11px; top: 12px; padding: 2px 7px; border-radius: 2px 8px 8px 8px; background: #D6A34A; color: #0B0E11;
  font: 400 9px/1.35 "DM Mono", ui-monospace, Consolas, monospace; letter-spacing: .04em; white-space: nowrap; opacity: 0; transform: scale(.5);
  transform-origin: 0 0; transition: opacity .2s, transform .2s; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.sh-cur.has-tag b { opacity: 1; transform: none; }
.sh-cur-1 b { background: #F3CC7C; } .sh-cur-2 b { background: #F5F2EA; }
  background: #2B7FFF; color: #fff; font: 400 9px/1.4 "DM Mono", ui-monospace, Consolas, monospace; letter-spacing: .02em; opacity: 0; transition: opacity .2s; }
/* linha que "gera" as telas */
.sh-scan { position: absolute; height: 2px; background: #F3CC7C; box-shadow: 0 0 16px 4px rgba(214, 163, 74, .75), 0 -18px 30px 6px rgba(214, 163, 74, .12); }

/* ---------- tela de carregamento ---------- */
.sh-splash { position: fixed; inset: 0; z-index: 105; display: grid; place-content: center; justify-items: center; gap: 24px; background: var(--bg);
  transition: opacity .5s ease, visibility .5s; }
.loaded .sh-splash { opacity: 0; visibility: hidden; }
html:not(.sh-js) .sh-splash { display: none; }
.sh-splash img { width: 62px; height: auto; filter: drop-shadow(0 0 18px rgba(214, 163, 74, .45)); }
.sh-splash-bar { width: 132px; height: 2px; background: color-mix(in srgb, var(--text) 16%, transparent); border-radius: 2px; overflow: hidden; }
.sh-splash-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #D6A34A, #F3CC7C); transition: width .35s ease; }

/* ---------- barra da montagem ---------- */
.sh-bar { position: fixed; left: 16px; right: 16px; bottom: 20px; margin-inline: auto; width: max-content; max-width: calc(100% - 190px); z-index: 60;
  display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 6px 0 14px; border: 1px solid var(--line-ouro); border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 400 10.5px/1 "DM Mono", ui-monospace, Consolas, monospace; color: var(--muted); transition: opacity .4s, transform .4s; }
html:not(.loaded) .sh-bar, .sh-bar.is-off, .sh-modal-open .sh-bar { opacity: 0; transform: translateY(20px); pointer-events: none; }
.sh-bar-dots { display: flex; gap: 3px; }
.sh-bar-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ouro); }
.sh-bar.is-busy .sh-bar-dots i { animation: sh-pulse 1s ease-in-out infinite; }
.sh-bar.is-busy .sh-bar-dots i:nth-child(2) { animation-delay: .15s; } .sh-bar.is-busy .sh-bar-dots i:nth-child(3) { animation-delay: .3s; } .sh-bar.is-busy .sh-bar-dots i:nth-child(4) { animation-delay: .45s; }
@keyframes sh-pulse { 50% { opacity: .3; } }
.sh-bar-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sh-bar-txt b { color: var(--text); font-weight: 400; }
.sh-bar-line { flex: 0 0 46px; height: 2px; background: color-mix(in srgb, var(--text) 16%, transparent); border-radius: 2px; overflow: hidden; }
.sh-bar-line i { display: block; height: 100%; width: 0; background: var(--ouro); transition: width .3s; }
.sh-bar-btn { position: relative; min-height: 28px; padding: 0 11px; border: 0; border-radius: 999px; cursor: pointer; background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text); font: 400 10.5px/1 "DM Mono", ui-monospace, Consolas, monospace; transition: background .2s, color .2s; }
.sh-bar-btn::after { content: ""; position: absolute; inset: -8px 0; }
.sh-bar-btn:hover { background: var(--ouro); color: var(--on-ouro); }

/* ---------- topo: botão de tema, botão do menu e menu do celular ---------- */
.nav-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: color-mix(in srgb, var(--text) 78%, transparent); transition: color .2s, background .2s; }
.nav-btn:hover { color: var(--ouro-claro); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav nav { gap: 26px; }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }
.nav-burger { display: none; gap: 5px; align-content: center; }
.nav-burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav.menu-open { background: var(--bg); }
.mobile-menu { position: fixed; inset: 0; z-index: 49; display: grid; align-content: center; gap: 4px; padding: 90px 24px 40px; background: var(--bg); color: var(--text); }
.mobile-menu a:not(.btn) { padding: 18px 0; border-bottom: 1px solid var(--line); font: 300 1.5rem var(--font); letter-spacing: .16em; text-transform: uppercase; }
.mobile-menu .btn { margin-top: 26px; }
@media (max-width: 820px) {
  .nav nav { gap: 2px; }
  .nav nav a.btn { display: none; }
  .nav-burger { display: grid; }
}
@media (min-width: 821px) { .mobile-menu { display: none !important; } }

/* ---------- botão "Explorar o site" nos projetos ---------- */
.explore { margin: 4px 0 18px; }
.explore svg { flex: none; }

/* ---------- card de navegação: o site do cliente dentro de uma janela, sem sair daqui ---------- */
.sh-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(5, 7, 9, .82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text); animation: sh-fade .25s ease; }
@keyframes sh-fade { from { opacity: 0; } }
.sh-modal-win { display: grid; grid-template-rows: auto auto 1fr auto; width: min(1180px, 100%); height: min(860px, 100%); border-radius: 18px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-ouro); box-shadow: 0 50px 120px -30px #000; animation: sh-rise .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes sh-rise { from { transform: translateY(26px) scale(.98); opacity: 0; } }
.sh-modal-bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; background: var(--bg-3); }
.sh-modal-bar > i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }
.sh-modal-bar > i:first-child { background: var(--ouro); }
.sh-modal-url { flex: 1; min-width: 0; margin-left: 8px; padding: 6px 14px; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: .78rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-modal-x { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.sh-modal-x:hover { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--ouro-claro); }
.sh-modal-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sh-modal-tools h3 { font-size: 1rem; font-weight: 700; letter-spacing: .04em; }
.sh-modal-tools h3 small { display: block; font-size: .74rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.sh-seg { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.sh-seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer;
  font: 700 .72rem var(--font); letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s; }
.sh-seg button.is-on { background: var(--ouro); color: var(--on-ouro); }
.sh-modal-view { position: relative; overflow: auto; overscroll-behavior: contain; background: #000; scrollbar-width: thin; scrollbar-color: var(--ouro) transparent; }
.sh-modal-view img { width: 100%; height: auto; margin-inline: auto; }
.sh-modal-view.is-cel { background: radial-gradient(ellipse at 50% 0%, rgba(214, 163, 74, .1), transparent 60%), var(--bg); }
.sh-modal-view.is-cel img { width: min(390px, 100%); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px #000; }
.sh-modal-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; pointer-events: none; }
.sh-modal-view.is-ready .sh-modal-load { display: none; }
.sh-modal-note { padding: 10px 16px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); text-align: center; }
@media (max-width: 620px) {
  .sh-modal { padding: 0; }
  .sh-modal-win { height: 100%; border-radius: 0; border: 0; }
  .sh-seg button { padding: 0 12px; }
}

/* ---------- rodapé completo (escuro nos dois temas, menu espelhado) ---------- */
.footer-bg { border-top: 1px solid var(--line); color: var(--muted); }
.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 36px; padding: 34px 0 110px; border-top: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.footer nav a { padding: 14px 0; color: color-mix(in srgb, var(--text) 78%, transparent); }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-dev a { color: var(--ouro-claro); font-weight: 700; text-decoration: none; }
@media (max-width: 820px) { .footer { grid-template-columns: 1fr; } }

/* ---------- ajustes da barra e do WhatsApp no celular ---------- */
@media (max-width: 760px) {
  .sh-bar { left: 12px; right: 88px; margin-inline: 0; width: auto; max-width: none; }
  .sh-bar-line { display: none; }
  .sh-bar-txt { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .sh-modal, .sh-modal-win { animation: none; } }
