/* "Get your home-service business recommended in AI answers" guide: the image-led
   trades bento. Loaded only by /guides/home-service-ai-recommendations (meta.json "css").
   Tokens come from site.css. One link per tile, overlay never below .35 alpha,
   motion is transform/opacity only (under 300ms), hover is gated to devices that
   can hover, and everything is switched off for prefers-reduced-motion. */

.hs-trades {
  --hs-ease: cubic-bezier(0.23, 1, 0.32, 1);
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: var(--s3);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}
.hs-trade {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 19rem;
  border-radius: 20px;
  background: #10161c;
  box-shadow: 0 1px 2px rgba(16, 22, 28, 0.18);
}
.hs-trade picture,
.hs-trade picture img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hs-trade picture img { transition: transform 600ms var(--hs-ease); }
/* Overlay: text stays readable on the lightest part of the photo. */
.hs-trade::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 14, 18, 0.92) 0%, rgba(10, 14, 18, 0.68) 52%, rgba(10, 14, 18, 0.35) 100%);
}
.hs-trade__link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  height: 100%;
  min-height: inherit;
  padding: var(--s4);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms var(--hs-ease);
}
.hs-trade__link:focus-visible { outline: 3px solid var(--beacon-hi); outline-offset: -6px; border-radius: 20px; }
.hs-trade__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hs-trade__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.hs-trade__desc {
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.hs-trade__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.hs-trade__cta::after {
  content: "\2192";
  margin-left: 0.5rem;
  transition: transform 200ms var(--hs-ease);
}
.hs-trade__link:active { transform: scale(0.985); }

@media (min-width: 640px) {
  .hs-trades { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(13rem, auto); }
  .hs-trade { min-height: 13rem; }
  .hs-trade--lead { grid-row: span 3; }
  .hs-trade--lead .hs-trade__title { font-size: var(--step-2); }
}

@media (hover: hover) and (pointer: fine) {
  .hs-trade { transition: transform 260ms var(--hs-ease), box-shadow 260ms var(--hs-ease); }
  .hs-trade:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -8px rgba(16, 22, 28, 0.28), 0 28px 56px -22px rgba(16, 22, 28, 0.32); }
  .hs-trade:hover picture img { transform: scale(1.04); }
  .hs-trade:hover .hs-trade__cta::after { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hs-trade, .hs-trade picture img, .hs-trade__link, .hs-trade__cta::after { transition: none; }
  .hs-trade:hover, .hs-trade:hover picture img, .hs-trade__link:active { transform: none; }
}
