/* CODESP Internacional — base, navegação, botões, topo e movimento.
   Componentes (vidro, chips, cartões) em components.css; seções em sections.css e sections-2.css. */
:root {
  --margem: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --folha: 44px;                     /* sobreposição das seções claras ("folhas") sobre as escuras */
  --folha-raio: clamp(28px, 4vw, 48px);
}
@media (max-width: 700px) { :root { --vidro-blur: blur(14px) saturate(130%); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background: var(--navy-900);
  color: #fff;
  font-family: var(--fonte-texto);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  accent-color: var(--ouro);
  scrollbar-color: var(--navy-600) var(--navy-900);
  scrollbar-width: thin;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; overflow-x: clip;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; }
[hidden] { display: none !important; }

::selection { background: var(--ouro); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }
.claro :focus-visible { outline-color: var(--navy); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--margem), 1280px); margin-inline: auto; }

.pular {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 12px 20px; border-radius: var(--pill);
  background: var(--ouro); color: var(--navy-900); font-weight: 700; text-decoration: none;
  translate: 0 -200%;
}
.pular:focus-visible { translate: 0 0; }

/* ---------- Botões ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--pill);
  font: 700 1rem/1 var(--fonte-texto); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .35s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:has(.btn-seta) { padding-right: 7px; }

/* ouro metálico espelhado: claro em cima, escuro no meio, reflexo embaixo + brilho que atravessa */
.btn-ouro {
  background: var(--ouro-metal); border-color: var(--ouro-borda); color: var(--navy-900);
  text-shadow: 0 1px 0 rgb(255 241 201 / .55);
  box-shadow:
    inset 0 1px 0 #fff, inset 0 -1px 0 rgb(255 241 201 / .7), inset 0 -6px 10px -4px rgb(5 15 46 / .35),
    0 14px 32px -12px rgb(242 178 51 / .7), 0 3px 8px -2px rgb(5 15 46 / .55);
}
.btn-ouro::after {
  content: ""; position: absolute; z-index: -1; top: -30%; bottom: -30%; left: 0; width: 42%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .8) 50%, transparent);
  transform: translateX(-170%) skewX(-18deg);
  transition: transform .7s var(--ease);
}
.btn-ouro:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgb(120 70 0 / .3), 0 18px 40px -12px rgb(242 178 51 / .85), 0 3px 8px -2px rgb(5 15 46 / .55); }
.btn-ouro:hover::after { transform: translateX(340%) skewX(-18deg); }
.btn-ouro:not(:hover)::after { transition: none; }
.btn-seta {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--navy-900); color: var(--ouro);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 2px 6px rgb(120 70 0 / .4);
}
.btn .ico { transition: translate .3s var(--ease); }
.btn:hover .ico, .link-seta:hover .ico { translate: 3px 0; }

