/* Homepage only; the existing product carousels keep their own controls. */
#home > .hero-background {
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease-in-out;
}

#home > .hero-background.is-active { opacity: 1; }
#home > .hero-shade { z-index: 1; pointer-events: none; }

.hero-slideshow-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 700px;
  margin-top: 28px;
}

.hero-slideshow-controls[hidden] { display: none; }

.hero-slideshow-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.hero-slideshow-controls button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  background: rgba(2, 18, 34, .65);
  color: #d8e5ef;
  font: 600 12px/1.45 Manrope, Arial, sans-serif;
  cursor: pointer;
}

.hero-group-choice {
  padding: 10px 12px;
  text-align: left;
  overflow-wrap: anywhere;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.hero-slideshow-controls .hero-group-choice[aria-pressed="true"] {
  color: #fff;
  background: rgba(6, 118, 216, .5);
  border-color: #61c2ff;
  box-shadow: inset 0 -2px 0 #61c2ff;
}

.hero-slideshow-controls button:hover { background: rgba(17, 65, 103, .9); }
.hero-slideshow-controls button:focus-visible { outline: 3px solid #8dd3ff; outline-offset: 3px; }

@media (min-width: 901px) {
  /* Reserve room for the fixed header even on short desktop viewports. */
  #home.hero { height: auto; min-height: max(760px, min(900px, 100vh)); padding-block: 120px 80px; }
  #home .hero-content { padding-top: 0; }
}

@media (max-width: 560px) {
  .hero-slideshow-controls { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .hero-slideshow-groups { gap: 6px; }
  .hero-group-choice { padding: 10px 8px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  #home.hero { padding-bottom: 144px; }
}

@media (prefers-reduced-motion: reduce) {
  #home > .hero-background, .hero-group-choice { transition: none; }
}
