/* EnduroTrack website – black, white & gold (2026 redesign).
   Font: Archivo (SIL Open Font License, see fonts/OFL-Archivo.txt),
   hosted on this site – no third-party font requests (GDPR friendly).
   Width 125 + Black Italic matches the app's SF Pro Expanded headlines
   on every device. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #111315;
  --ink-2: #1c1f22;
  --asphalt: #f3f3f1;
  --card: #ffffff;
  --gold: #d4af37;
  --gold-text: #8a6b12;
  --muted: #5b6168;
  --muted-on-ink: #b9bec4;
  --line: #e3e1da;
  --enduro: #1f5c45;
  --snow: #2f6e9e;
  --radius: 14px;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

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

a { color: var(--ink); }
a:hover { color: var(--gold-text); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Motocross headline style */
.display {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.gold { color: var(--gold); }

/* Header */
.site-header { background: var(--ink); color: #fff; position: relative; z-index: 2; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 48px; height: auto; }
.brand span { font-size: 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--gold); }
.lang { display: inline-flex; gap: 4px; }
.lang a, .lang strong { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 900; font-style: italic; }
.lang strong { background: #fff; color: var(--ink); }
.lang a { color: var(--muted-on-ink); padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 10px;
  font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 125%;
  text-transform: uppercase; text-decoration: none; font-size: 18px;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); filter: brightness(1.06); }
.btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.25); }
.btn-ghost:hover { color: #fff; border-color: var(--gold); }

/* Hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.stripes { position: absolute; top: -40px; right: 6%; height: 130%; display: flex; gap: 22px; transform: skewX(-22deg); pointer-events: none; }
.stripes i { display: block; height: 100%; }
.stripes i:nth-child(1) { width: 70px; background: var(--gold); }
.stripes i:nth-child(2) { width: 26px; background: #2b2e31; }
.stripes i:nth-child(3) { width: 12px; background: var(--gold); opacity: .6; }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px; padding-top: 56px; }
.hero-copy { flex: 999 1 440px; min-width: 0; padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; }
.badge { align-self: flex-start; background: #fff; color: var(--ink); border-radius: 6px; padding: 4px 14px; transform: skewX(-10deg); font-size: 15px; }
.hero h1 { margin: 0; font-size: clamp(44px, 7.2vw, 92px); }
.hero p { margin: 0; font-size: 20px; color: #d9dcdf; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.small-note { font-size: 14px; color: var(--muted-on-ink); font-weight: 600; }
.phone { flex: 1 1 300px; display: flex; justify-content: center; }
.phone-frame { width: min(340px, 100%); border-radius: 46px 46px 0 0; padding: 12px 12px 0; background: #2b2e31; }
.phone-frame img { border-radius: 36px 36px 0 0; width: 100%; height: 560px; object-fit: cover; object-position: top; }

/* Sections */
section { padding: 72px 0; }
section h2 { margin: 0 0 26px; font-size: clamp(30px, 4.4vw, 50px); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 28px; }
.card p { margin: 0; color: #3a3f44; }
.plate { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 44px; padding: 0 10px; border-radius: 6px; transform: skewX(-12deg); color: #fff; font-size: 24px; }
.plate.en { background: var(--enduro); }
.plate.mx { background: var(--gold); color: var(--ink); }
.plate.sn { background: var(--snow); }
.plate.atv { background: var(--ink); }

.feature { border-top: 6px solid var(--ink); }
.feature.gold-top { border-top-color: var(--gold); }
.feature.dark { background: var(--ink); color: #fff; border-top-color: var(--gold); }
.feature.dark p { color: #d9dcdf; }

.band { background: var(--gold); color: var(--ink); padding: 52px 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; font-size: 18px; }
.band .btn { background: var(--ink); color: #fff; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 5.4vw, 54px); margin: 0 0 8px; }
.legal .meta { color: var(--muted); font-weight: 700; margin-bottom: 30px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal p, .legal li { color: #2b2f33; }
.legal table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-ink); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 30px; padding-bottom: 44px; font-size: 15px; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 640px) {
  .stripes { right: -60px; opacity: .55; }
  .phone-frame img { height: 460px; }
  section { padding: 56px 0; }
}
