﻿/* Dedicated Teams page (Views/Service/DedicatedTeam.cshtml). It loads service-page.css (the shell) and outsourcing.css (the
   section stack) first; this file adds the models as a staircase and the hiring steps, set in the section stack,
   whose gap spaces them. */
/* English breaks as in the design; a translation is balanced so it does not leave a word or two on a line of their own */
html:not([lang=en]) .sdt-page :is(.ssw-hero__title, .sec-title, .sec-lead) {
  text-wrap: balance;
}

/* A section title's highlighted part in navy */
.emd-page .sec-title em {
  font-style: normal;
  color: #0e2a38;
}

/* ---------- Phones (.ssw-page--phone, service-page.css): the models' section head closer to the staircase ---------- */
@media (max-width: 767px) {
  .sdt-page #models .container.sou-stack {
    gap: 0;
  }
  .sdt-page #models .sec-head {
    margin-bottom: 2.4rem;
  }
}

/* ---------- Team options: the three models as a staircase (Views/Service/DedicatedTeam.cshtml, #models) ---------- */
/* Each step stands on a riser as tall as its place on the stairs, so the cards climb from left to right */
.sdt-stairs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: end;
}
.sdt-stair {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: calc(var(--stair) * 4rem);
  padding: 2.4rem;
  border: 1px solid #d4eff1;
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: 0 2rem 4rem -3.2rem rgba(14, 42, 56, 0.45);
  scroll-margin-top: 12rem;
}
.sdt-stair::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 2.4rem;
  right: 2.4rem;
  height: calc(var(--stair) * 4rem);
  border-radius: 0 0 1.2rem 1.2rem;
  background: repeating-linear-gradient(135deg, rgba(0, 194, 203, 0.18) 0 8px, transparent 8px 16px);
}
.sdt-stair__name {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.3;
  color: #0e2a38;
}
.sdt-stair__size {
  font-size: var(--fs-small);
  font-weight: 800;
  color: #00c2cb;
}
.sdt-stair__people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.6rem;
  align-content: flex-start;
}
.sdt-stair__dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #00c2cb;
}
.sdt-stair__dot--you {
  background: #fedd59;
}
/* How much of the managing stays yours (yellow) and how much DESOL takes on (cyan) */
.sdt-stair__share {
  display: block;
  height: 0.9rem;
  border-radius: 999px;
  background: #00c2cb;
  overflow: hidden;
}
.sdt-stair__share span {
  display: block;
  width: var(--yours);
  height: 100%;
  background: #fedd59;
}
.sdt-stair__legend {
  display: flex;
  justify-content: space-between;
  margin-top: -0.4rem;
  font-size: var(--fs-label);
  font-weight: 700;
  color: #5a7380;
}
.sdt-stair__row {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid #e3eef0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: #3e5662;
}
.sdt-stairs__ladder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 1.4rem 2rem;
  border: 1px solid #00c2cb;
  border-radius: 1.4rem;
  background: #ffffff;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.5;
  color: #0e2a38;
  text-align: center;
}
.sdt-stairs__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.9rem;
  background: #00c2cb;
  color: #ffffff;
}

/* ---------- Start here: the selection steps on one line, each promise on its step (#start); --steps from the view ---------- */
.sdt-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sdt-timeline::before {
  content: "";
  position: absolute;
  top: 1.8rem;
  /* from the first circle to the last: half a column in from each side */
  left: calc(50% / var(--steps, 3));
  right: calc(50% / var(--steps, 3));
  border-top: 2px dashed rgba(0, 194, 203, 0.55);
}
.sdt-timeline__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: #3e5662;
}
.sdt-timeline__step strong {
  margin-top: 0.6rem;
  font-size: var(--fs-body);
  line-height: 1.35;
  color: #0e2a38;
}
.sdt-timeline__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #00c2cb;
  box-shadow: 0 0 0 0.6rem #ffffff, 0 1rem 2rem -1rem rgba(0, 194, 203, 0.8);
  font-size: var(--fs-body);
  font-weight: 800;
  color: #ffffff;
}
.sec--tint .sdt-timeline__num {
  box-shadow: 0 0 0 0.6rem #ffffff, 0 1rem 2rem -1rem rgba(0, 194, 203, 0.8);
}
.sdt-timeline__promise {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: #fedd59;
  font-size: var(--fs-label);
  font-weight: 800;
  line-height: 1.35;
  color: #0e2a38;
}
/* The button to the cost estimator, centred under the steps */
.sdt-timeline__cta {
  display: flex;
  justify-content: center;
}
@media (max-width: 1024px) {
  .sdt-stairs {
    gap: 1.4rem;
  }
  .sdt-stair {
    padding: 2rem;
  }
  .sdt-timeline {
    gap: 1.2rem;
  }
}
/* Phones: the steps one under another, the smallest first; the hiring steps run down a wire */
@media (max-width: 767px) {
  .sdt-stairs {
    grid-template-columns: minmax(0, 1fr);
  }
  .sdt-stair {
    margin-bottom: 0;
    padding: 1.8rem 1.6rem;
  }
  .sdt-stair::after {
    display: none;
  }
  .sdt-stair__name {
    font-size: var(--fs-title);
  }
  .sdt-stairs__ladder {
    justify-content: flex-start;
    margin-top: 1.6rem;
    padding: 1.4rem 1.6rem;
    font-size: var(--fs-small);
    text-align: left;
  }
  .sdt-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .sdt-timeline::before {
    top: 1.8rem;
    bottom: 1.8rem;
    left: 1.7rem;
    right: auto;
    border-top: 0;
    border-left: 2px dashed rgba(0, 194, 203, 0.55);
  }
  .sdt-timeline__step {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr);
    column-gap: 1.4rem;
    row-gap: 0.4rem;
    align-items: start;
    text-align: left;
  }
  .sdt-timeline__num {
    grid-row: 1 / span 3;
  }
  .sdt-timeline__step strong {
    margin-top: 0.6rem;
  }
  .sdt-timeline__step > :not(.sdt-timeline__num) {
    grid-column: 2;
    justify-self: start;
  }
  /* 2.8rem above the closing call to action, with the stack's 2.4rem gap */
  .sdt-timeline__cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.4rem;
  }
}
