.home-hero {
  position: relative;
  background: linear-gradient(180deg, #eef1ef 0%, #f6f7f6 100%);
  overflow: hidden;
}

.hero-slides {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide--image {
  display: flex;
}

.hero-image-link {
  display: block;
  width: 100%;
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 460px;
  aspect-ratio: 32 / 9;
  object-fit: cover;
}

.home-hero-visual a:not(.home-hero-hint) {
  display: contents;
}

.hero-arrow,
.hero-arrow:hover,
.hero-arrow:focus {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-top: -22px;
  border: 1px solid var(--color-border) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--color-secondary) !important;
  box-shadow: var(--box-shadow) !important;
  cursor: pointer;
  transition: color 0.2s;
}

.hero-arrow:hover {
  color: var(--color-primary) !important;
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot,
.hero-dot:hover,
.hero-dot:focus {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none !important;
  border-radius: 999px !important;
  background: #c3cbc7 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    width 0.2s,
    background 0.2s;
}

.hero-dot.is-active {
  width: 26px;
  background: var(--color-primary) !important;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  min-height: 324px;
}

.home-hero-text {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0 3.5rem;
}

.home-hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-secondary);
}

.home-hero-title span {
  display: block;
  color: var(--color-primary);
}

.home-hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: #4a5458;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-hero-actions .btn {
  min-height: 48px;
}

.home-hero-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.home-hero-shape {
  position: absolute;
  top: 14px;
  bottom: -40px;
  left: 0;
  width: 46%;
  background: linear-gradient(135deg, #1e9a4c 0%, var(--color-primary) 60%, #0d7034 100%);
  clip-path: polygon(48% 0, 100% 0, 52% 100%, 0 100%);
  opacity: 0.95;
}

.home-hero-watermark {
  position: absolute;
  right: -1rem;
  top: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10rem;
  line-height: 1;
  color: rgba(21, 25, 28, 0.05);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.home-hero-image {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 320px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-hero-hint {
  position: relative;
  z-index: 1;
  max-width: 280px;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--color-primary);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  color: var(--color-primary-dark);
}

.home-content {
  position: relative;
  z-index: 3;
  padding-bottom: 3rem;
}

.vehicle-finder--home {
  margin: -1.25rem 0 1.75rem;
  padding: 1.125rem 1.25rem 1.25rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.vehicle-finder--home .vehicle-finder-title {
  margin: 0 0 0.875rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.category-tile {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem 1.125rem;
  background: #fff;
  border: 1px solid #e8ece9;
  border-radius: var(--border-radius);
  color: var(--color-secondary);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.category-tile:hover {
  border-color: #cfe3d6;
  box-shadow: var(--box-shadow);
  color: var(--color-primary);
}

.category-tile-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 126px;
  margin-bottom: 0.5rem;
}

.category-tile-image img {
  max-width: 100%;
  max-height: 126px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s;
}

.category-tile:hover .category-tile-image img {
  transform: scale(1.04);
}

.category-tile .category-icon-fallback {
  width: 96px;
  height: 96px;
  background: var(--color-primary-soft);
}

.category-tile-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
}

.home-section {
  margin-bottom: 2.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.section-title {
  margin: 0 !important;
  line-height: 1.2;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--color-secondary);
}

@media (max-width: 1024px) {
  .home-hero-inner {
    grid-template-columns: 1.1fr 1fr;
    min-height: 0;
  }

  .category-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .home-hero-text {
    padding: 1.75rem 0 1.5rem;
    max-width: 62%;
  }

  .home-hero-title {
    font-size: 1.875rem;
  }

  .home-hero-lead {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .home-hero-actions .btn-outline {
    display: none;
  }

  .home-hero-actions .btn {
    min-height: 44px;
    padding: 0 1.25rem;
    font-size: 0.875rem;
  }

  .home-hero-visual {
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    width: 52%;
    min-height: 0;
  }

  .home-hero-shape {
    left: 20%;
    width: 80%;
    top: 0;
    bottom: 0;
  }

  .home-hero-watermark,
  .home-hero-hint,
  .hero-arrow {
    display: none !important;
  }

  .hero-dots {
    bottom: 0.75rem;
  }

  .hero-banner-image {
    min-height: 0;
    aspect-ratio: 16 / 7;
  }

  .home-hero-image {
    margin-top: 3rem;
  }


  .vehicle-finder--home {
    margin: 0 0 1rem;
    padding: 1rem;
  }

  .vehicle-finder--home .vehicle-finder-title {
    font-size: 1rem;
  }

  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    margin-bottom: 1.5rem;
  }

  .category-tile {
    padding: 0.5rem 0.75rem 0.875rem;
  }

  .category-tile-image {
    height: 100px;
  }

  .category-tile-name {
    font-size: 0.875rem;
  }

  .section-title {
    font-size: 1.1875rem;
  }

  .section-head .link-arrow {
    font-size: 0.875rem;
  }
}
