/* ============================================================
   JSDC Wheels — Mobile-First Stylesheet
   ============================================================ */

/* ---------- Reset & Custom Properties ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #09090b;
  --surface:      #111116;
  --surface-2:    #18181f;
  --border:       #27272a;
  --text:         #f4f4f5;
  --muted:        #71717a;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow:  rgba(37, 99, 235, 0.18);
  --gold:         #f59e0b;
  --radius:       10px;
  --radius-lg:    18px;
  --shadow:       0 4px 24px rgba(0,0,0,.5);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1200px;
  --nav-h:        64px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  transition: all .18s ease;
  border: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 6px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--muted);
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(9, 9, 11, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.02em;
}
.nav__logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.nav__links {
  display: none;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  font-size: .9375rem;
  color: var(--muted);
  transition: color .15s;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__cta { display: none; }
.nav__hamburger {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background .15s;
}
.nav__hamburger:hover { background: var(--surface-2); }
.nav__hamburger svg { pointer-events: none; }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 2rem 1.25rem;
  gap: .5rem;
  z-index: 99;
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: .875rem 1rem;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
}
.nav__mobile a:hover, .nav__mobile a.active {
  background: var(--surface-2);
  color: var(--text);
}
.nav__mobile .btn { margin-top: 1rem; width: 100%; justify-content: center; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta { display: flex; }
  .nav__hamburger { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,.15) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(37,99,235,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 0%, transparent 80%);
}
.hero__content {
  position: relative;
  text-align: center;
  padding-block: 5rem 4rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .375rem 1rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.hero__eyebrow span { color: var(--accent); font-weight: 600; }
.hero__h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero__h1 em { font-style: normal; color: var(--accent); }
.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  justify-content: center;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero__stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
}
.hero__stat-label { font-size: .8125rem; color: var(--muted); margin-top: .125rem; }

/* ---------- Section Base ---------- */
.section { padding-block: 5rem; }
.section__header { text-align: center; margin-bottom: 3rem; }
.section__h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.section__sub { font-size: 1.0625rem; color: var(--muted); max-width: 540px; margin-inline: auto; }

/* ---------- Why JSDC (Pillars) ---------- */
.pillars { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.pillar {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.pillar:hover { border-color: var(--accent); transform: translateY(-3px); }
.pillar__icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(37,99,235,.35);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.pillar__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; }
.pillar__text { font-size: .9375rem; color: var(--muted); line-height: 1.65; }

@media (min-width: 640px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Hero Split Layout ---------- */
.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero__image-col { display: none; }

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    padding-block: 5rem 3rem;
  }
  .hero__content { text-align: left; padding-block: 0; }
  .hero__eyebrow { margin-inline: 0; }
  .hero__sub { margin-inline: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__image-col { display: flex; align-items: center; justify-content: center; }
}

.hero__wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}
.hero__wheel-wrap::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__wheel-img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 32px 80px rgba(0,0,0,.6),
    0 8px 24px rgba(37,99,235,.2);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-14px) rotate(0deg); }
}

/* ---------- Product Cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(37,99,235,.15);
}
.product-card__visual {
  aspect-ratio: 4/3;
  background: #fff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.product-card__visual img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  transition: transform .4s ease;
}
.product-card:hover .product-card__visual img { transform: scale(1.06) rotate(4deg); }
.product-card__visual svg {
  width: 55%;
  height: 55%;
  opacity: .75;
  transition: transform .35s ease, opacity .35s;
}
.product-card:hover .product-card__visual svg { transform: rotate(20deg) scale(1.06); opacity: 1; }
.product-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.product-card:hover .product-card__visual::after { opacity: 1; }
.product-card__badge {
  position: absolute;
  top: .875rem; right: .875rem;
  background: var(--accent);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .625rem;
  border-radius: 100px;
}
.product-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .625rem; }
.product-card__series { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.product-card__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.product-card__desc { font-size: .9rem; color: var(--muted); line-height: 1.6; flex: 1; }
.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: .25rem;
}
.spec-tag {
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .2rem .625rem;
}
.product-card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card__cta {
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .375rem;
  transition: gap .15s;
}
.product-card:hover .product-card__cta { gap: .625rem; }

@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- About Teaser / CTA Band ---------- */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band__inner { max-width: 640px; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .875rem; margin-top: 2rem; }

