/* ─── Royal Pop Hero Widget ─────────────────────────────────── */

.rph-widget {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Slides ── */
.rph-slides {
  position: absolute;
  inset: 0;
}

.rph-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.rph-slide.active {
  opacity: 1;
}

/* ── Gradient overlay — dark bottom for text legibility ── */
.rph-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,.30) 0%,
    rgba(0,0,0,.08) 40%,
    rgba(0,0,0,.55) 75%,
    rgba(0,0,0,.80) 100%
  );
  pointer-events: none;
}

/* ── Content block — vertically centred ── */
.rph-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px 140px;
  color: #fff;
}

.rph-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin: 0 0 20px;
}

.rph-heading {
  font-size: clamp(36px, 6.5vw, 88px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
  color: #fff;
  margin: 0 0 28px;
  max-width: 920px;
}

.rph-subtext {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.72;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 0 44px;
}

.rph-btn {
  display: inline-block;
  background: #fff;
  color: #111827 !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 17px 44px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.rph-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
  background: #f0f4f8;
}

/* ── Progress dots ── */
.rph-dots {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.rph-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,.38);
  cursor: pointer;
  padding: 0;
  transition: background .35s ease, width .35s ease;
  outline: none;
}

.rph-dot.active {
  background: #fff;
  width: 28px;
}

/* ── Scroll arrow ── */
.rph-scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  animation: rph-bounce 2.2s ease-in-out infinite;
  z-index: 10;
  user-select: none;
}

.rph-scroll-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.rph-scroll-arrow svg {
  width: 22px;
  height: 22px;
}

@keyframes rph-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: .72; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 1;   }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .rph-content   { padding: 48px 20px 160px; }
  .rph-dots      { bottom: 108px; }
  .rph-scroll-arrow { bottom: 40px; }
  .rph-btn       { display: none !important; }
}
