/* Play Jazz Festival — folha de estilo única. Mobile primeiro. */

@font-face {
  font-family: "Dosis";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/dosis-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/open-sans-latin-var.woff2") format("woff2");
}

:root {
  --amarelo: #ffbc00;
  --amarelo-escuro: #b38400;
  --preto: #000;
  --grafite: #232323;
  --cinza-escuro: #444;
  --cinza-claro: #efefef;
  --cinza-link: #c1c1c1;
  --fonte-titulo: "Dosis", system-ui, sans-serif;
  --fonte-texto: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--grafite);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
.confira :focus-visible, .sobre :focus-visible { outline-color: var(--grafite); }

.so-leitor {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--amarelo); color: var(--preto); padding: .6rem 1rem; font-weight: 700;
}
.pular:focus { top: .5rem; }

.botao {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--amarelo);
  color: var(--preto);
  font-family: var(--fonte-texto);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: 0;
  border-radius: 3px;
  transition: background-color .2s;
}
.botao:hover { background: #ffd04d; }

/* ---------- Topo ---------- */
.topo {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
}
.topo__logo { display: block; line-height: 0; }
.topo__logo img { width: 3.8rem; height: 3.8rem; }
.topo__botao {
  background: none; border: 0; padding: .6rem; cursor: pointer; color: #fff;
}
.topo__hamburguer { display: block; position: relative; width: 30px; height: 20px; }
.topo__hamburguer span { position: absolute; right: 0; width: 30px; height: 2px; background: #fff; }
.topo__hamburguer span:nth-child(1) { top: 0; }
.topo__hamburguer span:nth-child(2) { top: 9px; }
.topo__hamburguer span:nth-child(3) { top: 18px; }

.menu { flex-basis: 100%; }
.js .menu { display: none; background: rgba(0, 0, 0, .97); margin: .75rem -1rem -.75rem; padding: 1rem; }
.js .menu.aberto { display: block; }
.menu__lista { display: block; }
.menu__titulo {
  display: block; width: 100%; padding: .7rem 0; background: none; border: 0; cursor: pointer;
  color: var(--cinza-link); font: 600 .8rem/1.4 var(--fonte-texto); letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.menu__titulo::after {
  content: ""; display: inline-block; margin-left: .4rem; vertical-align: middle;
  border: .3em solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.menu__titulo:hover, .menu__titulo[aria-expanded="true"] { color: #fff; }
.menu__sub a {
  display: block; padding: .5rem 1rem; text-align: center; text-decoration: none;
  color: #fff; font: 400 .85rem/1.4 var(--fonte-texto);
}
.menu__sub a:hover { background: var(--cinza-escuro); }
.js .menu__sub { display: none; }
.js .menu__titulo[aria-expanded="true"] + .menu__sub { display: block; }
.menu__contato { display: block; margin-top: .75rem; }

@media (min-width: 992px) {
  .topo { padding: 1rem 2rem; flex-wrap: nowrap; }
  .topo__botao { display: none; }
  .menu, .js .menu { display: flex !important; flex-basis: auto; align-items: center; background: none; margin: 0; padding: 0; }
  .menu__lista { display: flex; align-items: center; gap: .25rem; margin-right: 1rem; }
  .menu__grupo { position: relative; }
  .menu__titulo { width: auto; padding: .7rem 1rem; }
  .menu__sub { position: absolute; left: 0; top: 100%; min-width: 100%; min-width: 14rem; border-top: 2px solid var(--amarelo); background: var(--cinza-escuro); }
  .menu__sub a { text-align: left; padding: .5rem 1.25rem; border-bottom: 1px solid var(--grafite); }
  .menu__contato { margin: 0; }
  /* Sem JavaScript: o submenu aparece ao passar o mouse ou focar. */
  .menu__grupo:hover > .menu__sub, .menu__grupo:focus-within > .menu__sub { display: block; }
}

/* ---------- Início ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7.5rem 1rem 6rem;
  color: #fff;
  background: var(--preto) url("assets/images/mbr-1920x1170.jpg") center / cover no-repeat;
}
.hero__miolo {
  width: 100%; max-width: 71.25rem; margin: 0 auto;
  display: grid; gap: 2.5rem; align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 3.4rem); font-weight: 700; line-height: 1.2; margin-bottom: .5rem; }
.hero__frase { font-size: clamp(1.8rem, 1rem + 3.5vw, 3.4rem); line-height: 1.3; font-weight: 300; margin-bottom: .75rem; letter-spacing: .03rem; }
.digitado { font-weight: 700; color: var(--amarelo); }
.digitado::after { content: "|"; font-weight: 400; animation: piscar .7s infinite; }
.hero__subtitulo { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); margin-bottom: 1.75rem; letter-spacing: .03rem; }
.hero__cartaz { display: flex; justify-content: center; }
.cartaz { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.cartaz img { width: auto; max-width: 100%; max-height: min(70vh, 46rem); box-shadow: 0 0 25px -9px #ccc; }

@media (min-width: 768px) {
  .hero__miolo { grid-template-columns: 1fr 1fr; }
}
@keyframes piscar { 50% { opacity: 0; } }

/* ---------- Confira ---------- */
.confira { padding: 5.5rem 1rem; text-align: center; background: #fff; }
.confira h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); font-weight: 600; color: var(--cinza-escuro); line-height: 1.2; }
.confira .ponto { color: var(--amarelo); }
.confira__grupo { max-width: 33rem; margin: 1.5rem auto 0; }
.confira__grupo h3 {
  background: var(--cinza-escuro); color: #fff;
  font: 400 .8rem/1.6 var(--fonte-texto); letter-spacing: .05em; text-transform: uppercase;
}
.confira__grupo li { margin: .6rem 0; }
.confira__grupo a { color: var(--cinza-escuro); font: 400 .95rem/1.6 var(--fonte-texto); text-decoration: underline; }
.confira__grupo a:hover { background: #e8e8e8; }

/* ---------- Como nasceu ---------- */
.sobre { display: grid; background: var(--cinza-claro); }
.sobre__texto { padding: 3rem 1.25rem; }
.sobre h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 300; line-height: 1.25; margin-bottom: 1rem; }
.sobre p { margin-bottom: 1rem; }
.sobre__foto { align-self: center; line-height: 0; }
.sobre__foto img { width: 100%; }
@media (min-width: 992px) {
  .sobre { grid-template-columns: 1fr 1fr; }
  .sobre__texto { padding: 3rem; }
}

/* ---------- Rodapé e barra de redes ---------- */
.rodape { background: var(--grafite); color: var(--cinza-link); text-align: center; padding: 2.8rem 1rem 6rem; font-size: 1rem; }
.rodape a { color: var(--amarelo); text-decoration: underline; }
.rodape a:hover { color: #ffd04d; }

.redes { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); max-width: 100%; }
.redes ul { display: flex; justify-content: center; background: var(--amarelo); padding: 7px; border-radius: 3px 3px 0 0; }
.redes li { margin: 0 6px; }
.redes a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--preto); color: #fff; font: 700 .8rem var(--fonte-texto); text-decoration: none;
  transition: background-color .2s;
}
.redes a:hover { background: #6d540d; }
.redes :focus-visible { outline-color: var(--preto); outline-offset: 2px; box-shadow: 0 0 0 2px var(--amarelo); }
.redes svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Cartaz ampliado ---------- */
.ampliado { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.ampliado::backdrop { background: rgba(0, 0, 0, .9); }
.ampliado img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; margin: auto; }
.ampliado form { position: absolute; top: .25rem; right: .25rem; margin: 0; }
.ampliado__fechar {
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--amarelo); color: var(--preto); font: 700 1.6rem/1 var(--fonte-texto);
}

/* ---------- Página 404 ---------- */
.pagina-erro { background: var(--preto); color: #fff; }
.erro { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.erro h1 { font-size: 2.4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .digitado::after { animation: none; }
  * { transition: none !important; }
}
