/* ── Golden Rays 3D Coverflow Slider ───────────────────────────────────── */
.gr-slider-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  color: #eef2fb;
}

.gr-slider__top {
  padding: 16px 40px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.gr-slider__counter {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #93a3c2;
  font-family: 'Lato', sans-serif;
}
.gr-slider__counter b { color: #e8c46a; font-weight: 600; }

/* Stage */
.gr-stage-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gr-stage {
  position: relative;
  width: min(72vw, 1180px);
  height: min(56vh, 660px);
  perspective: 1800px;
  transform-style: preserve-3d;
}

/* Slides */
.gr-slide {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #02060f;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transform-origin: 50% 50%;
  transform: translate(-50%,-50%) translate3d(0,0,-600px) rotateY(0deg);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 700ms cubic-bezier(0.22,1,0.36,1),
    opacity   700ms cubic-bezier(0.22,1,0.36,1),
    filter    700ms cubic-bezier(0.22,1,0.36,1),
    box-shadow 700ms ease;
  will-change: transform, opacity;
}
.gr-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Position states */
.gr-slide.pos-center {
  transform: translate(-50%,-50%) translate3d(0,0,0) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  box-shadow:
    0 40px 100px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(212,168,60,0.18),
    0 0 80px -10px rgba(212,168,60,0.18);
}
.gr-slide.pos-left-1 {
  transform: translate(-50%,-50%) translate3d(-58%,0,-260px) rotateY(28deg) scale(0.86);
  opacity: 0.7; z-index: 4; pointer-events: auto; cursor: pointer;
  filter: brightness(0.7) saturate(0.85);
}
.gr-slide.pos-right-1 {
  transform: translate(-50%,-50%) translate3d(58%,0,-260px) rotateY(-28deg) scale(0.86);
  opacity: 0.7; z-index: 4; pointer-events: auto; cursor: pointer;
  filter: brightness(0.7) saturate(0.85);
}
.gr-slide.pos-left-2 {
  transform: translate(-50%,-50%) translate3d(-92%,0,-520px) rotateY(40deg) scale(0.7);
  opacity: 0.32; z-index: 3;
  filter: brightness(0.55) saturate(0.7);
}
.gr-slide.pos-right-2 {
  transform: translate(-50%,-50%) translate3d(92%,0,-520px) rotateY(-40deg) scale(0.7);
  opacity: 0.32; z-index: 3;
  filter: brightness(0.55) saturate(0.7);
}
.gr-slide.pos-hidden {
  transform: translate(-50%,-50%) translate3d(0,0,-800px) rotateY(0deg) scale(0.5);
  opacity: 0; z-index: 1; pointer-events: none;
}
.gr-slide:not(.pos-center)::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,6,15,0.05), rgba(2,6,15,0.35));
  pointer-events: none;
}
.gr-slide:hover.pos-left-1,
.gr-slide:hover.pos-right-1 {
  opacity: 0.88;
  filter: brightness(0.85) saturate(0.95);
}

/* Captions */
.gr-caption-wrap {
  position: relative;
  text-align: center;
  padding: 16px 40px 28px;
  min-height: 150px;
}
.gr-caption {
  position: absolute;
  inset: 16px 40px 28px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}
.gr-caption.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.gr-caption__index {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #e8c46a;
}
.gr-caption__title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0; line-height: 1.2;
  color: #eef2fb !important;
}
.gr-caption__desc {
  font-size: 14px;
  color: #93a3c2 !important;
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

/* Controls */
.gr-slider-controls {
  padding: 0 40px 32px;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
}
.gr-progress {
  width: min(560px, 80vw);
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.gr-progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #e8c46a, #d4a83c);
  box-shadow: 0 0 12px rgba(212,168,60,0.5);
  transition: width 80ms linear;
}
.gr-dots { display: flex; align-items: center; gap: 12px; }
.gr-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 0; padding: 0;
  cursor: pointer;
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.gr-dot:hover { background: rgba(255,255,255,0.36); }
.gr-dot.is-active {
  background: #d4a83c;
  transform: scale(1.4);
  box-shadow: 0 0 14px rgba(212,168,60,0.7);
}

/* Responsive — tablet */
@media (max-width: 900px) {
  .gr-slider__top { padding: 12px 22px 0; }
  .gr-stage { width: 88vw; height: 46vh; }
  .gr-slide.pos-left-1  { transform: translate(-50%,-50%) translate3d(-50%,0,-240px) rotateY(26deg) scale(0.82); }
  .gr-slide.pos-right-1 { transform: translate(-50%,-50%) translate3d(50%,0,-240px) rotateY(-26deg) scale(0.82); }
  .gr-slide.pos-left-2,
  .gr-slide.pos-right-2 { opacity: 0; pointer-events: none; }
  .gr-caption-wrap { padding: 12px 22px 20px; min-height: 120px; }
  .gr-slider-controls { padding: 0 22px 24px; }
}

/* Responsive — phone landscape / small tablet */
@media (max-width: 640px) {
  .gr-slider-hero { min-height: 90vh; }
  .gr-slider__top { padding: 10px 16px 0; }
  .gr-stage { width: 92vw; height: 40vh; perspective: 1200px; }
  .gr-slide.pos-left-1,
  .gr-slide.pos-right-1,
  .gr-slide.pos-left-2,
  .gr-slide.pos-right-2 { opacity: 0; pointer-events: none; }
  .gr-caption-wrap { padding: 10px 16px 16px; min-height: 80px; }
  .gr-caption { inset: 10px 16px 16px; gap: 6px; }
  .gr-caption__title { font-size: clamp(16px, 5vw, 22px); }
  .gr-caption__desc { font-size: 13px; max-width: 100%; }
  .gr-slider-controls { padding: 0 16px 18px; gap: 10px; }
  .gr-progress { width: 90vw; }
}

/* Responsive — phone portrait */
@media (max-width: 480px) {
  .gr-slider-hero { min-height: 80vh; }
  .gr-stage { width: 94vw; height: 34vh; }
  .gr-caption__title { font-size: clamp(15px, 4.5vw, 20px); }
  .gr-caption__desc { display: none; }
  .gr-slider-controls { padding: 0 12px 14px; gap: 8px; }
}
