/* ==========================================================================
   hero.css — full-bleed hero with rotating background + signature spark motif
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--indigo-950);
  isolation: isolate;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero__slide.is-active {
  opacity: 1;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(28, 18, 48, 0.94) 15%, rgba(28, 18, 48, 0.78) 45%, rgba(74, 50, 128, 0.55) 75%, rgba(230, 126, 0, 0.28) 100%),
    linear-gradient(0deg, rgba(20, 13, 33, 0.75) 0%, rgba(20, 13, 33, 0.15) 40%);
}

/* ---- Signature motif: drifting embers -----------------------------------
   Ties the brand name (Prakash = "light") to the sparks in the client's own
   brochure photography. Kept to the hero only — the one place this page
   spends its animation budget. ~18 lightweight divs, no canvas needed. */
.hero__sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  bottom: -10px;
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--ember-400) 45%, transparent 75%);
  opacity: 0;
  animation: spark-rise var(--dur, 7s) ease-in var(--delay, 0s) infinite;
  box-shadow: 0 0 6px 1px rgba(245, 166, 35, 0.6);
}

@keyframes spark-rise {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  75% {
    opacity: 0.75;
  }
  100% {
    transform: translate(var(--drift, 20px), -92vh) scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spark {
    animation: none;
    display: none;
  }
  .hero__slide {
    transition: none;
  }
}

/* ---- Content -------------------------------------------------------------- */
.hero__inner {
  position: relative;
  z-index: 3;
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-12);
  max-width: 860px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ember-300);
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.06;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
  text-wrap: balance;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: #d9d2ea;
  max-width: 640px;
  margin-bottom: var(--sp-7);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}

.hero__ctas .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.hero__ctas .btn-outline:hover {
  border-color: #fff;
}

.hero__trust {
  font-size: 0.88rem;
  color: #b6acce;
  letter-spacing: 0.01em;
}
.hero__trust strong {
  color: #ece7f7;
  font-weight: 700;
}

/* ---- Slide indicator dots -------------------------------------------------- */
.hero__slide-dots {
  position: absolute;
  z-index: 3;
  right: var(--container-pad);
  bottom: var(--sp-6);
  display: flex;
  gap: 10px;
}
.hero__slide-dots button {
  width: 26px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.hero__slide-dots button.is-active {
  background: var(--ember-500);
  width: 40px;
}

@media (max-width: 720px) {
  .hero {
    min-height: 100vh;
  }
  .hero__inner {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-9);
  }
  .hero__slide-dots {
    right: 50%;
    transform: translateX(50%);
    bottom: var(--sp-4);
  }
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn {
    width: 100%;
  }
}
