/* ==============================================
   BEXFORD – JOURNEY / CHOOSE YOUR PATH SECTION
   journey.css | Premium cards section
   ============================================== */

/* ── 1. SECTION WRAPPER ─────────────────────── */
.journey {
  position: relative;
  /* dubai-bg.png is at assets/dubai-bg.png; from assets/css/ → ../dubai-bg.png */
  background:
    linear-gradient(180deg,
      rgba(0, 42, 25, 0.88) 0%,
      rgba(0, 38, 22, 0.76) 50%,
      rgba(0, 30, 16, 0.86) 100%),
    url('../dubai-bg.png') center center / cover no-repeat;
  padding: 40px 0 50px;
  overflow: hidden;
  z-index: 0;
}

/* Seamless bleed from hero */
.journey::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, #002216 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Bottom fade into why-bexford (#004225) */
.journey::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(0deg, #004225 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── 2. AMBIENT LIGHTS ──────────────────────── */
.journey__ambient-left {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 65%);
  top: -10%;
  left: -18%;
  pointer-events: none;
  z-index: 0;
}

.journey__ambient-right {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.045) 0%, transparent 65%);
  bottom: 0%;
  right: -12%;
  pointer-events: none;
  z-index: 0;
}

.journey__ambient-center {
  position: absolute;
  width: 900px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 66, 37, 0.22) 0%, transparent 68%);
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* ── 3. ABSTRACT CORNER LINES ───────────────── */
.journey__corner {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.journey__corner--tl {
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
}

.journey__corner--br {
  bottom: 0;
  right: 0;
  width: 280px;
  height: 280px;
  transform: rotate(180deg);
}

/* ── 4. CONTAINER ───────────────────────────── */
.journey__container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── 5. SECTION HEADER ──────────────────────── */
.journey__heading {
  text-align: center;
  margin-bottom: 30px;
}

/* Gold label – matching why-bexford .why-label style */
.journey__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #D4AF37;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;

  /* entrance */
  opacity: 0;
  filter: blur(5px);
  transform: translateY(12px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey__label.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.journey__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.7);
  flex-shrink: 0;
}

.journey__label-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #D4AF37;
}

/* Main heading – matching why-bexford h2 */
.journey__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 3.85rem);
  font-weight: 500;
  line-height: 1.1;
  color: #FFFFF0;
  letter-spacing: -0.01em;
  margin: 0 0 20px;

  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.journey__title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gold accent word – matching why-bexford h2 span */
.journey__title-gold {
  color: #D4AF37;
}

/* Divider */
.journey__divider {
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  margin: 0 auto 24px;
}

/* Subtitle – matching why-bexford p */
.journey__subtitle {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.979);
  max-width: 680px;
  margin: 0 auto;
  letter-spacing: 0.005em;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

.journey__subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 6. CARD GRID ───────────────────────────── */
.journey__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  justify-content: center;
  gap: 20px;
  align-items: stretch;
}

/* ── 7. INDIVIDUAL CARD ─────────────────────── */
.journey-card {
  position: relative;
  border-radius: 20px;
  min-height: 200px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;

  /* Gold border */
  border: 1px solid rgba(212, 175, 55, 0.22);

  /* Depth shadow */
  box-shadow:
    0 2px 0 0 rgba(212, 175, 55, 0.08) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.3);

  /* Entrance animation start */
  opacity: 0;
  transform: translateY(60px);
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Visible state */
.journey-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover state */
.journey-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow:
    0 2px 0 0 rgba(212, 175, 55, 0.2) inset,
    0 0 0 1px rgba(212, 175, 55, 0.2),
    0 25px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(212, 175, 55, 0.12);
}

/* ── 8. CARD BACKGROUND IMAGE ───────────────── */
.journey-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.journey-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
  filter: brightness(0.65) saturate(0.8);
}

.journey-card:hover .journey-card__img {
  transform: scale(1.06);
  filter: brightness(0.75) saturate(0.9);
}

/* ── 9. CARD OVERLAY ─────────────────────────── */
.journey-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 20px;
  background: linear-gradient(175deg,
      rgba(0, 20, 10, 0.22) 0%,
      rgba(0, 30, 15, 0.52) 35%,
      rgba(0, 18, 8, 0.86) 72%,
      rgba(0, 10, 4, 0.97) 100%);
  transition: background 0.55s ease;
}

