/* ============================================================
   NORAH CARE HOMES — PREMIUM HERO SLIDER
   Place this file at: /assets/css/norah-hero-slider.css
   (or update the wp_register_style() src in the widget PHP file
   to match wherever you place it)
   ============================================================ */

:root{
  --norah-primary: #3BAFA9;
  --norah-primary-dark: #2C8C87;
  --norah-primary-light: #6FD1CB;
  --norah-secondary: #6B7280;
  --norah-white: #FFFFFF;
  --norah-ink: #1F2A2E;
  --norah-overlay: rgba(15, 30, 32, 0.62);
  --norah-glass-bg: rgba(255, 255, 255, 0.10);
  --norah-glass-border: rgba(255, 255, 255, 0.28);
  --norah-radius-lg: 28px;
  --norah-radius-md: 18px;
  --norah-shadow-soft: 0 20px 60px rgba(15, 30, 32, 0.25);
  --norah-transition: 700ms cubic-bezier(0.65, 0, 0.35, 1);
}

.norah-hero-section{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--norah-ink);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Carousel base ---------- */
.norah-carousel{
  width: 100%;
}

.norah-carousel .carousel-inner,
.norah-carousel .carousel-item{
  height: 100vh;
  min-height: 640px;
  max-height: 980px;
}

.norah-slide{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ---------- Background image + Ken Burns ---------- */
.norah-slide-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  will-change: transform;
  animation: norahKenBurns 12s ease-in-out infinite alternate;
}

.norah-carousel-item-1 .norah-slide-bg{ animation-duration: 16s; }
.norah-carousel-item-2 .norah-slide-bg{ animation-duration: 18s; }
.norah-carousel-item-3 .norah-slide-bg{ animation-duration: 20s; }

@keyframes norahKenBurns{
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1%); }
}

/* ---------- Dark overlay + gradient wash ---------- */
.norah-slide-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15,30,32,0.78) 0%, rgba(15,30,32,0.55) 45%, rgba(59,175,169,0.35) 100%),
    var(--norah-overlay);
  z-index: 1;
}

/* ---------- Soft moving light beams ---------- */
.norah-light-beam{
  position: absolute;
  top: -20%;
  width: 45%;
  height: 140%;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(18deg);
  filter: blur(6px);
  z-index: 1;
  will-change: transform, opacity;
  animation: norahBeamDrift 9s ease-in-out infinite;
  pointer-events: none;
}
.norah-light-beam.beam-1{ left: -10%; animation-delay: 0s; }
.norah-light-beam.beam-2{ left: 55%; animation-delay: 3s; opacity: .6; }

@keyframes norahBeamDrift{
  0%, 100% { transform: rotate(18deg) translateX(0); opacity: .35; }
  50%      { transform: rotate(18deg) translateX(6%); opacity: .6; }
}

/* ---------- Floating decorative shapes / particles ---------- */
.norah-decor{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.norah-blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
  will-change: transform;
}

.norah-blob.b1{
  width: 220px; height: 220px;
  top: 8%; right: 8%;
  background: radial-gradient(circle at 30% 30%, rgba(111,209,203,0.55), rgba(59,175,169,0.05));
  animation: norahFloatA 8s ease-in-out infinite;
}
.norah-blob.b2{
  width: 130px; height: 130px;
  bottom: 14%; right: 22%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.02));
  animation: norahFloatB 10s ease-in-out infinite;
}
.norah-blob.b3{
  width: 70px; height: 70px;
  top: 22%; right: 34%;
  background: radial-gradient(circle at 30% 30%, rgba(59,175,169,0.6), rgba(59,175,169,0.02));
  animation: norahFloatC 7s ease-in-out infinite;
}

@keyframes norahFloatA{
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-14px, 18px) scale(1.06); }
}
@keyframes norahFloatB{
  0%, 100% { transform: translate(0,0); }
  50%      { transform: translate(16px, -22px); }
}
@keyframes norahFloatC{
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-10px, -14px) scale(1.15); }
}

