/* ==========================================================================
   POLÊMICOS MOTO CLUBE — base
   Tokens, reset, tipografia, botões e utilidades
   ========================================================================== */

:root {
  /* Cores da marca */
  --yellow: #faef22;
  --gold: #c5a34a;
  --gold-2: #e8cf8f;
  --gold-deep: #8a6a1f;
  --blue: #292e98;
  --green: #00a64e;

  /* Neutros */
  --ink: #0a0a09;
  --ink-2: #101010;
  --panel: #151513;
  --panel-2: #1b1b18;
  --paper: #efece3;
  --paper-2: #e5e1d5;
  --text: #efeee6;
  --muted: #9d9d92;
  --silver: #d9d9d9;
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .05);
  --line-gold: rgba(197, 163, 74, .34);
  --line-dark: rgba(20, 20, 15, .14);

  /* Métricas */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .8, .28, 1);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Textura sutil de grão sobre a página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 132px) 0;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
  margin: 0;
  font-weight: 900;
}

h2 { font-size: clamp(2.7rem, 5.6vw, 5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

h2 em,
h1 em {
  font-style: normal;
  color: var(--gold);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  color: var(--muted);
  font-size: clamp(.95rem, 1.15vw, 1.05rem);
  max-width: 52ch;
}

/* ---------- Kicker (rótulo de seção) ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.kicker i {
  font-style: normal;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  padding: 3px 7px;
  line-height: 1;
}

.kicker::after {
  content: "";
  width: clamp(28px, 4vw, 56px);
  height: 1px;
  background: var(--line-gold);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  background: none;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}

.btn span { font-size: 1rem; letter-spacing: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--yellow);
  color: #14140f;
}
.btn--solid:hover { background: #fff766; }

.btn--ghost {
  border-color: rgba(255, 255, 255, .22);
  color: var(--text);
  background: rgba(255, 255, 255, .02);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.btn--sm { min-height: 42px; padding: 11px 18px; font-size: .66rem; }
.btn--lg { min-height: 58px; padding: 17px 32px; }

/* ---------- Barra de progresso de rolagem ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--yellow));
  pointer-events: none;
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Animações de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in { opacity: 1; transform: none; }

/* Sem JavaScript o conteúdo continua visível */
.no-js .reveal { opacity: 1; transform: none; }
/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 250;
  transform: translate(-50%, 16px);
  max-width: calc(100% - 40px);
  padding: 13px 20px;
  background: var(--yellow);
  color: #14140f;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* O atributo hidden sempre vence as classes de layout */
[hidden] { display: none !important; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
