/*
 * Unified panoramic homepage hero.
 *
 * Copy, calls to action, process steps, scene image and section-link labels
 * remain editable in the WordPress Customizer.
 */

html {
  scroll-behavior: smooth;
}

.home-main > section[id] {
  scroll-margin-top: 112px;
}

.isp-hero {
  position: relative;
  width: min(calc(100% - 32px), var(--isp-container));
  min-height: clamp(500px, 40vw, 560px);
  margin: 18px auto 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 30px;

  background: #f4fbff;
  box-shadow: 0 18px 48px rgba(68,68,68,.08);
}

.hero-scene {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;

  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.96), transparent 46%),
    linear-gradient(110deg, #fff9ef 0%, #f7fbfd 50%, #eaf7fe 100%);
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.02) 48%, rgba(242,249,252,.10) 100%),
    radial-gradient(ellipse at 50% 27%, rgba(255,255,255,.26) 0%, transparent 48%);
  pointer-events: none;
}

.hero-scene__slide {
  position: absolute;
  inset: -1px;
  opacity: 0;
  transform: translate3d(2.5%,0,0) scale(1.025);
  will-change: opacity, transform;
}

.hero-scene__slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}

.hero-scene__slide.is-leaving {
  z-index: 0;
  opacity: 0;
  transform: translate3d(-2.5%,0,0) scale(1.012);
}

.hero-scene.is-ready .hero-scene__slide {
  transition: opacity 1.15s ease, transform 1.4s cubic-bezier(.22,.61,.36,1);
}

.hero-scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
}

.hero-stage {
  position: relative;
  min-height: clamp(500px, 40vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(40px, 4vw, 56px);
  padding-bottom: 18px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 880px);
  margin-inline: auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px 13px;
  border: 1px solid rgba(115,192,238,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--isp-ink);
  box-shadow: 0 8px 24px rgba(68,68,68,.055);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .075em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-eyebrow__icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9c712f;
}

.hero-eyebrow__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0 auto 18px;
  color: var(--isp-ink);
  font-size: clamp(3.35rem, 6.2vw, 5.8rem);
  font-weight: 880;
  line-height: .94;
  letter-spacing: -.058em;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(255,255,255,.58);
}

.hero-copy .hero-intro {
  width: min(100%, 720px);
  max-width: 720px;
  margin: 0 auto 24px;
  color: #5f5c5e;
  text-align: center;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.58;
  text-wrap: balance;
}


.hero-jump-nav {
  position: relative;
  z-index: 4;
  right: auto;
  bottom: auto;
  left: auto;
  width: calc(100% - 36px);
  max-width: calc(var(--isp-container) - 36px);
  margin: auto 0;
  padding: 7px;
  border: 1px solid rgba(68,68,68,.07);
  border-radius: 20px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 17px 38px rgba(68,68,68,.11);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-jump-nav__track {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 5px;
}

.hero-jump-link {
  min-width: 0;
  min-height: 54px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  color: #565254;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.hero-jump-link:hover,
.hero-jump-link:focus-visible {
  background: #edf8fe;
  color: var(--isp-ink);
  box-shadow: 0 8px 18px rgba(68,68,68,.07);
  transform: translateY(-2px);
}

.hero-jump-link:active {
  transform: translateY(0) scale(.98);
}

.hero-jump-link__icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf7fe;
  color: #3e87b2;
}

.hero-jump-link--seasonal .hero-jump-link__icon,
.hero-jump-link--library .hero-jump-link__icon {
  background: #fff2d6;
  color: #946b2f;
}

.hero-jump-link--screen-free .hero-jump-link__icon,
.hero-jump-link--popular .hero-jump-link__icon {
  background: #fceaf2;
  color: #bd507b;
}

.hero-jump-link__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@keyframes isp-hero-reveal {
  from { opacity: 0; transform: translate3d(0,14px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow { animation: isp-hero-reveal .48s .03s both; }
  .hero-copy h1 { animation: isp-hero-reveal .58s .11s both; }
  .hero-intro { animation: isp-hero-reveal .58s .19s both; }
  .hero-jump-nav { animation: isp-hero-reveal .58s .27s both; }
}

@media (max-width: 1080px) {
  .isp-hero,
  .hero-stage {
    min-height: 560px;
  }

  .hero-copy {
    width: min(100%, 800px);
  }

  .hero-jump-link {
    flex-direction: column;
    gap: 5px;
    font-size: .73rem;
  }
}

@media (max-width: 700px) {
  .isp-hero {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 22px;

  }

  .home-main > section[id] {
    scroll-margin-top: 88px;
  }

  .isp-hero,
  .hero-stage {
    min-height: 560px;
  }

  .hero-stage {
    padding: 38px 16px 18px;
  }

  .hero-scene img {
    object-position: center bottom;
  }

  .hero-eyebrow {
    max-width: calc(100vw - 42px);
    margin-bottom: 16px;
    font-size: .66rem;
    letter-spacing: .055em;
  }

  .hero-copy h1 {
    max-width: 520px;
    margin-bottom: 15px;
    font-size: clamp(2.75rem, 13.2vw, 4.15rem);
    line-height: .96;
  }

  .hero-copy .hero-intro {
    max-width: 520px;
    margin-bottom: 0;
    font-size: .95rem;
    line-height: 1.52;
  }


  .hero-jump-nav {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin: auto 0;
    padding: 6px;
    overflow: hidden;
    border-color: rgba(68,68,68,.06);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 12px 28px rgba(68,68,68,.09);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .hero-jump-nav__track {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero-jump-nav__track::-webkit-scrollbar {
    display: none;
  }

  .hero-jump-link {
    min-width: 116px;
    min-height: 58px;
    flex: 0 0 116px;
    scroll-snap-align: start;
  }
}

@media (max-width: 430px) {
  .isp-hero,
  .hero-stage {
    min-height: 570px;
  }

  .hero-stage {
    padding-inline: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 13vw, 3.45rem);
  }


}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-scene__slide {
    display: none;
    transform: none;
    transition: none;
  }

  .hero-scene__slide.is-active {
    display: block;
  }

  .hero-jump-link {
    transition: none;
  }
}
