/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HERO ===== */
.catalog-hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  background: url('/assets/images/catalog-hero.jpg') center top / 110% no-repeat;
  background-color: #000;
  display: grid;
  place-items: center;
  overflow: hidden; /* ensure overlay stays contained */
}

.catalog-hero-overlay {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1.9rem 3rem; /* same reduced vertical padding */
  text-align: center;
  max-width: 1100px; /* same width as Events hero */
  border: 2px solid #e2bb0c; /* gold border */
  border-radius: 14px;
  background: rgba(0, 0, 0, .55);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45),
              inset 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(8px); /* higher blur for consistency */
}

.catalog-hero-overlay h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: .8px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.75); /* subtle shadow */
  text-transform: none; /* no all caps */
}

.catalog-hero-overlay p {
  font-size: 1.1rem;
  color: #cfcfcf;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* ===== FILTER BAR (adjusted to remove line) ===== */
.filter-bar {
   margin-top: 2rem;
  padding: 2rem;
  display: flex;
  justify-content: center;
  background-color: #000;
  border-bottom: none; /* Remove the faint white line */
}

/* Remove any default button outlines that may show up */
.filter:focus {
  outline: none;
  box-shadow: none;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;                      /* slightly tighter for premium look */
  justify-content: center;
  align-items: center;
}

.filter {
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 9999px;             /* pill buttons */
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.filter:hover,
.filter:focus-visible {
  background-color: #897106;         /* your requested gold hover */
  border-color: #897106;
  color: #000;
  outline: none;
  transform: translateY(-1px);
}

.filter.is-active {
  background-color: #fff;
  color: #000;
  border-color: #fff;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .filter { transition: none; }
}

/* =========================
   WHEEL SECTIONS — FINAL
   (paste over your wheel-series / wheel-row / wheel-card rules)
========================= */

/* Section wrapper: wider frame, tighter padding (less scrolling) */
.wheel-series{
  max-width: 1800px;          /* wider grid */
  margin: 0 auto;
  padding: 2.2rem 16px 0;     /* tighter top */
}
.wheel-series + .wheel-series{ margin-top: 1.8rem; }

/* Series title + price + blurb aligned the same in every section */
.wheel-series h2{
  margin: 0 0 .2rem;
  line-height: 1.06;
  font-size: 2rem;
  color:#fff;
}
.wheel-series h2 .price,
.wheel-series .price{
  display:block;
  margin:.15rem 0 .9rem;      /* fixed rhythm under the H2 */
  font-size:.95rem;
  color:#9a9a9a;
  font-weight:400;
}
.series-desc{
  margin: 0 0 1.25rem;        /* same end gap before grid */
  color:#9a9a9a;
}

/* Grid: true 2×2 on desktop, slightly tighter gaps = wider cards */
.wheel-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(400px,1fr));
  gap: 1.5rem;                /* tighter gap -> wider cards */
  align-items: stretch;
  margin-top: .25rem;
}
@media (max-width: 820px){
  .wheel-row{ grid-template-columns: 1fr; }
}

/* Card: short, centered, button centered at bottom */
.wheel-card{
  display:grid;
  grid-template-rows: 108px  /* media */
                      auto   /* title */
                      auto   /* subcopy */
                      1fr    /* spacer */
                      auto;  /* button */
  gap:.45rem;

  background:#111;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding: .9rem 1rem 1.05rem;
  min-height: 230px;          /* SHORT */
  text-align:center;          /* center everything */
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wheel-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

/* Media: transparent background (no dark plate) */
.wheel-card img{
  grid-row: 1 / 2;
  width:100%;
  height:100%;
  object-fit: contain;
  background: transparent;    /* ← transparent top part */
  border-radius:8px;
}

/* Title */
.wheel-card h3{
  grid-row: 2 / 3;
  margin:.2rem 0 0;
  font-size:1.08rem;
  line-height:1.2;
  color:#897106;              /* gold */
  min-height:1.2em;           /* one line reserved */
}

/* Subcopy (lock to ~2 lines to avoid drift) */
.wheel-card p{
  grid-row: 3 / 4;
  margin:0;
  font-size:.9rem;
  line-height:1.3;
  color:#bbb;
  min-height:2.6em;
}

/* Button: centered and tight */
.wheel-card .btn-secondary{
  grid-row: 5 / 6;
  justify-self:center;        /* centered button */
  padding:.4rem 1rem;
  font-size:.84rem;
  font-weight:700;
  text-transform:uppercase;
  text-decoration: none;
  letter-spacing:.5px;
  background:transparent;
  border:1px solid #897106;
  color:#897106;
  border-radius:14px;
  transition: background-color .18s ease, color .18s ease, transform .08s ease, border-color .18s ease;
}
.wheel-card .btn-secondary:hover{
  background:#897106; color:#000; transform: translateY(-1px);
}

/* ===== HEADER ===== */
.site-header {
  width: 100%;
  background-color: #000;
  color: white;
  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%;
}

.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: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #897106;
}

/* ===== FOOTER ===== */
.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.85rem;
}

.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.3s ease, opacity 0.3s ease;
  font-weight: 600;
}

.footer-center a:hover {
  border-bottom: 1px solid white;
  opacity: 0.7;
}

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

