/* ── BACKDROP ── */
#hh-popup-backdrop {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(26, 58, 74, 0.45);
  backdrop-filter: blur(8px) saturate(0.6);
  -webkit-backdrop-filter: blur(8px) saturate(0.6);
  opacity: 0; pointer-events: none !important;
  transition: opacity 0.5s ease;
}
#hh-popup-backdrop.visible { opacity: 1; pointer-events: all !important; }

/* ── POPUP SHELL ── */
#hh-popup {
  position: fixed; z-index: 8001;
  width: min(92vw, 560px);
  height: min(88vh, 680px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.85) rotateY(8deg);
  opacity: 0; pointer-events: none !important;
  border-radius: 24px; overflow: hidden;
  box-shadow:
    0 32px 80px rgba(26,58,74,0.3),
    0 0 0 1px rgba(38,147,205,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1200px;
}
#hh-popup.visible {
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  opacity: 1; pointer-events: all !important;
}

/* ── PARTICLE CANVAS ── */
#hh-popup-particles {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; mix-blend-mode: screen;
}

/* ── CLOSE BUTTON ── */
#hh-popup-close {
  position: absolute; top: 16px; right: 16px; z-index: 20;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(38,147,205,0.12); color: #2693cd;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
#hh-popup-close:hover {
  background: #89bf39; color: white; transform: scale(1.15) rotate(90deg);
}

/* ── SLIDE COUNTER ── */
#hh-popup-counter {
  position: absolute; top: 18px; left: 18px; z-index: 20;
  font-size: 0.72rem; font-weight: 700; color: #2693cd;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ── TRACK (holds all slides) ── */
#hh-popup-track {
  position: absolute; inset: 0; z-index: 2;
}

/* ── SINGLE SLIDE ── */
.hh-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; pointer-events: none;
}
.hh-slide.active { opacity: 1; pointer-events: all; }

/* ── POSTER ── */
.hh-slide-poster {
  position: absolute; inset: 0;
  transition: transform 8s linear; /* slow Ken Burns drift */
}
.hh-slide.active .hh-slide-poster { transform: scale(1.06); }

.hh-slide-poster-img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: overlay; opacity: 0.4;
}

/* OVERLAY GRADIENT — always legible */
.hh-slide-overlay {
  position: absolute; inset: 0;
  background: #FFFFFF;
}

/* ANIMATED ORBS */
.hh-slide-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(60px); opacity: 0; mix-blend-mode: multiply;
}
.hh-slide.active .hh-slide-orb { opacity: 0.15; }
.hh-orb-1 {
  width: 300px; height: 300px; background: #2693cd;
  top: -80px; right: -60px;
  animation: hh-orb-drift 7s ease-in-out infinite;
}
.hh-orb-2 {
  width: 200px; height: 200px; background: #89bf39;
  bottom: 30%; left: -40px;
  animation: hh-orb-drift 9s ease-in-out infinite reverse;
  animation-delay: -3s;
}
.hh-orb-3 {
  width: 150px; height: 150px; background: #2693cd;
  top: 40%; right: 10%;
  animation: hh-orb-drift 11s ease-in-out infinite;
  animation-delay: -5s;
}
@keyframes hh-orb-drift {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -15px) scale(1.1); }
  66%      { transform: translate(-10px, 20px) scale(0.95); }
}

/* ── CONTENT LAYER ── */
.hh-slide-content {
  position: relative; z-index: 5;
  padding: 0 28px 24px; display: flex; flex-direction: column; gap: 10px;
}

/* BADGE */
.hh-slide-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 20px;
  background: rgba(38,147,205,0.08); border: 1px solid rgba(38,147,205,0.18);
  backdrop-filter: blur(8px); color: #2693cd;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; width: fit-content;
  opacity: 0; transform: translateX(-20px);
}
.hh-slide.active .hh-slide-badge {
  opacity: 1; transform: translateX(0);
  transition: all 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.15s;
}

