/* Isolated homepage experiment: image-led repair routes inside the hero. */
.hero-preview .hero,
.hero-preview .hero-grid {
  min-height: 700px;
}

.hero-preview .hero {
  padding: 0;
}

.hero-preview .hero-grid {
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}

.hero-preview .hero-panel {
  gap: 16px;
}

.hero-preview .upload-card {
  padding: 16px;
}

.hero-preview .drop-zone {
  min-height: 104px;
  padding: 15px 18px;
}

.hero-preview .upload-card > p {
  margin-top: 9px;
}

.hero-repair-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 126, 0.08), transparent 42%),
    rgba(11, 14, 20, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.3);
}

.hero-repair-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 1px 2px 11px;
}

.hero-repair-head span,
.hero-repair-head strong {
  display: block;
}

.hero-repair-head span {
  margin-bottom: 2px;
  color: #9ba6b4;
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-repair-head strong {
  color: #fff;
  font-size: 1rem;
}

.hero-repair-head > a {
  padding-bottom: 1px;
  color: #ffb87e;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.hero-repair-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hero-repair-category {
  min-height: 116px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: #151a22;
  isolation: isolate;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-repair-category::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.08) 12%, rgba(6, 8, 12, 0.94) 100%);
}

.hero-repair-category img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 180ms ease, filter 180ms ease;
}

.hero-repair-category > span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
}

.hero-repair-category strong,
.hero-repair-category small {
  display: block;
}

.hero-repair-category strong {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.25;
}

.hero-repair-category small {
  margin-top: 2px;
  color: #ffc394;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-repair-category:hover,
.hero-repair-category:focus-visible {
  border-color: rgba(255, 184, 126, 0.72);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.hero-repair-category:hover img,
.hero-repair-category:focus-visible img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.025);
}

@media (max-width: 1080px) {
  .hero-preview .hero-grid {
    gap: 34px;
  }

  .hero-repair-category {
    min-height: 108px;
  }
}

@media (max-width: 820px) {
  .hero-preview .hero,
  .hero-preview .hero-grid {
    min-height: auto;
  }

  .hero-preview .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 62px;
  }

  .hero-preview .hero-panel {
    width: 100%;
    max-width: 620px;
  }

  .hero-repair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-repair-category {
    min-height: 128px;
  }
}

@media (max-width: 560px) {
  .hero-preview .hero-panel {
    max-width: none;
  }

  .hero-repair-panel {
    padding: 11px;
  }

  .hero-repair-head {
    align-items: start;
  }

  .hero-repair-category {
    min-height: 108px;
  }

  .hero-repair-category > span {
    right: 9px;
    bottom: 8px;
    left: 9px;
  }

  .hero-repair-category strong {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-repair-category,
  .hero-repair-category img {
    transition: none;
  }
}
