/* ==========================================================================
   Studio MadGrace — journey.css
   Page-specific styles for the narrative home ("Home verhaal.html").
   A vertical route line weaves through the page; chapter stops mark
   the story beats. Built on the DS tokens in colors_and_type.css.
   ========================================================================== */

/* Layering: the SVG route sits above section backgrounds but under content */
.page-flow { position: relative; }
.jy-svg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.page-flow .section > .container { position: relative; z-index: 2; }

/* ---- Chapter stop (numbered station on the route) ----------------------- */
.jy-stop {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--color-white);
  display: grid; place-items: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.08em; color: var(--fg-subtle);
  margin: 0 auto 2.4rem;
  transition: border-color 0.5s var(--ease-standard), color 0.5s var(--ease-standard), background 0.5s var(--ease-standard), box-shadow 0.5s var(--ease-standard);
}
.jy-stop.is-passed {
  border-color: var(--accent); color: var(--accent);
  background: var(--color-white);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-elephant) 10%, transparent);
}
.scheme-ink .jy-stop { background: var(--color-neutral-darkest); border-color: rgba(255,255,255,0.28); color: rgba(255,255,255,0.62); }
.scheme-ink .jy-stop.is-passed {
  border-color: var(--color-bali-hai-light); color: var(--color-bali-hai-light);
  background: var(--color-neutral-darkest);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.05);
}

/* ---- Serif display accents ---------------------------------------------- */
.jy-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; }
.jy-display em { font-style: italic; font-weight: 500; color: var(--accent); }
.scheme-ink .jy-display em { color: var(--color-careys-pink-light); }

/* ---- Wide cinematic figure ---------------------------------------------- */
.jy-wide { border-radius: var(--radius-image); overflow: hidden; aspect-ratio: 21 / 9; margin-top: 3.5rem; }
.jy-wide img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Room captions under detail figures --------------------------------- */
.jy-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.jy-details .figure { aspect-ratio: 4 / 5; }
.jy-cap { margin-top: 0.9rem; font-size: var(--text-small); color: var(--fg-muted); }
.jy-cap b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 0.15rem; }

/* ---- Wellness chapter (emotional high point) ----------------------------- */
.jy-quote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.3;
  color: rgba(255,255,255,0.92); max-width: 26ch;
  margin: 2.6rem 0 0; text-wrap: balance;
}
.jy-quote .accent { color: var(--color-careys-pink-light); }

/* ---- Businesses, quiet rows ---------------------------------------------- */
.jy-biz { display: grid; gap: 1.1rem; margin-top: 2rem; }
.jy-biz-row {
  display: grid; grid-template-columns: max-content 1fr max-content; gap: 1.1rem; align-items: center;
  padding: 1.2rem 1.4rem; background: var(--color-white);
  border: 1px solid var(--border); border-radius: var(--radius-card);
}
.jy-biz-row .ms { font-size: 26px; color: var(--accent); }
.jy-biz-row b { display: block; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-medium); }
.jy-biz-row span { font-size: var(--text-small); color: var(--fg-muted); }
.jy-biz-row a { font-size: var(--text-small); font-weight: 600; color: var(--accent); white-space: nowrap; }
.jy-biz-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Finale --------------------------------------------------------------- */
.jy-finale { text-align: center; }
.jy-finale h2 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); }
.jy-finale .lede { max-width: 44ch; margin: 1.6rem auto 0; }
.jy-finale .hero__cta { margin-top: 2.8rem; justify-content: center; }
.jy-finale .btn-label--link { color: var(--fg); }
.jy-finale .btn-label--link span.txt::after { background: var(--color-ink-40); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 991px) {
  .jy-svg { display: none; }
  .jy-wide { aspect-ratio: 16 / 9; margin-top: 2.4rem; }
  .jy-details { grid-template-columns: 1fr; }
  .jy-details .figure { aspect-ratio: 3 / 2; }
  .jy-biz-row { grid-template-columns: max-content 1fr; }
  .jy-biz-row a { grid-column: 2; justify-self: start; }
  .jy-finale h2 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .jy-quote { font-size: clamp(1.3rem, 4.5vw, 1.8rem); margin-top: 1.8rem; }
}

@media (max-width: 600px) {
  /* details: horizontal scroll strip */
  .jy-details {
    grid-template-columns: repeat(3, 72vw);
    overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.6rem;
    margin-inline: calc(-1 * var(--space-edge));
    padding-inline: var(--space-edge);
    scrollbar-width: none;
  }
  .jy-details::-webkit-scrollbar { display: none; }
  .jy-details > figure { scroll-snap-align: start; }
  .jy-details .figure { aspect-ratio: 3 / 2; }
  .jy-wide { aspect-ratio: 4 / 3; }
  .jy-quote { font-size: 1.25rem; }
  .jy-finale h2 { font-size: 1.9rem; }
  .jy-stop { width: 44px; height: 44px; font-size: 0.72rem; margin-bottom: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .jy-stop { transition: none; }
}
