/* ========================================
   RC5 — Premium Hero Refinement (homepage)
   RC5.2 — balance, social proof, typography
   ======================================== */

@media (max-width: 991px) {
  /* Remove scroll indicator — hero content speaks for itself */
  .hero__scroll-hint {
    display: none !important;
  }

  .hero {
    padding-top: calc(var(--header-offset, calc(var(--header-height) + env(safe-area-inset-top, 0px))) + 44px);
    padding-bottom: 68px;
  }

  .hero__inner {
    gap: 36px;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .hero__logo-spotlight {
    margin-inline: auto;
  }

  .hero__logo {
    width: min(208px, 48vw);
    margin-inline: auto;
  }

  .hero__title {
    width: 100%;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    /* ~8% reduction — two-line headline fit on mobile */
    font-size: clamp(1.53rem, 5.1vw, 2.19rem);
    line-height: 1.14;
  }

  .hero__title-line {
    display: block;
    text-wrap: balance;
  }

  .hero__title-line:first-of-type {
    margin-top: 0;
  }

  .hero__title-accent,
  .hero__locality--below-title {
    display: block;
    margin-top: 0.85em;
    margin-inline: auto;
    max-width: none;
    font-size: clamp(0.6875rem, 2.6vw, 0.8125rem);
    font-weight: 500;
    letter-spacing: 0.16em;
    color: rgba(var(--gold-rgb), 0.88);
    line-height: 1.4;
  }

  .hero__subtitle {
    max-width: 34ch;
    margin-inline: auto;
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.72;
    color: rgba(245, 245, 245, 0.86);
    text-wrap: pretty;
  }

  .hero__actions {
    width: 100%;
    max-width: min(100%, 340px);
    margin-inline: auto;
    gap: 12px;
  }

  .hero__actions-primary {
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-bottom: 60px;
  }

  .hero__inner {
    gap: 32px;
  }

  .hero__logo {
    width: min(200px, 50vw);
  }

  .hero__subtitle {
    max-width: 32ch;
    margin-bottom: 28px;
    font-size: 0.975rem;
  }

  .hero__title {
    font-size: clamp(1.45rem, 6.2vw, 1.95rem);
    line-height: 1.12;
    margin-bottom: 12px;
  }

  .hero__title-accent,
  .hero__locality--below-title {
    margin-top: 0.8em;
  }
}

@media (max-width: 479px) {
  .hero__title {
    font-size: clamp(1.38rem, 6.6vw, 1.72rem);
  }

  .hero__subtitle {
    max-width: 30ch;
  }
}

/* Desktop — subtle hierarchy polish only */
@media (min-width: 992px) {
  .hero__title {
    font-size: clamp(1.98rem, 4.6vw, 3.35rem);
    line-height: 1.16;
  }

  .hero__title-line {
    text-wrap: balance;
  }

  .hero__title-line:first-of-type {
    margin-top: 0;
  }

  .hero__title-accent,
  .hero__locality--below-title {
    color: rgba(var(--gold-rgb), 0.92);
    letter-spacing: 0.13em;
  }

  .hero__subtitle {
    max-width: 36ch;
    line-height: 1.72;
    color: rgba(245, 245, 245, 0.88);
  }

  .hero__copy {
    max-width: 580px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-review-card--ambient {
    animation: none !important;
  }

  .hero__locality-shine {
    display: none;
  }
}

/* ---- Locality corridor + travelling highlight ---- */

.hero__locality-track {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: top;
}

.hero__locality-arrow {
  display: inline-block;
  margin: 0 0.4em;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0;
}

.hero__locality-shine {
  position: absolute;
  top: -15%;
  left: 0;
  width: 42%;
  height: 130%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(var(--gold-rgb), 0) 0%,
    rgba(var(--gold-rgb), 0.06) 28%,
    rgba(255, 236, 190, 0.16) 50%,
    rgba(var(--gold-rgb), 0.06) 72%,
    rgba(var(--gold-rgb), 0) 100%
  );
  transform: translate3d(-115%, 0, 0);
  opacity: 0;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: heroLocalityShine 7s ease-in-out infinite;
}

.hero__locality--paused .hero__locality-shine {
  animation-play-state: paused;
  opacity: 0;
}

@keyframes heroLocalityShine {
  0%, 14% {
    transform: translate3d(-115%, 0, 0);
    opacity: 0;
  }

  20% {
    opacity: 0.42;
  }

  50% {
    transform: translate3d(215%, 0, 0);
    opacity: 0.32;
  }

  62%, 100% {
    transform: translate3d(215%, 0, 0);
    opacity: 0;
  }
}
