/* Homepage hero client-photo carousel (v118). Homepage only. */
.hero-carousel {
  position: relative;
  width: 100%;
  margin: 0 0 1.6rem;
}

.hero-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  background: #1a1712;
  outline: 1px solid rgba(212, 175, 55, 0.55);
  outline-offset: 12px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9);
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel-slide--welcome img { object-position: center center; }
.hero-carousel-slide--newhome img { object-position: center 30%; }
.hero-carousel-slide--closing img { object-position: center top; }

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4af37;
  border-radius: 2px;
  background: rgba(13, 13, 13, 0.78);
  color: #d4af37;
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.8);
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
  background: #0d0d0d;
  color: #e9cf7e;
  border-color: #e9cf7e;
  outline: 2px solid #e9cf7e;
  outline-offset: 2px;
}

.hero-carousel-btn:focus:not(:focus-visible) { outline: none; }

.hero-carousel-prev { left: 10px; }
.hero-carousel-next { right: 10px; }

.hero-carousel-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hero-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px 2px;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0), rgba(13, 13, 13, 0.45) 70%);
  pointer-events: none;
}

.hero-carousel-dot {
  pointer-events: auto;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #d4af37;
  background: rgba(13, 13, 13, 0.65);
  cursor: pointer;
  /* enlarge the tap target without changing the visible dot */
  box-shadow: 0 0 0 8px transparent;
}

.hero-carousel-dot:hover,
.hero-carousel-dot:focus-visible {
  background: #e9cf7e;
  border-color: #e9cf7e;
  outline: 2px solid #e9cf7e;
  outline-offset: 3px;
}

.hero-carousel-dot:focus:not(:focus-visible) { outline: none; }

.hero-carousel-dot.is-active {
  background: #d4af37;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide { transition: none; }
  .hero-carousel-dot.is-active { transform: none; }
}

/* Mobile: don't squeeze the carousel into the 104px headshot column. */
@media (max-width: 860px) {
  .luxe .hero-card:has(.hero-carousel) {
    display: block;
    max-width: 360px;
    width: calc(100% - 24px);
    margin: 1.75rem 12px 0;
    justify-self: start;
  }

  .luxe .hero-card:has(.hero-carousel) .hero-card-name {
    margin: 0.35rem 0 0.15rem !important;
    font-size: 1.6rem !important;
  }

  .luxe .hero-card:has(.hero-carousel) .hero-card-role {
    margin: 0 0 0.7rem !important;
  }

  .luxe .hero-card:has(.hero-carousel) .contact-list {
    margin-top: 0;
  }

  .hero-carousel-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 560px) {
  .luxe .hero-card:has(.hero-carousel) {
    max-width: 360px;
    width: calc(100% - 24px);
    margin: 1.5rem 12px 0;
  }
}
