/* ============================================================
   JDMS "Choose Your Journey" hub — additive styles on top of style.css
   ============================================================ */

/* ---------- Hero: full-width headline + postcards ---------- */
.journey-hero__headline { padding-top: 88px; }
.journey-hero__headline .hero__title {
  font-size: 76px;
  line-height: 1.02;
  max-width: 14ch;
}
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .word__inner { display: inline-block; will-change: transform; }

.journey-hero__grid { padding-top: 36px; }
.journey-hero__grid .hero__sub { max-width: 46ch; }

.cycle {
  color: var(--hrz-orange);
  font-weight: 700;
  display: inline-block;
  min-width: 5.5ch;
  border-bottom: 2px solid var(--hrz-orange-soft);
  line-height: 1.1;
}

/* Postcard mosaic */
.postcards {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
}
.postcard {
  position: absolute;
  width: 58%;
  aspect-ratio: 4 / 3;
  background: var(--hrz-paper);
  padding: 8px 8px 26px;
  border-radius: 6px;
  box-shadow: var(--hrz-shadow-lift);
  transform-origin: 50% 60%;
  transition: transform var(--hrz-dur-base) var(--hrz-ease-out), box-shadow var(--hrz-dur-base) var(--hrz-ease-out);
  text-decoration: none;
}
.postcard img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; }
.postcard__caption {
  position: absolute; left: 12px; bottom: 6px;
  font-family: var(--hrz-font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--hrz-slate);
}
.postcard--1 { left: 0;    top: 6%;    --rot: -7deg; }
.postcard--2 { right: 0;   top: 0;     --rot: 5deg;  }
.postcard--3 { left: 20%;  bottom: 0;  --rot: 3deg;  }
.postcard--4 { right: 0;   bottom: 4%; --rot: -4deg; }
.postcard { transform: rotate(var(--rot)); }
/* Top-row cards stack above bottom-row cards so overlaps never hide a caption. */
.postcard--1, .postcard--2 { z-index: 2; }
.postcard--3, .postcard--4 { z-index: 1; }
.postcard:hover { transform: rotate(0deg) translateY(-8px) scale(1.04); z-index: 5; box-shadow: 0 6px 12px rgba(15,27,45,.12), 0 32px 64px rgba(15,27,45,.18); }

/* ---------- Journeys ---------- */
.journeys { max-width: var(--hrz-container); margin: 104px auto 0; padding: 0 var(--hrz-gutter); }
.journeys__head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.journeys__title {
  margin: 20px 0 0; font-family: var(--hrz-font-display); font-weight: 700;
  font-size: 48px; line-height: 1.15; letter-spacing: -.02em; color: var(--hrz-ink); text-wrap: balance; max-width: 16ch;
}
.journeys__intro { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--hrz-graphite); max-width: 58ch; text-wrap: pretty; }

/* Compass */
.compass-wrap { display: grid; justify-items: center; gap: 12px; text-align: center; }
.compass {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--hrz-paper);
  border: 1px solid var(--hrz-ink);
  display: grid; place-items: center;
  cursor: pointer; position: relative;
  transition: box-shadow var(--hrz-dur-base) var(--hrz-ease-out), transform var(--hrz-dur-fast) var(--hrz-ease-out);
}
.compass:hover { box-shadow: var(--hrz-shadow-card); transform: scale(1.04); }
.compass:focus-visible { outline: 3px solid var(--hrz-orange-soft); outline-offset: 3px; }
.compass svg { width: 72px; height: 72px; display: block; }
/* No CSS transform-origin on the needle: GSAP bakes the pivot into the transform
   attribute via svgOrigin, and a CSS origin would be applied on top of it. */
.compass__label { font-family: var(--hrz-font-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--hrz-slate); }
.compass__result {
  font-family: var(--hrz-font-italic); font-style: italic; font-size: 16px; color: var(--hrz-ink);
  min-height: 1.5em; opacity: 0;
}
.compass__result a { color: var(--hrz-orange); border-bottom: 1px solid currentColor; }

