/* ─────────────────────────────────────────────────────────────────────────
 * Hub Realty — hero scroll cue (animated down-chevron).
 *
 * Shared by the homepage and all 8 community pages. Pure-CSS animation paired
 * with a tiny vanilla script (scroll-cue.js). NO smooth-scroll library — Lenis
 * is intentionally absent. A bright white chevron sits in a frosted dark disc
 * so it stays clearly legible over ANY hero photo; gentle bob; fades out once
 * the hero scrolls past.
 * ───────────────────────────────────────────────────────────────────────── */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 3.2vh, 2.4rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 22, 40, .42);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 20px rgba(4, 12, 24, .45), inset 0 0 0 1px rgba(255, 255, 255, .3);
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translateX(-50%);
  animation: scroll-cue-bob 2.4s ease-in-out infinite;
  transition: opacity .45s ease, visibility .45s ease, background .25s ease;
}
.scroll-cue svg {
  display: block;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(4, 12, 24, .7));
}
/* heavier, brighter chevron (CSS overrides the markup stroke-width) */
.scroll-cue svg path {
  stroke: #ffffff;
  stroke-width: 2.6;
}
.scroll-cue:hover { background: rgba(10, 22, 40, .62); }
.scroll-cue:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* Gentle bob with a soft opacity pulse — the disc drifts down ~8px. */
@keyframes scroll-cue-bob {
  0%, 100% { transform: translate(-50%, 0);   opacity: .82; }
  50%      { transform: translate(-50%, 8px); opacity: 1;   }
}

/* Past the hero: fade out and stop catching taps. animation:none lets the
 * opacity transition take over from the running keyframe. */
.scroll-cue.is-hidden {
  animation: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; opacity: 1; }
}

/* Mobile: a comfortable, clearly-visible tap target. */
@media (max-width: 768px) {
  .scroll-cue { width: 56px; height: 56px; bottom: 1.2rem; }
  .scroll-cue svg { width: 30px; height: 30px; }
}