/* HEADLINE */
.hh-slide-headline-wrap { overflow: hidden; }
.hh-slide-headline {
  font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; color: #2893CB;
  line-height: 1.1; letter-spacing: -0.02em; margin: 0;
  opacity: 0; transform: translateY(30px);
}
.hh-slide.active .hh-slide-headline {
  opacity: 1; transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.16,1,0.3,1) 0.25s;
}
.hh-slide-subline {
  font-size: 0.88rem; color: #8BBF3C;
  font-style: italic; margin: 4px 0 0;
  opacity: 0; transform: translateY(16px);
}
.hh-slide.active .hh-slide-subline {
  opacity: 1; transform: translateY(0);
  transition: all 0.5s ease 0.35s;
}

/* BODY */
.hh-slide-body {
  font-size: 0.84rem; color: #2893CB;
  line-height: 1.6; margin: 0;
  opacity: 0; transform: translateY(12px);
}
.hh-slide.active .hh-slide-body {
  opacity: 1; transform: translateY(0);
  transition: all 0.5s ease 0.4s;
}

/* PILLS */
.hh-slide-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hh-slide-pill {
  padding: 4px 11px; border-radius: 20px;
  background: rgba(38,147,205,0.06); border: 1px solid rgba(38,147,205,0.12);
  color: #1a3a4a; font-size: 0.74rem; font-weight: 600;
  opacity: 0; transform: scale(0.85);
}
.hh-slide.active .hh-slide-pill {
  opacity: 1; transform: scale(1);
}
.hh-slide.active .hh-slide-pill:nth-child(1) { transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.45s; }
.hh-slide.active .hh-slide-pill:nth-child(2) { transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.52s; }
.hh-slide.active .hh-slide-pill:nth-child(3) { transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.59s; }

/* CTA BUTTON — the showstopper */
.hh-slide-cta {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 15px 22px; border: none;
  border-radius: 14px; cursor: pointer; overflow: hidden;
  position: relative; font-family: inherit; font-weight: 800;
  font-size: 0.95rem; color: white;
  background: linear-gradient(135deg, #2693cd 0%, #1a78ad 100%);
  box-shadow: 0 6px 24px rgba(38,147,205,0.45);
  opacity: 0; transform: translateY(20px);
  transition:
    opacity 0.5s ease 0.6s,
    transform 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.6s,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}
.hh-slide.active .hh-slide-cta { opacity: 1; transform: translateY(0); }
.hh-slide-cta:hover {
  box-shadow: 0 10px 36px rgba(38,147,205,0.65);
  filter: brightness(1.1);
}
/* SHIMMER on CTA */
.hh-slide-cta::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  animation: hh-shimmer 2.8s ease-in-out infinite 1s;
}
@keyframes hh-shimmer {
  0%   { left: -100%; }
  50%  { left: 120%; }
  100% { left: 120%; }
}
.hh-cta-text { flex: 1; text-align: left; }
.hh-cta-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.hh-slide-cta:hover .hh-cta-arrow { transform: translateX(4px) scale(1.1); }

/* TRUST LINE */
.hh-slide-trust {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: #4a6b7a;
  opacity: 0;
}
.hh-slide.active .hh-slide-trust {
  opacity: 1; transition: opacity 0.5s ease 0.75s;
}

/* ── NAVIGATION ── */
#hh-popup-nav {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 15;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 14px 20px;
  background: #FFFFFF;
}

/* DOT INDICATORS */
#hh-popup-dots { display: flex; align-items: center; gap: 8px; }
.hh-dot {
  border: none; border-radius: 20px; cursor: pointer; padding: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  background: rgba(38,147,205,0.25);
  width: 8px; height: 8px;
}
.hh-dot.active {
  width: 28px; background: #89bf39;
  box-shadow: 0 0 10px rgba(137,191,57,0.4);
}
.hh-dot:hover:not(.active) { background: rgba(38,147,205,0.5); transform: scale(1.2); }