.journey-card:hover .journey-card__overlay {
  background: linear-gradient(175deg,
      rgba(0, 20, 10, 0.12) 0%,
      rgba(0, 36, 18, 0.44) 35%,
      rgba(0, 22, 10, 0.80) 72%,
      rgba(0, 12, 5, 0.95) 100%);
}

/* ── 10. LIGHT SWEEP (hover shimmer) ─────────── */
.journey-card__sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 20px;
  background: linear-gradient(115deg,
      transparent 20%,
      rgba(212, 175, 55, 0.04) 50%,
      transparent 80%);
  background-size: 200% 100%;
  background-position: -100% 0;
  pointer-events: none;
  transition:
    background-position 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
  opacity: 0;
}

.journey-card:hover .journey-card__sweep {
  background-position: 200% 0;
  opacity: 1;
}


/* ── 11. CARD CONTENT ───────────────────────── */
.journey-card__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 12px;

}

/* Glass icon circle */
.journey-card__icon-wrap {
  width: 72px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #D4AF37;
  margin-bottom: 8px;
  flex-shrink: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease,
    border-color 0.4s ease;
}

.journey-card:hover .journey-card__icon-wrap {
  transform: rotate(6deg) scale(1.06);
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.5);
}

.journey-card__icon-wrap svg {
  width: 40px;
  height: 35px;
  flex-shrink: 0;
}

/* Gold divider line */
.journey-card__gold-line {
  width: 30px;
  height: 1.5px;
  background: linear-gradient(90deg, #D4AF37, rgba(212, 175, 55, 0.3));
  border-radius: 999px;
  margin-bottom: 6px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-card:hover .journey-card__gold-line {
  width: 68px;
}

/* Card title – matches why-bexford h3 style */
.journey-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1px;
  font-weight: 400;
  line-height: 1.15;

  color: #FFFFF0;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

/* Card description – matches why-bexford p */
.journey-card__text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 240, 0.72);
  margin-bottom: 20px;
  margin-top: 20px;

  letter-spacing: 0.005em;
}

/* CTA button – always visible, aligned at bottom */
.journey-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  padding: 15px 22px;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
  margin: 0 auto;
  /* no transform by default — avoids clipping */
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    box-shadow 0.4s ease;
  margin-top: 25px;
}

.journey-card:hover .journey-card__btn {
  transform: translateY(-3px);
  background: rgba(212, 175, 55, 0.13);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.14);
  color: #D4AF37;
}

.journey-card__btn-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-card:hover .journey-card__btn-arrow {
  transform: translateX(4px);
}

/* ── 12. RESPONSIVE ─────────────────────────── */

/* Tablet: 2 columns */
@media (max-width: 992px) {
  .journey {
    padding: 70px 0 80px;
  }

  .journey__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Third card spans full width on tablet */
  .journey-card:last-child {
    grid-column: span 2;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .journey {
    padding: 60px 0 70px;
  }

  .journey__container {
    padding: 0 20px;
  }

  .journey__heading {
    margin-bottom: 48px;
  }

  .journey__title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .journey__subtitle {
    font-size: 16px;
    line-height: 1.75;
  }

  .journey__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Remove span override on mobile */
  .journey-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .journey-card {
    min-height: 200px;
  }

  .journey-card__content {
    padding: 16px 12px;
  }

  .journey-card__title {
    font-size: 1.6rem;
  }

  .journey-card__text {
    font-size: 20px;
    margin-bottom: 20px;
  }

  /* Fix: remove overflow hidden on btn-wrap – was clipping button on mobile */
  .journey-card__btn-wrap {
    overflow: visible;
  }
}

@media (max-width: 480px) {
  .journey-card {
    min-height: 220px;
    border-radius: 16px;
  }

  .journey-card__img {
    border-radius: 16px;
  }

  .journey-card__overlay,
  .journey-card__sweep {
    border-radius: 16px;
  }

  .journey-card__title {
    font-size: 1.5rem;
  }
}

/* ── 13. ENTRANCE DELAYS ────────────────────── */
/* Note: delays only applied on desktop where stagger is visible */
@media (min-width: 769px) {
  .journey-card[data-delay="1"] {
    transition-delay: 0.15s;
  }

  .journey-card[data-delay="2"] {
    transition-delay: 0.28s;
  }

  .journey-card[data-delay="3"] {
    transition-delay: 0.42s;
  }
}

/* ── 14. REDUCED MOTION ─────────────────────── */
@media (prefers-reduced-motion: reduce) {

  .journey-card,
  .journey__label,
  .journey__title,
  .journey__subtitle {
    transition: none !important;
    animation: none !important;
  }
}