/* Mini Digital homepage slideshow — draft 30 Nov 2026 */
.md-hero {
  --md-orange: #F5812D;
  --md-grey: #656263;
  --md-ink: #2b2b2b;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw) 1.75rem;
  overflow: hidden;
  background: var(--md-grey);
  aspect-ratio: 1920 / 700;
  min-height: 260px;
  max-height: 700px;
  line-height: 1.4;
  font-family: inherit;
}
.md-hero__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.md-hero__slide {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  text-decoration: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  z-index: 1;
}
.md-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.md-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
}
.md-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(30, 30, 30, 0.78) 0%,
    rgba(30, 30, 30, 0.55) 28%,
    rgba(30, 30, 30, 0.18) 52%,
    rgba(30, 30, 30, 0) 70%
  );
}
.md-hero__copy {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: min(42rem, 46%);
  padding: 0 4.5rem 0 4vw;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.md-hero__kicker {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.2rem 0.65rem;
  background: var(--md-orange);
  color: #fff;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}
.md-hero__copy h2 {
  margin: 0 0 0.6rem;
  color: #fff !important;
  font-size: clamp(1.55rem, 3.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.md-hero__copy p {
  margin: 0 0 1.1rem;
  color: #f3f3f3 !important;
  font-size: clamp(0.9rem, 1.35vw, 1.15rem);
  line-height: 1.45;
  font-weight: 400;
}
.md-hero__cta {
  display: inline-block;
  background: var(--md-orange);
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 2px;
  text-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.md-hero__slide:hover .md-hero__cta,
.md-hero__slide:focus-visible .md-hero__cta {
  background: #e06e18;
}
.md-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 45, 45, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}
.md-hero__nav:hover,
.md-hero__nav:focus-visible {
  background: var(--md-orange);
  outline: none;
}
.md-hero__prev { left: 0.8rem; }
.md-hero__next { right: 0.8rem; }
.md-hero__nav svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.md-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.md-hero__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.md-hero__dot.is-active {
  background: var(--md-orange);
}
.md-hero__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .md-hero {
    aspect-ratio: 16 / 9;
    max-height: 520px;
    margin-bottom: 1.25rem;
  }
  .md-hero__copy {
    width: 86%;
    padding: 0 3.4rem 0 1.1rem;
  }
  .md-hero__copy p { margin-bottom: 0.8rem; }
  .md-hero__slide::after {
    background: linear-gradient(
      90deg,
      rgba(20, 20, 20, 0.78) 0%,
      rgba(20, 20, 20, 0.5) 45%,
      rgba(20, 20, 20, 0.15) 75%,
      rgba(20, 20, 20, 0) 100%
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .md-hero__slide { transition: none; }
}
