/* Homepage — Figma 15:5 @ 1280 (node-verified sections) */

.home-page .container {
  max-width: 1280px;
  padding-left: 40px;
  padding-right: 40px;
}

/* ── Vehicle filter: 15:12, 291px ── */
.home-page .vehicle-filter {
  padding: 48px 0 49px;
  background: #ffffff;
  border-top: 1px solid var(--color-border-accent, #e4beba);
  border-bottom: 1px solid var(--color-border-accent, #e4beba);
}

.home-page .vehicle-filter__panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  background: #eceef0;
  border-radius: 0;
}

.home-page .vehicle-filter__title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-navy, #2c3e50);
}

.home-page .vehicle-filter__grid {
  grid-template-columns: repeat(4, 266px);
  gap: 24px;
  justify-content: center;
}

.home-page .vehicle-filter__grid .field__label {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.6px;
  color: #64748b;
}

.home-page .vehicle-filter__grid .select {
  height: 50px;
  border-color: var(--color-border-accent, #e4beba);
  color: #191c1e;
}

.home-page .vehicle-filter__grid .btn--dark {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  background: var(--color-navy, #2c3e50);
  border-radius: 0;
}

/* ── Bento garage: 15:61, 1004px ── */
.home-page .section--garage {
  padding: 80px 0;
  background: #f7f9fb;
}

.home-page .section__header {
  align-items: flex-end;
  margin-bottom: 48px;
}

.home-page .section-eyebrow {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--color-primary, #d42f33);
}

.home-page .section__title--left {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.32px;
  color: var(--color-navy, #2c3e50);
}

.home-page .section__link {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #64748b;
  padding-bottom: 8px;
}

.home-page .bento-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.home-page .bento-grid .vehicle-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border-accent, #e4beba);
  background: #ffffff;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    border-color 0.25s ease;
}

.home-page .section--garage.is-inview .vehicle-card {
  opacity: 1;
  transform: translateY(0);
}

.home-page .section--garage.is-inview .vehicle-card:nth-child(1) { transition-delay: 0ms; }
.home-page .section--garage.is-inview .vehicle-card:nth-child(2) { transition-delay: 70ms; }
.home-page .section--garage.is-inview .vehicle-card:nth-child(3) { transition-delay: 140ms; }
.home-page .section--garage.is-inview .vehicle-card:nth-child(4) { transition-delay: 210ms; }
.home-page .section--garage.is-inview .vehicle-card:nth-child(5) { transition-delay: 280ms; }

.home-page .bento-grid .vehicle-card:hover {
  border-color: var(--color-primary);
}

.home-page .bento-grid .vehicle-card__image {
  background: #eceef0;
  transition: transform 0.5s ease;
}

.home-page .bento-grid .vehicle-card:hover .vehicle-card__image {
  transform: scale(1.04);
}

.home-page .bento-grid .vehicle-card__overlay {
  padding: 32px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
  transition: background 0.35s ease;
}

.home-page .bento-grid .vehicle-card:hover .vehicle-card__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.72) 100%);
}

.home-page .bento-grid .vehicle-card__name {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: none;
  color: #ffffff;
  transition: transform 0.35s ease;
}

.home-page .bento-grid .vehicle-card:hover .vehicle-card__name {
  transform: translateY(-4px);
}

.home-page .bento-grid .vehicle-card--large {
  grid-column: span 8;
  height: 400px;
}

.home-page .bento-grid .vehicle-card--top {
  grid-column: span 4;
  height: 400px;
}

.home-page .bento-grid .vehicle-card--bottom {
  grid-column: span 4;
  height: 300px;
}

.home-page .bento-grid .vehicle-card__tag {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #e0e3e5;
}

.home-page .garage-categories {
  margin-top: 64px;
}

.home-page .garage-categories__title {
  margin: 0 0 32px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.24px;
  color: var(--color-navy, #2c3e50);
}

.home-page .category-carousel {
  overflow: hidden;
  margin: 0 -8px;
  padding: 0 8px;
}

.home-page .category-carousel__track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.home-page .category-carousel__track--marquee {
  animation: category-marquee 45s linear infinite;
}

.home-page .category-carousel__track--static {
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
  gap: 24px;
}

.home-page .category-card {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.home-page .category-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border-accent);
  transition: border-color 0.2s, background 0.2s;
}