/* Fine particle sparkles (pure CSS) */
.norah-particles{
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.55) 0%, transparent 60%),
    radial-gradient(2px 2px at 70% 20%, rgba(255,255,255,0.4) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,0.5) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,0.35) 0%, transparent 60%),
    radial-gradient(2px 2px at 55% 85%, rgba(255,255,255,0.4) 0%, transparent 60%);
  background-size: 100% 100%;
  animation: norahTwinkle 5s ease-in-out infinite;
  opacity: .7;
}

@keyframes norahTwinkle{
  0%, 100% { opacity: .35; }
  50%      { opacity: .85; }
}

/* ---------- Content layout ---------- */
.norah-slide-content{
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.norah-text-col{
  color: var(--norah-white);
}

.norah-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--norah-glass-bg);
  border: 1px solid var(--norah-glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--norah-primary-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
}

.norah-badge::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--norah-primary-light);
  box-shadow: 0 0 10px var(--norah-primary-light);
}

.norah-heading{
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(22px);
}

.norah-heading .accent{
  color: var(--norah-primary-light);
}

.norah-text {
    font-size: 20px;
    color: rgb(255 255 255);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.2rem;
    opacity: 0;
    transform: translateY(18px);
}
.norah-btn-group{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(18px);
}

/* Active slide triggers the animation */
.carousel-item.active .norah-badge,
.carousel-item.active .norah-heading,
.carousel-item.active .norah-text,
.carousel-item.active .norah-btn-group{
  animation: norahFadeUp 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.carousel-item.active .norah-badge{ animation-delay: 150ms; }
.carousel-item.active .norah-heading{ animation-delay: 300ms; }
.carousel-item.active .norah-text{ animation-delay: 450ms; }
.carousel-item.active .norah-btn-group{ animation-delay: 600ms; }

@keyframes norahFadeUp{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Buttons ---------- */
.norah-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 350ms ease, box-shadow 350ms ease, color 350ms ease, background 350ms ease;
  isolation: isolate;
}

.norah-btn-primary{
  background: linear-gradient(135deg, var(--norah-primary) 0%, var(--norah-primary-dark) 100%);
  color: var(--norah-white);
  box-shadow: 0 12px 30px rgba(59,175,169,0.35);
}

.norah-btn-primary::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35), transparent 60%);
  opacity: 0;
  transition: opacity 350ms ease;
}

.norah-btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(59,175,169,0.5);
  color: var(--norah-white);
}
.norah-btn-primary:hover::before{ opacity: 1; }

.norah-btn-secondary{
  background: var(--norah-glass-bg);
  border: 1px solid var(--norah-glass-border);
  color: var(--norah-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.norah-btn-secondary:hover{
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  color: var(--norah-white);
  box-shadow: 0 14px 32px rgba(0,0,0,0.25);
}

.norah-btn .bi-arrow{
  transition: transform 300ms ease;
  display: inline-block;
}
.norah-btn:hover .bi-arrow{ transform: translateX(4px); }

/* ---------- Right side: glass image composition ---------- */
.norah-visual-col{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.norah-visual-wrap{
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
}

.carousel-item.active .norah-visual-wrap{
  animation: norahVisualIn 1000ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 350ms;
}

@keyframes norahVisualIn{
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.norah-ring{
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.35);
  animation: norahSpin 26s linear infinite;
}
.norah-ring.ring-2{
  inset: 4%;
  border-color: rgba(111,209,203,0.4);
  animation-duration: 34s;
  animation-direction: reverse;
}

@keyframes norahSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.norah-glass-card{
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--norah-glass-bg);
  border: 1px solid var(--norah-glass-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--norah-shadow-soft);
  animation: norahImageFloat 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes norahImageFloat{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.norah-glass-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.norah-glass-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.15) 100%);
  pointer-events: none;
}

.norah-float-chip{
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--norah-radius-md);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--norah-shadow-soft);
  z-index: 4;
  animation: norahChipFloat 5s ease-in-out infinite;
}

