/* =============================================
   SOLUTION JOURNEY — Shared Styles for Sections 2 & 3
   Each solution subpage has 4 snap-sections:
     Section 1 — Hero + Intro + Image (page-specific CSS)
     Section 2 — Customer Journey (sj-journey)
     Section 3 — What We Deliver  (sj-deliver)
     Section 4 — CTA + Footer     (page-specific CSS)
   ============================================= */


/* ===========================================================
   SECTION 2 — CUSTOMER JOURNEY
   Full viewport height, dark background, snap-aligned
   =========================================================== */
.sj-journey {
  width: 100%;
  min-height: calc(100vh - 70px);
  background: var(--black);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  margin-top: -1px;
}
.sj-journey::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 85%, rgba(249,166,2,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(2,24,119,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.sj-journey .container { position: relative; z-index: 1; }

/* Header */
.sj-journey-header {
  text-align: center;
  margin-bottom: 48px;
}
.sj-journey-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.sj-journey-header h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
}

/* ---- Timeline path ---- */
.sj-path {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 80px;
}
.sj-path-rail {
  position: absolute;
  top: 24px;
  left: 80px;
  right: 80px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  z-index: 0;
}
.sj-path-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Step nodes */
.sj-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex: 1;
  max-width: 200px;
  padding: 0 12px;
}
.sj-step-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 3px solid rgba(255,255,255,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sj-step-dot svg {
  width: 22px; height: 22px;
  stroke: rgba(255,255,255,0.5);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.35s ease;
}
.sj-step:hover .sj-step-dot {
  border-color: var(--gold);
  transform: scale(1.15);
  box-shadow: 0 0 0 10px rgba(249,166,2,0.12);
}
.sj-step:hover .sj-step-dot svg { stroke: var(--gold); }

.sj-step.active .sj-step-dot {
  background: var(--gold);
  border-color: var(--gold);
  width: 56px;
  height: 56px;
  transform: scale(1.1);
  box-shadow: 0 0 0 12px rgba(249,166,2,0.18), 0 0 32px rgba(249,166,2,0.20);
  animation: sjDotPulse 2.4s ease-in-out infinite;
}
@keyframes sjDotPulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(249,166,2,0.18), 0 0 32px rgba(249,166,2,0.20); }
  50% { box-shadow: 0 0 0 18px rgba(249,166,2,0.08), 0 0 40px rgba(249,166,2,0.12); }
}
.sj-step.active .sj-step-dot svg { stroke: var(--black); width: 26px; height: 26px; }
.sj-step.visited .sj-step-dot {
  border-color: var(--gold);
  background: rgba(249,166,2,0.15);
}
.sj-step.visited .sj-step-dot svg { stroke: var(--gold); }

/* Tooltip on hover */
.sj-step-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 10;
}
.sj-step-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--white);
}
.sj-step:hover .sj-step-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.sj-step.active .sj-step-tooltip { opacity: 0; }


.sj-step-label {
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.35;
  transition: color 0.3s ease;
}
.sj-step:hover .sj-step-label,
.sj-step.active .sj-step-label { color: var(--gold); }
.sj-step.visited .sj-step-label { color: rgba(255,255,255,0.7); }

/* ---- Step counter ("Step 2 of 5") ---- */
.sj-step-counter {
  text-align: center;
  margin-top: 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}
.sj-step-counter .sj-counter-current {
  color: var(--gold);
  font-weight: 700;
}

/* ---- Detail panel below path ---- */
.sj-detail-area {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 180px;
}
.sj-detail {
  display: none;
  margin-top: 36px;
}
.sj-detail.active {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  animation: sjDetailIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.sj-detail.active .sj-detail-icon {
  animation: sjIconPop 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s both;
}
.sj-detail.active .sj-detail-content h4 {
  animation: sjSlideUp 0.4s ease 0.1s both;
}
.sj-detail.active .sj-detail-content p {
  animation: sjSlideUp 0.4s ease 0.18s both;
}
.sj-detail.active .sj-detail-tags {
  animation: sjSlideUp 0.4s ease 0.26s both;
}

@keyframes sjDetailIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sjIconPop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes sjSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sj-detail-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(249,166,2,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sj-detail-icon svg {
  width: 24px; height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}
.sj-detail-content { flex: 1; }
.sj-detail-content h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.sj-detail-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin: 0;
}
.sj-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.sj-detail-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(249,166,2,0.10);
  color: var(--gold);
  letter-spacing: 0.03em;
  border: 1px solid rgba(249,166,2,0.2);
}

