/* gerar.app — biblioteca de showcase para os sites-exemplo.
   Mecânica compartilhada: reset, barra "site de exemplo", toast, e utilitários de
   animação por rolagem (reveal/parallax/tilt/contadores). O visual de cada exemplo
   vem do <style> inline da própria página. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.sc-body {
  margin: 0;
  font-family: var(--sans, system-ui, sans-serif);
  color: #fff;
  background: var(--ink, #0b0b0f);
  overflow-x: hidden;
  line-height: 1.6;
}
.sc-site { position: relative; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.05; margin: 0; }

/* ── Barra fixa "site de exemplo" ── */
.sc-banner {
  position: fixed; inset: 0 0 auto 0; z-index: 9999;
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem clamp(.8rem, 3vw, 1.4rem);
  font-family: 'Manrope', system-ui, sans-serif; font-size: .82rem;
  color: #fff; background: rgba(12, 12, 16, .72);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.sc-banner-tag { font-weight: 700; white-space: nowrap; }
.sc-banner-txt { color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-banner-actions { margin-left: auto; display: flex; gap: .4rem; flex: 0 0 auto; }
.sc-banner-btn {
  font-weight: 600; padding: .32rem .7rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); color: #fff; white-space: nowrap; transition: .2s;
}
.sc-banner-btn:hover { background: rgba(255, 255, 255, .12); }
.sc-banner-cta { background: #ffce1f; color: #16151d; border-color: #ffce1f; }
.sc-banner-cta:hover { filter: brightness(1.05); background: #ffce1f; }
@media (max-width: 600px) { .sc-banner-txt { display: none; } }

/* ── Toast (clique em link/form inerte) ── */
.sc-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  z-index: 10000; max-width: min(92vw, 420px);
  background: rgba(18, 18, 24, .96); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  padding: .8rem 1.1rem; border-radius: 14px; font-size: .9rem; line-height: 1.4;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  font-family: 'Manrope', system-ui, sans-serif; text-align: center;
}
.sc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.sc-toast b { color: #ffce1f; }

/* ── Utilitários de revelação por rolagem ── */
[data-reveal] { opacity: 0; transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .9s; will-change: opacity, transform; }
[data-reveal="up"]    { transform: translateY(42px); }
[data-reveal="down"]  { transform: translateY(-42px); }
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="zoom"]  { transform: scale(.9); }
[data-reveal="blur"]  { filter: blur(14px); transform: translateY(20px); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

/* Parallax e tilt usam transform via JS; só a transição de tilt fica no CSS */
[data-tilt] { transform-style: preserve-3d; transition: transform .2s ease-out; will-change: transform; }

/* Fundo de vídeo/imagem cobrindo a seção */
.sc-bgvideo, .sc-bgimg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.sc-bg-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }

/* Botão de WhatsApp flutuante padrão (inerte) */
.sc-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 9998;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); cursor: pointer;
  border: none; transition: transform .2s;
}
.sc-wa:hover { transform: scale(1.08); }
.sc-wa svg { width: 30px; height: 30px; }

/* Acessibilidade / movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
  [data-parallax], [data-tilt] { transform: none !important; }
}

/* ───────────────────────── Kit de layout dos exemplos ─────────────────────────
   Estruturas temáveis (cor via --acc/--acc2). Usa currentColor + opacidade para
   funcionar tanto em tema escuro quanto claro (basta a página setar color/bg). */
.sc-container { width: min(1180px, 92vw); margin-inline: auto; }
.sc-container-wide { width: min(1480px, 94vw); margin-inline: auto; }
.sc-section { position: relative; padding: clamp(3.5rem, 9vw, 8rem) 0; }
.sc-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .24em; font-size: .76rem; font-weight: 700; color: var(--acc); margin-bottom: 1rem; }
.sc-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.01em; }
.sc-title-xl { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 8vw, 6rem); line-height: .98; letter-spacing: -.02em; }
.sc-lead { font-size: clamp(1.04rem, 1.6vw, 1.25rem); line-height: 1.7; opacity: .78; max-width: 62ch; }
.sc-muted { opacity: .66; }
.sc-mt { margin-top: 1.4rem; } .sc-mt-sm { margin-top: .7rem; }