/* Journey cards */
.journey-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
.journey-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px;
  border-radius: var(--hrz-radius-lg);
  overflow: hidden;
  background: var(--hrz-navy);
  color: var(--hrz-on-navy);
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--hrz-shadow-card);
  transition: transform var(--hrz-dur-base) var(--hrz-ease-out), box-shadow var(--hrz-dur-base) var(--hrz-ease-out), outline-color var(--hrz-dur-base);
  outline: 3px solid transparent;
  outline-offset: 4px;
}
.journey-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--hrz-ease-out);
}
.journey-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(15,27,45,.96) 0%, rgba(15,27,45,.72) 38%, rgba(15,27,45,.12) 70%, rgba(15,27,45,0) 100%);
}
.journey-card:hover { transform: translateY(-6px); box-shadow: var(--hrz-shadow-lift); color: var(--hrz-on-navy); }
.journey-card:hover img { transform: scale(1.06); }
.journey-card.is-chosen { outline-color: var(--hrz-orange); }

.journey-card__top {
  position: absolute; top: 22px; left: 24px; right: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.journey-card__num {
  font-family: var(--hrz-font-display); font-weight: 700; font-size: 14px; letter-spacing: .14em;
  color: var(--hrz-paper); background: rgba(15,27,45,.55); backdrop-filter: blur(6px);
  padding: 8px 12px; border-radius: var(--hrz-radius-pill);
}
.journey-card__chip {
  font-family: var(--hrz-font-display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hrz-ink); background: var(--hrz-paper);
  padding: 8px 14px; border-radius: var(--hrz-radius-pill);
}
.journey-card__body { position: relative; padding: 28px 28px 30px; }
.journey-card__hook {
  margin: 0; font-family: var(--hrz-font-display); font-weight: 700;
  font-size: 26px; line-height: 1.2; letter-spacing: -.01em; color: var(--hrz-paper); text-wrap: balance;
}
.journey-card__teaser { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--hrz-on-navy-soft); max-width: 50ch; }
.journey-card__cta {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--hrz-font-display); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--hrz-orange-glow);
}
.journey-card__cta svg { transition: transform var(--hrz-dur-base) var(--hrz-ease-out); }
.journey-card:hover .journey-card__cta svg { transform: translateX(6px); }

/* ---------- Destination ---------- */
.destination { background: var(--hrz-bone); margin-top: 104px; }
.destination__inner { max-width: var(--hrz-container); margin: 0 auto; padding: 88px var(--hrz-gutter); }
.destination__title {
  margin: 20px 0 0; font-family: var(--hrz-font-display); font-weight: 700;
  font-size: 44px; line-height: 1.18; letter-spacing: -.02em; color: var(--hrz-ink); text-wrap: balance; max-width: 22ch;
}
.destination__body { margin: 20px 0 0; font-size: 18px; line-height: 1.65; max-width: 64ch; text-wrap: pretty; }
.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.destination-card { background: var(--hrz-paper); border: 1px solid var(--hrz-mist); border-radius: var(--hrz-radius-md); padding: 28px; }
.destination-card__num { font-family: var(--hrz-font-display); font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--hrz-orange); }
.destination-card__title { margin: 12px 0 0; font-family: var(--hrz-font-display); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--hrz-ink); }
.destination-card__body { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--hrz-graphite); }
.destination__meta { margin-top: 28px; font-size: 15px; line-height: 1.6; color: var(--hrz-slate); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .journey-hero__headline .hero__title { font-size: 56px; }
  .journeys__head { grid-template-columns: 1fr; align-items: start; }
  .compass-wrap { justify-items: start; text-align: left; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-card { min-height: 400px; }
  .destination-grid { grid-template-columns: 1fr; }
  .postcards { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .journey-hero__headline { padding-top: 56px; }
  .journey-hero__headline .hero__title { font-size: 42px; }
  .journeys__title { font-size: 32px; }
  .destination__title { font-size: 30px; }
  .journey-card__hook { font-size: 22px; }
  .journey-card { min-height: 360px; }
  .postcard { width: 62%; padding-bottom: 22px; }
}
