/* =========================================================
   SITE - moldura compartilhada das paginas publicas internas
   (header, hero, barra de resumo, faixa de CTA e rodape).
   Usado por regulamento e inscricao (etapa2/etapa3).
   ========================================================= */

:root {
  --font-display: 'Poppins', Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 4.5rem);
}

body.site-page {
  display: block;
  background: var(--color-ink);
  color: var(--color-text-inverse);
  padding: 0;
}

.site-page main {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-page section { width: 100%; }

.hero-scribble {
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.625rem);
  color: var(--color-gold);
  line-height: 1.2;
  margin-top: var(--space-4);
}

.hl-red { color: var(--color-red); }

/* ---- Header (igual a home) ---- */

.landing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: .5rem var(--gutter);
  background: var(--color-ink);
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-lockup img {
  width: auto;
  height: 38px;
  filter: saturate(1.6) contrast(1.05);
}

.brand-lockup img.brand-mage { width: 110px; height: auto; }

.brand-divider {
  width: 1px;
  height: 34px;
  background: var(--color-border-inverse);
}

@media (max-width: 480px) {
  .brand-mage, .brand-divider { display: none; }
}

.landing-nav {
  display: none;
  gap: var(--space-5);
}

.landing-nav a {
  color: var(--color-muted-inverse);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
}

.landing-nav a:hover { color: var(--color-gold); }

@media (min-width: 768px) {
  .landing-nav { display: flex; }
}

.section-eyebrow {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-2);
}

/* ---- Botoes pill ---- */

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: var(--fs-sm);
  text-decoration: none;
  width: auto;
}

/* ---- Hero com foto ---- */

.page-hero {
  background:
    linear-gradient(100deg, rgba(22, 16, 12, .94) 0%, rgba(22, 16, 12, .8) 45%, rgba(22, 16, 12, .55) 100%),
    url("/static/imagens/hero-bg-oktober-run.jpg") center 30% / cover no-repeat;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) calc(var(--space-9) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.page-hero-copy { max-width: 760px; }

.page-hero-copy h1 {
  font-size: clamp(2.5rem, 1.9rem + 3vw, 4rem);
  color: var(--color-cream);
  margin-bottom: var(--space-3);
}

.page-hero-copy p {
  color: var(--color-muted-inverse);
  max-width: 56ch;
  margin-bottom: var(--space-5);
  font-size: var(--fs-md);
}

/* ---- Barra de resumo creme (mesmo componente da home) ---- */

.stats-bar {
  padding: 0 var(--gutter);
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}

.stats-card {
  background: var(--color-cream);
  color: var(--color-text);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 1180px;
  margin: 0 auto;
}

.stats-card > div {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  position: relative;
}

.stats-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

.stats-card span { display: block; font-size: var(--fs-xs); color: var(--color-muted); }

.stats-card strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

/* tablet: 2 colunas em vez de empilhar os 4 itens */
@media (min-width: 600px) and (max-width: 899px) {
  .stats-card { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
}

@media (min-width: 900px) {
  .stats-card { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2.5rem; }

  .stats-card > div:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--color-border);
  }
}

/* ---- Faixa de CTA (igual a home) ---- */

.cta-band {
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(0,0,0,.05) 18px 36px),
    linear-gradient(100deg, var(--color-gold) 0%, var(--color-gold) 60%, var(--color-red) 60%, var(--color-red) 100%);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-8) var(--gutter);
}

.cta-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--color-ink);
}

.cta-band p { color: var(--color-ink); opacity: .8; margin-bottom: 0; }

.btn-cta-band {
  background: var(--color-ink);
  color: var(--color-cream);
}

@media (min-width: 768px) {
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---- Rodape (igual a home) ---- */

.landing-footer {
  background: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
  padding: var(--space-7) var(--space-4);
  border-top: 1px solid var(--color-border-inverse);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.footer-scribble { text-align: center; margin-top: 0; }

.footer-brand-logo {
  width: 130px;
  height: auto;
  object-fit: contain;
}

.footer-brand p {
  margin: var(--space-1) 0 0;
  color: var(--color-muted-inverse);
  font-size: var(--fs-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.footer-social img { width: 22px; height: 22px; object-fit: contain; }

.footer-hashtag {
  color: var(--color-gold);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.footer-product {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-muted-inverse);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-product img {
  height: 28px;
  width: auto;
  opacity: .85;
}

@media (min-width: 768px) {
  .footer-top { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-brand { text-align: left; }
  .footer-scribble { text-align: right; margin-left: auto; }
}
