/* ---------- Navigation (mobile) ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-sticky-cta { display: block; }

  /* Full-screen overlay panel — opened by js/navigation.js toggling this
     class. Sits below .nav-logo/.nav-toggle (z-index 110, global.css) so the
     wordmark and the now-X toggle stay visible over the panel. */
  .nav-links.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    background: var(--ivory);
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    overflow-y: auto;
    text-align: center;
  }
  .nav-links.is-open li {
    opacity: 0;
    transform: translateY(12px);
    animation: nav-item-in 0.5s var(--ease) forwards;
  }
  .nav-links.is-open li:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.is-open li:nth-child(2) { animation-delay: 0.1s; }
  .nav-links.is-open li:nth-child(3) { animation-delay: 0.15s; }
  .nav-links.is-open li:nth-child(4) { animation-delay: 0.2s; }
  .nav-links.is-open li:nth-child(5) { animation-delay: 0.25s; }
  .nav-links.is-open li:nth-child(6) { animation-delay: 0.3s; }
  @keyframes nav-item-in { to { opacity: 1; transform: none; } }

  .nav-links.is-open .nav-link {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--plum);
  }
  .nav-links.is-open .nav-link::after { display: none; }
  .nav-links.is-open .nav-link.active { color: var(--gold-ink); }

  .nav-links.is-open .nav-cta {
    margin-top: var(--space-sm);
    color: var(--plum);
    border-color: var(--plum);
  }
  .nav-links.is-open .nav-cta:hover { background: var(--plum); color: var(--ivory); }

  .nav-links.is-open .nav-whatsapp-item { display: block; margin-top: var(--space-xs); }
  .nav-whatsapp {
    font-family: var(--font-body);
    font-size: var(--fs-body-sm);
    font-weight: 600;
    color: var(--burgundy);
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links.is-open li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .meet-stats { gap: var(--space-md); flex-wrap: wrap; }
  .quiz-panel { padding: var(--space-md); }
  .section-pad { padding: var(--space-lg) 0; }
}

/* ---------- Short viewports (landscape phones, small laptops) ---------- */
@media (max-height: 700px) {
  /* Below this height the scroll cue has nowhere left to sit without
     overlapping the CTA button above it. */
  .hero-scroll-cue { display: none; }
}

/* ---------- Journey story — compressed on phones ---------- */
@media (max-width: 600px) {
  /* Each line otherwise reserves 62vh/40vh of its own — five lines add up
     to ~290vh of scroll on a phone for four short sentences, reading as a
     broken, near-endless blank section rather than a considered pacing. */
  .journey-line { min-height: 45vh; }
  .journey-final { min-height: 28vh; }
}
