/* =========================================================
   Mach Five Wheels – M5CR991 Page
   Complete CSS (header + footer restored)
   ========================================================= */

/* ===== Theme ===== */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #b9b9b9;
  --soft: #dcdcdc;
  --line: rgba(255,255,255,.08);
  --gold: #897106;
  --panel: rgba(255,255,255,.03);
  --panel-border: rgba(255,255,255,.07);
  --shadow: 0 10px 30px rgba(0,0,0,.5);
}

/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.5;
}
a { color: var(--fg); text-decoration: none; }

/* =========================================================
   HEADER (restored)
   ========================================================= */
.site-header {
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.logo {
  flex: 0 0 auto;
  text-align: center;
}
.logo img {
  height: 42px;
  display: block;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 2rem;
  flex: 1;
}
.nav-left { justify-content: flex-start; padding-left: 2rem; }
.nav-right { justify-content: flex-end; padding-right: 2rem; }

.nav-left a,
.nav-right a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
}
.nav-left a:hover,
.nav-right a:hover { color: var(--gold); }

/* Mobile header spacing */
@media (max-width: 680px) {
  .nav-left, .nav-right { gap: 1rem; padding: 0; }
}

/* =========================================================
   GLOBAL BUTTONS (rounded, luxury)
   ========================================================= */
a.btn-primary,
a.btn-ghost,
a.btn-secondary,
.btn-primary,
.btn-ghost,
.btn-secondary {
  display: inline-block;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: transform .08s ease, background .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  border: 2px solid var(--gold);
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-1px);
}

/* =========================================================
   PAGE WRAPPER
   ========================================================= */
.wheel-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 6rem;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.crumbs {
  display: flex;
  gap: .5rem;
  align-items: center;
  color: var(--muted);
  font-size: .95rem;
  margin: .25rem 0 1rem;
}
.crumbs a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.crumbs a:hover { border-bottom-color: var(--muted); }
.crumbs .current { color: var(--soft); }

/* =========================================================
   TITLE BLOCK
   ========================================================= */
.title-block {
  text-align: center;
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}
.title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .5rem;
}
.subtitle {
  color: var(--soft);
  font-size: 1.05rem;
  opacity: .9;
  margin: 0 0 1.25rem;
}
.meta-row {
  display: flex;
  gap: 1rem 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}
.price strong { color: var(--fg); }
.quick-specs span { opacity: .9; }

/* =========================================================
   PRODUCT PANEL (Gallery + Config)
   ========================================================= */
.product-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.25rem;
  padding: 2.25rem 0;
}
@media (max-width: 980px) {
  .product-panel { grid-template-columns: 1fr; }
}

/* ===== Gallery ===== */
.gallery .hero-image {
  margin: 0;
  background: radial-gradient(80% 80% at 50% 50%, rgba(255,255,255,.06), transparent 60%);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gallery .hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.thumbs {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.thumb {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: .35rem;
  cursor: pointer;
  transition: border-color .2s ease, transform .08s ease;
}
.thumb:hover { border-color: var(--gold); transform: translateY(-1px); }
.thumb.is-active { border-color: var(--gold); }
.thumb img { width: 80px; height: 60px; object-fit: cover; display: block; }

/* ===== Config Card ===== */
.config { display: flex; align-items: flex-start; }
.config-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.config-card h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  letter-spacing: .6px;
}
.config-card .row { margin-bottom: 1.25rem; }
.config-card label {
  display: block;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  margin-bottom: .5rem;
}
.pills { display: flex; gap: .5rem; flex-wrap: wrap; }

.pill {
  padding: .5rem .9rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--fg);
  font-weight: 600;
  cursor: default;          /* not a button */
  transition: none;         /* no hover/press animation */
}

/* no hover effects */
.pill:hover {
  border-color: var(--panel-border);
  transform: none;
}

/* remove gold “selected” styling */
.pill.is-selected {
  border-color: var(--panel-border);
  background: rgba(255,255,255,.05);
}

.hint {
  margin-top: .4rem;
  font-size: .95rem;
  color: var(--muted);
}

/* Neutral non-interactive swatches */
.swatches { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.swatch {
  width: 28px; 
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--panel-border);
  cursor: default;          /* no click hand */
  transition: none;         /* no hover animation */
}

