/* ==========================================================================
   layout.css — barra superior, hero, filtro de temporada, seções, rodapé
   ========================================================================== */

/* ---------- barra superior ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: rgba(14, 14, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}

.topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 196px;
  height: auto;
}

.brand-label {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  min-width: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.is-active {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

.nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav a.nav-scouter {
  color: #7dffa6;
}

.nav a.nav-scouter.is-active {
  box-shadow: inset 0 -2px 0 #5dff8f;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}

.hero-art {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.75) 45%, transparent 100%);
}

.hero-art div {
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.85);
  transform: scale(1.04);
  animation: hero-drift 24s var(--ease) infinite alternate;
}

.hero-art div:nth-child(2n) {
  animation-delay: -8s;
}

@keyframes hero-drift {
  to {
    transform: scale(1.12) translateY(-10px);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(14, 14, 15, 0) 0%, rgba(14, 14, 15, 0.55) 60%),
    linear-gradient(90deg, rgba(14, 14, 15, 0.92) 0%, rgba(14, 14, 15, 0.55) 55%, rgba(14, 14, 15, 0.8) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 0 40px;
}

.hero-logo {
  display: block;
  width: min(620px, 100%);
  margin: 22px 0 24px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero-lede {
  max-width: 620px;
  font-size: 17px;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 36px;
}

/* ---------- barra de temporada ---------- */

.filterbar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 30;
  height: var(--filterbar-h);
  background: rgba(14, 14, 15, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}

.filterbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.filterbar-label {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}

.filterbar-note {
  font-size: 13px;
  color: var(--ink-3);
  margin-left: auto;
  text-align: right;
}

/* ---------- seções ---------- */

.section {
  padding: 44px 0 8px;
}

#destaques {
  padding-top: 64px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

.section-head p {
  max-width: 640px;
  color: var(--ink-2);
  margin-top: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}

.stack {
  display: grid;
  gap: 16px;
}

/* ---------- rodapé ---------- */

.footer {
  margin-top: 48px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 12px;
}

.footer .container {
  display: grid;
  gap: 6px;
}

.footer-legal {
  font-size: 11px;
  line-height: 1.5;
}

.footer strong {
  color: var(--ink-2);
  font-weight: 600;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-credit img {
  height: 24px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-credit a:hover img {
  opacity: 1;
}

.footer-credit a:hover {
  color: var(--accent);
}

/* ---------- responsivo ---------- */

@media (max-width: 1080px) {
  .brand-label {
    display: none;
  }
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1000px) {
  :root {
    --topbar-h: 104px;
  }

  .topbar .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 56px 48px;
    gap: 0;
  }

  .brand {
    justify-self: center;
  }

  .brand-logo {
    width: 180px;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    padding-bottom: 4px;
  }
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .filterbar-note {
    display: none;
  }

  .hero-art {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-art div:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --filterbar-h: 56px;
  }

  .topbar .container {
    gap: 0;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero-content {
    padding: 52px 0 28px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filterbar-label {
    display: none;
  }

  .section {
    padding-top: 56px;
  }
}

.ban-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(214, 178, 94, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(110deg, var(--accent-soft), var(--surface));
}

.ban-overview h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.ban-overview p {
  max-width: 720px;
  color: var(--ink-2);
  font-size: 14px;
}