/* ---- CTA bridge (bottom of Section 2, before tools) ---- */
.sj-bridge {
  text-align: center;
  margin-top: 36px;
}
.sj-bridge a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  padding: 10px 28px;
  border: 1.5px solid rgba(249,166,2,0.3);
  border-radius: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.sj-bridge a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.sj-bridge a svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* ---- Scroll-triggered entrance for Section 2 ---- */
.sj-journey .sj-path,
.sj-journey .sj-step-counter,
.sj-journey .sj-detail-area,
.sj-journey .sj-bridge,
.sj-journey .sj-tools-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.sj-journey.in-view .sj-path { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.sj-journey.in-view .sj-step-counter { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.sj-journey.in-view .sj-detail-area { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.sj-journey.in-view .sj-bridge { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.sj-journey.in-view .sj-tools-section { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

/* ---- Tools section (bottom of Section 2) ---- */
.sj-tools-section {
  max-width: 960px;
  margin: 40px auto 0;
  padding: 0 32px;
  text-align: center;
}
.sj-tools-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.sj-tools-subtitle {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  margin-bottom: 16px;
}
/* Marquee wrapper with fade edges */
.sj-tools-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
/* Scrolling track */
.sj-tools-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: sj-tools-scroll 40s linear infinite;
}
@keyframes sj-tools-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.sj-tool-pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.10);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  cursor: default;
  white-space: nowrap;
}
.sj-tool-pill:hover {
  border-color: var(--gold);
  color: var(--black);
  background: var(--gold);
}


/* ===========================================================
   SECTION 3 — WHAT WE DELIVER
   Full viewport height, light background, snap-aligned
   Left: dropdown menu bar  |  Right: service display card
   Pattern mirrors homepage "How SolverStop supports..."
   =========================================================== */
.sj-deliver {
  width: 100%;
  min-height: calc(100vh - 70px);
  background: var(--white);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

/* Split layout */
.sj-deliver-split {
  display: flex;
  gap: 0;
  align-items: stretch;
  min-height: 560px;
}

/* ---- Left column: text + dropdown ---- */
.sj-deliver-left {
  flex: 0 0 42%;
  max-width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 48px;
}
.sj-deliver-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.sj-deliver-left h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 16px;
}
.sj-deliver-left > p {
  font-size: 0.92rem;
  color: var(--grey-text);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Dropdown wrapper */
.sj-dropdown-wrap {
  position: relative;
  margin-top: 32px;
}

/* Main browse button */
.sj-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.sj-dropdown-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.sj-dropdown-btn .chevron {
  font-size: 0.75em;
  transition: transform 0.3s ease;
}
.sj-dropdown-wrap.open .sj-dropdown-btn .chevron {
  transform: rotate(180deg);
}

/* Selected service label */
.sj-dropdown-selected {
  width: 100%;
  padding: 10px 24px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease;
}
.sj-dropdown-selected.visible {
  display: flex;
}
.sj-dropdown-selected:hover { color: var(--gold); }
.sj-dropdown-selected .chevron-sel {
  font-size: 0.65em;
  transition: transform 0.3s ease, color 0.2s ease;
}
.sj-dropdown-selected:hover .chevron-sel { color: var(--gold); }
.sj-dropdown-wrap.open .sj-dropdown-selected .chevron-sel {
  transform: rotate(180deg);
}

/* Dropdown list */
.sj-dropdown-list {
  position: relative;
  width: 100%;
  background: var(--black);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.sj-dropdown-wrap.open .sj-dropdown-list {
  max-height: 160px;
  overflow-y: auto;
  padding: 3px 0;
}
.sj-dropdown-list::-webkit-scrollbar { width: 8px; }
.sj-dropdown-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); }
.sj-dropdown-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.7); border-radius: 4px; }
.sj-dropdown-list::-webkit-scrollbar-thumb:hover { background: var(--white); }

.sj-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.sj-dropdown-item .sj-dropdown-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  min-width: 20px;
  transition: color 0.2s ease;
}
.sj-dropdown-item:hover .sj-dropdown-num,
.sj-dropdown-item.active .sj-dropdown-num {
  color: var(--gold);
}
.sj-dropdown-item:hover,
.sj-dropdown-item.active {
  background: rgba(255,255,255,0.12);
  color: var(--gold);
}

