/* ── josimarjmv.com · design system v3 (29/09/2026) ─────────────────────────
   Recriação do handoff "Remodelagem v3" (design/handoff-v3/README.md) em CSS de
   produção. BASE compartilhada por TODAS as páginas: tokens, reset, tipografia,
   topbar, rodapé, botões/pills, primitivas de seção, efeitos.
   Página específica: v3-home.css, v3-blog.css, v3-lp.css (carregados depois).

   REGRAS DE SEO DE RENDER (~/.claude/licoes-seo-render.md) EMBUTIDAS AQUI:
   - nada nasce com opacity:0 no CSS. Reveal/fade só entram por JS (v3.js) e só
     para navegador real (UA de robô e prefers-reduced-motion nunca recebem).
   - animação de entrada do hero só roda com <html class="v3-anima">, classe que
     um script inline do <head> só põe quando a UA NÃO é robô.
   - nenhuma seção usa min-height de viewport sem teto (100svh vira 12.000px no
     renderizador do Google). Ver v3-home.css (.v3-hero).
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --creme: #F4F0E8;  --creme2: #FBF8F2;  --areia: #E6E0D4;  --areia2: #E9E3D6;
  --linha: #D9D2C5;  --linha2: #E3DCCF;
  --tinta: #141210;  --corpo: #2B2622;  --sec: #4E4740;  --mudo: #8A8078;  --mudo2: #6B635B;
  --escuro2: #1F1B17;  --escuro3: #181512;
  --linha-esc: #2B2723;  --linha-esc2: #3A342E;  --linha-esc3: #4A433C;
  --acento: #B4552B;  --acento-claro: #E2925F;
  --gutter: clamp(20px, 4vw, 64px);
  --sec-pad: clamp(90px, 10vw, 160px);
  --gap-lateral: clamp(24px, 5vw, 120px);
  --lateral: clamp(120px, 14vw, 220px);
  --max: 1720px;
  --serif: 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--creme); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acento); }
img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--tinta); color: var(--creme); }
.v3-strip { scrollbar-width: none; -ms-overflow-style: none; }
.v3-strip::-webkit-scrollbar { display: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

/* ── Tipografia ── */
.v3-serif { font-family: var(--serif); font-weight: 400; }
.v3-display { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 104px); line-height: .98; letter-spacing: -.02em; }
.v3-display--xl { font-size: clamp(40px, 6.4vw, 110px); line-height: .96; }
.v3-titulo { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 92px); line-height: 1; letter-spacing: -.02em; }
.v3-titulo--m { font-size: clamp(30px, 3.8vw, 62px); line-height: 1.04; letter-spacing: -.015em; }
.v3-titulo--p { font-size: clamp(34px, 4.6vw, 72px); line-height: 1; }
.v3-titulo--blog { font-size: clamp(30px, 3.6vw, 58px); line-height: 1.04; letter-spacing: -.015em; }
.v3-sub { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.04; letter-spacing: -.01em; }
.v3-sub--p { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.06; }
.v3-balance { text-wrap: balance; }
.v3-etiqueta { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.v3-rotulo { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--mudo); }
.v3-rotulo--acento { color: var(--acento); }
.v3-lead { font-size: 16px; line-height: 1.7; color: var(--sec); max-width: 56ch; }
.v3-lead strong { color: var(--tinta); font-weight: 600; }
.v3-mudo { color: var(--mudo); }
.v3-nota { font-size: 12.5px; line-height: 1.5; opacity: .55; }
.v3-tag { display: inline-block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mudo); padding: 7px 12px; border: 1px solid var(--linha); border-radius: 999px; white-space: nowrap; }
.v3-sec--escura .v3-lead { color: inherit; opacity: .8; }
.v3-sec--escura .v3-lead strong { color: inherit; }

