/* ─── FEATURED CARS ─── */
.home-featured {
  padding: 56px 0 48px;
  background: #fff;
}

.home-featured__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.home-featured__title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.home-featured__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.home-featured__view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #0b1a3e;
  background: #f0f2f5;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.home-featured__view-all svg {
  width: 16px;
  height: 16px;
}

.home-featured__view-all:hover {
  background: #0b1a3e;
  color: #fff;
}

.home-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── CAR CARD (home) ─── */
.home-car {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.home-car:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
}

.home-car__media {
  position: relative;
  height: 180px;
  background: #f3f4f6;
  overflow: hidden;
}

.home-car__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-car__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.home-car__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-car__title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.home-car__meta {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.home-car__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.home-car__stars {
  display: flex;
  gap: 2px;
}

.home-car__stars svg {
  width: 14px;
  height: 14px;
}

.home-car__rating-text {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.home-car__rating-count {
  font-size: 11px;
  color: #9ca3af;
}

.home-car__price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.home-car__price-value {
  font-size: 20px;
  font-weight: 800;
  color: #0b1a3e;
}

.home-car__price-period {
  font-size: 12px;
  color: #6b7280;
}

/* ─── BRANDS ─── */
.home-brands {
  padding: 40px 0 48px;
  background: #f5f7fa;
}

.home-brands__header {
  text-align: center;
  margin-bottom: 24px;
}

.home-brands__title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.home-brands__subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.home-brands__card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.home-brands__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.home-brands__cell:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

.home-brands__cell img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ─── CTA ─── */
.home-cta {
  padding: 48px 0 64px;
  background: #fff;
}

.home-cta__card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, #0b1a3e 0%, #1a2a5e 100%);
  border-radius: 20px;
  padding: 44px 48px;
  overflow: hidden;
}

.home-cta__content {
  flex: 1;
}

.home-cta__title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.home-cta__text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 420px;
}

.home-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1a3e;
  background: #fbbf24;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251,191,36,0.25);
}

.home-cta__image {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
}

.home-cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .home-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-brands__card {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .home-featured {
    padding: 40px 0 32px;
  }

  .home-featured__header {
    flex-direction: column;
    gap: 12px;
  }

  .home-featured__title {
    font-size: 20px;
  }

  .home-featured__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .home-car__media {
    height: 140px;
  }

  .home-car__body {
    padding: 12px 14px 14px;
  }

  .home-car__title {
    font-size: 14px;
  }

  .home-car__price-value {
    font-size: 17px;
  }

  .home-brands__card {
    padding: 18px;
    grid-template-columns: repeat(6, 1fr);
  }

  .home-brands__cell {
    padding: 14px 6px;
  }

  .home-brands__cell img {
    max-height: 44px;
  }

  .home-cta__card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .home-cta__text {
    max-width: 100%;
  }

  .home-cta__image {
    width: 100%;
    height: 140px;
  }
}

@media (max-width: 640px) {
  .home-featured__grid {
    grid-template-columns: 1fr;
  }

  .home-featured__title {
    font-size: 18px;
  }

  .home-brands {
    padding: 28px 0 36px;
  }

  .home-brands__title {
    font-size: 18px;
  }

  .home-brands__card {
    padding: 14px;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .home-brands__cell {
    padding: 12px 6px;
  }

  .home-brands__cell img {
    max-height: 40px;
  }

  .home-cta__title {
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .home-brands__card {
    grid-template-columns: repeat(2, 1fr);
  }
}