/* keep the different finishes' colors */
.swatch:nth-child(1) { background: linear-gradient(135deg, #999999ff, #7a7a7a); }
.swatch:nth-child(2) { background: linear-gradient(135deg, #1a1a1a, #444); }
.swatch:nth-child(3) { background: linear-gradient(135deg, #cf9e42ff, #6e6860); }
.swatch:nth-child(4) { background: linear-gradient(135deg, #ffffffff, #b7b7b7); }

/* remove hover color change */
.swatch:hover { 
  border-color: var(--panel-border);
  transform: none;
}

.swatch-label { 
  color: var(--muted); 
  margin-left: .25rem; 
}

.cta-row { display: flex; gap: .75rem; margin: 1rem 0 1.1rem; flex-wrap: wrap; }

/* Trust list */
.trust-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
}
.trust-list li {
  position: relative;
  padding-left: 1.3rem;
  margin: .35rem 0;
}
.trust-list li::before {
  content: "•";
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
}

/* =========================================================
   DETAILS (Specs + Copy) — updated
   ========================================================= */
.details {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.details .copy {
  /* Push the text down to match first box row height */
  margin-top: calc(2rem + 2px); /* matches spec-grid li top padding + border */
}

@media (max-width: 980px) {
  .details { grid-template-columns: 1fr; }
}

.specs h3 {
  margin: 0 0 .75rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.spec-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1rem;
}
@media (max-width: 720px) {
  .spec-grid { grid-template-columns: 1fr; }
}

.spec-grid .full { grid-column: 1 / -1; }

/* Looser, more breathable rows */
.spec-grid li {
  display: grid;
  /* Label sizes to content; value gets the rest without choking */
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 0.65rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  align-items: center;
}

/* Label stays on one line and doesn’t hog space */
.spec-grid .k {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  padding-right: 0.25rem;
}

/* Value gets maximum flexibility */
.spec-grid .v {
  color: var(--fg);
  line-height: 1.4;
  /* Prevent weird over-wraps on long tech strings */
  overflow-wrap: anywhere;
}

.copy p { color: #ddd; margin: 0 0 1rem; }
.copy a { color: var(--fg); border-bottom: 1px dashed var(--fg); }
.copy a:hover { border-bottom-style: solid; }

.special-order-box {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem 0.85rem 1.5rem; /* tightened and shifted right */
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: rgba(137, 113, 6, 0.05);
  box-shadow: inset 0 0 12px rgba(137, 113, 6, 0.15);
}

.special-order-box h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
}

.special-order-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.special-order-box li {
  padding-left: 1rem;
  position: relative;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.special-order-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}
/* =========================================================
   LINKS ROW
   ========================================================= */
.links {
  display: flex;
  justify-content: center;
  gap: .75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 2rem;
  color: var(--muted);
}
.links a {
  color: var(--soft);
  border-bottom: 1px solid transparent;
}
.links a:hover { border-bottom-color: var(--soft); }

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  gap: .5rem;
  padding: .65rem .9rem;
  background: rgba(0,0,0,.8);
  border-top: 1px solid var(--panel-border);
  backdrop-filter: blur(6px);
  z-index: 999;
}
@media (max-width: 820px) {
  .sticky-cta { display: flex; justify-content: center; }
}

/* =========================================================
   FOOTER (restored)
   ========================================================= */
.site-footer {
  width: 100%;
  padding: 1.5rem 2rem;
  background-color: #111;
  color: #aaa;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.footer-left { flex: 1; color: #777; }
.footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-center a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border 0.25s ease, opacity 0.25s ease;
  font-weight: 600;
}
.footer-center a:hover { border-bottom: 1px solid #fff; opacity: 0.7; }

.footer-right {
  flex: 1;
  text-align: right;
  color: #999;
  font-style: italic;
}

/* Optional: gold highlight for “Contact Page” links inside legal docs */
.terms-wrapper .terms-content a[href$="contact.html"] {
  color: var(--gold);
  font-weight: 600;
}
.terms-wrapper .terms-content a[href$="contact.html"]:hover {
  text-decoration: underline;
}

/* Gold underline for Contact a dealer and Speak with us links */
.copy a[href="/pages/dealer-locator.html"],
.copy a[href="/pages/contact.html"] {
  border-bottom: 1px dashed var(--gold);
  font-style: italic;
}

.copy a[href="/pages/dealer-locator.html"]:hover,
.copy a[href="/pages/contact.html"]:hover {
  border-bottom-style: solid;
}

.site-header .logo a img {
  transform: scale(1.75);
  transform-origin: center;
}

/* Perfectly aligned, centered gallery + options box */
.product-panel {
  display: grid;
  grid-template-columns: auto auto;
  align-items: start;          /* ✅ ensures top edges line up exactly */
  justify-content: center;     /* centers the pair as one unit */
  gap: 2.25rem;
  padding: 2.25rem 0;
}

/* Keep both panels same width for visual symmetry */
.gallery,
.config-card {
  max-width: 400px;
  width: 100%;
}

/* Stack gallery vertically, align center */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* ✅ ensures top of hero image starts at same height as config box */
}

.gallery .hero-image {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;     /* keeps image aligned to top of container */
}

.gallery .hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Thumbnails centered directly under image */
.thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

/* Config card visuals */
.config-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ✅ matches vertical alignment of gallery */
}

/* Mobile stacking */
@media (max-width: 980px) {
  .product-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
  }

  .gallery,
  .config-card {
    max-width: 90%;
  }
}

/* === Corrected two-column product panel === */
.product-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;     /* side by side */
  justify-content: center;
  align-items: start;
  gap: 2rem;
  padding: 2.25rem 0;
  max-width: 1100px;                  /* keeps layout from becoming massive */
  margin: 0 auto;                     /* center whole block */
}

/* Both columns same width */
.gallery,
.config-card {
  max-width: 480px;                   /* MATCH WIDTH HERE */
  width: 100%;
}

/* Keep hero image scaled naturally */
.gallery .hero-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}
.gallery .hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Center thumbs below image */
.thumbs {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .product-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery,
  .config-card {
    max-width: 90%;
  }
}