/* ── Layout ── */
.v3-wrap { max-width: var(--max); margin: 0 auto; }
.v3-sec { padding: var(--sec-pad) var(--gutter); }
.v3-sec--sem-topo { padding-top: 0; }
.v3-sec--escura { background: var(--tinta); color: var(--creme); }
.v3-sec--escura a:hover { color: var(--acento-claro); }
.v3-linha { display: flex; flex-wrap: wrap; gap: var(--gap-lateral); }
.v3-linha--base { align-items: flex-end; }
.v3-linha > .v3-rotulo { flex: 0 0 var(--lateral); min-width: 0; padding-top: 14px; }
.v3-linha--base > .v3-rotulo { padding-top: 0; padding-bottom: 12px; }
.v3-linha > .v3-conteudo { flex: 1 1 520px; min-width: 0; }
.v3-sec--escura .v3-rotulo { color: inherit; opacity: .6; }
.v3-borda-topo { border-top: 1px solid var(--tinta); }
.v3-sec--escura .v3-borda-topo { border-top-color: var(--linha-esc); }
/* abaixo de 900px o rótulo lateral empilha em cima do conteúdo (29/09: entre 640 e 900 a coluna
   lateral deixava o conteúdo espremido à direita — "não centralizado" na janela estreita) */
@media (max-width: 899px) {
  .v3-linha { gap: 18px; }
  .v3-linha > .v3-rotulo { flex-basis: 100%; padding-top: 0; }
  .v3-linha--base > .v3-rotulo { padding-bottom: 0; }
}

/* ── Botões e pills ── */
.v3-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; padding: 10px 20px; border: 1px solid currentColor; border-radius: 999px;
  color: inherit; font-weight: 600; line-height: 1.2; background: transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.v3-pill:hover { background: var(--acento); border-color: var(--acento); color: var(--creme); }
.v3-pill--g { padding: 13px 24px; font-size: 13.5px; }
.v3-pill--xg { padding: 16px 30px; font-size: 14.5px; font-weight: 700; }
.v3-pill--suave { border-color: rgba(244, 240, 232, .4); }
.v3-pill--suave:hover { background: transparent; border-color: var(--creme); color: var(--creme); }
.v3-pill--cheio { background: var(--creme); border-color: var(--creme); color: var(--tinta); font-weight: 700; }
.v3-pill--cheio:hover { background: var(--acento); border-color: var(--acento); color: var(--creme); }
.v3-pill--tinta { background: var(--tinta); border-color: var(--tinta); color: var(--creme); font-weight: 700; }
.v3-pill--tinta:hover { background: var(--acento); border-color: var(--acento); color: var(--creme); }
.v3-seta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--acento); font-weight: 600; white-space: nowrap; }
.v3-seta--claro, .v3-sec--escura .v3-seta { color: var(--acento-claro); }
.v3-filtro {
  display: inline-flex; align-items: center; white-space: nowrap; padding: 9px 18px;
  border: 1px solid var(--linha); background: transparent; color: var(--sec);
  font-size: 12.5px; font-weight: 500; letter-spacing: .02em; border-radius: 999px;
  transition: all .35s var(--ease);
}
.v3-filtro:hover { border-color: var(--tinta); color: var(--tinta); }
.v3-filtro.is-ativo { border-color: var(--tinta); background: var(--tinta); color: var(--creme); }
.v3-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-traco { display: inline-block; width: 44px; height: 1px; background: currentColor; vertical-align: middle; }
.v3-continuar { display: inline-flex; align-items: center; gap: 14px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: inherit; }
.v3-continuar:hover { color: inherit; }
.v3-anima .v3-continuar .v3-traco { animation: v3-drift 2.4s ease-in-out infinite; }