.sc-btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-family: var(--sans); font-size: 1rem; padding: .95rem 1.7rem; border-radius: 999px; background: var(--acc); color: #fff; border: 1px solid var(--acc); cursor: pointer; transition: transform .25s, box-shadow .25s, filter .25s; }
.sc-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(var(--acc-rgb), .4); filter: brightness(1.04); }
.sc-btn-ghost { background: transparent; color: currentColor; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.sc-btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); box-shadow: none; }
.sc-btns { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero genérico com mídia de fundo */
.sc-hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.sc-hero-overlay { position: absolute; inset: 0; z-index: 1; }
.sc-hero-inner { position: relative; z-index: 2; padding-top: 4rem; padding-bottom: 4rem; }
.sc-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid color-mix(in srgb, currentColor 55%, transparent); border-radius: 16px; opacity: .8; }
.sc-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: currentColor; transform: translateX(-50%); animation: sc-cue 1.6s infinite; }
@keyframes sc-cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } }

/* Nav transparente no topo do hero (links inertes/âncora) */
.sc-nav { position: absolute; top: 40px; left: 0; right: 0; z-index: 5; }
.sc-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.sc-brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.sc-nav-links { display: flex; gap: 1.6rem; font-size: .92rem; font-weight: 500; }
.sc-nav-links a { opacity: .82; transition: opacity .2s; } .sc-nav-links a:hover { opacity: 1; color: var(--acc); }
@media (max-width: 760px) { .sc-nav-links { display: none; } }

/* Split imagem + texto */
.sc-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.6rem, 4vw, 4rem); align-items: center; }
.sc-split.rev { direction: rtl; } .sc-split.rev > * { direction: ltr; }
@media (max-width: 860px) { .sc-split { grid-template-columns: 1fr; } }
.sc-figure { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.sc-figure img { width: 100%; height: 100%; object-fit: cover; }
.sc-figure-tall { aspect-ratio: 3/4; }

/* Faixa de estatísticas */
.sc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem; }
.sc-stat { text-align: center; }
.sc-stat b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--acc); line-height: 1; }
.sc-stat b [data-count] { font: inherit; color: inherit; } /* o número herda o tamanho grande do <b> */
.sc-stat > span { display: block; margin-top: .5rem; font-size: .9rem; opacity: .7; } /* só o rótulo (filho direto), não o número */

/* Grade de cards / galeria */
.sc-grid { display: grid; gap: 1.2rem; }
.sc-grid-3 { grid-template-columns: repeat(3, 1fr); } .sc-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .sc-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sc-grid-3, .sc-grid-2 { grid-template-columns: 1fr; } }
.sc-tile { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1/1; }
.sc-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.sc-tile:hover img { transform: scale(1.07); }
.sc-tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; z-index: 2; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-weight: 600; }

.sc-card { padding: 1.8rem; border-radius: 18px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); transition: transform .3s, border-color .3s; }
.sc-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--acc) 60%, transparent); }
.sc-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .4rem; }
.sc-price { font-family: var(--serif); font-size: 2rem; color: var(--acc); font-weight: 600; }

/* Depoimentos */
.sc-quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.4; font-weight: 500; }
.sc-quote-author { margin-top: 1.2rem; font-family: var(--sans); font-size: .95rem; opacity: .7; }

/* Formulário (inerte) */
.sc-form { display: grid; gap: .8rem; max-width: 520px; }
.sc-input { width: 100%; padding: .95rem 1.1rem; border-radius: 12px; font-size: 1rem; font-family: var(--sans); color: currentColor; background: color-mix(in srgb, currentColor 6%, transparent); border: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.sc-input::placeholder { color: currentColor; opacity: .5; }
.sc-input:focus { outline: none; border-color: var(--acc); }

/* Rodapé */
.sc-foot { padding: 3rem 0 5rem; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); opacity: .85; font-size: .9rem; }
.sc-foot-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; }

/* Faixa CTA com mídia */
.sc-cta-band { position: relative; overflow: hidden; }
.sc-section-dark { background: color-mix(in srgb, #000 24%, var(--ink)); }
