/* ==========================================================================
   SECTION: THE UV SYSTEM (#process)
   Horizontal 6-stage timeline on desktop, vertical on mobile. Each stage
   is clickable — see .timeline-popup below and js/uv-system.js.
   ========================================================================== */

/* ---- Timeline grid ---- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}

.timeline-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin: -0.5rem;
  transition: background var(--t-fast);
}

.timeline-stage:hover,
.timeline-stage:focus-visible {
  background: var(--bg-white);
}

.timeline-stage.is-open {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.timeline-node {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.timeline-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -6px rgba(240, 121, 28, 0.5);
}

.timeline-stage h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--charcoal-500);
  margin-top: -0.5rem;
}

/* ---- Click-to-reveal popup ---- */

.timeline-popup {
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.timeline-popup .tp-question {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-popup .tp-tags {
  color: rgba(255, 255, 255, 0.65);
}

/* ---- Process summary strip ---- */

.process-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.process-summary span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-900);
}

.process-summary svg {
  width: 16px;
  height: 16px;
  color: var(--charcoal-300);
  flex-shrink: 0;
}

.timeline-hint {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--charcoal-300);
}

/* ---- Supporting mention: UV Business Solutions ----
   Quieter than "Book a Discovery Call" by design — a plain text link,
   not a button. */
.section-head p.uv-supporting-link-row {
  margin-top: 0.6rem;
  font-size: 0.875rem;
}

.uv-supporting-link {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 600;
  color: var(--charcoal-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t-fast);
}

.uv-supporting-link:hover {
  color: var(--accent-600);
}

@media (max-width: 1080px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.5rem;
  }

  .timeline::before {
    top: 22px;
    background:
      linear-gradient(to right, var(--border-subtle) 0 100%);
  }
}

@media (max-width: 700px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border-subtle);
  }

  .timeline::before { display: none; }

  .timeline-stage { padding-left: 0.75rem; margin-left: -0.75rem; }

  .process-summary {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