/* ---- Right column: service display card ---- */
.sj-deliver-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  background: var(--black);
}

/* Cards container (fills remaining space after header) */
.sj-deliver-right-cards {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Individual service display (stacked absolutely within cards container) */
.sj-service-display {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.sj-service-display.active {
  opacity: 1;
  pointer-events: auto;
}
/* Content slide-in on activation */
.sj-service-display .sj-service-display-heading,
.sj-service-display .sj-service-display-body,
.sj-service-display .sj-service-deliverables,
.sj-service-display .sj-service-display-link {
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.sj-service-display.active .sj-service-display-heading {
  transform: translateX(0); opacity: 1; transition-delay: 0.08s;
}
.sj-service-display.active .sj-service-display-body {
  transform: translateX(0); opacity: 1; transition-delay: 0.16s;
}
.sj-service-display.active .sj-service-deliverables {
  transform: translateX(0); opacity: 1; transition-delay: 0.24s;
}
.sj-service-display.active .sj-service-display-link {
  transform: translateX(0); opacity: 1; transition-delay: 0.32s;
}

/* Display image — zoom-in on activation */
.sj-service-display-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.sj-service-display-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sj-service-display.active .sj-service-display-img img {
  transform: scale(1);
}

/* Display content overlay */
.sj-service-display-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--black) 0%,
    rgba(0,0,0,0.85) 35%,
    rgba(0,0,0,0.7) 100%
  );
}
/* Service card header bar (counter + arrows, sits above stacked cards) */
.sj-service-display-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 12px;
  background: var(--black);
}
.sj-service-counter {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
}
.sj-service-counter .sj-sc-current { color: var(--gold); }
.sj-service-arrows {
  display: flex;
  gap: 6px;
}
.sj-service-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.sj-service-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.sj-service-arrow svg {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,0.6);
  fill: none;
  stroke-width: 2.5;
  transition: stroke 0.25s ease;
}
.sj-service-arrow:hover svg { stroke: var(--black); }

.sj-service-display-heading {
  padding: 10px 28px 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  background: var(--black);
}
.sj-service-display-body {
  padding: 14px 28px 24px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  flex: 1;
  overflow-y: auto;
}
.sj-service-display-link {
  display: inline-block;
  margin: 0 28px 28px;
  padding: 10px 24px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  background: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 0;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}
.sj-service-display-link:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* Deliverable tags on service cards */
.sj-service-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 28px 20px;
}
.sj-service-del-tag {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(249,166,2,0.12);
  color: var(--gold);
  letter-spacing: 0.02em;
  border: 1px solid rgba(249,166,2,0.25);
}

/* Default display (before any service selected) */
.sj-service-default img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Navigator row (bottom of Section 3) ---- */
.sj-nav {
  margin-top: 32px;
}
.sj-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.sj-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1.5px solid var(--grey-border);
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  max-width: 340px;
  flex: 1;
}
.sj-nav-link:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(249,166,2,0.10);
}
.sj-nav-link--next { flex-direction: row-reverse; text-align: right; margin-left: auto; }

.sj-nav-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.sj-nav-link:hover .sj-nav-arrow { transform: scale(1.1); }
.sj-nav-arrow svg {
  width: 16px; height: 16px;
  stroke: var(--black);
  fill: none;
  stroke-width: 2.5;
}
.sj-nav-meta { display: flex; flex-direction: column; gap: 2px; }
.sj-nav-dir {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.sj-nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.sj-nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
}
.sj-nav-center-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.sj-nav-center:hover .sj-nav-center-icon { background: var(--gold); }
.sj-nav-center-icon svg {
  width: 16px; height: 16px;
  stroke: var(--grey-text);
  fill: none;
  stroke-width: 2;
  transition: stroke 0.3s ease;
}
.sj-nav-center:hover .sj-nav-center-icon svg { stroke: var(--black); }
.sj-nav-center span {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-text);
  transition: color 0.3s ease;
}
.sj-nav-center:hover span { color: var(--gold); }

/* Navigator solution progress */
.sj-nav-progress {
  text-align: center;
  margin-bottom: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--grey-text);
}
.sj-nav-progress .sj-nav-progress-current {
  color: var(--gold);
  font-weight: 700;
}


/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .sj-deliver-left { flex: 0 0 40%; max-width: 40%; padding-right: 32px; }
}