/* vidro: translúcido, borda clara, desfoque do que está atrás */
.btn-vidro {
  color: #fff; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .3);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 12px 30px -14px rgb(0 0 0 / .6);
}
.btn-vidro:hover { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .5); }
/* navy (chamadas nas seções claras): seta em ouro metálico */
.btn-navy {
  color: #fff; background: linear-gradient(180deg, var(--navy-600), var(--navy-900)); border-color: rgb(255 255 255 / .2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 16px 34px -14px rgb(11 30 79 / .7), 0 3px 8px -3px rgb(11 30 79 / .4);
}
.btn-navy:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--navy-600) 78%, var(--azul)), var(--navy-900)); }
.btn-navy .btn-seta { background: var(--ouro-metal); color: var(--navy-900); }
.btn-pequeno { min-height: 42px; padding: 0 18px; font-size: .875rem; gap: 8px; }
.btn-grande { min-height: 66px; padding-left: 36px; font-size: 1.125rem; }
.btn-grande .btn-seta { width: 50px; height: 50px; }
/* sem link ainda: mantém o ouro metálico, só esmaecido; sem seta, sem reflexo, sem hover (a nota explica) */
.btn[aria-disabled="true"] { cursor: default; }
.btn-ouro[aria-disabled="true"], .btn-ouro[aria-disabled="true"]:hover {
  filter: saturate(.86) brightness(.95);
  box-shadow: inset 0 1px 0 #fff, inset 0 -6px 10px -4px rgb(5 15 46 / .35), 0 10px 26px -14px rgb(242 178 51 / .45);
}
.btn[aria-disabled="true"]::after, .btn[aria-disabled="true"] .btn-seta { display: none; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn-grande[aria-disabled="true"] { padding-right: 36px; }

/* ---------- Navegação ---------- */
.marca {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font: 800 15px/1 var(--fonte-display); font-stretch: 120%; letter-spacing: .08em;
}
.marca img { width: 32px; height: 32px; }

/* menu só no topo da página (não acompanha a rolagem): pílula de vidro sobre o topo */
.nav {
  position: absolute; z-index: 50; top: 14px; left: 50%; translate: -50% 0;
  width: min(100% - 24px, 1200px);
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid rgb(255 255 255 / .16); border-radius: var(--pill);
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .03)), rgb(5 15 46 / .42);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--brilho-topo), 0 18px 40px -18px rgb(0 0 0 / .7);
}
.nav .marca { margin-right: auto; }
/* celular: três pontinhos em botão redondo de vidro */
.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgb(255 255 255 / .24); border-radius: 50%;
  background: rgb(255 255 255 / .08); box-shadow: var(--brilho-topo); cursor: pointer;
  transition: background-color .2s var(--ease);
}
.nav-toggle .ico { width: 22px; height: 22px; stroke-width: 2.6; }
.js .nav-toggle { display: grid; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: rgb(255 255 255 / .18); }
.nav-menu { display: none; }
.nav.is-aberta .nav-menu {
  display: block; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  padding: 8px 8px 16px; border: 1px solid rgb(255 255 255 / .14); border-radius: var(--raio);
  background: rgb(8 23 57 / .96); box-shadow: var(--sombra-funda);
}
.nav.is-aberta .nav-links a {
  display: block; padding: 14px 16px; border-bottom: 1px solid var(--linha);
  font-size: 1.0625rem; font-weight: 500; text-decoration: none;
}
.nav.is-aberta .idiomas { padding: 16px 16px 0; }
.nav.is-aberta .nav-menu .btn { display: flex; margin: 18px 8px 0; min-height: 50px; font-size: 1rem; }
.idiomas { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; }
.idiomas li + li::before { content: "·" / ""; margin-right: 6px; color: var(--tinta); font-weight: 400; }
.idiomas a { display: inline-block; padding: 6px 4px; color: var(--tinta); text-decoration: none; }
.idiomas a:hover { color: #fff; text-decoration: underline; }
.idiomas [aria-current] { color: #fff; }

@media (min-width: 1024px) {
  .nav { padding-left: 18px; }
  .nav .marca { margin-right: 0; }
  .js .nav-toggle { display: none; }
  .nav-menu, .nav.is-aberta .nav-menu {
    position: static; display: flex; align-items: center; gap: 14px; flex: 1;
    padding: 0; border: 0; background: none; box-shadow: none;
  }
  .nav-links, .nav.is-aberta .nav-links { display: flex; gap: 2px; margin-inline: auto; }
  .nav-links a, .nav.is-aberta .nav-links a {
    display: block; padding: 9px 14px; border: 0; border-radius: var(--pill);
    font-size: .9375rem; font-weight: 500; text-decoration: none;
    transition: background-color .2s var(--ease);
  }
  .nav-links a:hover { background: rgb(255 255 255 / .1); }
  .nav.is-aberta .idiomas { padding: 0; }
  .nav-links a { white-space: nowrap; }
}
/* 7 links + idiomas + botão: aperta o espaçamento até 1279px para caber na pílula */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-links a, .nav.is-aberta .nav-links a { padding-inline: 9px; font-size: .875rem; }
  .nav-menu, .nav.is-aberta .nav-menu { gap: 10px; }
}

/* ---------- Topo: foto limpa da Arena < véus < conteúdo ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; align-content: start;
  min-height: clamp(680px, 100svh, 1000px);
  padding: clamp(124px, 17vh, 176px) 0 clamp(150px, 20vh, 210px);
  background: var(--navy-900);
}
/* pronto para trocar só os arquivos arena-hero(.webp / -mobile.webp): a foto sempre cobre o topo (object-fit),
   sem depender da proporção da imagem; ajuste fino do enquadramento só em object-position */
.hero-fundo { position: absolute; inset: 0; z-index: -5; }
.hero-fundo picture { position: absolute; inset: 0; }
.hero-foto { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
/* imagem do topo já traz a luz do evento: nada desenhado por cima dela */
.hero .orbitas { display: none; }
/* grade da marca sobre a foto: sombras sobem para navy */
.hero-fundo::after { content: ""; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: lighten; opacity: .3; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -4; pointer-events: none;
  background:
    radial-gradient(52% 34% at 50% 30%, rgb(5 15 46 / .72), rgb(5 15 46 / 0)),
    linear-gradient(to bottom, rgb(5 15 46 / .92), rgb(5 15 46 / .5) 24%, rgb(5 15 46 / 0) 46%),
    linear-gradient(to top, var(--navy-900), rgb(5 15 46 / 0) 26%),
    linear-gradient(to right, rgb(5 15 46 / .6), rgb(5 15 46 / 0) 26%, rgb(5 15 46 / 0) 74%, rgb(5 15 46 / .6));
}
.orbitas {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  fill: none; stroke: var(--ouro); stroke-width: 1;
}
.orbita:nth-child(1) { opacity: .6; }
.orbita:nth-child(2) { opacity: .45; }
.orbita:nth-child(3) { opacity: .7; }

.hero-conteudo { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* lockup: [3º] [símbolo+CODESP] / Internacional — símbolo e nome são uma unidade; o 3º fica separado à esquerda */
.lockup { display: flex; flex-direction: column; align-items: center; font-size: clamp(2.5rem, 8.6vw, 6.5rem); line-height: 1; }
.lockup-linha { display: flex; align-items: center; gap: .24em; }
.lockup-marca { display: inline-flex; align-items: center; gap: .07em; }
.lockup-simbolo { width: .9em; height: .9em; filter: drop-shadow(0 0 .2em rgb(63 169 245 / .55)); }
.lockup-ed, .lockup-nome { font-family: var(--fonte-display); font-weight: 800; font-stretch: 125%; letter-spacing: -.01em; }
.lockup-nome { text-shadow: 0 2px 30px rgb(5 15 46 / .6); }
.lockup-ed {
  background: var(--ouro-texto); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 .22em rgb(242 178 51 / .45)) drop-shadow(0 2px 1px rgb(5 15 46 / .6));
}
.lockup-sub { margin-top: .02em; font-weight: 300; font-size: 1em; letter-spacing: -.035em; text-shadow: 0 2px 30px rgb(5 15 46 / .6); }
.hero-nome {
  margin-top: 26px; max-width: 34ch;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.6;
  color: #fff; text-wrap: balance;
  text-shadow: 0 0 14px rgb(5 15 46 / .95), 0 1px 3px rgb(5 15 46 / .9); /* halo: AA mesmo sobre o telhado aceso */
}
.hero-frase { margin-top: 14px; max-width: 40ch; color: #fff; text-shadow: 0 0 16px rgb(5 15 46 / .95), 0 1px 3px rgb(5 15 46 / .9); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); line-height: 1.55; text-wrap: balance; }
.hero-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
/* botão de vidro sobre o brilho da imagem: base navy para o texto não sumir */
.hero-acoes .btn-vidro { background: rgb(5 15 46 / .62); }
.hero-acoes .btn-vidro:hover { background: rgb(5 15 46 / .78); }

/* computador: a foto ocupa a largura inteira (sem bordas) e o topo tem a altura da foto (3:2),
   então a Arena aparece inteira — do telhado à praça — e a próxima seção só começa depois dela.
   O texto fica sobre o céu; em telas baixas a praça aparece ao rolar um pouco, sem nada por cima. */
@media (min-width: 601px) {
  .hero {
    min-height: max(min(100svh, 1100px), calc(100vw * 2 / 3));
    padding: clamp(88px, 10vh, 120px) 0 0;
  }
  .hero-foto { object-position: 50% 0; }
  /* véu em cima (menu e texto) e só uma faixa curta na base, abaixo da praça; nada nas laterais */
  .hero::before {
    background:
      radial-gradient(48% 30% at 50% 20%, rgb(5 15 46 / .6), rgb(5 15 46 / 0)),
      linear-gradient(to bottom, rgb(5 15 46 / .9), rgb(5 15 46 / .4) 14%, rgb(5 15 46 / 0) 30%),
      linear-gradient(to top, var(--navy-900), rgb(5 15 46 / 0) 9%);
  }
  .lockup { font-size: clamp(2.5rem, min(7vw, 9.6vh), 5.25rem); }
  .hero-nome { margin-top: 22px; }
  .hero-acoes { margin-top: 28px; }
}
@media (max-width: 600px) {
  /* celular: texto em cima (com respiro), Arena inteira no meio, botões na base do topo.
     A imagem vertical (2:3) fica ancorada no pé do topo: a Arena cai entre o texto e os botões. */
  .hero { display: flex; flex-direction: column; padding: 104px 0 28px; min-height: clamp(680px, 100svh, 940px); }
  .hero-fundo picture {
    inset: auto 0 0 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%);
  }
  .hero-foto { height: auto; aspect-ratio: 1024 / 1536; }
  .hero-conteudo { flex: 1; width: min(100% - 48px, 1280px); }
  .lockup { font-size: min(40px, 10.2vw); }
  :lang(en) .lockup { font-size: min(38px, 9.2vw); } /* "3rd" é mais largo que "3º" */
  .hero-nome { margin-top: 22px; max-width: 30ch; font-size: .6875rem; letter-spacing: .14em; line-height: 1.7; }
  .hero-frase { margin-top: 16px; max-width: 30ch; font-size: 1rem; }
  .hero-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: auto; padding-top: 28px; }
  .hero-acoes .btn { min-height: 52px; gap: 8px; padding: 0 14px; font-size: .9375rem; }
  .hero-acoes .btn:has(.btn-seta) { padding-right: 6px; }
  .hero-acoes .btn-seta { width: 38px; height: 38px; }
}
@media (min-width: 1024px) { .hero-nome, .hero-frase { max-width: none; } }

/* ---------- Movimento ---------- */
.is-oculto { opacity: 0; }
.revela { animation: revelar .9s var(--ease) both; animation-delay: var(--atraso, 0ms); }
@keyframes revelar { from { opacity: 0; translate: 0 28px; } }

@media (prefers-reduced-motion: no-preference) {
  /* entrada do topo: a foto assenta, as órbitas se desenham, o lockup aparece */
  .js .hero-foto { animation: assentar 2.2s var(--ease) both; }
  .js .orbita { stroke-dasharray: 1; animation: desenhar 1.6s .35s var(--ease) both; }
  .js .orbita:nth-child(2) { animation-delay: .5s; }
  .js .orbita:nth-child(3) { animation-delay: .65s; }
  .js .lockup-simbolo { animation: girar 1.1s .45s var(--ease) both; }
  .js .lockup-ed { animation: surgir 1s .55s var(--ease) both; }
  .js .lockup-nome { animation: subir .9s .62s var(--ease) both; }
  .js .lockup-sub { animation: subir .9s .74s var(--ease) both; }
  .js .hero-nome { animation: subir .8s .86s var(--ease) both; }
  .js .hero-frase { animation: subir .8s .94s var(--ease) both; }
  .js .hero-acoes { animation: subir .8s 1.02s var(--ease) both; }
  .js .hero .btn-ouro::after { animation: reflexo 1.2s 1.6s var(--ease); }
}
@keyframes assentar { from { opacity: 0; scale: 1.08; } }
@keyframes desenhar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes girar { from { opacity: 0; rotate: -50deg; scale: .6; } }
@keyframes surgir { from { opacity: 0; translate: 0 .2em; scale: .9; } }
@keyframes subir { from { opacity: 0; translate: 0 16px; } }
@keyframes reflexo { from { transform: translateX(-170%) skewX(-18deg); } to { transform: translateX(340%) skewX(-18deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .is-oculto { opacity: 1; }
}
