/* ============================================================
   SPARCO RIDERS — style.css  (single landing page)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --red:    #E30613;
  --red-dk: #b00010;
  --black:  #080808;
  --dark:   #101010;
  --card:   #181818;
  --border: rgba(255,255,255,.08);
  --muted:  rgba(255,255,255,.55);
  --white:  #ffffff;

  --ff: 'Montserrat', sans-serif;
  --nav-h: 72px;
  --max: 1240px;
  --r: 10px;

  --ease: cubic-bezier(.16,1,.3,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--ff); background: var(--black); color: var(--white); overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: var(--ff); cursor: pointer; }

/* ---------- TYPOGRAPHY UTILITIES ---------- */
.eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 20px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: background .22s, color .22s, border-color .22s, transform .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-dk); border-color: var(--red-dk); }
.btn--ghost  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--white); }
.btn--outline{ background: transparent; color: var(--white); border-color: var(--red); }
.btn--outline:hover { background: var(--red); }
.btn--full   { width: 100%; text-align: center; }

/* ---------- ENTER ANIMATIONS ---------- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp .75s var(--ease) forwards;
}
.anim-slide-right {
  opacity: 0;
  transform: translateX(48px);
  animation: slideRight .9s var(--ease) forwards;
}
.anim-delay-1 { animation-delay: .15s; }
.anim-delay-2 { animation-delay: .3s;  }
.anim-delay-3 { animation-delay: .45s; }

@keyframes fadeUp    { to { opacity:1; transform:translateY(0); } }
@keyframes slideRight{ to { opacity:1; transform:translateX(0); } }

/* Scroll-triggered: elements start hidden, JS adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(.94);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ---------- NAVBAR ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .35s, box-shadow .35s;
}
.nav.scrolled {
  background: rgba(8,8,8,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.nav__logo img {
  height: 34px;
  filter: brightness(0) invert(1);
}
.nav__links {
  display: flex; align-items: center; gap: 24px;
  margin-left: auto;
}
.nav__links a {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
}
.nav__links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__cta { flex-shrink: 0; }
.nav__burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: 6px; margin-left: auto;
}
.nav__burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform .28s, opacity .28s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(227,6,19,.09) 0%, transparent 65%),
    linear-gradient(160deg, var(--black) 0%, var(--dark) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  padding: 80px 48px 80px 80px;
  max-width: 680px;
}
.hero__title {
  font-size: clamp(2.8rem, 4.8vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--red);
}
.hero__lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 40px;
  height: 100%;
}
.hero__helmet {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 32px 80px rgba(0,0,0,.7));
  transition: opacity .5s ease;
  position: relative; z-index: 1;
}
.hero__helmet--back {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0;
  max-width: 520px;
  filter: drop-shadow(0 32px 80px rgba(0,0,0,.7));
  transition: opacity .5s ease;
}
.hero__visual:hover .hero__helmet { opacity: 0; }
.hero__visual:hover .hero__helmet--back { opacity: 1; }

.hero__scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2; opacity: .4; transition: opacity .2s;
}
.hero__scroll:hover { opacity: .8; }
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: pulse 2s infinite;
}
.hero__scroll-text {
  font-size: .6rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--white);
}
@keyframes pulse {
  0%,100% { opacity:.5; }
  50%      { opacity:1; }
}

/* ---------- BRAND STATEMENT ---------- */
.statement {
  padding: 110px 32px;
  background: var(--dark);
  border-top: 1px solid var(--border);
}
.statement__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.statement__pills {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 20px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  transition: border-color .2s;
}
.pill:hover { border-color: var(--red); }
.pill__icon { color: var(--red); font-size: .7rem; }

/* ---------- PRODUCTS SECTION ---------- */
.products {
  padding: 100px 32px 60px;
  background: var(--black);
}
.section-header {
  max-width: var(--max); margin: 0 auto 72px;
  text-align: center;
}

/* individual product block */
.product {
  max-width: var(--max); margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product--flip { direction: rtl; }
.product--flip > * { direction: ltr; }

.product__media {
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.product__img-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  transition: border-color .3s;
}
.product__img-wrap:hover { border-color: rgba(227,6,19,.4); }
.product__img {
  max-height: 280px;
  object-fit: contain;
  transition: transform .5s var(--ease), opacity .22s ease;
}
.product__img-wrap:hover .product__img { transform: scale(1.04); }

/* Gallery thumbnails */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.gallery__thumb {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .22s, transform .2s;
}
.gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform .3s var(--ease);
}
.gallery__thumb:hover            { border-color: rgba(227,6,19,.5); transform: translateY(-2px); }
.gallery__thumb:hover img        { transform: scale(1.05); }
.gallery__thumb.active           { border-color: var(--red); }
.gallery__label {
  margin-top: 10px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  min-height: 1.1em;
}