@media (max-width: 768px) {
  .sj-journey { padding: 36px 0; min-height: auto; }
  .sj-journey-header { margin-bottom: 32px; }
  .sj-journey-header h2 { font-size: clamp(1.15rem, 3.5vw, 1.5rem); overflow-wrap: break-word; }
  .sj-path {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 16px;
  }
  .sj-step { max-width: none; padding: 0; }
  .sj-path-rail {
    top: 0; bottom: 0; left: 40px; right: auto;
    width: 3px; height: 100%;
  }
  .sj-path-fill {
    width: 100% !important;
    height: 0%;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sj-step {
    flex-direction: row;
    gap: 14px;
    max-width: none;
    padding: 8px 0;
  }
  .sj-step-dot { width: 40px; height: 40px; }
  .sj-step-dot svg { width: 18px; height: 18px; }
  .sj-step.active .sj-step-dot { width: 46px; height: 46px; }
  .sj-step-label { margin-top: 0; text-align: left; font-size: 0.74rem; overflow-wrap: break-word; }
  .sj-step-tooltip { display: none; }
  .sj-detail { flex-direction: column; gap: 12px; }
  .sj-detail-area { padding: 0 16px; min-height: auto; }
  .sj-detail-content h4 { font-size: 0.98rem; overflow-wrap: break-word; }
  .sj-detail-content p { font-size: 0.85rem; text-align: left; }
  .sj-tools-section { padding: 0 16px; }
  .sj-bridge { padding: 0 16px; }
  .sj-bridge a { font-size: 0.78rem; padding: 10px 20px; }

  .sj-deliver { padding: 36px 0; min-height: auto; }
  .sj-deliver-split {
    flex-direction: column;
    min-height: auto;
  }
  .sj-deliver-left {
    flex: none;
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .sj-deliver-left h2 { font-size: clamp(1.15rem, 3.5vw, 1.45rem); overflow-wrap: break-word; }
  .sj-deliver-left > p { font-size: 0.88rem; text-align: left; }
  .sj-deliver-right { min-height: 380px; }
  .sj-service-display-heading { font-size: 1rem; padding: 10px 20px 10px; overflow-wrap: break-word; }
  .sj-service-display-body { padding: 10px 20px 20px; font-size: 0.85rem; }
  .sj-service-display-header { padding: 14px 20px 8px; }
  .sj-service-display-link { margin: 0 20px 20px; padding: 10px 20px; font-size: 0.8rem; }
  .sj-service-deliverables { padding: 0 20px 14px; }

  /* Service arrows — larger touch targets */
  .sj-service-arrow { width: 40px; height: 40px; }

  .sj-nav { margin-top: 24px; }
  .sj-nav-inner { flex-direction: column; gap: 12px; }
  .sj-nav-link { max-width: none; padding: 12px 16px; }
  .sj-nav-link--next { flex-direction: row-reverse; margin-left: 0; }
  .sj-nav-title { font-size: 0.82rem; overflow-wrap: break-word; }

  /* Dropdown items — allow text wrapping */
  .sj-dropdown-item { white-space: normal; padding: 10px 16px; font-size: 0.82rem; }
  .sj-dropdown-btn { padding: 12px 16px; font-size: 0.84rem; }
  .sj-dropdown-selected { padding: 10px 16px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .sj-journey { padding: 28px 0; }
  .sj-deliver { padding: 28px 0; }
  .sj-deliver-right { min-height: 340px; }
  .sj-service-display-heading { font-size: 0.92rem; padding: 8px 16px 8px; }
  .sj-service-display-body { padding: 8px 16px 16px; font-size: 0.82rem; }
  .sj-service-display-header { padding: 12px 16px 6px; }
  .sj-service-display-link { margin: 0 16px 16px; font-size: 0.78rem; }
  .sj-service-deliverables { padding: 0 16px 10px; gap: 4px; }
  .sj-service-del-tag { font-size: 0.62rem; padding: 2px 8px; }
}

/* ===========================================================
   SOLUTION SUBPAGE & ALL PAGES — Section 1 mobile fixes

   ROOT CAUSES OF OVERLAP ON MOBILE:
   1. snap-section-1 uses min-height:calc(100vh-70px) + justify-content:center
      → on iPhone 12 (774px), total content (1017px) overflows and centering
        pushes the hero heading ABOVE the visible area
   2. main uses height:calc(100vh-70px) + scroll-snap → creates a rigid scroll
      container that fights with content-driven height
   3. page-hero has fixed height:320px → heading can't grow when text wraps
   4. section-intro has overflow:hidden + fixed height:377px → clips content
   5. hero-img-banner has fixed height:320px → wastes vertical space

   FIX: On mobile, disable scroll-snap, remove ALL fixed heights, switch to
   content-driven normal document flow. Each part stacks naturally.
   =========================================================== */

/* --- Tablet breakpoint (≤ 768px) --- */
@media (max-width: 768px) {
  /* CRITICAL: Disable scroll-snap container on main — let content flow naturally */
  main {
    scroll-snap-type: none !important;
    height: auto !important;
    overflow-y: visible !important;
  }

  /* snap-section-1: Remove viewport height, remove centering that causes overlap */
  .snap-section-1 {
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;  /* NOT center — prevents content being pushed above viewport */
    scroll-snap-align: none !important;
  }

  /* Part 1: Hero — auto height, content-driven */
  .snap-section-1 .page-hero {
    height: auto !important;
    min-height: 0 !important;
    padding: 32px 0 24px !important;
    display: flex !important;
    align-items: flex-start !important;
  }
  .snap-section-1 .page-hero h1 {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
    line-height: 1.3 !important;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .snap-section-1 .page-hero p {
    font-size: 0.88rem !important;
  }

  /* Part 2: Intro — auto height, remove overflow:hidden, content visible */
  .snap-section-1 .section-intro {
    height: auto !important;
    min-height: 0 !important;
    padding: 28px 0 !important;
    overflow: visible !important;
    display: block !important;
    align-items: initial !important;
  }
  .snap-section-1 .section-intro .container { width: 100% !important; }
  .snap-section-1 .section-intro .solutions-intro { max-width: 100% !important; }
  .snap-section-1 .section-intro .solutions-intro p {
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.7;
  }
  .snap-section-1 .section-intro .section-header h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem) !important;
    line-height: 1.35 !important;
    overflow-wrap: break-word;
  }

  /* Part 3: Image banner — controlled shorter height */
  .snap-section-1 .hero-img-banner {
    height: 200px !important;
  }

  /* ALL snap-sections — disable snap and auto height */
  .sj-journey,
  .sj-deliver {
    scroll-snap-align: none !important;
  }
}

/* --- iPhone 12 / Modern phones (≤ 430px) — tighter spacing --- */
@media (max-width: 430px) {
  .snap-section-1 .page-hero {
    padding: 24px 0 18px !important;
  }
  .snap-section-1 .page-hero h1 {
    font-size: clamp(1.25rem, 5vw, 1.7rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }
  .snap-section-1 .page-hero p {
    font-size: 0.84rem !important;
    line-height: 1.6 !important;
  }
  .snap-section-1 .page-hero .breadcrumb {
    font-size: 0.75rem !important;
    margin-bottom: 10px !important;
  }

  .snap-section-1 .section-intro {
    padding: 20px 0 !important;
  }
  .snap-section-1 .section-intro .section-header {
    margin-bottom: 16px !important;
  }
  .snap-section-1 .section-intro .section-header h2 {
    font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
  }
  .snap-section-1 .section-intro .solutions-intro p {
    font-size: 0.86rem;
  }

  .snap-section-1 .hero-img-banner {
    height: 160px !important;
  }
}

/* --- Small phones (≤ 375px) — iPhone SE and similar --- */
@media (max-width: 375px) {
  .snap-section-1 .page-hero {
    padding: 20px 0 16px !important;
  }
  .snap-section-1 .page-hero h1 {
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
  }
  .snap-section-1 .page-hero p {
    font-size: 0.82rem !important;
  }

  .snap-section-1 .section-intro {
    padding: 16px 0 !important;
  }
  .snap-section-1 .section-intro .section-header h2 {
    font-size: 1.05rem !important;
  }
  .snap-section-1 .section-intro .solutions-intro p {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .snap-section-1 .hero-img-banner {
    height: 140px !important;
  }
}

/* --- Very small phones (≤ 320px) — iPhone 5/SE 1st gen --- */
@media (max-width: 320px) {
  .snap-section-1 .page-hero h1 {
    font-size: 1.1rem !important;
  }
  .snap-section-1 .section-intro .section-header h2 {
    font-size: 1rem !important;
  }
  .snap-section-1 .hero-img-banner {
    height: 120px !important;
  }
}
