/* ==========================================================================
   RR Groups - Scroll-Driven 3D Deconstructed Hero Styles
   ========================================================================== */

:root {
  --rr-gold: #fbc93e;
  --rr-gold-light: #ffe58f;
  --rr-gold-dark: #b8860b;
  --rr-dark-bg: #0b0907;
  --rr-surface: rgba(18, 14, 10, 0.85);
}

.rr-scroll-hero-wrap {
  position: relative;
  width: 100%;
  background: var(--rr-dark-bg);
  overflow: hidden;
  z-index: 5;
}

.rr-hero-pin-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  max-height: 1100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  background: radial-gradient(circle at 50% 45%, #2a1e12 0%, #130d07 55%, #070503 100%);
}

/* Ambient Backdrops & Golden Glow */
.rr-hero-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.rr-gold-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 650px;
  height: 650px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(251, 201, 62, 0.28) 0%, rgba(220, 160, 30, 0.12) 40%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  transition: transform 0.5s ease-out;
}

.rr-ambient-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 230, 150, 0.8), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(251, 201, 62, 0.6), transparent),
    radial-gradient(3px 3px at 65% 25%, rgba(255, 230, 150, 0.7), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(251, 201, 62, 0.5), transparent),
    radial-gradient(2px 2px at 15% 80%, rgba(255, 215, 0, 0.5), transparent),
    radial-gradient(3px 3px at 85% 85%, rgba(255, 235, 170, 0.6), transparent),
    radial-gradient(2px 2px at 50% 15%, rgba(251, 201, 62, 0.6), transparent);
  background-size: 100% 100%;
  opacity: 0.65;
  pointer-events: none;
}

/* 3D Emblem Container */
.rr-emblem-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  max-width: 85vw;
  max-height: 85vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  z-index: 3;
  pointer-events: none;
}

.rr-emblem-3d-box {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.rr-emblem-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  transition: filter 0.3s ease;
}

.rr-emblem-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
}

.rr-layer-crown {
  z-index: 4;
}

.rr-layer-left {
  z-index: 3;
  transform-origin: left center;
}

.rr-layer-right {
  z-index: 3;
  transform-origin: right center;
}

.rr-layer-base {
  z-index: 2;
  transform-origin: bottom center;
}

/* Revealed Content (Emerges on scroll) */
.rr-hero-reveal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  text-align: center;
  will-change: transform, opacity;
}

.rr-hero-reveal.is-interactive {
  pointer-events: auto;
}

.rr-reveal-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.rr-reveal-badge .gold-line {
  display: inline-block;
  width: 35px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--rr-gold), transparent);
}

.rr-reveal-badge .badge-text {
  font-size: 13px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--rr-gold);
  font-weight: 700;
  font-family: "Quicksand", sans-serif;
  text-shadow: 0 0 12px rgba(251, 201, 62, 0.5);
}

.rr-reveal-title {
  font-size: clamp(32px, 5.5vw, 68px);
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: "Quicksand", sans-serif;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff3c4 0%, #fbc93e 50%, #d49514 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(251, 201, 62, 0.4));
}

.rr-reveal-subtitle {
  font-size: clamp(16px, 2.2vw, 22px);
  color: #dfd2be;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: "Quicksand", sans-serif;
}

.rr-reveal-desc {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
  color: #c4b9a8;
  max-width: 780px;
  margin: 0 auto 30px;
  font-family: "Lato", sans-serif;
}

.rr-reveal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.rr-gold-btn {
  background: linear-gradient(135deg, #fbc93e 0%, #e5a710 100%) !important;
  color: #120e06 !important;
  font-weight: 700 !important;
  /* padding: 14px 32px !important; */
  border-radius: 50px !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(251, 201, 62, 0.35) !important;
  transition: all 0.3s ease !important;
}

.rr-gold-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(251, 201, 62, 0.5) !important;
  color: #000 !important;
}

.rr-outline-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  border: 1px solid rgba(251, 201, 62, 0.45) !important;
  font-weight: 600 !important;
  /* padding: 14px 28px !important; */
  border-radius: 50px !important;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease !important;
}

.rr-outline-btn:hover {
  background: rgba(251, 201, 62, 0.15) !important;
  border-color: var(--rr-gold) !important;
  color: var(--rr-gold-light) !important;
  transform: translateY(-3px);
}

/* Sector Pills */
.rr-sector-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.sector-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(251, 201, 62, 0.2);
  color: #ded3c1;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.sector-pill i {
  color: var(--rr-gold);
  font-size: 12px;
}

.sector-pill:hover {
  background: rgba(251, 201, 62, 0.12);
  border-color: rgba(251, 201, 62, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

/* Scroll Cue Prompt */
.rr-scroll-prompt {
  position: absolute;
  top: calc(50% + 215px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.rr-scroll-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rr-gold-light, #fff3c4);
  font-weight: 700;
  font-family: "Quicksand", sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 16px rgba(251, 201, 62, 0.4);
}

.rr-scroll-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(251, 201, 62, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rr-gold, #fbc93e);
  font-size: 12px;
  animation: rrBounce 2s infinite ease-in-out;
  background: rgba(18, 14, 6, 0.65);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 15px rgba(251, 201, 62, 0.25);
}

@keyframes rrBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(6px);
  }

  60% {
    transform: translateY(3px);
  }
}

/* Media Queries for Responsive Design */
@media (max-width: 991.98px) {
  .rr-emblem-stage {
    width: 400px;
    height: 400px;
  }

  .rr-gold-glow {
    width: 450px;
    height: 450px;
  }

  .rr-reveal-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .rr-reveal-actions {
    margin-bottom: 25px;
  }

  .rr-scroll-prompt {
    top: calc(50% + 175px);
    bottom: auto;
  }
}

@media (max-width: 575.98px) {
  .rr-hero-pin-stage {
    min-height: 600px;
  }

  .rr-emblem-stage {
    width: 310px;
    height: 310px;
  }

  .rr-gold-glow {
    width: 320px;
    height: 320px;
  }

  .rr-reveal-badge .badge-text {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .rr-reveal-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .rr-reveal-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .rr-gold-btn,
  .rr-outline-btn {
    /* padding: 11px 22px !important; */
    font-size: 13px !important;
    width: 100%;
  }

  .rr-reveal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .sector-pill {
    padding: 6px 12px;
    font-size: 11px;
  }

  .rr-scroll-prompt {
    top: calc(50% + 140px);
    bottom: auto;
  }
}

@media (max-height: 620px) {
  .rr-scroll-prompt {
    top: auto;
    bottom: 16px;
  }
}