/* ============================================================
   HOMEPAGE - Pixel-perfect match to design screenshots
   ============================================================ */

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-bg-gradient);
  padding: var(--sp-16) 0 var(--sp-12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    ellipse,
    rgba(245, 183, 49, var(--hero-glow-opacity)) 0%,
    transparent 70%
  );
}
.hero-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--clr-bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.hero-text {
  order: 2;
}
.hero-image {
  order: 1;
  position: relative;
}

.hero-eyebrow {
  font-size: var(--font-size-sm);
  color: var(--clr-gold);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--clr-gold);
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: var(--sp-4);
  color: var(--clr-white);
}
.hero-title .highlight {
  color: var(--clr-gold);
  position: relative;
}

.hero-subtitle {
  font-size: var(--font-size-base);
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-8);
  max-width: 420px;
}

/* ── Vehicle Search Box ── */
.vehicle-search-box {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--sp-4);
}

.search-box-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--font-size-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
}
.search-box-header svg {
  width: 16px;
  height: 16px;
  color: var(--clr-gold);
}

.search-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.search-select-wrap {
  position: relative;
}
.search-select-wrap select {
  width: 100%;
  background: var(--clr-bg-input);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 10px var(--sp-3);
  color: var(--clr-text);
  font-size: var(--font-size-sm);
  font-family: inherit;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.search-select-wrap select:focus {
  border-color: var(--clr-gold);
}
.search-select-wrap::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--clr-text-dim);
  pointer-events: none;
}

.search-select-wrap .select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-dim);
  pointer-events: none;
}
.search-select-wrap .select-icon svg {
  width: 14px;
  height: 14px;
}

.search-btn {
  background: var(--clr-gold);
  color: #0d0f14;
  border-radius: var(--radius-md);
  padding: 11px var(--sp-6);
  font-size: var(--font-size-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.search-btn:hover {
  background: var(--clr-gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
.search-btn svg {
  width: 16px;
  height: 16px;
}

.search-history {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--font-size-xs);
  color: var(--clr-text-dim);
  margin-top: var(--sp-3);
}
.search-history svg {
  width: 12px;
  height: 12px;
}
.search-history-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.search-history-tag {
  padding: 2px 10px;
  background: var(--clr-bg-input);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}
.search-history-tag:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

/* ── Hero Image Area ── */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 20px 60px rgba(245, 183, 49, 0.15));
  animation: floatImg 4s ease-in-out infinite;
}
@keyframes floatImg {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ── Brands Slider ── */
.brands-section {
  padding: var(--sp-10) 0;
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
}

.brands-section-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.brands-section-header h2 {
  font-size: var(--font-size-xl);
  color: var(--clr-white);
  margin-bottom: var(--sp-2);
}
.brands-section-header .title-bar {
  width: 40px;
  height: 3px;
  background: var(--clr-gold);
  border-radius: 2px;
  margin: 0 auto;
}

.brands-slider-wrap {
  position: relative;
  overflow: hidden;
}

.brands-slider {
  display: flex;
  gap: var(--sp-4);
  transition: transform 0.4s ease;
  padding: var(--sp-2) 0;
}

.brand-slide-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  width: 100px;
  cursor: pointer;
  transition: transform var(--transition);
}
.brand-slide-item:hover {
  transform: translateY(-3px);
}

.brand-slide-logo {
  width: 72px;
  height: 72px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.brand-slide-item:hover .brand-slide-logo {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 2px rgba(245, 183, 49, 0.2);
}
.brand-slide-item.active .brand-slide-logo {
  border-color: var(--clr-gold);
  background: var(--clr-gold-bg);
}
.brand-slide-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
}

.brand-slide-name {
  font-size: var(--font-size-xs);
  color: var(--clr-text-muted);
  text-align: center;
}
.brand-slide-item.active .brand-slide-name {
  color: var(--clr-gold);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition);
  color: var(--clr-text);
}
.slider-arrow:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}
.slider-arrow.prev {
  right: 0;
}
.slider-arrow.next {
  left: 0;
}

/* ── Category Cards ── */
.categories-section {
  padding: var(--sp-12) 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-5);
  cursor: pointer;
  transition: transform var(--transition);
  border: 1px solid transparent;
}
.category-card:hover {
  transform: translateY(-4px);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}
.category-card:hover .category-card-bg {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
}

.category-card .content {
  position: relative;
  z-index: 2;
}

.category-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
.category-card .icon-wrap svg {
  width: 22px;
  height: 22px;
}

.category-card h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--sp-1);
}
.category-card p {
  font-size: var(--font-size-xs);
  opacity: 0.8;
  margin-bottom: var(--sp-4);
}

.category-card .cat-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: all var(--transition);
}
.category-card .cat-btn svg {
  width: 14px;
  height: 14px;
}

/* Card color variants from screenshot */
.cat-oil {
  background: linear-gradient(135deg, #1a1200 0%, #2d1f00 100%);
}
.cat-oil .overlay {
  background: linear-gradient(to top, rgba(245, 183, 49, 0.3), transparent);
}
.cat-oil .icon-wrap {
  background: rgba(245, 183, 49, 0.15);
  color: var(--clr-gold);
}
.cat-oil h3,
.cat-oil p {
  color: var(--clr-white);
}
.cat-oil .cat-btn {
  background: var(--clr-gold);
  color: #0d0f14;
}

.cat-filter {
  background: linear-gradient(135deg, #001520 0%, #002533 100%);
}
.cat-filter .overlay {
  background: linear-gradient(to top, rgba(59, 130, 246, 0.3), transparent);
}
.cat-filter .icon-wrap {
  background: rgba(59, 130, 246, 0.15);
  color: var(--clr-blue);
}
.cat-filter h3,
.cat-filter p {
  color: var(--clr-white);
}
.cat-filter .cat-btn {
  background: var(--clr-blue);
  color: #fff;
}

.cat-parts {
  background: linear-gradient(135deg, #001a00 0%, #002200 100%);
}
.cat-parts .overlay {
  background: linear-gradient(to top, rgba(34, 197, 94, 0.3), transparent);
}
.cat-parts .icon-wrap {
  background: rgba(34, 197, 94, 0.15);
  color: var(--clr-green);
}
.cat-parts h3,
.cat-parts p {
  color: var(--clr-white);
}
.cat-parts .cat-btn {
  background: var(--clr-green);
  color: #0d0f14;
}

.cat-articles {
  background: linear-gradient(135deg, #0a0020 0%, #120035 100%);
}
.cat-articles .overlay {
  background: linear-gradient(to top, rgba(139, 92, 246, 0.3), transparent);
}
.cat-articles .icon-wrap {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.cat-articles h3,
.cat-articles p {
  color: var(--clr-white);
}
.cat-articles .cat-btn {
  background: #7c3aed;
  color: #fff;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--clr-bg-card);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-6) 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--sp-6);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--clr-gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gold);
  flex-shrink: 0;
}
.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-info .value {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1;
  margin-bottom: 2px;
}
.stat-info .label {
  font-size: var(--font-size-xs);
  color: var(--clr-text-muted);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    order: 1;
  }
  .hero-image {
    order: 2;
  }
  .hero-subtitle {
    margin: 0 auto var(--sp-8);
  }
  .search-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: var(--sp-8) 0;
    min-height: auto;
  }
  .search-filters {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive hardening v1.2.1 – removed from home.css: all rules consolidated in responsive.css */
