/* Join pages: below-the-fold "fun zone" (photos, week-by-week journey,
   closing Book Now) plus the scroll-in motion. Shared by /intro-join/,
   /intro-couples/, /groups/, /corporate/ and /improver-join/.
   Behaviour lives in /shared/js/join-fun.js.
   Hierarchy from type, hairlines and spacing only. No fills. */
.ij-fun { max-width: 600px; margin: 56px auto 0; }
.ij-fun__eyebrow {
  margin: 0 0 6px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--color-gold);
}
.ij-fun__title {
  margin: 0 0 28px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  color: #1a1a1a;
}
.ij-fun__title em { font-style: italic; }

.ij-photos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ij-photos__item {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
}
.ij-photos__item--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.ij-photos__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ij-photos__caption {
  margin: 14px 0 0;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: #4a4a4a;
}
@media (min-width: 720px) {
  .ij-photos {
    max-width: none;
    width: min(880px, calc(100vw - 32px));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .ij-photos__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    gap: 8px;
  }
  .ij-photos__item, .ij-photos__item--wide { aspect-ratio: auto; }
  .ij-photos__item:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .ij-photos__item:nth-child(4) { grid-column: 3 / span 2; }
}

.ij-journey__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
/* Gold hairline joining each week number to the next. */
.ij-journey__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -28px;
  width: 1px;
  background: rgba(193, 150, 53, 0.55);
  transform-origin: top;
}
.ij-journey__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.ij-journey__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  background: #F4F1E8; /* page colour, masks the line behind */
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-gold);
}
.ij-journey__body { padding-top: 4px; }
.ij-journey__week {
  margin: 0 0 2px;
  font-family: "Montserrat", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8a8a8a;
}
.ij-journey__move {
  margin: 0 0 4px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: #1a1a1a;
}
.ij-journey__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #555;
}
.ij-journey__desc:last-child { margin-bottom: 0; }

.ij-fun-cta {
  max-width: 420px;
  margin-top: 52px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}
.ij-fun-cta__line {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1.1;
  color: #1a1a1a;
}
.ij-fun-cta__next {
  margin: 6px 0 18px;
  font-size: 13px;
  color: #6f6f6f;
}
.ij-fun-cta__btn { width: 100%; max-width: 320px; }
#ij-main.is-hidden ~ .ij-fun-cta { display: none; }
.ij-fun-cta + .ij-info { margin-top: 52px; }

/* Hide the sticky pill while this Book Now is on screen. */
body.ij-functa-visible .ij-cta-solid--sticky {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

/* Motion: only when JS confirmed IntersectionObserver support and the
   visitor has not asked for reduced motion (html.ij-motion). */
.ij-motion .ij-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ij-motion .ij-reveal.is-in { opacity: 1; transform: none; }
.ij-motion .ij-photos__item:nth-child(2) { transition-delay: 0.08s; }
.ij-motion .ij-photos__item:nth-child(3) { transition-delay: 0.16s; }
.ij-motion .ij-photos__item:nth-child(4) { transition-delay: 0.08s; }
.ij-motion .ij-journey__step { transform: translateX(-18px); }
.ij-motion .ij-journey__step .ij-journey__num {
  transform: scale(0.6);
  transition: transform 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 0.15s;
}
.ij-motion .ij-journey__step.is-in .ij-journey__num { transform: none; }
.ij-motion .ij-journey__step::before {
  transform: scaleY(0);
  transition: transform 0.9s ease-out 0.3s;
}
.ij-motion .ij-journey__step.is-in::before { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ij-motion .ij-reveal,
  .ij-motion .ij-journey__step .ij-journey__num,
  .ij-motion .ij-journey__step::before { opacity: 1; transform: none; transition: none; }
}
