/* ===== Civis Speedsoft – modern, sporty theme ===== */
:root {
  --bg: #1c1c1c;           /* strong dark grey */
  --bg-alt: #232323;       /* alternate section */
  --surface: #2b2b2b;      /* lighter dark grey highlight */
  --surface-2: #343434;    /* hover / strongest highlight */
  --border: #3a3a3a;
  --text: #c9a24a;         /* dark gold */
  --heading: #d4b062;      /* slightly brighter gold for headings */
  --muted: #9a8250;        /* subdued gold */
  --primary: #b8902f;      /* gold for buttons */
  --primary-dark: #a07c25;
  --on-primary: #1c1c1c;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --header-h: 68px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--heading); text-decoration: none; }
h1, h2, h3, h4 { color: var(--heading); font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .5px; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.6rem; font-weight: 600; }
h4 { font-size: 1.3rem; font-weight: 600; margin-bottom: .2em; }
p { margin: 0 0 1rem; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.accent { color: var(--primary); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .4rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); background: var(--surface); }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(28, 28, 28, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.6rem; letter-spacing: 1px;
  color: var(--text);
}
.logo { display: flex; align-items: center; }
.logo img { height: 42px; width: auto; }
.site-footer .logo img { height: 34px; }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--heading); }
.main-nav a.active { font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .8rem; }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a {
  background: none; border: 0; color: var(--muted);
  font-weight: 700; font-size: .85rem;
  padding: .35rem .7rem; border-radius: 999px; cursor: pointer;
}
.lang-switch a[aria-current="true"] { background: var(--surface-2); color: var(--heading); }
.lang-switch a:hover { color: var(--heading); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 4rem 0 5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.5rem; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges li {
  font-size: .9rem; font-weight: 500;
  padding: .4rem .9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.hero-badges li { color: var(--muted); }

.hero-video { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.video-link { font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.video-link:hover { color: var(--heading); }
.video-frame {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 8px solid var(--surface);
  box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { position: absolute; inset: 0; display: block; }
.video-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-fallback .play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--primary); box-shadow: var(--shadow);
}
.video-fallback .play::after {
  content: ""; position: absolute; left: 29px; top: 22px;
  border-left: 22px solid var(--on-primary); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video-fallback:hover img { opacity: 1; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin-bottom: 2.5rem; }

/* Compare */
.compare-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1rem 0 1.5rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.compare-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.compare-card h3 { color: var(--muted); }
.compare-card.highlight { background: var(--surface-2); border-color: var(--primary); }
.compare-card.highlight h3 { color: var(--heading); }
.compare-card ul { margin: 0; padding-left: 1.2rem; }
.compare-card li { margin-bottom: .5rem; }
.compare-card:not(.highlight) li { color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: .6rem; }
.feature p { color: var(--muted); margin: 0; }

/* Rental */
.question { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: none; margin-bottom: 1.2rem; }
.answer {
  max-width: 760px; margin-bottom: 3rem;
  padding: 1.4rem 1.8rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
}
.answer-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--heading); margin-bottom: .4rem; }
.answer-title:last-child { margin-bottom: 0; }
.answer + .event-cards { margin-top: 0; }
.compare-title.spaced { margin-top: 3.5rem; }
.answer.wide { max-width: 900px; margin-bottom: 0; }
.answer p:not(.answer-title) { color: var(--muted); }
.answer.wide p { margin-bottom: .8rem; }
.answer.wide p:last-child { margin-bottom: 0; }
.answer p:last-child:not(.answer-title) { color: var(--muted); margin: 0; }
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gear-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gear-card figure { margin: 0; position: relative; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--border); }
.gear-card img { width: 100%; height: 100%; object-fit: cover; }
.gear-card figure.light { background: #fff; }
.gear-card figure.light img { object-fit: contain; padding: 1rem; }
.gear-body { padding: 1.2rem 1.4rem 1.4rem; }
.gear-body p { color: var(--muted); margin: 0; }
.gear-extras { list-style: none; padding: 0; margin: 1.5rem 0 3rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.gear-extras li {
  padding: .7rem 1.2rem .7rem 2.6rem; position: relative;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500;
}
.gear-extras li::before {
  content: "✓"; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: var(--primary); color: var(--on-primary);
}
.gear-extras li.strong { background: var(--surface-2); border-color: var(--primary); color: var(--heading); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); }
.step > span {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  background: var(--surface-2); color: var(--heading); border: 1px solid var(--border);
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.price-bar {
  margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.6rem 2rem; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--primary);
}
.price-info { display: flex; flex-direction: column; }
.price-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.price { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; color: var(--heading); line-height: 1.1; }
.price small { font-size: .5em; font-weight: 600; color: var(--muted); }
.price-note { color: var(--muted); }
.page-placeholder { min-height: 60vh; }

/* Events */
.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.event-card {
  position: relative; overflow: hidden;
  padding: 2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.event-card:hover { transform: translateY(-4px); background: var(--surface-2); }
.event-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--primary);
}
.event-icon { font-size: 2.4rem; display: block; margin-bottom: .8rem; }
.event-card p { color: var(--muted); margin: 0; }
.event-card strong { color: var(--heading); }
.age-banner {
  margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem;
  padding: 1.4rem 2rem; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}
.age-banner strong { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--heading); line-height: 1; }
.age-banner p { margin: 0; font-weight: 500; }

