/* ==========================================================
   GildedPlanet — Homepage Hero Slider
   Lightweight, dependency-free replacement for the old
   ThemePunch Revolution Slider. Crossfade, swipe, keyboard
   and reduced-motion aware. Used only on index.html.
   ========================================================== */

.gp-hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 377;
  overflow: hidden;
  background: #1a1a1a;
  touch-action: pan-y;
  outline: none;
}

.gp-hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gp-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  will-change: opacity;
}

.gp-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

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

/* Arrows */
.gp-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.gp-hero-arrow:hover,
.gp-hero-arrow:focus-visible {
  background: rgba(0, 0, 0, 0.6);
}

.gp-hero-arrow-prev { left: 14px; }
.gp-hero-arrow-next { right: 14px; }

/* Dots — a small scrim pill keeps them visible over any part of the
   image, and they sit clear of the white "push-up" content card that
   intentionally overlaps the bottom ~46px of the slider. */
.gp-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
}

.gp-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gp-hero-dot:hover,
.gp-hero-dot:focus-visible {
  background: rgba(255, 255, 255, 0.6);
}

.gp-hero-dot.is-active {
  background: #cdbb8c;
  border-color: #cdbb8c;
  transform: scale(1.15);
}

/* Tablet / mid-size */
@media (max-width: 979px) {
  .gp-hero-slider {
    aspect-ratio: 2.6 / 1;
  }

  .gp-hero-arrow {
    width: 34px;
    height: 34px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .gp-hero-slider {
    aspect-ratio: 1.9 / 1;
  }

  .gp-hero-arrow {
    width: 30px;
    height: 30px;
  }

  .gp-hero-arrow-prev { left: 8px; }
  .gp-hero-arrow-next { right: 8px; }

  .gp-hero-dots {
    bottom: 54px;
    padding: 5px 8px;
    gap: 6px;
  }

  .gp-hero-dot {
    width: 7px;
    height: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gp-hero-slide {
    transition: opacity 0.01ms linear;
  }
}