/* ===== FILTER BAR ===== */
.filter-bar {
  padding: 2rem;
  display: flex;
  justify-content: center;
  background-color: #000;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter {
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  background-color: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.filter:hover {
  background-color: #897106;
  color: white;
}

.filter.active {
  background-color: white;
  color: black;
}

/* ===== DEALER CTA (shared for index & catalog) ===== */
.dealer-cta {
  margin-top: 3rem;
  padding: 4rem 2rem;
  background-color: #111;
  text-align: center;
}

.dealer-cta h2 {
  font-size: 2rem;          /* exact match */
  font-weight: 600;         /* match Rajdhani bold style */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;    /* consistent spacing */
}

/* Main CTA Button */
.dealer-cta .btn-primary {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 0.8rem 2rem;
  text-transform: uppercase;
  font-weight: 600;          /* same weight in both places */
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.25s ease,
              color 0.25s ease,
              transform 0.15s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.dealer-cta .btn-primary:hover,
.dealer-cta .btn-primary:focus-visible {
  background-color: #897106;
  color: #000;
  border-color: #897106;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.dealer-cta .btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Remove extra gap below last wheel section */
.wheel-series:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* If the grid inside adds spacing, kill that too */
.wheel-series:last-of-type .wheel-row {
  margin-bottom: 0;
}

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

/* Desaturate all "comingsoonwheel.png" placeholder images */
.wheel-card img[src*="comingsoonwheel.png"] {
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.9;                /* subtle fade for a softer, inactive look */
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Optional: restore color on hover */
.wheel-card:hover img[src*="comingsoonwheel.png"] {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* Enlarge wheel cards and images slightly for stronger presence */
.wheel-card {
  padding: 1.1rem 1.2rem 1.2rem;  /* a bit more breathing room */
  min-height: 270px;              /* was ~230px, gives taller frame */
  transform-origin: center;
}

/* increase the grid row for image area */
.wheel-card {
  --media-h: 250px; /* previously ~220px; tweak 240–260px for preference */
  grid-template-rows: var(--media-h)
                      auto
                      auto
                      1fr
                      auto;
}

/* Ensure images scale within new space */
.wheel-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive adjustments for smaller screens (optional) */
@media (max-width: 820px) {
  .wheel-card { --media-h: 220px; min-height: 250px; }
}

/* --- Adjust CRE991 image scale and position --- */
.wheel-card img[src*="cre991.png"] {
  width: auto;                 /* preserve natural aspect ratio */
  height: 400px;               /* slightly smaller than new media height (250px) */
  object-fit: contain;         /* no cropping */
  display: block;
  margin: 0 auto;              /* center horizontally */
  transform: translateY(-70px); /* visually align top edges with other cards */
}

/* =========================================================
   MACH FIVE CATALOG — 4-WIDE CENTERED GRID (HRE STYLE)
   ========================================================= */

.wheel-series {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 16px 0;
  text-align: center;
}

.wheel-series + .wheel-series {
  margin-top: 3rem;
}

.wheel-series h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.wheel-series .price {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 0.95rem;
  color: #9a9a9a;
  font-weight: 400;
}

.series-desc {
  margin: 0.4rem auto 1.5rem;
  color: #9a9a9a;
  font-style: italic;
  max-width: 800px;
}

/* === FIXED 4-WIDE GRID === */
.wheel-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  align-items: start;
  gap: 2rem 2rem;
}

@media (max-width: 1100px) {
  .wheel-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .wheel-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .wheel-row {
    grid-template-columns: 1fr;
  }
}

/* === INDIVIDUAL WHEEL CARD === */
.wheel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  border: none;
  padding: 0;
  width: 240px;              /* smaller footprint */
  gap: 0.55rem;
}

.wheel-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 1rem;
}

/* === WHEEL IMAGE === */
.wheel-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.wheel-card:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

/* Placeholder wheels desaturated */
.wheel-card img[src*="comingsoonwheel.png"] {
  filter: grayscale(100%) brightness(0.9)
          drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}
.wheel-card:hover img[src*="comingsoonwheel.png"] {
  filter: grayscale(0%) brightness(1)
          drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

/* === TEXT === */
.wheel-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  margin-top: 0.25rem;
}

.wheel-card p {
  color: #b7b7b7;
  font-size: 0.9rem;
  line-height: 1.3;
}

.wheel-card .tag {
  color: #c9c9c9;
}

/* === DETAILS BUTTON === */
.wheel-card .btn-secondary {
  margin-top: 0.35rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.2px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #e8e8e8;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease,
              color 0.2s ease,
              transform 0.1s ease,
              background-color 0.2s ease;
}

.wheel-card .btn-secondary:hover {
  border-color: #fff;
  color: #000;
  background: #fff;
  transform: translateY(-1px);
}

/* Remove CRE991 override so all align identically */
.wheel-card img[src*="cre991.png"] {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transform: none;
  margin: 0;
}

/* === Responsive tweaks === */
@media (max-width: 920px) {
  .wheel-card { width: 200px; }
  .wheel-card img { height: 180px; }
}

@media (max-width: 560px) {
  .wheel-card { width: 90%; }
  .wheel-card img { height: 160px; }
}

/* =========================================================
   SPECIAL SCALE — M5CR991 IMAGE FOCUS
   ========================================================= */

/* Slightly scale up only the CRE991 wheel */
.wheel-card img[src*="cre991.png"] {
  width: 100%;
  height: 200px;              /* keep same bounding box height */
  object-fit: contain;
  transform: scale(1.5);     /* scale up image inside the box */
  transform-origin: center center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}
