/* Journey in the Womb
   ----------------------- */

/* Section wrapper */
.journey-section {
  padding: 3.5rem 0 4.5rem;
}

/* Header text */
.journey-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.journey-header h1 {
  margin: 0 0 0.75rem;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: #0a4a60;
}

.journey-sub {
  margin: 0;
  color: #475569;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Slider shell */
.journey-slider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Horizontal track of cards */
.journey-track {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.75rem 0.25rem;
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep scroll */
.journey-track::-webkit-scrollbar {
  display: none;
}
.journey-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Individual stage card */
.journey-item {
  flex: 0 0 260px;
  max-width: 260px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  padding: 0.9rem 0.9rem 1rem;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.journey-item figure {
  margin: 0 0 0.6rem;
  border-radius: 14px;
  overflow: hidden;
}

.journey-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.journey-label {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
}

/* Hover effect */
.journey-item:hover {
  transform: translateY(-4px);
  border-color: #bae6fd;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.journey-item:hover img {
  transform: scale(1.03);
}

/* Slider arrows */
.journey-arrow {
  border: none;
  background: #e2e8f0;
  color: #0f172a;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.journey-arrow:hover {
  background: #cbd5f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.journey-arrow:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Modal (lightbox) */
.journey-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.journey-modal.is-open {
  display: block;
}

.journey-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
}

.journey-modal__dialog {
  position: relative;
  max-width: 960px;
  width: 92vw;
  max-height: 88vh;
  margin: 3vh auto;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
}

.journey-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  z-index: 2;
}

.journey-modal__figure {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  height: 100%;
}

.journey-modal__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-modal__caption {
  padding: 1.75rem 1.8rem;
  overflow-y: auto;
}

.journey-modal__caption h2 {
  margin: 0 0 0.6rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.4rem;
  color: #0a4a60;
}

.journey-modal__caption p {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 0.98rem;
  color: #1e293b;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
  .journey-modal__figure {
    grid-template-columns: 1fr;
    max-height: 88vh;
  }

  .journey-modal__figure img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .journey-section {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .journey-slider {
    gap: 0.5rem;
  }

  /* Hide arrows on small screens; swipe instead */
  .journey-arrow {
    display: none;
  }

  .journey-track {
    padding-inline: 0.5rem;
  }

  .journey-item {
    flex: 0 0 230px;
    max-width: 230px;
  }
}
