/* Software Outsourcing page (Views/Services/Outsourcing.cshtml). It shares its shell with the Software Solutions page, so it loads
   softwareSolutions.css first (banner copy, section heads, why DESOL, the offer card, FAQ line, closing call to action); this file
   adds the banner's delivery flow, the fixed-scope model and the work we take on, how a project runs, the trial-then-project path
   and the line to the other services. */

/* The heads and blocks of a section, one gap apart */
.container.sou-stack {
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
}
.sou-stack .sec-head {
  margin-bottom: 0;
}
/* Lines break as in the design (main.css evens out list items site-wide); the steps keep it */
.sou-page :is(.sou-flow, .sou-work) li {
  text-wrap: wrap;
}

/* ---------- Banner: four steps zigzagging down a dotted board, a dot running along the wire between them ---------- */
.sou-hero__art {
  display: flex;
  flex: 1 1 42rem;
  min-width: 0;
}
.sou-flow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.4rem 3rem;
  border: 1px solid #e3eef0;
  border-radius: 2.4rem;
  background-color: #f4fbfc;
  background-image: radial-gradient(rgba(0, 131, 140, 0.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.sou-flow ol {
  display: flex;
  flex-direction: column;
  gap: 4.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sou-flow__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 6.4rem;
  padding: 1.2rem 1.6rem;
  border: 1px solid #cdeff1;
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 1.4rem 2.8rem -2.2rem rgba(14, 42, 56, 0.4);
}
.sou-flow__step:nth-child(odd) {
  margin-right: 5.4rem;
}
.sou-flow__step:nth-child(even) {
  margin-left: 5.4rem;
}
.sou-flow__step::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #00a3ab;
}
.sou-flow .sou-flow__name {
  flex: 1;
  font-size: 1.5rem;
}
.sou-flow__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}
.sou-flow__tags span {
  padding: 0.4rem 1rem;
  border: 1px solid #cdeff1;
  border-radius: 999px;
  background: var(--ssw-tint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ssw-teal-text);
}
/* The wire to the next step sits at the board's centre, whichever side the step leans to */
.sou-flow__wire {
  position: absolute;
  top: 100%;
  left: calc(50% + 27px);
  width: 2px;
  height: 4.6rem;
  background-image: linear-gradient(180deg, rgba(0, 194, 203, 0.55) 50%, transparent 50%);
  background-size: 100% 7px;
}
.sou-flow__step:nth-child(even) .sou-flow__wire {
  left: calc(50% - 27px);
}
.sou-flow__wire::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ssw-cyan);
  box-shadow: 0 0 8px 2px rgba(0, 194, 203, 0.7);
  animation: sou-travel 1.8s ease-in-out infinite;
}
.sou-flow__step:nth-child(2) .sou-flow__wire::after {
  background: #f2c230;
  box-shadow: 0 0 8px 2px rgba(242, 194, 48, 0.7);
  animation-delay: 0.45s;
}
.sou-flow__step:nth-child(3) .sou-flow__wire::after {
  animation-delay: 0.9s;
}
@keyframes sou-travel {
  0% {
    top: -6px;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 6px);
    opacity: 0;
  }
}

/* ---------- What we deliver: the model card, the work we take on, then what is not included ---------- */
/* Flex bases here and on the start-here path include padding and border, so the cards split the row as in the design */
.sou-deliver {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.sou-model {
  display: flex;
  flex: 1 1 36.6rem;
  flex-direction: column;
  gap: 1.4rem;
  min-width: 0;
  padding: 2.4rem 2.2rem;
  border: 1px solid var(--ssw-line);
  border-radius: 2.2rem;
  background: #ffffff;
  box-shadow: 0 1.8rem 3.6rem -2.6rem rgba(14, 42, 56, 0.45);
}
.sou-model__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 1.3rem;
  color: var(--ssw-muted);
}
.sou-model__head strong {
  font-size: 2rem;
  line-height: 1.3;
}
/* Who approves (the badge) wired down to the team DESOL runs (the box) and its result */
.sou-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 19rem;
  padding: 1.4rem;
  border: 1px solid #e3eef0;
  border-radius: 1.6rem;
  background: #fbfeff;
}
.sou-diagram__badge {
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: var(--ssw-yellow);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--ssw-navy);
}
.sou-diagram__wire {
  height: 2rem;
  border-left: 2px dashed var(--ssw-cyan);
}
.sou-diagram__box {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem;
  border: 1.5px solid #9fe3e7;
  border-radius: 1.4rem;
  background: var(--ssw-tint);
}
.sou-diagram__label {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ssw-teal-text);
}
.sou-diagram__team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.sou-diagram__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ssw-cyan);
  box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.18);
}
.sou-diagram__break {
  flex-basis: 100%;
  height: 0;
}
.sou-diagram__result {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--ssw-teal-text);
}
.sou-model__best {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.55;
}
.sou-page .sou-model__best strong {
  color: var(--ssw-teal-text);
}
/* The work we take on, in a card with a gradient border */
.sou-work {
  display: flex;
  flex: 1.2 1 47.9rem;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 0;
  padding: 2.6rem 2.8rem;
  border: 1.5px solid transparent;
  border-radius: 2.2rem;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, var(--ssw-cyan), rgba(47, 127, 224, 0.45)) border-box;
  box-shadow: 0 2.2rem 4.4rem -3.2rem rgba(0, 131, 140, 0.7);
}
.sou-work__label {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--ssw-teal-text);
}
.sou-work ul {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sou-work li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.sou-work__mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ssw-soft);
  color: var(--ssw-deep);
}
.sou-work__body {
  display: flex;
  flex-direction: column;
  font-size: 1.45rem;
  line-height: 1.55;
}
.sou-work__body strong {
  font-size: 1.6rem;
}