/* Product info */
.product__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 2px;
  margin-bottom: 16px;
}
.product__name {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.product__desc {
  font-size: .96rem;
  line-height: 1.78;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 32px;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td {
  padding: 12px 0;
  font-size: .85rem;
  vertical-align: top;
}
.specs-table td:first-child {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .1em;
  width: 120px;
  padding-right: 16px;
}
.specs-table td:last-child { color: rgba(255,255,255,.88); }

.product-divider {
  max-width: var(--max); margin: 0 auto 80px;
  height: 1px; background: var(--border);
}

/* ---------- PHOTO STRIP ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 480px;
  overflow: hidden;
}
.photo-strip__item {
  position: relative; overflow: hidden;
}
.photo-strip__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.photo-strip__item:hover img { transform: scale(1.06); }
.photo-strip__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
  display: flex; align-items: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity .35s;
}
.photo-strip__item:hover .photo-strip__overlay { opacity: 1; }
.photo-strip__overlay p {
  font-size: 1.1rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- ABOUT / LICENSEE ---------- */
.about {
  padding: 110px 32px;
  background: var(--dark);
  border-top: 1px solid var(--border);
}
.about__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr; gap: 80px; align-items: start;
}
.about__logo-col {
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.about__logo {
  width: 160px;
  filter: brightness(0) invert(1);
  opacity: .7;
}
.about__badge {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
}
.about__badge-line {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.about__badge-line--big {
  font-size: 1.3rem; font-weight: 900;
  letter-spacing: -.02em;
  color: var(--red);
  margin-top: 4px;
}
.about__photo {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 1;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 110px 32px;
  background: var(--black);
  border-top: 1px solid var(--border);
}
.contact__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact__header .section-body { max-width: 100%; }
.contact__company {
  margin-top: 32px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.contact__company p {
  font-size: .85rem;
  line-height: 1.8;
  color: var(--muted);
}
.contact__company a { color: var(--red); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group--full { grid-column: 1 / -1; }
label {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}
input, select, textarea {
  font-family: var(--ff);
  font-size: .95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  padding: 13px 16px;
  outline: none;
  transition: border-color .22s;
  appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.2); }
select option { background: var(--card); }
textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  text-align: center;
}
.form-note a { color: rgba(255,255,255,.4); text-decoration: underline; }

/* ---------- FOOTER ---------- */
.footer {
  background: #040404;
  border-top: 1px solid var(--border);
  padding: 48px 32px 28px;
}
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer__brand img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: .4;
  margin-bottom: 10px;
}
.footer__brand p {
  font-size: .8rem;
  color: rgba(255,255,255,.25);
  font-style: italic;
}
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--white); }
.footer__copy {
  max-width: var(--max); margin: 0 auto;
  padding-top: 20px;
  display: flex; justify-content: space-between;
  font-size: .7rem;
  color: rgba(255,255,255,.18);
  flex-wrap: wrap; gap: 8px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero                    { grid-template-columns: 1fr; text-align: center; }
  .hero__content           { padding: 64px 32px 40px; max-width: 100%; }
  .hero__lead, .hero__ctas { margin-left: auto; margin-right: auto; }
  .hero__ctas              { justify-content: center; }
  .hero__visual            { padding: 32px 40px 80px; }
  .hero__helmet            { max-width: 380px; margin: 0 auto; }

  .statement__inner        { grid-template-columns: 1fr; gap: 40px; }
  .statement .section-body { max-width: 100%; }

  .about__inner            { grid-template-columns: 1fr; gap: 48px; }
  .about__logo-col         { flex-direction: row; align-items: flex-start; position: static; flex-wrap: wrap; }
  .about__photo            { width: 180px; flex-shrink: 0; }
  .contact__inner          { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 860px) {
  .product                 { grid-template-columns: 1fr; gap: 40px; }
  .product--flip           { direction: ltr; }
  .product__media          { position: static; }
  .gallery                 { grid-template-columns: repeat(4, 1fr); }
  .photo-strip             { grid-template-columns: 1fr 1fr; height: 360px; }
  .photo-strip__item:last-child { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .nav__links  { display: none; }
  .nav__cta    { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: center;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,8,8,.97);
    backdrop-filter: blur(16px);
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  /* CENTER everything on mobile */
  .hero, .hero__content, .hero__ctas,
  .statement, .statement__inner, .statement__text,
  .products, .section-header,
  .product, .product__info,
  .product__media,
  .about, .about__inner, .about__text-col,
  .contact, .contact__inner, .contact__header,
  .footer__inner, .footer__copy         { text-align: center; }

  .eyebrow, .section-title, .section-body,
  .product__badge, .product__name, .product__desc,
  .product__colors, .product__colors-label,
  .contact__company, .form-note         { text-align: center; }

  .section-body              { margin-left: auto; margin-right: auto; }
  .hero__lead                { margin-left: auto; margin-right: auto; }
  .hero__ctas                { justify-content: center; }
  .statement__pills          { justify-content: center; }
  .swatches                  { justify-content: center; }
  .about__logo-col           { align-items: center; flex-direction: column; }
  .about__photo              { width: 100%; max-width: 240px; }
  .about__badge              { align-items: center; text-align: center; }

  .specs-table               { text-align: left; }
  .form-row                  { grid-template-columns: 1fr; }
  .footer__inner             { flex-direction: column; align-items: center; }
  .footer__brand             { text-align: center; }
  .footer__nav               { justify-content: center; }
  .footer__copy              { justify-content: center; text-align: center; flex-direction: column; }
}

@media (max-width: 540px) {
  .hero__content           { padding: 48px 20px 32px; }
  .products                { padding: 80px 20px 40px; }
  .statement, .about, .contact { padding: 80px 20px; }
  .photo-strip             { grid-template-columns: 1fr; height: 280px; }
  .photo-strip__item:last-child { display: block; }
  .photo-strip__item:nth-child(2) { display: none; }
  .footer                  { padding: 40px 20px 24px; }
}