/* PREV / NEXT */
#hh-popup-prev, #hh-popup-next {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(38,147,205,0.1); color: #2693cd;
  backdrop-filter: blur(8px); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
#hh-popup-prev:hover, #hh-popup-next:hover {
  background: #89bf39; color: white; transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(137,191,57,0.3);
}

/* SWIPE HINT */
#hh-popup-swipe-hint {
  position: absolute; bottom: 58px; left: 50%;
  transform: translateX(-50%); z-index: 16;
  font-size: 0.72rem; color: #4a6b7a;
  display: flex; align-items: center; gap: 5px;
  animation: hh-hint-pulse 2s ease-in-out 2;
}
@keyframes hh-hint-pulse {
  0%,100% { opacity: 0.4; } 50% { opacity: 0.9; }
}

/* MOBILE */
@media(max-width: 480px) {
  #hh-popup {
    width: 96vw; height: 90vh;
    border-radius: 18px;
  }
  .hh-slide-content { padding: 0 20px 20px; }
  .hh-slide-headline { font-size: 1.5rem; }
}
/* --- CUSTOM ANIMATIONS --- */
.hh-slide[data-anim="fadeIn"] .hh-slide-headline,
.hh-slide[data-anim="fadeIn"] .hh-slide-subline,
.hh-slide[data-anim="fadeIn"] .hh-slide-body,
.hh-slide[data-anim="fadeIn"] .hh-slide-cta {
  transform: translateY(0) !important;
  opacity: 0;
}
.hh-slide[data-anim="fadeIn"].active .hh-slide-headline,
.hh-slide[data-anim="fadeIn"].active .hh-slide-subline,
.hh-slide[data-anim="fadeIn"].active .hh-slide-body,
.hh-slide[data-anim="fadeIn"].active .hh-slide-cta {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hh-slide[data-anim="zoomIn"] .hh-slide-headline,
.hh-slide[data-anim="zoomIn"] .hh-slide-subline,
.hh-slide[data-anim="zoomIn"] .hh-slide-body,
.hh-slide[data-anim="zoomIn"] .hh-slide-cta {
  transform: scale(0.8) !important;
  opacity: 0;
}
.hh-slide[data-anim="zoomIn"].active .hh-slide-headline,
.hh-slide[data-anim="zoomIn"].active .hh-slide-subline,
.hh-slide[data-anim="zoomIn"].active .hh-slide-body,
.hh-slide[data-anim="zoomIn"].active .hh-slide-cta {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.hh-slide[data-anim="slideRight"] .hh-slide-headline,
.hh-slide[data-anim="slideRight"] .hh-slide-subline,
.hh-slide[data-anim="slideRight"] .hh-slide-body,
.hh-slide[data-anim="slideRight"] .hh-slide-cta {
  transform: translateX(-40px) !important;
  opacity: 0;
}
.hh-slide[data-anim="slideRight"].active .hh-slide-headline,
.hh-slide[data-anim="slideRight"].active .hh-slide-subline,
.hh-slide[data-anim="slideRight"].active .hh-slide-body,
.hh-slide[data-anim="slideRight"].active .hh-slide-cta {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* --- CUSTOM BUTTON STYLES --- */
.hh-cta-outline {
  background: transparent !important;
  border: 2px solid var(--accent, #2693cd) !important;
  color: var(--accent, #2693cd) !important;
}
.hh-cta-outline .hh-cta-arrow { background: var(--accent, #2693cd) !important; color: white !important; }
.hh-cta-ghost {
  background: transparent !important;
  border: none !important;
  color: white !important;
  padding: 8px 16px !important;
}
.hh-cta-ghost .hh-cta-arrow { background: transparent !important; color: white !important; font-size: 1.2rem !important; margin-left: -10px; }
.hh-cta-ghost:hover { background: rgba(255,255,255,0.1) !important; box-shadow: none !important; }

/* Layout Overrides */
.hh-slide { transition: all 0.5s ease; }
.hh-slide-content { transition: all 0.5s ease; }