/* ---------- How a project runs: compact steps on the shared wire (ssw-steps), then who answers for the result ---------- */
.ssw-steps.sou-steps {
  row-gap: 1.2rem;
}
.sou-steps .ssw-steps__wire {
  flex-basis: 2.6rem;
}
.sou-step {
  display: flex;
  flex: 1 1 17rem;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.8rem;
  border: 1px solid #cdeff1;
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 1.4rem 2.8rem -2.4rem rgba(14, 42, 56, 0.45);
}
.sou-step > strong {
  font-size: 1.5rem;
}
.sou-step > span {
  font-size: 1.35rem;
  line-height: 1.5;
}
.sou-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ssw-navy);
}
.sou-result__wire {
  display: inline-block;
  flex: none;
  width: 4rem;
  height: 3px;
}

/* ---------- Start here: the trial sprint wired to the full project ---------- */
.sou-path {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.ssw-offer.sou-offer {
  flex: 1.5 1 50.3rem;
}
.sou-offer__text {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.6;
}
.sou-path__wire {
  position: relative;
  flex: 0 0 6.4rem;
}
.sou-path__wire > .flow-x {
  top: 50%;
  right: 14px;
  left: 8px;
  height: 3px;
  margin-top: -1.5px;
}
.sou-then {
  display: flex;
  flex: 1 1 33.4rem;
  flex-direction: column;
  align-self: center;
  gap: 1rem;
  min-width: 0;
  padding: 2.4rem 2.6rem;
  border: 1px dashed var(--ssw-chip-line);
  border-radius: 2.2rem;
  background: #f7fcfc;
  font-size: 1.45rem;
  line-height: 1.55;
}
.sou-then__label {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ssw-muted);
}
.sou-then strong {
  font-size: 1.9rem;
  line-height: 1.3;
}

/* ---------- The other lines: one row of links under the offers ---------- */
.sou-more {
  border-top: 1px solid #e3eef0;
  background: #ffffff;
}
.container.sou-more__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 4rem;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
  line-height: 1.55;
}
.sou-more__inner > span {
  color: var(--ssw-navy);
}
.sou-more__inner a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ssw-teal-text);
}
.sou-more__inner a:hover,
.sou-more__inner a:focus-visible {
  color: var(--ssw-navy);
}

/* The closing call to action runs 2rem wider here (and on Dedicated Teams) than on the Software and AI pages, as in the design */
.sou-page .container.ssw-final__inner {
  max-width: 84rem;
}

/* ---------- Tablet and phone ---------- */
@media (prefers-reduced-motion: reduce) {
  .sou-flow__wire::after {
    animation: none;
  }
}
/* The rows stack and the wires between them go */
@media (max-width: 1000px) {
  .sou-path__wire {
    display: none;
  }
  .sou-path {
    gap: 2rem;
  }
}
@media (max-width: 767px) {
  .sou-hero__art {
    flex-basis: 100%;
  }
  .sou-flow {
    flex: 1;
    padding: 2.4rem 1.6rem;
  }
  .sou-flow__step:nth-child(odd) {
    margin-right: 2.4rem;
  }
  .sou-flow__step:nth-child(even) {
    margin-left: 2.4rem;
  }
  .sou-flow__wire {
    left: calc(50% + 12px);
  }
  .sou-flow__step:nth-child(even) .sou-flow__wire {
    left: calc(50% - 12px);
  }
  .sou-work,
  .sou-model {
    padding: 2.4rem 2rem;
  }
  /* Card titles at the phone Home's 17px (main.css) */
  .sou-model__head strong,
  .sou-then strong {
    font-size: 1.7rem;
  }
  .sou-result {
    font-size: 1.5rem;
    text-align: center;
  }
  .sou-result__wire {
    width: 2.4rem;
  }
}
