/* Fã Clube BH — link da bio
   As cinco artes originais aparecem só como background-image, sem corte,
   filtro ou edição. Texto e botões ficam numa camada HTML/CSS por cima. */

@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-wdth.woff2') format('woff2-variations'), url('assets/fonts/archivo-wdth.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0a0809;
  --paper: #f4f2f0;
  --muted: #9b9296;
  --red: #d91f2b;
  --red-hi: #ec3340;
  --yellow: #f6e81c;
  --green: #27d46a;
  --font: 'Archivo', 'Arial Narrow', Arial, sans-serif;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0; min-width: 280px;
  background: var(--ink) radial-gradient(70% 38% at 12% -6%, #2e0a10 0%, transparent 70%) no-repeat;
  color: var(--paper); font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a, button { -webkit-tap-highlight-color: transparent }

.skip { position: absolute; z-index: 1000; left: 16px; top: -70px; padding: 10px 14px; border-radius: 6px; background: #fff; color: #000; font-weight: 600 }
.skip:focus { top: 10px }

/* Cabeçalho: logo centralizado junto com o título */
.top { width: min(1080px, 100%); margin: 0 auto; padding: 34px 20px 0; text-align: center }
.logo { display: block; margin: 0 auto; width: clamp(180px, 30vw, 270px); height: auto }

.page { width: min(1080px, 100%); margin: 0 auto; padding: 36px 20px 28px }

.intro { margin: 0 0 34px; text-align: center }
.intro h1 {
  margin: 0 auto; max-width: 14ch; text-wrap: balance;
  font: 800 clamp(38px, 7vw, 76px)/.92 var(--font); font-stretch: 66%; letter-spacing: -.005em;
}
.intro h1 .c1 { color: var(--red-hi) }
.intro h1 .c2 { color: #8d8589 }
.intro p { margin: 14px 0 0; color: var(--muted); font-size: 15px }

.banners { display: grid; gap: 18px }

/* ───────── Próximo show ───────── */
.next {
  position: relative; container-type: inline-size; margin: 0 0 18px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 22px 28px; border-radius: 12px; background: #141012; border: 1px solid rgba(255,255,255,.09);
}
.next[hidden] { display: none }
.next__date { display: grid; justify-items: center; gap: 4px; padding-right: 28px; border-right: 1px solid rgba(255,255,255,.12) }
.next__date b { font: 800 66px/.82 var(--font); font-stretch: 62%; color: #fff }
.next__date span { color: var(--red-hi); font: 700 15px/1 var(--font); font-stretch: 112% }
.next__label { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 600 }
.next h2 { margin: 0; font: 800 clamp(24px, 3.4vw, 36px)/1 var(--font); font-stretch: 66% }
.next__detail { margin: 6px 0 0; color: #cfc9cb; font-size: 15px }
.next__count { margin: 10px 0 0; color: #fff; font-size: 14px; font-weight: 700 }
.next .cta { --aura: 236,51,64; background-color: var(--red); color: #fff; min-height: 52px; padding: 0 30px; font-size: 16px }
.next:hover .cta { background-color: var(--red-hi); outline-offset: 6px; outline-color: rgba(255,255,255,.55) }
.next:has(.cta:focus-visible) { outline: 2px solid #fff; outline-offset: 3px }


/* ───────── Banner ───────── */
.banner {
  position: relative; width: 100%; aspect-ratio: 1776 / 890;
  container-type: inline-size;
  /* cada PNG tem os cantos arredondados embutidos; o raio acompanha o da arte */
  border-radius: var(--rx) / var(--ry); overflow: hidden; isolation: isolate;
  outline: 1px solid rgba(255,255,255,.09); outline-offset: -1px;
}
.banner--site     { --rx: 6.4%; --ry: 12.8% }
.banner--reds     { --rx: 5%;   --ry: 10% }
.banner--multishow{ --rx: 5.4%; --ry: 10.8% }
.banner--patio    { --rx: 5.8%; --ry: 11.6% }
.banner--45       { --rx: 5.6%; --ry: 11.2% }

.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-position: center; background-size: contain; background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.06) brightness(.96);
  transition: filter .7s ease;
}
.banner--site::before { background-image: url('assets/banner-1.png') }
.banner--reds::before { background-image: url('assets/banner-2.png') }
.banner--multishow::before { background-image: url('assets/banner-3.png') }
.banner--patio::before { background-image: url('assets/banner-4.png') }
.banner--45::before { background-image: url('assets/banner-5.png') }
/* ativo (passar o mouse, tocar, foco ou já clicado) = cor real; o Multishow já nasce colorido */
.banner--multishow::before,
.banner:is(:hover, :focus-within, :active, .on)::before { filter: none }

.layer { position: absolute; inset: 0; display: flex; pointer-events: none }
.banner:has(.cta:focus-visible) { outline: 2px solid #fff; outline-offset: 3px }

.banner h2 {
  margin: 0; color: #fff; text-wrap: balance;
  font: 800 clamp(22px, 5.6cqw, 68px)/.92 var(--font); font-stretch: 62%; letter-spacing: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.kicker {
  display: flex; align-items: center; gap: .7em; margin: 0 0 clamp(8px, 1.6cqw, 18px);
  color: rgba(255,255,255,.78); font: 600 clamp(10px, 1.3cqw, 14px)/1 var(--font); font-stretch: 108%;
}
.kicker::before { content: ""; width: 2.2em; height: 2px; background: var(--red-hi) }

/* ───────── Botão ───────── */
.cta {
  /* sem position/transform aqui: o ::after precisa cobrir o banner todo */
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-height: clamp(42px, 6cqw, 64px); padding: 0 clamp(18px, 3.4cqw, 42px);
  border: 0; border-radius: 5px; cursor: pointer; white-space: nowrap; text-decoration: none;
  font: 700 clamp(13px, 1.95cqw, 19px)/1 var(--font); font-stretch: 112%; letter-spacing: .01em;
  pointer-events: auto;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 0 rgba(0,0,0,.16),
    0 10px 20px -8px rgba(0,0,0,.65);
  outline: 1px solid rgba(255,255,255,.3); outline-offset: 3px;
  background-image: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 160% 0; background-repeat: no-repeat;
  transition: background-color .25s ease, outline-offset .25s ease, outline-color .25s ease;
}
.cta::after { content: ""; position: absolute; inset: 0 }   /* o banner inteiro vira área de toque */
.cta:focus-visible { outline-color: transparent }
.banner:hover .cta { outline-offset: 6px; outline-color: rgba(255,255,255,.55) }

.cta { --aura: 255,255,255; background-color: #fff; color: #120d0e }
.cta--yellow { --aura: 246,232,28; background-color: var(--yellow); color: #0e1a4a; outline-color: rgba(246,232,28,.45) }
.banner--multishow:hover .cta--yellow { --aura: 246,232,28; background-color: #fff35a; outline-color: rgba(246,232,28,.8) }
.banner:is(:hover, :focus-within, :active, .on) .cta--red   { --aura: 236,51,64; background-color: var(--red); color: #fff }
.banner:is(:hover, :focus-within, :active, .on) .cta--green { --aura: 39,212,106; background-color: var(--green); color: #04210f; outline-color: rgba(39,212,106,.85) }

/* ───────── Posição por banner ───────── */
/* 1 · faixa inferior sobre a plateia, com leve degradê só para dar leitura */
.banner--site .layer {
  justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 5cqw 5cqw;
  background: linear-gradient(to top, rgba(6,3,4,.78), rgba(6,3,4,0) 42%);
}
.banner--site h2 { font-size: clamp(20px, 4.8cqw, 58px) }

/* 2 · área escura à esquerda da fênix */
.banner--reds .layer { flex-direction: column; align-items: flex-start; justify-content: center; width: 50%; padding-left: 6.5cqw }
.banner--reds .cta { margin-top: clamp(12px, 2.4cqw, 28px) }

/* 3 · a arte já tem o texto; o botão entra no vazio azul, alinhado à coluna da direita */
.banner--multishow .layer { align-items: flex-start; padding: 30cqw 0 0 46.6cqw }

/* 4 · área escura acima da bota, à esquerda da personagem */
.banner--patio .layer { flex-direction: column; align-items: flex-start; width: 50%; padding: 5.2cqw 0 0 6cqw }
.banner--patio .cta { margin-top: clamp(8px, 1.8cqw, 20px) }

/* 5 · canto inferior direito, sobre a faixa escura da grama */
.banner--45 .layer { justify-content: flex-end; align-items: flex-end; padding: 0 4.5cqw 3.4cqw }

/* ───────── Rodapé ───────── */
.foot { text-align: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09) }
.foot p { margin: 0 0 4px; color: #cfc9cb; font-size: 13px; font-weight: 500 }
.foot small { color: #6d6569; font-size: 12px }

.toast {
  position: fixed; z-index: 100; left: 50%; transform: translateX(-50%);
  bottom: max(22px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px);
  padding: 14px 20px; border-radius: 8px; background: #171214; border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: 14px; font-weight: 500; text-align: center; box-shadow: 0 18px 44px #000a;
}
.toast[hidden] { display: none }

/* feedback ao toque */
.banner:active .cta { outline-offset: 1px; filter: brightness(.92) }

/* Movimento: só para quem não pediu menos movimento */
@media (prefers-reduced-motion: no-preference) {
  /* brilho que passa num botão por vez (rodízio feito em script.js) */
  .cta.is-shining { animation: shine 1.3s ease-out 1 }
  @keyframes shine { from { background-position: 160% 0 } to { background-position: -60% 0 } }

  /* aura pulsando ao redor do botão — só enquanto o card está ativo */
  .banner:is(:hover, :focus-within, :active, .on) .cta { animation: aura 1.5s ease-in-out infinite }
  @keyframes aura {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.16), 0 10px 20px -8px rgba(0,0,0,.65), 0 0 0 0 rgba(var(--aura), .6), 0 0 10px 1px rgba(var(--aura), .35) }
    55%      { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.16), 0 10px 20px -8px rgba(0,0,0,.65), 0 0 0 11px rgba(var(--aura), 0), 0 0 30px 9px rgba(var(--aura), .8) }
  }

  .next:is(:hover, :focus-within, :active) .cta { animation: aura 1.5s ease-in-out infinite }

  /* textos e botões entram uma única vez, quando o card aparece na tela */
  .js .rv { opacity: 0; transform: translateY(.45em); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1) }
  .js .cta { opacity: 0; transition: opacity .7s ease .25s, background-color .25s ease, outline-offset .25s ease, outline-color .25s ease }
  .js .next .cta { opacity: 1 }
  .js .banner.in .rv { opacity: 1; transform: none }
  .js .banner.in .cta { opacity: 1 }
  .js .banner .kicker.rv { transition-delay: 0s }
  .js .banner h2.rv { transition-delay: .1s }
}

@media (max-width: 650px) {
  .next { grid-template-columns: auto 1fr; gap: 16px 18px; padding: 18px 16px }
  .next__date { padding-right: 18px }
  .next__date b { font-size: 54px }
  .next .cta { grid-column: 1 / -1; width: 100%; min-height: 46px; font-size: 14px }
  .next__detail { font-size: 14px }
  .top { padding: 24px 14px 0 }
  .page { padding: 30px 12px 20px }
  .intro { margin-bottom: 24px }
  .intro p { font-size: 14px; margin-top: 10px }
  .banners { gap: 14px }
  .cta { outline-offset: 2px; min-height: 40px; padding: 0 16px; font-size: 13px }
  .banner--45 .layer { padding-bottom: 1.2cqw }
  .banner--45 .cta { min-height: 34px; font-size: 12px; padding: 0 14px }
  .banner:hover .cta { outline-offset: 3px }
  .foot { margin-top: 32px }
}
@media (max-width: 340px) { .kicker { display: none } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .cta { transition: none }
}
