:root {
  --fundo: #000;
  --texto: #f2f0ea;
  --suave: #a9a6b0;
  --roxo: #ad47cd;        /* roxo do "MTM" e do controle na logo */
  --roxo-escuro: #813897; /* sombra desse roxo na logo (hover) */
  --borda: #2a2a2e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--fundo);
  scroll-snap-type: y mandatory;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* no celular a seção do No-Hi pode passar da altura da tela; "proximity" não prende a rolagem no meio dela */
@media (max-width: 760px), (max-height: 600px) {
  html { scroll-snap-type: y proximity; }
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--roxo); }
a:focus-visible, button:focus-visible, .faixa:focus-visible {
  outline: 2px solid var(--roxo);
  outline-offset: 3px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

/* ---------- seções de tela cheia ---------- */
.tela {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 5.5rem;
}

.seta {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: var(--texto);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.seta:hover { opacity: 1; }
.seta svg, .controles svg {
  width: 1.75rem; height: 1.75rem;
  fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .seta svg { animation: quica 2s ease-in-out infinite; }
}
@keyframes quica {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- 1. início ---------- */
.logo { margin: 0; }
.logo img {
  width: auto;
  height: min(68svh, 520px);
  max-width: 82vw;
  object-fit: contain;
}
.tagline {
  margin: 1.25rem 0 0;
  color: var(--suave);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- 2. No-Hi ---------- */
.no-hi-grade {
  width: 100%;
  max-width: 1120px;
  display: grid;
  gap: 2rem 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .no-hi-grade { grid-template-columns: 5fr 6fr; }
}
.no-hi-texto p { margin: 0 0 1.25rem; max-width: 60ch; }
.acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.botao {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 0.5rem;
  background: var(--roxo);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.botao:hover { background: var(--roxo-escuro); }
.link { font-weight: 600; text-underline-offset: 0.2em; }

.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111;
}
.trailer-fachada { display: block; width: 100%; height: 100%; }
.trailer-fachada img { width: 100%; height: 100%; object-fit: cover; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.play svg { width: 72px; height: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.play-fundo { fill: #212121; fill-opacity: 0.85; transition: fill 0.2s, fill-opacity 0.2s; }
.trailer-fachada:hover .play-fundo, .trailer-fachada:focus-visible .play-fundo { fill: #f00; fill-opacity: 1; }

/* ---------- 3. imagens ---------- */
.imagens h2 { text-align: center; }
.carrossel {
  width: 100%;
  /* cabe na altura da tela junto com título, botões e seta */
  max-width: min(1120px, (100vh - 21rem) * 16 / 9);
  max-width: min(1120px, (100svh - 21rem) * 16 / 9);
}
.faixa {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 0.75rem;
}
.faixa::-webkit-scrollbar { display: none; }
.faixa li {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.faixa img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #111;
}
.controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.controles button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--borda);
  background: #111;
  color: var(--texto);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.controles button:hover:not(:disabled) { background: #222; }
.controles button:disabled { opacity: 0.3; cursor: default; }
.contador { min-width: 4ch; text-align: center; color: var(--suave); font-variant-numeric: tabular-nums; }

/* ---------- 4. contato ---------- */
.contato { padding-bottom: 3rem; }
.contatos {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 26rem;
}
.contatos a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--borda);
  border-radius: 0.75rem;
  color: var(--texto);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.2s, background 0.2s;
}
.contatos a:hover { border-color: var(--roxo); background: #0b0b0d; }
.contatos svg {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: var(--roxo); stroke-width: 1.8; stroke-linejoin: round;
}
.contatos svg.cheio { fill: var(--roxo); stroke: none; }
.rodape {
  position: absolute;
  bottom: 1.25rem;
  color: var(--suave);
  font-size: 0.85rem;
}

/* ---------- seletor de idioma (canto de cima à direita) ---------- */
/* <details class="idiomas"> com bandeira + nome; uma língua nova = mais um <li> */
.idiomas { position: absolute; top: .75rem; right: .75rem; z-index: 10; font-size: .9rem; line-height: 1.2; }
.idiomas summary {
  list-style: none; display: flex; align-items: center; gap: .45rem; cursor: pointer;
  padding: .35rem .6rem; border: 1px solid var(--borda); border-radius: .5rem;
  background: rgba(0,0,0,.75); color: var(--texto); user-select: none;
}
.idiomas summary::-webkit-details-marker { display: none; }
.idiomas summary::after { content: "▾"; font-size: .75em; color: var(--suave); }
.idiomas[open] summary::after { content: "▴"; }
.idiomas summary:hover { border-color: var(--roxo); }
.idiomas summary:focus-visible { outline: 2px solid var(--roxo); outline-offset: 3px; }
.idiomas ul {
  position: absolute; right: 0; top: calc(100% + .35rem); margin: 0; padding: .35rem; list-style: none;
  min-width: 10rem; background: #0b0b0d; border: 1px solid var(--borda); border-radius: .5rem;
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.6);
}
.idiomas li a {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: .35rem;
  color: var(--texto); text-decoration: none;
}
.idiomas li a:hover, .idiomas li a:focus-visible { background: #1a1a1f; color: var(--roxo); }
.idiomas li a[aria-current] { color: var(--suave); }
.idiomas li a[aria-current]::after { content: "✓"; margin-left: auto; color: var(--roxo); }
.idiomas .bandeira { width: 1.35rem; height: auto; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.idiomas .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