.norah-float-chip.chip-1{ top: 8%; left: -4%; animation-delay: .3s; }
.norah-float-chip.chip-2{ bottom: 6%; right: -6%; animation-delay: 1s; }

@keyframes norahChipFloat{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.norah-chip-icon{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--norah-primary), var(--norah-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 1rem;
}

.norah-chip-title{
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--norah-ink);
  margin: 0;
  line-height: 1.2;
}
.norah-chip-sub{
  font-size: 0.72rem;
  color: var(--norah-secondary);
  margin: 0;
}

/* ---------- Gradient glow behind visual ---------- */
.norah-glow{
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(59,175,169,0.45) 0%, rgba(59,175,169,0) 65%);
  filter: blur(20px);
  z-index: -1;
  animation: norahGlowPulse 6s ease-in-out infinite;
}

@keyframes norahGlowPulse{
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.08); }
}

/* ---------- Carousel controls / indicators ---------- */
.norah-carousel .carousel-control-prev,
.norah-carousel .carousel-control-next{
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  border-radius: 50%;
  background: var(--norah-glass-bg);
  border: 1px solid var(--norah-glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.85;
  transition: transform 300ms ease, background 300ms ease, opacity 300ms ease;
  z-index: 5;
}

.norah-carousel .carousel-control-prev{ left: 24px; }
.norah-carousel .carousel-control-next{ right: 24px; }

.norah-carousel .carousel-control-prev:hover,
.norah-carousel .carousel-control-next:hover{
  background: rgba(59,175,169,0.4);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.norah-carousel .carousel-control-prev-icon,
.norah-carousel .carousel-control-next-icon{
  width: 1.2rem;
  height: 1.2rem;
}

.norah-carousel .carousel-indicators{
  z-index: 5;
  bottom: 28px;
  gap: 10px;
}

.norah-carousel .carousel-indicators [data-bs-target]{
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.4);
  border: none;
  opacity: 1;
  transition: background-color 300ms ease, transform 300ms ease;
}

.norah-carousel .carousel-indicators .active{
  background-color: var(--norah-primary-light);
  transform: scaleX(1.15);
}

/* ---------- Scroll indicator ---------- */
.norah-scroll-indicator{
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.norah-mouse{
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 14px;
  position: relative;
}

.norah-mouse::before{
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--norah-primary-light);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: norahScrollDot 1.8s ease-in-out infinite;
}

@keyframes norahScrollDot{
  0%   { opacity: 1; top: 6px; }
  70%  { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 6px; }
}

/* ---------- Fade transition (override slide) ---------- */
.norah-carousel.carousel-fade .carousel-item{
  transition: opacity var(--norah-transition), visibility var(--norah-transition);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px){
  .norah-carousel .carousel-inner,
  .norah-carousel .carousel-item{
    height: auto;
    min-height: 100vh;
  }
  .norah-slide-content{ padding-top: 5rem; padding-bottom: 5rem; }
  .norah-visual-col{ margin-top: 3rem; }
  .norah-visual-wrap{ max-width: 300px; }
  .norah-carousel .carousel-control-prev,
  .norah-carousel .carousel-control-next{
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 575.98px){
  .norah-btn{ padding: 0.85rem 1.5rem; font-size: 0.9rem; }
  .norah-float-chip{ padding: 9px 12px; }
  .norah-chip-title{ font-size: 0.74rem; }
  .norah-chip-sub{ font-size: 0.64rem; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce){
  .norah-slide-bg,
  .norah-blob,
  .norah-light-beam,
  .norah-particles,
  .norah-ring,
  .norah-glass-card,
  .norah-float-chip,
  .norah-glow,
  .norah-mouse::before{
    animation: none !important;
  }
  .carousel-item.active .norah-badge,
  .carousel-item.active .norah-heading,
  .carousel-item.active .norah-text,
  .carousel-item.active .norah-btn-group,
  .carousel-item.active .norah-visual-wrap{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}