/* Arena */
.arena-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.arena-photos figure { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.arena-photos img { width: 100%; height: 100%; object-fit: cover; }
.map-wrap { display: flex; flex-direction: column; gap: 1rem; }
.map { flex: 1; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-link { align-self: flex-start; }

/* Placeholder look when an image file is missing */
.ph { background: var(--surface); }
.ph.missing img { display: none; }
.ph.missing::before {
  content: "📷"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.5rem; opacity: .35;
}

/* Contact */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; margin-top: 2rem; }
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: var(--primary); background: var(--surface-2); }
.contact-icon { font-size: 1.6rem; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 12px; background: var(--bg); flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-card strong { font-size: 1.15rem; word-break: break-word; }
.socials { display: flex; flex-wrap: wrap; gap: .8rem; }
.socials a {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 50%; font-size: 1.3rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--heading);
  transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; background: #161616; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-legal {
  font-size: .9rem; font-weight: 600; color: var(--heading);
  padding: .45rem 1rem; border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.footer-legal:hover { border-color: var(--primary); background: var(--surface); }

/* Mobile call bar */
.mobile-call { display: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .main-nav { gap: 1.1rem; }
  .header-call { display: none; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Small tablet & phone ===== */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .3s ease;
    z-index: -1;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 1rem 1.25rem; border-top: 1px solid var(--border); font-size: 1.1rem; }

  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .video-frame { width: min(300px, 80vw); }

  .compare, .features, .event-cards, .contact-grid, .gear-grid { grid-template-columns: 1fr; }
  .arena-photos { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 340px; }
  .section { padding: 3.5rem 0; }

  .mobile-call {
    display: flex; justify-content: center; align-items: center; gap: .4rem;
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
    padding: .95rem; border-radius: 999px;
    background: var(--primary); color: var(--on-primary); font-weight: 700;
    box-shadow: var(--shadow);
  }
  body { padding-bottom: 5rem; }
}

@media (max-width: 480px) {
  .logo img { height: 28px; }
  .steps { grid-template-columns: 1fr; }
  .age-banner { flex-direction: column; text-align: center; padding: 1.4rem; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Competition page ===== */
.race-first { padding-top: 4rem; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.15fr; }
.split.reverse .split-text { order: 2; }
.split-text { margin: 0; }
.split-text a { color: var(--heading); text-decoration: underline; text-underline-offset: 3px; }
.split-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 3 / 2; }
.split-photo.portrait { aspect-ratio: 4 / 5; max-height: 560px; justify-self: center; width: 100%; max-width: 460px; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.race-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; margin-top: 3rem; }
.race-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.race-gallery figure.tall { grid-row: span 2; }
.race-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.race-gallery figure:hover img { transform: scale(1.04); }
.download-bar {
  margin-top: 2rem; max-width: 900px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem 1.6rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--primary);
}
.download-label { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--heading); }
.pdf-icon { font-size: .7rem; font-weight: 800; letter-spacing: 1px; padding: .15rem .35rem; border-radius: 4px; border: 1.5px solid currentColor; margin-right: .3rem; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 1.5rem; }
  .split.reverse .split-text { order: 0; }
  .race-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 520px) {
  .race-gallery { grid-auto-rows: 140px; gap: .6rem; }
}
.pulse-logo { width: min(320px, 70%); height: auto; margin: .5rem 0 2rem; }
