/* --- */
/* Corporate Teams Page Specific Styles */

/* Stats Section */

#stats { background-color: var(--color-gray-900); }

.stat-card { text-align: center; }

.stat-card .stat-number { font-size: 3rem; font-weight: 800; color: var(--color-primary-500); }

.stat-card .stat-label { margin-top: 0.5rem; color: var(--color-gray-300); font-size: 1.125rem; }

@media (min-width: 768px) { .stat-card .stat-number { font-size: 4rem; } }

/* Customer Journey Section */
#journey {
  position: relative;
  color: var(--color-white);
  --bg: #0b1e22;
  --line: #1ecad3;
  --accent: #ff2e63;
  --text: #ffffff;
  --muted: #9fb3b8;
  background: radial-gradient(120% 100% at 50% -10%, rgba(30,202,211,0.15), rgba(11,30,34,0.9))
              , linear-gradient(180deg, #0b1e22, #0f2429);
  overflow: hidden; /* Prevent cards from showing outside bounds during animation */
}
#journey .journey-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#journey .container { position: relative; z-index: 1; }

/* Heading */
#journey .journey-header { text-align: center; max-width: 56rem; margin: 0 auto; }
#journey .journey-header h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; }
#journey .journey-subhead { margin-top: 0.75rem; color: var(--muted); }
#journey .journey-primary-cta { margin-top: 1.5rem; }
@media (min-width: 768px) { #journey .journey-header h1 { font-size: 3rem; } }

/* Timeline wrapper */
#journey .journey-timeline {
  position: relative;
  margin-top: 3rem;
  height: 300px; /* Give it a fixed height to contain the absolutely positioned cards */
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px; /* For 3D effect */
}

/* New card deck container */
#journey .journey-card-deck {
  position: relative;
  width: 380px; /* Width of the central card */
  height: 240px; /* Height of the central card */
  transform-style: preserve-3d;
}

#journey .tp-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(3, 11, 13, 0.8);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.5s ease, opacity 0.5s ease, z-index 0s 0.25s;
  cursor: pointer;
  transform-origin: center center;
  opacity: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card content styles */
#journey .tp-card .tp-content { align-self: start; }
#journey .tp-card .time { display: inline-block; font-variant: small-caps; color: var(--muted); font-weight: 700; letter-spacing: 0.02em; margin-bottom: 0.25rem; }
#journey .tp-card .title { font-size: 1.125rem; color: var(--text); }
#journey .tp-card .bullets { margin-top: 0.35rem; margin-left: 1rem; color: var(--muted); }
#journey .tp-card--loop .title::after { content: ' ↺'; color: var(--muted); font-weight: 700; }

/* Card states */
#journey .tp-card.is-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
  cursor: default;
  box-shadow: 0 0 0 2px var(--line), 0 12px 32px rgba(0,0,0,0.4);
}

#journey .tp-card.is-prev {
  transform: translateX(-50%) scale(0.85);
  opacity: 0.6;
  z-index: 2;
}

#journey .tp-card.is-next {
  transform: translateX(50%) scale(0.85);
  opacity: 0.6;
  z-index: 2;
}

/* Hidden states for cards further away */
#journey .tp-card.is-prev-hidden {
  transform: translateX(-100%) scale(0.7);
  opacity: 0;
  z-index: 1;
}

#journey .tp-card.is-next-hidden {
  transform: translateX(100%) scale(0.7);
  opacity: 0;
  z-index: 1;
}

/* Special markers no longer used */
#journey .marker, #journey .marker--accent, #journey .marker--loop { display: none; }
#journey .tp-card.is-active .marker { display: none; }

/* Mobile adjustments */
@media (max-width: 767px) {
  #journey .journey-timeline {
    height: 380px;
    perspective: 800px;
    margin-top: 2rem;
  }
  #journey .journey-card-deck {
    width: 90%;
    max-width: 320px;
    height: 250px;
  }
  #journey .tp-card.is-prev {
    transform: translateX(-40%) scale(0.8);
  }
  #journey .tp-card.is-next {
    transform: translateX(40%) scale(0.8);
  }
}

/* Prev/Next Controls */
#journey .journey-controls { display: flex; position: static; gap: 0.5rem; }
#journey .journey-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s, border-color 0.2s;
}
#journey .journey-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}
#journey .journey-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: rgba(255, 255, 255, 0.05);
}

/* CTA Row */
#journey .journey-cta { display: flex; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #journey .tp-card {
    transition: opacity 0.5s ease;
  }
}

#how-it-works .section-heading h2 {
  font-size: 2.25rem;
}

@media (min-width: 640px) {
  #how-it-works .section-heading h2 {
    font-size: 2.75rem;
  }
}