/* ======================================
   Home: Hero (template-parts/home/hero.php)
   ====================================== */

.hero-bleed{
  --hero-parallax-y: 0px;
  --hero-panel-shift: 0px;
  --hero-light-shift: 0px;
  position: relative;
  min-height: max(88vh, 760px);
  display: flex;
  align-items: center;
  padding: calc(var(--ds-header-h) + 56px) 0 112px;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, var(--hero-parallax-y), 0);
  transition: transform 0.22s linear;
}

.hero-layer{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 6500ms ease;
  will-change: opacity, transform;
}

.hero-layer.is-visible{ opacity: 1; }

.hero-layer.is-zoom{
  transform: scale(1.065);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(860px 520px at 14% 18%, rgba(255, 255, 255, 0.34), transparent 60%),
    radial-gradient(900px 560px at 84% 82%, rgba(27, 60, 94, 0.18), transparent 64%),
    linear-gradient(180deg, rgba(246, 242, 234, 0.16), rgba(236, 244, 252, 0.12));
}

.hero-bleed .container{
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
}

.hero-content{
  position: relative;
  z-index: 0;
  width: min(920px, 100%);
  display: grid;
  justify-items: center;
  gap: 0;
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 34px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 28px 74px rgba(20, 42, 67, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  overflow: hidden;
  transform: translate3d(0, var(--hero-panel-shift), 0);
  transition: transform 0.22s linear;
}

.hero-content::before{
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(223, 233, 244, 0.06)),
    radial-gradient(500px 220px at 50% 0%, rgba(255, 255, 255, 0.24), transparent 72%);
  z-index: 0;
  opacity: 0.85;
}

.hero-content::after{
  content: "";
  position: absolute;
  inset: -20% -14%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      110deg,
      transparent 18%,
      rgba(255, 255, 255, 0.2) 42%,
      transparent 62%
    );
  transform: translate3d(calc(-12% + var(--hero-light-shift)), 0, 0);
  opacity: 0.7;
  animation: heroGlassSweep 13s ease-in-out infinite alternate;
}

.hero-content > *{
  position: relative;
  z-index: 1;
}

.hero-motion-item{
  transition:
    opacity 780ms cubic-bezier(.2, .72, .18, 1),
    transform 780ms cubic-bezier(.2, .72, .18, 1);
}

.hero-bleed.motion-ready:not(.is-entered) .hero-motion-item{
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

.hero-bleed.motion-ready.is-entered .hero-motion-item{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-bleed.motion-ready .hero-motion-item:nth-child(1){ transition-delay: 70ms; }
.hero-bleed.motion-ready .hero-motion-item:nth-child(2){ transition-delay: 170ms; }
.hero-bleed.motion-ready .hero-motion-item:nth-child(3){ transition-delay: 290ms; }
.hero-bleed.motion-ready .hero-motion-item:nth-child(4){ transition-delay: 400ms; }
.hero-bleed.motion-ready .hero-motion-item:nth-child(5){ transition-delay: 520ms; }
.hero-bleed.motion-ready .hero-motion-item:nth-child(6){ transition-delay: 630ms; }

.hero-kicker,
.hero-subtitle,
.hero-actions .btn,
.hero-value,
.hero-explore{
  font-family: "Poppins", "Source Sans 3", ui-sans-serif, "Segoe UI", sans-serif !important;
}

.hero-kicker{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(20, 42, 67, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-bleed .hero-title{
  margin: 0 0 18px;
  max-width: 13ch;
  color: rgba(10, 16, 24, 0.96);
  font-size: clamp(3.1rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

.hero-bleed .hero-subtitle{
  margin: 0 0 30px;
  max-width: 58ch;
  color: rgba(16, 35, 56, 0.92);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-weight: 500;
  line-height: 1.9;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-actions .btn{
  min-width: 188px;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 38px rgba(20, 42, 67, 0.12);
}

.hero-actions .btn-cta{
  border-color: #142a43;
  background: linear-gradient(135deg, #142a43, #1d4167);
  color: #fff;
  box-shadow: 0 20px 44px rgba(20, 42, 67, 0.24);
}

.hero-actions .btn-cta:hover{
  border-color: #193452;
  background: linear-gradient(135deg, #193452, #234b75);
  color: #fff;
}

.hero-ghost{
  background: transparent !important;
  color: rgba(20, 42, 67, 0.92) !important;
  border: 1px solid rgba(216, 221, 230, 0.92) !important;
  box-shadow: none !important;
}

.hero-ghost:hover{
  background: rgba(255, 255, 255, 0.18) !important;
  color: rgba(20, 42, 67, 0.98) !important;
  border-color: rgba(235, 239, 246, 1) !important;
}

.hero-value{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  color: rgba(246, 236, 202, 0.96);
  font-size: 0.94rem;
  font-weight: 500;
}

.hero-value-item{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 42, 67, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.26s ease, background-color 0.26s ease, border-color 0.26s ease;
}

.hero-value-item:hover{
  transform: translateY(-2px);
  background: rgba(20, 42, 67, 0.24);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-value-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(243, 223, 167, 0.98);
  box-shadow: 0 0 0 4px rgba(243, 223, 167, 0.14);
}

.hero-explore{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: rgba(20, 42, 67, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-explore-label{
  font-weight: 700;
  color: rgba(20, 42, 67, 0.9);
}

.hero-bleed a{ color: inherit; }

.hero-explore-link{
  color: rgba(20, 42, 67, 0.92) !important;
  font-weight: 600;
  text-decoration: none;
}

.hero-explore-link:hover{
  color: rgba(20, 42, 67, 1) !important;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@keyframes heroGlassSweep{
  0%{
    transform: translate3d(calc(-16% + var(--hero-light-shift)), 0, 0);
  }
  100%{
    transform: translate3d(calc(10% + var(--hero-light-shift)), 0, 0);
  }
}

.hero-explore-sep{
  color: rgba(124, 138, 155, 0.72);
}

.hero-dots{
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
  pointer-events: none;
}

.hero-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 0 0 5px rgba(20, 42, 67, 0.08);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.hero-dot.is-active{
  background: rgba(255, 255, 255, 0.98);
  transform: scale(1.08);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.18);
}

@media (max-width: 991.98px){
  .hero-bleed{
    min-height: max(82vh, 680px);
    padding: calc(var(--ds-header-h) + 42px) 0 92px;
  }

  .hero-content{
    border-radius: 28px;
  }

  .hero-bleed .hero-title{
    max-width: 14ch;
  }
}

@media (max-width: 768px){
  .hero-bleed{
    min-height: auto;
    padding: calc(var(--ds-header-h) + 36px) 0 84px;
  }

  .hero-content{
    padding: 26px 20px 28px;
    border-radius: 24px;
  }

  .hero-actions{
    width: 100%;
  }

  .hero-actions .btn{
    width: 100%;
    min-width: 0;
  }

  .hero-value{
    gap: 10px;
  }

  .hero-value-item{
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce){
  .hero-bg,
  .hero-content{
    transition: none;
  }

  .hero-content::after{
    animation: none;
  }

  .hero-motion-item{
    transition: none;
  }

  .hero-bleed.motion-ready:not(.is-entered) .hero-motion-item{
    opacity: 1;
    transform: none;
  }
}