/* ---------- Trust Bar ---------- */
.trust-bar {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
}
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ---------- About Page ---------- */
.about-hero { padding-block: 7rem 4rem; text-align: center; }
.about-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding-bottom: 5rem;
}
.about-prose h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; margin-top: 2rem; }
.about-prose h3:first-child { margin-top: 0; }
.about-prose p { color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.about-prose strong { color: var(--text); }
.about-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.info-card__title { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.info-card__item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .875rem; }
.info-card__item:last-child { margin-bottom: 0; }
.info-card__icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-card__label { font-size: .8125rem; color: var(--muted); }
.info-card__value { font-size: .9375rem; font-weight: 500; }

@media (min-width: 900px) {
  .about-body { grid-template-columns: 1fr 360px; }
}

/* ---------- Products Page ---------- */
.products-page-header {
  padding-block: 7rem 3rem;
  text-align: center;
}
.products-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 100px;
  padding: .5rem 1.125rem;
  font-size: .875rem;
  font-weight: 500;
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Product Detail Page ---------- */
.product-detail { padding-block: 5rem; }
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.product-detail__visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.product-detail__visual svg { width: 60%; height: 60%; }
.product-detail__content h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .75rem; }
.product-detail__content p { color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.spec-table th, .spec-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; }
.spec-table td { font-weight: 600; }

@media (min-width: 900px) {
  .product-detail__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: .9375rem;
  padding: .75rem 1rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field textarea { resize: vertical; min-height: 140px; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 400px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__brand p { color: var(--muted); font-size: .9rem; margin-top: .75rem; max-width: 280px; line-height: 1.65; }
.footer__col-title { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { font-size: .9375rem; color: var(--muted); transition: color .15s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--muted);
}
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { color: var(--muted); transition: color .15s; }
.footer__bottom-links a:hover { color: var(--text); }

@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Contact name row — stack on mobile */
@media (max-width: 480px) {
  .name-row { grid-template-columns: 1fr !important; }
}

/* ---------- Page-specific paddings ---------- */
.page-top { padding-top: calc(var(--nav-h) + 3rem); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up {
  opacity: 0;
  animation: fadeUp .55s ease forwards;
}
.animate-up:nth-child(2) { animation-delay: .1s; }
.animate-up:nth-child(3) { animation-delay: .2s; }
.animate-up:nth-child(4) { animation-delay: .3s; }

/* ---------- Finish Swatches ---------- */
.finish-swatches { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.swatch {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  padding: .25rem .5rem .25rem .3rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: border-color .15s;
}
.swatch:hover { border-color: var(--border); }
.swatch.active { border-color: var(--accent); color: var(--text); }
.swatch__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.swatch__dot--black  { background: #1a1a1a; }
.swatch__dot--silver { background: linear-gradient(135deg, #c8cdd4, #e8ecf0, #a8b0ba); }

/* ---------- Flow Form Process Diagram ---------- */
.process-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 2.5rem 0;
  position: relative;
}
.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-step__line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.process-step__num {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .875rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.process-step__connector {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  opacity: .4;
  margin-top: 4px;
}
.process-step:last-child .process-step__connector { display: none; }
.process-step__content h4 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .375rem; }
.process-step__content p { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.process-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}

/* Product page image gallery */
.img-gallery {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.img-thumb {
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color .15s;
  background: #fff;
}
.img-thumb:hover, .img-thumb.active { border-color: var(--accent); }
.img-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---------- Selection ---------- */
::selection { background: var(--accent); color: #fff; }
