/* O estilo do site da Co-op Stop. As cores e as fontes são as do manual da marca (marca/manual/index.html):
   petróleo na placa, creme no fundo, coral só como acento (a ponte dos óculos), tinta no texto corrido.
   O coral não serve de cor de texto sobre o creme (2,7:1); vai como fundo de botão, com texto em tinta (6:1). */

@font-face {
  font-family: "Bungee";
  src: url("assets/fontes/Bungee-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("assets/fontes/Rubik-var.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --petroleo: #144B52;
  --creme: #F6F1E8;
  --coral: #F26B4B;
  --tinta: #1F1B18;
  --creme-2: #EDE5D6;          /* o creme um tom abaixo, para separar uma faixa da outra */
  --petroleo-claro: #2A6A72;   /* borda e texto secundário sobre o creme */
  --titulo: "Bungee", "Arial Black", sans-serif;
  --texto: "Rubik", system-ui, sans-serif;
  --largura: 1080px;
  --margem: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--texto);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* As duas línguas: o texto existe nas duas; mostra-se uma (o site.js troca a classe "pt" no <html>). */
html:not(.pt) .pt, html.pt .en { display: none !important; }

.largura { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }

/* Texto só para leitor de tela. */
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pular {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--tinta); color: var(--creme); padding: 8px 12px; border-radius: 6px;
}
.pular:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ---------- O topo ---------- */
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--largura) + 2 * var(--margem)); margin: 0 auto;
  padding: 14px var(--margem);
}
.topo__marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topo__marca img { width: 64px; }
.topo__nome { font-family: var(--titulo); color: var(--petroleo); font-size: 1.05rem; letter-spacing: .01em; }
.topo__menu { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); }
.topo__menu a { text-decoration: none; font-weight: 500; color: var(--petroleo); }
.topo__menu a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lingua {
  font: 400 .85rem var(--titulo); color: var(--petroleo); background: transparent; cursor: pointer;
  border: 2px solid var(--petroleo); border-radius: 999px; padding: 5px 12px; line-height: 1;
}
.lingua:hover { background: var(--petroleo); color: var(--creme); }
@media (max-width: 560px) {
  .topo__nome { display: none; }
  .topo__menu a { font-size: .95rem; }
}

/* ---------- 1 · A abertura ---------- */
.abertura { text-align: center; padding: 0 var(--margem) clamp(48px, 8vw, 88px); }
/* O vídeo é 16:9 com o logo no meio e muito creme em volta: a moldura corta as sobras (o fundo do vídeo é o
   mesmo creme da página, então o corte não aparece). No celular a moldura fica quase quadrada, para a placa não
   encolher demais. */
.abertura__video {
  max-width: 980px; margin: 0 auto; aspect-ratio: 2.3 / 1; overflow: hidden;
}
.abertura__video video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
@media (max-width: 640px) {
  .abertura__video { aspect-ratio: 1.45 / 1; margin: 0 calc(-1 * var(--margem)); }
  .abertura__video video { transform: scale(1.12); }
}

.slogan {
  font-family: var(--titulo); color: var(--petroleo);
  font-size: clamp(1.55rem, 7vw, 4rem); line-height: 1.08; letter-spacing: .005em; text-wrap: balance;
  margin-top: clamp(4px, 1vw, 12px);
}
.abertura__linha { max-width: 34em; margin: 18px auto 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--petroleo-claro); }
.abertura__acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.botao {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1 var(--texto); color: var(--petroleo); text-decoration: none; cursor: pointer;
  background: transparent; border: 2px solid var(--petroleo); border-radius: 999px; padding: 13px 22px;
  transition: transform .12s ease, background-color .12s ease;
}
.botao:hover { background: var(--creme-2); }
.botao:active { transform: translateY(1px); }
.botao--cheio { background: var(--coral); border-color: var(--coral); color: var(--tinta); }
.botao--cheio:hover { background: #F47E62; }
.botao small { font-weight: 400; opacity: .75; }

/* ---------- Títulos das seções: o nome em Bungee e um traço coral, a ponte dos óculos ---------- */
.titulo { font-family: var(--titulo); font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--petroleo); line-height: 1.1; }
.titulo::after {
  content: ""; display: block; width: 44px; height: 8px; border-radius: 4px;
  background: var(--coral); margin-top: 12px;
}

/* ---------- 2 · Jogos ---------- */
.jogos { background: var(--creme-2); padding: clamp(48px, 8vw, 96px) 0; }
.jogo {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center;
  margin-top: 32px;
}
.jogo__imagem { width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgb(20 75 82 / .18); }
.selo {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 6px;
  background: var(--petroleo); color: var(--creme); font: 600 .8rem/1.4 var(--texto); letter-spacing: .04em; text-transform: uppercase;
}
.jogo__nome { font-family: var(--titulo); font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--petroleo); line-height: 1.15; margin-bottom: 10px; }
.jogo__texto p { margin: 0 0 14px; }
.fichas { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.fichas li {
  border: 1.5px solid var(--petroleo-claro); color: var(--petroleo); border-radius: 999px;
  padding: 3px 12px; font-size: .9rem; font-weight: 500;
}
.jogo__steam { font-weight: 600; color: var(--petroleo-claro); }
@media (max-width: 760px) { .jogo { grid-template-columns: 1fr; } }

/* ---------- 3 · Sobre ---------- */
.sobre { background: var(--petroleo); color: var(--creme); padding: clamp(48px, 8vw, 96px) 0; }
.sobre .titulo { color: var(--creme); }
.sobre__lead { font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.5; max-width: 36em; margin: 28px 0 0; }
.pilares {
  list-style: none; padding: 0; margin: clamp(36px, 6vw, 56px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px);
}
.pilares li { border-top: 2px solid rgb(246 241 232 / .25); padding-top: 18px; }
.pilares h3 { font-family: var(--titulo); font-size: 1.15rem; line-height: 1.25; margin-bottom: 8px; }
.pilares h3::before {
  content: ""; display: block; width: 28px; height: 6px; border-radius: 3px; background: var(--coral); margin-bottom: 14px;
}
.pilares p { margin: 0; color: rgb(246 241 232 / .85); }
@media (max-width: 760px) { .pilares { grid-template-columns: 1fr; } }

/* ---------- 4 · Imprensa e contato ---------- */
.imprensa { padding: clamp(48px, 8vw, 96px) 0; }
.imprensa__grade { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); }
.imprensa p { margin: 24px 0 20px; max-width: 30em; }
.email {
  font-family: var(--titulo); color: var(--petroleo); font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) { .imprensa__grade { grid-template-columns: 1fr; } }

/* ---------- O rodapé ---------- */
.rodape { background: var(--tinta); color: var(--creme); padding: 36px 0; }
.rodape__linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rodape img { width: 150px; }
.rodape p { margin: 0; opacity: .8; font-size: .95rem; }