/* ── Topbar ── */
.v3-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--gutter);
  transition: color .6s var(--ease), background .6s var(--ease), padding .6s var(--ease);
}
.v3-brand { display: flex; flex-direction: column; line-height: 1; color: inherit; }
.v3-brand:hover { color: inherit; }
.v3-brand-nome { font-family: var(--serif); font-size: 19px; letter-spacing: .02em; }
.v3-brand-sub { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-top: 5px; white-space: nowrap; }
.v3-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.v3-nav > a { color: inherit; opacity: .8; white-space: nowrap; }
.v3-nav > a:hover { opacity: 1; color: inherit; }
.v3-nav > a.is-ativo { opacity: 1; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.v3-nav > .v3-pill { opacity: 1; font-size: 12.5px; }
/* variante SÓLIDA (blog, artigo, LPs): sticky clara com blur */
.v3-topbar--solida {
  position: sticky; top: 0; z-index: 80;
  background: rgba(244, 240, 232, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha2); color: var(--tinta);
}
.v3-topbar--solida .v3-brand-sub { color: var(--mudo); opacity: 1; }
.v3-topbar--solida .v3-nav > a { color: var(--sec); opacity: 1; }
.v3-topbar--solida .v3-nav > a:hover { color: var(--tinta); }
.v3-topbar--solida .v3-nav > a.is-ativo { color: var(--tinta); border-bottom-color: var(--tinta); }
.v3-topbar--solida .v3-nav > .v3-pill { color: var(--tinta); border-color: var(--tinta); }
.v3-topbar--solida .v3-nav > .v3-pill:hover { color: var(--creme); border-color: var(--acento); }
/* variante HERO (home): fixa, transparente sobre o hero escuro, vira sólida ao rolar (v3.js) */
.v3-topbar--hero { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding: 22px var(--gutter); color: var(--creme); background: transparent; }
.v3-topbar--hero.is-solida {
  color: var(--tinta); background: rgba(244, 240, 232, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 14px var(--gutter);
}
@media (max-width: 900px) { .v3-nav > a.v3-nav--desk { display: none; } }
@media (max-width: 560px) {
  .v3-nav { gap: 12px; font-size: 11.5px; }
  .v3-nav > a.v3-nav--tab { display: none; }
  .v3-nav > .v3-pill { padding: 9px 14px; font-size: 11.5px; }
  .v3-brand-nome { font-size: 17px; }
  .v3-brand-sub { font-size: 8.5px; letter-spacing: .2em; }
  .v3-topbar--hero { padding: 16px var(--gutter); }
}
/* 390px: marca + Blog + pill precisam de folga — o subtítulo da marca sai, o pill encolhe */
@media (max-width: 420px) {
  .v3-topbar { gap: 12px; }
  .v3-brand-sub { display: none; }
  .v3-nav { gap: 10px; }
  .v3-nav > .v3-pill { padding: 8px 12px; font-size: 11px; }
}

/* ── Rodapé ── */
.v3-footer { background: var(--tinta); color: var(--creme); border-top: 1px solid var(--linha-esc); padding: clamp(40px, 4.6vw, 72px) var(--gutter) 32px; }
.v3-footer-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 72px); }
.v3-footer-sobre { flex: 1.5 1 360px; min-width: 0; }
.v3-footer-nome { font-family: var(--serif); font-size: 22px; }
.v3-footer-sobre p { font-size: 14px; line-height: 1.7; opacity: .6; margin: 14px 0 0; max-width: 60ch; }
.v3-footer-col { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.v3-footer-col-titulo { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .45; margin-bottom: 6px; }
.v3-footer-col a { color: var(--creme); opacity: .8; }
.v3-footer-col a:hover { opacity: 1; color: var(--creme); }
.v3-footer-grupo { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; font-size: 13px; }
.v3-footer-grupo-rotulo { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .5; }
.v3-footer-grupo a { color: var(--creme); opacity: .7; }
.v3-footer-grupo a:hover { opacity: 1; color: var(--creme); }
.v3-footer-cnpj { max-width: var(--max); margin: clamp(32px, 4vw, 56px) auto 0; padding-top: 20px; border-top: 1px solid var(--linha-esc); font-size: 11.5px; letter-spacing: .08em; opacity: .45; }
/* compacto (artigos) */
.v3-footer--compacto { padding: clamp(32px, 4vw, 56px) var(--gutter) 32px; }
.v3-footer--compacto .v3-footer-in { justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }
.v3-footer--compacto .v3-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.v3-footer--compacto .v3-footer-links a { color: var(--creme); opacity: .8; }
.v3-footer--compacto .v3-footer-links a:hover { opacity: 1; color: var(--creme); }
.v3-footer--compacto .v3-footer-grupo { flex-basis: auto; margin-top: 0; }
.v3-footer--compacto .v3-footer-cnpj { margin: 0; padding: 0; border: 0; flex-basis: 100%; }

/* ── "Novo no blog" (o build injeta o card na home e nas LPs; markup no build.py) ── */
.v3-novo-blog { display: block; margin-top: 32px; padding: 20px 22px; border: 1px solid rgba(244, 240, 232, .25); color: var(--creme); transition: border-color .35s var(--ease); }
.v3-novo-blog:hover { border-color: var(--creme); color: var(--creme); }
.v3-novo-blog > span { display: block; }
.v3-novo-blog-rotulo { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .6; }
.v3-novo-blog-titulo { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; margin-top: 10px; }
.v3-novo-blog-resumo { font-size: 14px; line-height: 1.6; opacity: .7; margin-top: 10px; }
.v3-novo-blog-cta { margin-top: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--acento-claro); }

