/* =========================================================
   CHURREX · Componentes
   Reutilizáveis na landing page. Só usa tokens de tokens.css.
   ========================================================= */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: var(--t-base);
  line-height: var(--lh-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p, li, dd, figcaption, small { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--acao); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--acao-hover); }
:focus-visible { outline: var(--traco) solid var(--foco); outline-offset: 3px; }
.sobre-escuro :focus-visible, .sobre-brasa :focus-visible { outline-color: var(--branco); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contentor { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia de marca ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--fonte-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: var(--lh-titulo);
  letter-spacing: var(--tr-display);
}
.h1 { font-size: var(--t-cartaz); }
.h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); }
.h3 { font-size: var(--t-2xl); line-height: 1; }
.lead { font-size: var(--t-lg); line-height: 1.5; max-width: 52ch; }
.texto { max-width: 65ch; }
.suave { color: var(--texto-suave); }

/* rótulo pequeno em cima dos títulos */
.rotulo {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--fonte-texto);
  font-weight: var(--peso-forte);
  /* encolhe com o ecrã para o rótulo mais comprido caber numa linha a 360px */
  font-size: clamp(10px, calc((100vw - 56px) / 30.5), var(--t-sm));
  letter-spacing: var(--tr-rotulo);
  text-transform: uppercase;
  color: var(--brasa-600);
}
@media (max-width: 699px) { .rotulo { letter-spacing: 0.06em; } }
.rotulo::before {
  content: "";
  width: 12px; height: 16px;
  background: currentColor;
  /* mini chama */
  clip-path: path("M6 0C7 3 12 5 12 10.5C12 13.8 9.3 16 6 16C2.7 16 0 13.8 0 10.5C0 8 1.4 6.6 2.6 5.6C2.6 7.4 3.4 8.6 4.6 9C4 6 4.6 3 6 0Z");
}

/* laranja sobre vermelho: só em cartaz, sempre com sombra vinho */
.texto-chama { color: var(--chama-500); text-shadow: var(--sh-texto); }
.texto-vinho { color: var(--brasa-900); }

/* ---------- Faixas (as barras laranja dos posts) ---------- */
.faixas { display: grid; justify-items: start; gap: var(--s-2); }
.faixa {
  display: inline-block;
  padding: 0.12em 0.4em 0.04em;
  font-family: var(--fonte-display);
  text-transform: uppercase;
  line-height: 1;
  background: var(--chama-500);
  color: var(--branco);
  text-shadow: 0.04em 0.05em 0 rgb(139 6 10 / 0.35);
}
.faixa--branca { background: var(--branco); color: var(--chama-500); text-shadow: none; }
.faixa--brasa { background: var(--brasa-500); color: var(--branco); }
.faixa--carvao { background: var(--carvao-900); color: var(--chama-500); text-shadow: none; }
.faixa--inclinada { rotate: var(--inclina); }

/* ---------- Botões ---------- */
.btn {
  --btn-fundo: var(--brasa-600);
  --btn-texto: var(--branco);
  --btn-sombra: var(--brasa-900);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px;
  padding: var(--s-3) var(--s-5);
  border: 0;
  border-radius: var(--raio-0);
  background: var(--btn-fundo);
  color: var(--btn-texto);
  box-shadow: 4px 4px 0 var(--btn-sombra);
  font-family: var(--fonte-display);
  font-size: var(--t-lg);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: translate var(--d-rapido) var(--e-sai), box-shadow var(--d-rapido) var(--e-sai), background-color var(--d-rapido) var(--e-sai);
}
.btn:hover { color: var(--btn-texto); translate: -2px -2px; box-shadow: 6px 6px 0 var(--btn-sombra); }
.btn:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--btn-sombra); }
.btn:disabled, .btn[aria-disabled="true"] {
  --btn-fundo: var(--creme-200); --btn-texto: var(--carvao-500); --btn-sombra: var(--cinza-fio);
  cursor: not-allowed; translate: none;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--chama { --btn-fundo: var(--chama-500); --btn-texto: var(--carvao-900); }
.btn--branco { --btn-fundo: var(--branco); --btn-texto: var(--brasa-600); }
.btn--contorno {
  --btn-fundo: transparent; --btn-texto: var(--carvao-900); --btn-sombra: var(--carvao-900);
  box-shadow: inset 0 0 0 var(--traco) var(--carvao-900), 4px 4px 0 var(--btn-sombra);
}
.btn--contorno:hover { box-shadow: inset 0 0 0 var(--traco) var(--carvao-900), 6px 6px 0 var(--btn-sombra); }
.btn--pequeno { min-height: 44px; padding: var(--s-2) var(--s-4); font-size: var(--t-md); box-shadow: 3px 3px 0 var(--btn-sombra); }

/* ---------- Etiquetas ---------- */
.etiqueta {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 32px;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--raio-full);
  background: var(--creme-200);
  color: var(--carvao-900);
  font-weight: var(--peso-semi);
  font-size: var(--t-sm);
  line-height: 1.2;
}
.etiqueta--brasa { background: var(--brasa-50); color: var(--brasa-700); }
.etiqueta--chama { background: var(--chama-500); color: var(--carvao-900); }
.etiqueta--aberto::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #1E9E4A; box-shadow: 0 0 0 3px rgb(30 158 74 / 0.2);
}

