/*
 RIC HOMEPAGE 2026 — STAGE B
 Hero + Footer rotation only.

 Safety:
 - Never hides the body
 - Never creates a loading overlay
 - Never changes global opacity
 - Existing content remains visible without JS
*/

.ric-b-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}

/*
 Keep existing hero presentation intact.
 If Admin supplies a slide image, Stage B uses this custom property.
*/
.ric-b-hero[data-ric-slide-image="1"]{
  background-image:
    linear-gradient(
      90deg,
      rgba(0,53,43,.82) 0%,
      rgba(0,53,43,.55) 48%,
      rgba(0,35,29,.25) 100%
    ),
    var(--ric-b-hero-image) !important;

  background-position:center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
}

.ric-b-hero-transition{
  animation:ricBHeroIn .55s ease both;
}

@keyframes ricBHeroIn{
  from{
    transform:translateY(7px);
    opacity:.86;
  }
  to{
    transform:none;
    opacity:1;
  }
}

/* ---------------------------------------------------------
   HERO ARROWS
--------------------------------------------------------- */

.ric-b-arrow{
  appearance:none;
  position:absolute;
  z-index:30;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.74);
  color:#fff;
  background:rgba(0,60,48,.58);
  backdrop-filter:blur(8px);
  box-shadow:0 6px 20px rgba(0,0,0,.18);
  cursor:pointer;
  font-size:26px;
  line-height:1;
}

.ric-b-arrow:hover,
.ric-b-arrow:focus-visible{
  background:rgba(0,77,59,.92);
}

.ric-b-prev{
  left:clamp(7px,1.5vw,22px);
}

.ric-b-next{
  right:clamp(7px,1.5vw,22px);
}

/* ---------------------------------------------------------
   HERO DOTS
--------------------------------------------------------- */

.ric-b-dots{
  position:absolute;
  z-index:30;
  left:50%;
  bottom:clamp(10px,1.5vw,18px);
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(0,50,41,.28);
  backdrop-filter:blur(6px);
}

.ric-b-dot{
  appearance:none;
  width:10px;
  height:10px;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.9);
  background:rgba(255,255,255,.45);
  cursor:pointer;
}

.ric-b-dot.is-active{
  background:#efbd4f;
  transform:scale(1.22);
}

/* ---------------------------------------------------------
   ROTATION STATUS
--------------------------------------------------------- */

.ric-b-rotation-badge{
  position:absolute;
  z-index:30;
  top:clamp(10px,1.5vw,18px);
  left:clamp(10px,2vw,28px);
  display:inline-flex;
  align-items:center;
  gap:7px;
  max-width:calc(100% - 30px);
  padding:7px 12px;
  border-radius:999px;
  color:#fff;
  background:rgba(0,53,43,.64);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.38);
  font-size:12px;
  font-weight:800;
}

.ric-b-rotation-badge::before{
  content:"";
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:#efbd4f;
}

/* ---------------------------------------------------------
   DYNAMIC FOOTER SPOTLIGHT
--------------------------------------------------------- */

.ric-b-footer-spotlight{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:100%;
  min-height:clamp(200px,23vw,310px);
  display:grid;
  place-items:center;
  padding:
    clamp(30px,5vw,65px)
    clamp(18px,5vw,80px);

  color:#fff;

  background:
    linear-gradient(
      rgba(0,55,44,.73),
      rgba(0,48,40,.88)
    ),
    var(
      --ric-b-footer-image,
      url('/assets/images/prayer-scenes/enhanced/maghrib.webp')
    )
    center/cover no-repeat;

  transition:background-image .7s ease;
}

.ric-b-footer-inner{
  width:min(100%,1050px);
  text-align:center;
}

.ric-b-footer-kicker{
  display:inline-block;
  margin-bottom:8px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#f3c55e;
}

.ric-b-footer-title{
  margin:0;
  color:#fff;
  font-size:clamp(1.8rem,4vw,3.7rem);
  line-height:1.05;
}

.ric-b-footer-text{
  max-width:760px;
  margin:12px auto 0;
  color:#f5f3e9;
  font-size:clamp(1rem,1.5vw,1.18rem);
}

.ric-b-footer-actions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.ric-b-footer-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:850;
}

.ric-b-footer-actions .join{
  background:#efbd4f;
  color:#173f35;
}

.ric-b-footer-actions .signin,
.ric-b-footer-actions .support{
  border:1px solid rgba(255,255,255,.72);
  color:#fff;
  background:rgba(0,45,38,.30);
}

.ric-b-footer-dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:18px;
}

.ric-b-footer-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.42);
}

.ric-b-footer-dot.is-active{
  background:#efbd4f;
}

/* ---------------------------------------------------------
   RESPONSIVE / FUTURE-SCREEN SAFE
--------------------------------------------------------- */

@media (max-width:700px){

  .ric-b-arrow{
    width:38px;
    height:38px;
  }

  .ric-b-rotation-badge{
    font-size:10px;
    padding:6px 9px;
  }

  .ric-b-footer-actions a{
    flex:1 1 150px;
  }

}

@media (max-width:430px){

  .ric-b-arrow{
    top:auto;
    bottom:10px;
    transform:none;
  }

  .ric-b-dots{
    bottom:17px;
  }

  .ric-b-prev{
    left:10px;
  }

  .ric-b-next{
    right:10px;
  }

}

/* Accessibility */
@media (prefers-reduced-motion:reduce){

  .ric-b-hero-transition{
    animation:none !important;
  }

}