/* ── Bloco escuro de CTA (live de segunda, "relacionado") ── */
.v3-bloco-escuro { padding: 26px 28px; background: var(--tinta); color: var(--creme); }
.v3-bloco-escuro .v3-rotulo { color: var(--acento-claro); }
.v3-bloco-escuro p { font-size: 16px; line-height: 1.65; margin: 12px 0 0; }
.v3-bloco-escuro a { color: var(--acento-claro); }
.v3-bloco-claro { padding: 26px 28px; border: 1px solid var(--tinta); background: var(--creme2); }

/* ── Efeitos ── */
@keyframes v3-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes v3-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v3-scan { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
@keyframes v3-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes v3-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
/* entrada do hero: SÓ com html.v3-anima (script inline no head; robô nunca recebe) */
.v3-anima .v3-fade-up { animation: v3-fade-up 1.2s var(--ease) .3s backwards; }
.v3-anima .v3-fade-up--2 { animation-delay: .6s; }
.v3-anima .v3-kenburns { animation: v3-kenburns 9s var(--ease) forwards; transform-origin: center; }
.v3-anima .v3-scan { animation: v3-scan 9s linear infinite; }
/* grade técnica de fundo (hero escuro) */
.v3-grade { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(244, 240, 232, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 240, 232, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 60%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 60%, #000 20%, transparent 75%); }
/* linha de varredura: elemento de altura total cuja borda superior é a linha; translateY(100%) a leva do topo ao pé do hero */
.v3-scan { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(226, 146, 95, .7), transparent) top center / 100% 1px no-repeat; }
/* zoom em imagem (CSS puro: hover no host ou no próprio bloco) */
[data-zoom] { overflow: hidden; }
[data-zoom] > :first-child { transition: transform 1.2s var(--ease); }
[data-zoom]:hover > :first-child, a:hover > [data-zoom] > :first-child, .v3-zoom-host:hover [data-zoom] > :first-child { transform: scale(1.05); }
/* cursor customizado (v3.js cria; só pointer:fine, >900px, não-robô) */
html.v3-cursor, html.v3-cursor a, html.v3-cursor button, html.v3-cursor summary, html.v3-cursor label { cursor: none; }
#v3-cursor { position: fixed; left: 0; top: 0; z-index: 200; width: 22px; height: 22px; pointer-events: none; transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease), opacity .3s; mix-blend-mode: difference; display: flex; align-items: center; justify-content: center; overflow: visible; color: var(--creme); }
#v3-cursor > i { position: absolute; width: 6px; height: 6px; border: 0 solid currentColor; }
#v3-cursor > i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
#v3-cursor > i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
#v3-cursor > i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
#v3-cursor > i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
#v3-cursor > b { width: 3px; height: 3px; background: currentColor; transition: opacity .3s; }
#v3-cursor > span { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--creme); opacity: 0; transition: opacity .25s; white-space: nowrap; }
#v3-cursor.is-txt > b { opacity: 0; }
#v3-cursor.is-txt > span { opacity: 1; }
#v3-cursor.is-oculto { opacity: 0; }
@media (max-width: 900px) {
  html.v3-cursor, html.v3-cursor a, html.v3-cursor button, html.v3-cursor summary, html.v3-cursor label { cursor: auto; }
  #v3-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
