/* ============ Bandidos Run Club — brand tokens ============ */
@font-face {
  font-family: "Chunko Bold";
  src: url("/assets/fonts/ChunkoBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --charcoal: #1c1c1c;
  --yellow: #fff000;
  --yellow-dim: #d8cf00;
  --white: #f7f7f2;
  --grey: #9a9a94;

  --font-display: "Erica One", cursive;
  --font-accent: "Chunko Bold", "Erica One", cursive;
  --font-body: "IBM Plex Sans", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover { background: var(--white); }

.btn-outline {
  border-color: rgba(247,247,242,0.35);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-small { padding: 10px 18px; font-size: 0.85rem; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: 16px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
  pointer-events: none;
}
.site-header .wrap { pointer-events: auto; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; }
.brand-wordmark { height: 22px; width: auto; }
.header-cta { flex-shrink: 0; }

@media (max-width: 560px) {
  .header-cta .btn-text { display: none; }
}

/* ============ Section rhythm ============ */
.section {
  padding-block: clamp(64px, 10vw, 120px);
  position: relative;
}
.section-kicker {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--yellow);
  margin: 0 0 28px;
  letter-spacing: 0.01em;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 62ch;
  color: var(--white);
  opacity: 0.92;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.85;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,0.98) 5%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.25) 70%, rgba(10,10,10,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(64px, 10vw, 110px);
  padding-top: 140px;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: 0.92;
  margin: 0 0 20px;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  max-width: 34ch;
  margin: 0 0 32px;
  color: var(--white);
  opacity: 0.95;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(20,20,20,0.7);
  border: 1px solid rgba(255,240,0,0.4);
  backdrop-filter: blur(6px);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}
.chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,240,0,0.25);
  flex-shrink: 0;
}
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(247,247,242,0.55);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--yellow);
  animation: scrollcue 1.6s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============ What Bandidos Is ============ */
.section-what { background: var(--black); }
.stats-row {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(247,247,242,0.15);
  min-height: 40px;
}
@media (max-width: 640px) {
  .stat-divider { display: none; }
}

/* ============ Crew ============ */
.section-crew { background: var(--black-soft); }
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}
.crew-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--charcoal);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color .2s ease, transform .2s ease;
}
.crew-card:hover {
  border-color: rgba(255,240,0,0.4);
  transform: translateY(-4px);
}
.crew-avatar {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.2rem;
}
.crew-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
}
.crew-role {
  margin: 0;
  color: var(--yellow);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ How it works + route ============ */
.section-how { background: var(--black); }
.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
}
.timeline {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.timeline li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.timeline li:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-time {
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--yellow);
  font-size: 1.15rem;
  flex-shrink: 0;
  min-width: 92px;
}
.timeline-label { color: var(--white); }
.timeline-label em { color: var(--grey); font-style: normal; font-size: 0.88em; }

.how-facts {
  display: grid;
  gap: 20px;
  margin-bottom: 36px;
}
.how-fact { display: flex; flex-direction: column; gap: 4px; }
.how-fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
}
.how-fact-value { font-weight: 600; }

.how-subhead {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--yellow);
  margin: 0 0 16px;
}
.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.perks li {
  position: relative;
  padding-left: 26px;
  font-weight: 500;
}
.perks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 12px; height: 12px;
  background: var(--yellow);
  border-radius: 3px;
  transform: rotate(45deg);
}
.how-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ============ Signature events ============ */
.section-events { background: var(--black-soft); }
.event-card {
  background: linear-gradient(135deg, var(--yellow) 0%, #fff8b0 100%);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  color: var(--black);
}
.event-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 12px;
}
.event-desc {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0;
  max-width: 52ch;
  font-weight: 500;
}

/* ============ Gallery ============ */
.section-gallery { background: var(--black); padding-bottom: 0; }
.section-gallery .wrap { padding-bottom: 40px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding-bottom: clamp(64px, 10vw, 120px);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.gallery-grid img:hover { transform: scale(1.03); filter: brightness(1.05); }
.gallery-grid a { display: block; overflow: hidden; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}

/* ============ Collabs ============ */
.section-collabs { background: var(--black-soft); }
.collab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.collab-list li {
  border: 1px solid rgba(255,240,0,0.35);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.collab-sub { color: var(--grey); font-weight: 400; font-size: 0.88em; }

/* ============ Join CTA ============ */
.section-join {
  background: var(--yellow);
  color: var(--black);
  text-align: center;
}
.join-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.join-icon { width: 64px; height: auto; margin-bottom: 24px; filter: invert(1); }
.join-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 14px;
}
.join-sub {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 32px;
  opacity: 0.85;
}
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.section-join .btn-primary {
  background: var(--black);
  color: var(--yellow);
}
.section-join .btn-primary:hover { background: var(--charcoal); }
.section-join .btn-outline {
  border-color: rgba(10,10,10,0.4);
  color: var(--black);
}
.section-join .btn-outline:hover { border-color: var(--black); background: rgba(10,10,10,0.08); }

/* ============ Footer ============ */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 48px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-tag { height: 34px; width: auto; }
.footer-logos-divider {
  width: 1px;
  height: 28px;
  background: rgba(247,247,242,0.2);
}
.footer-partner-logo { height: 36px; width: auto; }
.footer-line {
  margin: 0;
  color: var(--grey);
  font-size: 0.9rem;
  max-width: 46ch;
}
.footer-social a {
  color: var(--white);
  display: inline-flex;
  padding: 8px;
  border-radius: 50%;
  transition: color .15s ease, background .15s ease;
}
.footer-social a:hover { color: var(--black); background: var(--yellow); }
.footer-copy {
  margin: 0;
  color: rgba(154,154,148,0.6);
  font-size: 0.78rem;
}

/* ============ Reveal-on-scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}