.home-page .category-card:hover .category-card__media {
  border-color: var(--color-navy);
  background: var(--color-white);
}

.home-page .category-card__media img {
  width: auto;
  height: auto;
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.home-page .category-card__title {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  color: var(--color-navy);
  transition: color 0.2s;
}

.home-page .category-card:hover .category-card__title {
  color: var(--color-primary);
}

@keyframes category-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .bento-grid .vehicle-card {
    opacity: 1;
    transform: none;
    transition: border-color 0.2s ease;
  }

  .home-page .bento-grid .vehicle-card__image,
  .home-page .bento-grid .vehicle-card__name,
  .home-page .bento-grid .vehicle-card__overlay {
    transition: none;
  }

  .home-page .bento-grid .vehicle-card:hover .vehicle-card__image,
  .home-page .bento-grid .vehicle-card:hover .vehicle-card__name {
    transform: none;
  }

  .home-page .category-carousel__track--marquee {
    animation: none;
  }
}

/* ── Products: 15:101, 744px ── */
.home-page .section--products {
  padding: 80px 0;
  background: #ffffff;
}

.home-page .section__head-center {
  margin-bottom: 64px;
}

.home-page .section-eyebrow--center {
  margin-bottom: 12px;
}

.home-page .section__title--center {
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1.6px;
  color: var(--color-navy, #2c3e50);
}

.home-page .product-grid {
  grid-template-columns: repeat(4, 282px);
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

.home-page .product-card__media {
  aspect-ratio: 1 / 1;
  background: #f2f4f6;
  border: 1px solid var(--color-border-accent, #e4beba);
}

.home-page .product-card__body {
  padding-top: 24px;
}

.home-page .product-card__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
}

.home-page .product-card__row {
  margin-bottom: 16px;
}

.home-page .product-card__price {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--color-navy, #2c3e50);
}

.home-page .product-card__cta {
  height: 34px;
  border-color: var(--color-navy, #2c3e50);
  color: #191c1e;
  border-radius: 0;
}

.home-page .product-card__cta:hover {
  background: #f2f4f6;
  color: #191c1e;
}

/* ── Mid-page heroes (Figma Home EN/AR) ── */
.home-page .hero--hardware,
.home-page .hero--car {
  margin-top: 64px;
}

/* Hardware: EN full-bleed photo + CSS scrim (no stacked gradient PNG) */
.home-page .hero--hardware {
  background: #1a1a1a;
}

.home-page .hero-hardware__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-page .hero-hardware__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.home-page .hero-hardware__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hardware AR: white split — mount photo left, copy on light panel right */
[dir='rtl'] .home-page .hero--hardware {
  background: #f7f9fb;
}

[dir='rtl'] .home-page .hero-hardware__media {
  inset: 0 auto 0 0;
  width: 52%;
}

[dir='rtl'] .home-page .hero-hardware__media::after {
  background: linear-gradient(90deg, rgba(247, 249, 251, 0) 55%, #f7f9fb 100%);
}

[dir='rtl'] .home-page .hero-hardware__img {
  object-position: left center;
}

[dir='rtl'] .home-page .hero--hardware .hero__title {
  color: #191c1e;
}

[dir='rtl'] .home-page .hero--hardware .hero__title-line--accent {
  color: var(--color-primary, #d42f33);
}

[dir='rtl'] .home-page .hero--hardware .hero__text {
  color: #43474e;
}

/* Car / Integrated hero: EN navy + car right, AR red + car left */
.home-page .hero--car {
  background: var(--color-navy, #2c3e50);
}

.home-page .hero-car__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.home-page .hero-car__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.home-page .hero--car .hero__title-line--accent {
  color: #ffffff;
}

.home-page .hero--car .hero__inner {
  z-index: 1;
}

[dir='rtl'] .home-page .hero--car {
  background: #c8102e;
}

[dir='rtl'] .home-page .hero-car__img {
  object-position: left center;
}

[dir='rtl'] .home-page .hero--car .hero__title-line--accent {
  color: var(--color-navy, #2c3e50);
}

[dir='rtl'] .home-page .hero--car .hero-car__cta {
  background: var(--color-navy, #2c3e50);
}

[dir='rtl'] .home-page .hero--car .hero-car__cta:hover {
  background: #1a2836;
}

[dir='rtl'] .home-page .hero--hardware .hero__title-line,
[dir='rtl'] .home-page .hero--car .hero__title-line {
  white-space: normal;
}

/* Phones: copy on solid colour first, photo underneath, so the text never sits on the picture. */
@media (max-width: 768px) {
  .home-page .hero--car {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .home-page .hero--car .hero__inner {
    order: 1;
    height: auto;
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .home-page .hero--car .hero-car__media {
    position: relative;
    inset: auto;
    order: 2;
    height: 280px;
  }

  .home-page .hero--car .hero-car__img {
    object-position: right bottom;
  }

  [dir='rtl'] .home-page .hero--car .hero-car__img {
    object-position: left bottom;
  }

  /* Arabic banner is red: a navy accent line has too little contrast there. */
  [dir='rtl'] .home-page .hero--car .hero__title-line--accent {
    color: #ffffff;
  }
}

.home-page .stars {
  font-size: 11px;
  letter-spacing: 1px;
}

/* ── Trust: 15:200, 338px ── */
.home-page .trust-section {
  padding: 80px 0;
  background: var(--color-navy, #2c3e50);
}

.home-page .trust-grid {
  grid-template-columns: repeat(3, 357px);
  gap: 64px;
  justify-content: center;
}

.home-page .trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 42px;
  margin-bottom: 16px;
}

.home-page .trust-card__icon svg,
.home-page .trust-card__icon img {
  width: auto;
  height: 100%;
  display: block;
}

.home-page .trust-card__title {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
}

.home-page .trust-card__text {
  max-width: 357px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #d8dadc;
}

/* ── Blog: 15:226, 676px ── */
.home-page .section--blog {
  padding: 80px 0;
  background: #f7f9fb;
}

.home-page .section--blog.section {
  padding: 80px 0;
}

.home-page .section--blog .section__header--blog {
  margin-bottom: 48px;
}

.home-page .blog-grid {
  grid-template-columns: repeat(3, 384px);
  gap: 24px;
  justify-content: center;
}

.home-page a.blog-card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-page a.blog-card:hover {
  border-color: var(--color-navy, #2c3e50);
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
}

.home-page a.blog-card:hover .blog-card__read-more {
  color: var(--color-primary-dark, #b0101e);
}

.home-page .blog-card {
  height: 428px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-accent, #e4beba);
  background: #ffffff;
}

.home-page .blog-card__image {
  width: 100%;
  height: 192px;
  aspect-ratio: auto;
  object-fit: cover;
  background: #eceef0;
}

.home-page .blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 24px;
}

.home-page .blog-card__category {
  margin-bottom: 10px;
}

.home-page .blog-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-navy, #2c3e50);
}

.home-page .blog-card__excerpt {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #64748b;
}

.home-page .blog-card__read-more {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-primary, #d42f33);
}

/* ── Footer (uses shared layout.css structure) ── */
.home-page .footer {
  padding: 56px 0 0;
  background: #e0e3e5;
  border-top: 1px solid var(--color-border-accent, #e4beba);
}

@media (max-width: 1240px) {
  .home-page .blog-grid,
  .home-page .trust-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .home-page .blog-card {
    height: auto;
  }
}

@media (max-width: 640px) {
  .home-page .garage-categories {
    margin-top: 48px;
  }

  .home-page .garage-categories__title {
    margin-bottom: 24px;
    font-size: 20px;
    line-height: 28px;
  }

  .home-page .category-card {
    flex-basis: 140px;
  }

  .home-page .category-card__media {
    padding: 22px;
  }

  .home-page .category-card__media img {
    max-width: 60px;
    max-height: 60px;
  }

  .home-page .category-card__title {
    margin-top: 12px;
    font-size: 13px;
  }
}