/* ---------- Cartões ---------- */
.cartao {
  background: var(--fundo-alto);
  border: var(--fio-w) solid var(--fio);
  border-radius: var(--raio-md);
  overflow: hidden;
}
.prato { display: grid; grid-template-rows: auto 1fr; }
.prato-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--carvao-900); }
.prato-foto img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--d-lento) var(--e-sai); }
.prato:hover .prato-foto img { scale: 1.04; }
.prato-foto .faixa { position: absolute; left: var(--s-4); bottom: var(--s-4); font-size: var(--t-lg); }
.prato-corpo { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); }
.prato-nome { font-family: var(--fonte-display); text-transform: uppercase; font-size: var(--t-xl); line-height: 1; }

/* promoção: o cartaz da quinzena */
.promo {
  position: relative; overflow: hidden;
  display: grid; gap: var(--s-3); justify-items: center; text-align: center;
  padding: var(--s-8) var(--s-5) var(--s-9);
  background: var(--brasa-500);
  color: var(--branco);
  border-radius: var(--raio-md);
}
.promo-sobre { font-family: var(--fonte-display); text-transform: uppercase; color: var(--carvao-900); font-size: clamp(1.1rem, 0.9rem + 1vw, 1.563rem); line-height: 1; }
.promo-titulo { font-family: var(--fonte-display); text-transform: uppercase; font-size: clamp(3.5rem, 2rem + 6vw, 6rem); line-height: 0.9; color: var(--chama-500); text-shadow: var(--sh-texto); }
.promo .borda-chamas { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; }

/* seta de datas: 29 JANEIRO ●────▶ 10 FEVEREIRO */
.datas {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2) var(--s-3);
  font-family: var(--fonte-display); text-transform: uppercase;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.563rem); line-height: 1; color: var(--chama-500);
}
.datas-seta { position: relative; width: clamp(48px, 12vw, 140px); height: 4px; background: currentColor; border-radius: 2px; }
.datas-seta::before { content: ""; position: absolute; left: -4px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: currentColor; translate: 0 -50%; }
.datas-seta::after { content: ""; position: absolute; right: -6px; top: 50%; border: 8px solid transparent; border-left: 12px solid currentColor; border-right: 0; translate: 0 -50%; }

/* contacto */
.contacto { display: grid; gap: var(--s-4); padding: var(--s-6); }
.contacto dl { display: grid; gap: var(--s-4); margin: 0; }
.contacto dt { font-weight: var(--peso-forte); font-size: var(--t-xs); letter-spacing: var(--tr-rotulo); text-transform: uppercase; color: var(--texto-suave); }
.contacto dd { margin: 0; font-size: var(--t-md); font-weight: var(--peso-semi); }

/* prova social */
.prova { display: flex; align-items: center; gap: var(--s-4); }
.prova-num { font-family: var(--fonte-display); font-size: var(--t-4xl); line-height: 0.9; color: var(--brasa-600); }
.prova-txt { font-weight: var(--peso-semi); line-height: 1.35; }

/* ---------- Borda de chamas (desenhada por logo-animado.js) ---------- */
.borda-chamas { position: relative; display: block; width: 100%; height: 96px; pointer-events: none; }
.borda-chamas svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Logo animado (logo-animado.js) ---------- */
.lume { position: relative; overflow: hidden; background: var(--brasa-500); isolation: isolate; }
.lume-camada { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lume-palco { position: absolute; inset: 0; }
.lume-logo { position: absolute; left: 50%; translate: -50% -50%; overflow: visible; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* camada fixa por onde o selo voa até ao menu (por cima da barra) */
.lume-voo { position: fixed; inset: 0; z-index: calc(var(--z-nav) + 1); pointer-events: none; }

/* vídeos do hero: entram quando o selo voa e ficam por baixo das chamas */
.lume-videos { position: absolute; inset: 0; z-index: 0; background: var(--carvao-900); opacity: 0; transition: opacity 1.2s ease-out; }
.lume.com-video .lume-videos { opacity: 1; }
.lume-videos video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.lume-videos video.ativo { opacity: 1; z-index: 2; }
.lume-videos video.anterior { opacity: 1; z-index: 1; }
.lume-videos::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(to bottom, rgb(36 16 12 / 0.45), transparent 26%, transparent 62%, rgb(36 16 12 / 0.3)); }

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