/* Batcave Bikes — site stylesheet */

:root {
  --black: #0a0a0a;
  --black-soft: #161616;
  --black-card: #1e1e1e;
  --red: #ec3f31;
  --red-dark: #c72c1f;
  --white: #ffffff;
  --gray: #b5b5b5;
  --gray-dim: #7a7a7a;
  --max-width: 1180px;
  --font-head: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { 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.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; }

p { color: var(--gray); margin: 0 0 16px; }

.eyebrow {
  color: var(--red);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: 16px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #262626;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand span {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.brand span em {
  color: var(--red);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links a { color: var(--gray); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 20px;
    border-bottom: 1px solid #262626;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
  background:
    radial-gradient(ellipse at top right, rgba(236,63,49,0.14), transparent 60%),
    var(--black);
  text-align: center;
}

.hero .icon-wash {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: none;
  opacity: 0.08;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--gray);
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Section generic */
section { padding: 80px 0; }
.section-alt { background: var(--black-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

/* Bike grid */
.bike-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .bike-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .bike-grid { grid-template-columns: 1fr; } }

.bike-card {
  background: var(--black-card);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.bike-card:hover { border-color: var(--red); transform: translateY(-4px); }

.bike-card .icon-badge {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.bike-card .price {
  font-family: var(--font-head);
  color: var(--red);
  font-size: 1.3rem;
  margin: 16px 0;
}

.bike-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: var(--gray);
  font-size: 0.92rem;
}
.bike-card ul li {
  padding: 6px 0;
  border-top: 1px solid #2a2a2a;
}
.bike-card ul li:first-child { border-top: none; }
.bike-card ul li strong { color: var(--white); }

.tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

/* Two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; opacity: 0.95; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats .num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--red);
}
.stats .label {
  color: var(--gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Values grid (about page) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  padding: 28px;
  border-left: 3px solid var(--red);
  background: var(--black-card);
}

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding: 70px 0;
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band .btn-outline { border-color: var(--white); }
.cta-band .btn-outline:hover { border-color: var(--black); color: var(--black); background: var(--white); }

/* Footer */
.site-footer {
  border-top: 1px solid #262626;
  padding: 50px 0 30px;
  background: var(--black);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-top img { height: 32px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--gray);
}
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #262626;
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--gray-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Contact/form (products & about CTA) */
.note-banner {
  background: #241a14;
  border: 1px dashed var(--red);
  color: var(--gray);
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 40px;
}
.note-banner strong { color: var(--red); }

/* Rider cards (Home page preview) */
.rider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .rider-grid { grid-template-columns: 1fr; } }

.rider-card {
  background: var(--black-card);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.rider-card:hover { border-color: var(--red); transform: translateY(-4px); }
.rider-card .rider-card-body { padding: 24px; }
.rider-card .role {
  color: var(--red);
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* Real rider photos */
.rider-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}
.rider-card .rider-photo {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  border: none;
}

/* Photo placeholder block */
.photo-placeholder {
  aspect-ratio: 4 / 3;
  border: 1px dashed #3a3a3a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--gray-dim);
  background: var(--black-soft);
  text-align: center;
  padding: 20px;
}
.photo-placeholder .icon {
  font-size: 1.8rem;
  color: var(--red);
}
.photo-placeholder span.label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
}

/* Rider hero (individual rider pages) */
.rider-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
@media (max-width: 760px) {
  .rider-hero-grid { grid-template-columns: 1fr; text-align: center; }
}

/* Bike list (rider pages) */
.bike-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .bike-list-grid { grid-template-columns: 1fr; } }

/* Race table */
.race-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.race-table th, .race-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #2a2a2a;
}
.race-table th {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.race-table td { color: var(--gray); }
.race-table tr:hover td { color: var(--white); }
.race-table-wrap { overflow-x: auto; }

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

.gallery-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #2a2a2a;
  background: var(--black-soft);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.gallery-tile:hover img { transform: scale(1.06); }

/* Video grid */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.video-grid video {
  width: 100%;
  max-width: 300px;
  max-height: 480px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #000;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  display: block;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 700px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Social pills */
.social-pills {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #3a3a3a;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-pill:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* Partner logo badge (Partners page) */
.partner-logo-badge {
  background: #ffffff;
  border-radius: 8px;
  padding: 18px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.partner-logo-badge img {
  max-width: 220px;
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}

/* National ranking highlight (Home page) */
.rank-highlight {
  padding: 36px 0;
  background: var(--black-soft);
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
}
.rank-highlight-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.rank-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}
.rank-num {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
}
.rank-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 6px;
}
.rank-copy { flex: 1; min-width: 260px; }
.rank-copy p { color: var(--white); font-size: 1.05rem; margin: 0; }
@media (max-width: 600px) {
  .rank-highlight-inner { flex-direction: column; text-align: center; }
}

/* Location line */
.location-line {
  color: var(--gray-dim);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
