/* Campanhas sazonais (datas em _site.php). Só trocam os tokens do style.css; nenhum componente muda.
   Carregado pelo index.php e pelas landing pages quando há campanha no ar. */
/* Black: o site vira noturno. Dourado no lugar do terracota. */
:root[data-campanha="black"] {
  color-scheme: dark;
  --page: #0b0908;
  --paper: #15110f;
  --paper-2: #221b17;
  --ink: #f3ece0;
  --ink-2: #cbbfb2;
  --ink-3: #a09284;
  --terra: #e4b77c;
  --terra-2: #b8864c;
  --gold: #f2d29f;
  --line: #3a302a;
  --line-dark: #3a302a;
  --on-dark: #f3ece0;
  --on-accent: #15110f;
  --footer: #0b0908;
  --muted-dark: #a09284;
  --ph: #2a221d;
  --logo-1: #b8864c;
  --logo-2: #d4a465;
  --logo-3: #e9c58d;
  --logo-4: #f6dfb2;
  --logo-r1: #e9c58d;
  --logo-r2: #f6dfb2;
}

/* Natal: verde-pinheiro na tinta e no fundo externo, vermelho-groselha no destaque. */
:root[data-campanha="natal"] {
  --page: #1c3024;
  --paper: #f6f0e4;
  --paper-2: #ebe2d0;
  --ink: #1d2c23;
  --ink-2: #47574b;
  --ink-3: #66756a;
  --terra: #b0302a;
  --terra-2: #8c2621;
  --gold: #d9a85b;
  --line: #d6cbb5;
  --line-dark: #36503f;
  --on-dark: #f6f0e4;
  --on-accent: #fff6ec;
  --footer: #1c3024;
  --muted-dark: #b5c2b2;
  --ph: #3e4f42;
  --logo-1: #a32d27;
  --logo-2: #c4513a;
  --logo-3: #d9a85b;
  --logo-4: #ebcd8f;
  --logo-r1: #d9a85b;
  --logo-r2: #ebcd8f;
}

/* Correções dos poucos pontos com cor fixa no style.css */
:root[data-campanha="black"] .pf-fade { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 85%, transparent) 55%, var(--paper) 85%); }
:root[data-campanha="black"] .pill .arr { background: var(--paper); color: var(--ink); }
/* O style.css usa --ink também como "superfície escura". No Black a tinta é clara,
   então esses blocos ganham superfície própria. Na implementação: token --escuro. */
:root[data-campanha="black"] .pf-title { background: var(--paper-2); color: var(--ink); }
:root[data-campanha="black"] .pf-filter button:hover { color: var(--ink); }
:root[data-campanha="black"] .insta { background: radial-gradient(120% 90% at 100% 0%, rgba(228,183,124,.22), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(184,134,76,.25), transparent 60%), var(--paper-2); }
:root[data-campanha="natal"] .pf-title { background: var(--ink); }

/* Faixa do topo */
.cp-bar { align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: var(--terra); color: var(--on-accent); font-size: 13.5px; text-align: center; }
.cp-bar b { font-weight: 600; }
.cp-bar u { text-underline-offset: 3px; }

/* Oferta da landing page: mesmo desenho do bloco "Nossos trabalhos" do site
   (cartão escuro .pf-title, pílulas .pf-filter, fotos .pf). */
.of-grade .of-cartao { grid-row: span 2; justify-content: space-between; }
.of-grade .pf { cursor: default; }
.of-cd { font-size: 13px; color: var(--muted-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.of-cd b { font-size: 22px; font-weight: 600; color: var(--gold); letter-spacing: -.02em; }
.of-valor { display: grid; gap: 6px; }
.of-valor b { font-size: clamp(56px, 6.4vw, 96px); font-weight: 600; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.of-valor span s { font-size: 18px; color: var(--muted-dark); }
.of-valor p { font-size: 15px; color: var(--muted-dark); max-width: 36ch; }
.of-rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.of-cartao .pill.light { flex: none; }
@media (max-width: 900px) { .of-grade .of-cartao { grid-row: auto; } }
.of-sub { font-size: 12px; color: var(--muted-dark); border: 1px solid var(--line-dark); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
#ofertas .card .tag { font-size: 18px; font-weight: 600; padding: 5px 12px; margin-top: 10px; }
#ofertas .card p { font-size: 14px; }
.cp-bar { display: flex; }

/* PROTÓTIPO: raspadinha do cupom da Black */
.rs-ticket { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 28px 36px; border-radius: 24px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.rs-ticket::before, .rs-ticket::after { content: ""; position: absolute; left: calc(100% - var(--corte, 340px)); width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); transform: translateX(-50%); }
.rs-ticket::before { top: -15px; }
.rs-ticket::after { bottom: -15px; }
.rs-esq { display: grid; gap: 4px; }
.rs-kick { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rs-valor { font-size: clamp(36px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--gold); }
.rs-prazo { font-size: 14px; color: var(--ink-2); }
.rs-dir { width: calc(var(--corte, 340px) - 36px); display: flex; flex-direction: column; align-items: center; gap: 14px; padding-left: 24px; border-left: 2px dashed var(--line); }
.rs-raspa { position: relative; width: 260px; height: 96px; border-radius: 14px; overflow: hidden; border: 1px dashed var(--gold); outline-offset: 4px; }
.rs-premio { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; background: var(--paper); }
.rs-premio b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--gold); line-height: 1; }
.rs-premio code { font: 600 18px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; color: var(--ink); cursor: copy; }
.rs-raspa canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .5s ease; }
.rs-raspa.ok canvas { opacity: 0; pointer-events: none; }
.rs-ticket.ok [data-rs-wa] { animation: rs-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rs-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .rs-ticket.ok [data-rs-wa] { animation: none; } .rs-raspa canvas { transition: none; } }
@media (max-width: 760px) {
  .rs-ticket { grid-template-columns: 1fr; padding: 24px 20px; text-align: center; }
  .rs-esq { justify-items: center; }
  .rs-ticket::before, .rs-ticket::after { display: none; }
  .rs-dir { width: auto; border-left: 0; border-top: 2px dashed var(--line); padding: 20px 0 0; }
}
.rs [hidden] { display: none !important; }
