/* Worldwide Delivery Services — Figma 80:2162. Shared pieces (hero, eyebrow, h2, sub, buttons,
   story text, contact, footer) come from styles.css; only what they cannot express lives here. */

.wd-section {
  padding: 120px 0;
}

.wd-h2 {
  line-height: 1.15;
}

.wd-h2-snow {
  color: #f1f2f2;
}

.wd-h2-heavy {
  font-weight: 800;
}

.wd-cta {
  align-self: flex-start;
  margin-top: 24px;
}

/* ---------- Hero (80:2164) ---------- */

.wd-hero {
  padding: 96px 0 120px;
}

.wd-hero-grid {
  grid-template-columns: minmax(0, 622px) minmax(0, 520px);
  justify-content: space-between;
  min-height: 0;
}

.wd-hero-title {
  font-size: clamp(40px, 4.4vw, 59px);
  letter-spacing: 0;
}

.wd-lead-next {
  margin-top: 16px;
}

/* The map is wider than its 520px column (728px in Figma) and fades out at both ends. */
.wd-hero-art img {
  width: 140%;
  max-width: none;
  height: auto;
  margin-left: -20%;
  aspect-ratio: 728 / 505.748;
  object-fit: cover;
  -webkit-mask-image: url("/assets/worldwide-delivery/hero-mask.svg");
  mask-image: url("/assets/worldwide-delivery/hero-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ---------- What we do (80:2190) ---------- */

.wd-intro {
  display: grid;
  grid-template-columns: minmax(0, 577px) minmax(0, 1fr);
  align-items: start;
  gap: 96px;
}

.wd-intro-left .eyebrow {
  margin-bottom: 24px;
}

.wd-intro .sub.wd-intro-sub {
  margin-top: 24px;
  line-height: 1.5;
}

.story-body.wd-intro-body {
  margin-top: 0;
}

.wd-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid #e2e8f0;
}

.wd-benefit {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 40px 0;
}

.wd-benefit:first-child {
  padding-left: 0;
}

.wd-benefit + .wd-benefit {
  border-left: 1px solid #e2e8f0;
}

.wd-benefit-icon {
  flex: 0 0 auto;
  width: 78px;
  height: 62px;
  object-fit: contain;
}

.wd-benefit-icon.is-reach {
  position: relative;
  width: 78.5px;
  overflow: hidden;
}

.wd-benefit-icon.is-reach img {
  position: absolute;
  left: 0;
  top: -8.23%;
  width: 106.39%;
  max-width: none;
  height: 134.78%;
}

.wd-benefit h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-deep);
}

.wd-benefit p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

/* ---------- Delivery solutions (80:2228) ---------- */

.wd-solutions-intro {
  max-width: 760px;
}

.wd-solutions-intro .eyebrow {
  margin-bottom: 24px;
}

.wd-solutions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
  padding: 32px 0;
  border-radius: 16px;
  background: #fff;
}

.wd-solution {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 28px;
}

.wd-solution + .wd-solution {
  border-left: 1px solid #c2c8d2;
}

.wd-solution-icon,
.wd-icon-employee {
  flex: 0 0 auto;
  width: 94px;
  height: 72px;
  margin-bottom: 28px;
  object-fit: contain;
}

.wd-solution-icon.is-world {
  width: 97px;
  object-fit: fill;
}

/* Employee icon: Figma composes a base render with two multiply-blended accents. */
.wd-icon-employee {
  position: relative;
  display: block;
}

.wd-icon-employee img {
  position: absolute;
  max-width: none;
}

.wd-icon-employee-base {
  left: -2.18px;
  top: -11.08px;
  width: 98.5px;
  height: 98.5px;
}

.wd-icon-employee-shade {
  left: 34.03px;
  top: 6.5px;
  width: 26.17px;
  height: 17.6px;
  mix-blend-mode: multiply;
}

.wd-icon-employee-dot {
  left: 43.71px;
  top: 52.22px;
  width: 6.73px;
  height: 6.73px;
  mix-blend-mode: multiply;
}

.wd-solution h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-deep);
}

.wd-solution-copy {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

.wd-solution-copy p + p {
  margin-top: 10px;
}

/* ---------- How it works (80:2265) ---------- */

.wd-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.wd-head .eyebrow {
  margin: 0;
}

.wd-head .sub.wd-head-sub {
  max-width: 892px;
  margin-top: 0;
}

.wd-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.wd-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 115px;
  height: 1px;
  background: linear-gradient(90deg, rgba(84, 170, 71, 0) 0%, #54aa47 8%, #3294c9 92%, rgba(50, 148, 201, 0) 100%);
}

.wd-timeline li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 8px;
}

.wd-step-num {
  font-family: var(--font-head);
  font-size: 80px;
  font-weight: 800;
  line-height: 84px;
  color: var(--line);
}

.wd-step-node {
  position: relative;
  width: 23px;
  height: 23px;
  margin: 20px 0 28px;
}

.wd-timeline h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.wd-timeline p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
}

.wd-closing {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 64px;
}

.wd-closing::before {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(153, 165, 189, 0), #99a5bd 50%, rgba(153, 165, 189, 0));
}

.wd-closing p {
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.6;
  text-align: center;
  color: var(--text-muted);
}

.wd-closing strong {
  color: #f1f2f2;
}

/* ---------- Cross-border (80:2327) ---------- */

.wd-cross {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 577px);
  align-items: center;
  gap: 96px;
}

.story-body.wd-cross-body {
  gap: 24px;
}

.wd-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding-top: 8px;
}

.wd-checks li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  color: #172544;
}

.wd-checks li::before {
  content: "";
  flex: 0 0 auto;
  width: 42px;
  height: 32px;
  background: url("/assets/it-warehousing/check-bg.png") center / 100% 100% no-repeat;
}

.wd-checks li::after {
  content: "";
  position: absolute;
  left: 11.12px;
  top: 50%;
  width: 18.7px;
  height: 14.95px;
  margin-top: -7.74px;
  background: url("/assets/it-warehousing/check.png") center / contain no-repeat;
}

.wd-route-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px 40px 32px;
  border-radius: 24px;
  background: var(--navy);
}

.wd-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.wd-route-end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  white-space: nowrap;
}

.wd-route-end.is-dest {
  align-items: flex-end;
}

.wd-route-end span {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lime);
}

.wd-route-end strong {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.wd-route-arrow {
  flex: 0 1 185.33px;
  min-width: 32px;
  height: 5.33px;
  margin: 0 -2.67px;
}

.wd-stages {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.wd-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
}

/* Connector from this stage's status icon down to the next one. */
.wd-stage:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 46.42px;
  bottom: -35px;
  width: 2px;
  background: var(--line);
}

.wd-stage.is-done::before {
  background: var(--green);
}

.wd-stage-status {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.wd-stage-text {
  flex: 1 1 0;
  min-width: 0;
}

.wd-stage-text h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.wd-stage-text p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
}

.wd-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(62, 86, 136, 0.5);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.66px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-dim);
}

.wd-pill.is-done {
  border-color: rgba(84, 170, 71, 0.5);
  color: #7fd172;
}

.wd-pill.is-progress {
  border-color: rgba(0, 210, 255, 0.5);
  color: var(--cyan);
}

/* ---------- Lifecycle (80:2428) ---------- */

.wd-lifecycle {
  display: grid;
  grid-template-columns: minmax(0, 642px) minmax(0, 1fr);
  align-items: center;
  gap: 96px;
}

.story-body.wd-lifecycle-body {
  gap: 24px;
}

/* Infographic: endpoint cards, the Worldwide Delivery hub and routing arrows (642 × 623 in Figma). */
.wd-flow {
  width: 100%;
  max-width: 642px;
  padding: 36px 0;
}

.wd-flow-row {
  display: grid;
  grid-template-columns: 205fr 205fr 210fr;
  gap: 11px;
}

.wd-flow-card {
  display: flex;
  align-items: flex-start;
  height: 99px;
  overflow: hidden;
  border: 1px solid #71b9ff;
  border-radius: 17px;
  background: linear-gradient(180deg, #fafcff 0%, #eff6fd 100%);
  box-shadow: 0 7px 17px rgba(0, 125, 197, 0.1);
}

.wd-flow-row.is-to .wd-flow-card {
  height: 95px;
}

/* Every endpoint illustration is a crop of one shared 724 × 661.6 illustration sheet. */
.wd-flow-ill {
  flex: 0 0 auto;
  background: url("/assets/worldwide-delivery/lc-illustration.webp") no-repeat;
  background-size: 724px 661.643px;
}

.wd-flow-ill.is-supplier { width: 78px; height: 76px; margin: 13px 0 0 12px; background-position: -56px -75px; }
.wd-flow-ill.is-client { width: 80px; height: 67px; margin: 15px 0 0 15px; background-position: -275px -77px; }
.wd-flow-ill.is-warehouse { width: 78px; height: 76px; margin: 10px 0 0 10px; background-position: -486px -72px; }
.wd-flow-ill.is-employee { width: 76px; height: 77px; margin: 6px 0 0 13px; background-position: -57px -383px; }
.wd-flow-ill.is-office { width: 94px; height: 72px; margin: 8px 0 0 15px; background-position: -275px -385px; }
.wd-flow-ill.is-business { width: 74px; height: 65px; margin: 15px 0 0 10px; background-position: -486px -392px; }
.wd-flow-ill.is-return { width: 110px; height: 77px; background-position: -116px -525px; }

.wd-flow-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: center;
  min-width: 0;
  margin-left: 10px;
  padding-right: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: #0c1d44;
}

.wd-flow-label small,
.wd-flow-hub-text small,
.wd-flow-return-text small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 1.7px;
  color: #586783;
}

.wd-flow-label.is-employee { margin-left: 11px; }
.wd-flow-label.is-office,
.wd-flow-label.is-small,
.wd-flow-label.is-tiny { margin-left: 8px; }

.wd-flow-label.is-small {
  gap: 0;
  font-size: 16px;
}

.wd-flow-label.is-tiny {
  font-size: 12.5px;
}

.wd-flow-inbound {
  width: 418px;
  max-width: 66%;
  height: 55px;
  margin: 0 auto;
}

.wd-flow-route {
  width: 14.5px;
  height: 36.05px;
  margin: -2px auto 6px;
}

.wd-flow-route.is-mobile {
  display: none;
}

.wd-flow-hub {
  display: flex;
  align-items: center;
  height: 121px;
  padding-left: 28px;
  border: 3px solid #83ef40;
  border-radius: 25px;
  background: linear-gradient(180deg, #073659 0%, #052a49 50%, #031c32 100%);
  box-shadow: 0 10px 22px rgba(0, 125, 157, 0.19);
}

.wd-flow-hub-icon {
  position: relative;
  flex: 0 0 auto;
  width: 123px;
  height: 92px;
  overflow: hidden;
}

.wd-flow-hub-icon img {
  position: absolute;
  left: 0;
  top: -9.02%;
  width: 100%;
  max-width: none;
  height: 134.78%;
}

.wd-flow-hub-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 30px;
  padding-left: 39.5px;
  border-left: 1.5px solid #00e5ef;
  font-size: 32px;
  font-weight: 800;
  line-height: normal;
  letter-spacing: 1.7px;
  white-space: nowrap;
  color: #f7faff;
}

.wd-flow-hub-text small {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #6bff33;
}

.wd-flow-return {
  display: flex;
  align-items: center;
  min-height: 95px;
  margin-top: 46px;
  padding-left: 59.4px;
  border: 1.3px dashed #009dff;
  border-radius: 18px;
  background: #fff;
}

.wd-flow-return-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 25px;
  padding-left: 34.5px;
  border-left: 1.5px solid #009dff;
  font-size: 22px;
  font-weight: 800;
  line-height: normal;
  color: #0c1d44;
}

.wd-flow-return-text small {
  font-size: 13px;
  letter-spacing: 2.7px;
}

/* ---------- Final CTA (80:2494) ---------- */

.wd-section.wd-final {
  padding: 96px 0 17px;
  overflow: hidden;
}

.wd-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 607px) minmax(0, 544px);
  align-items: center;
  gap: 64px;
}

/* Globe artwork: every layer is placed in percentages of the 607px Figma frame so it scales as one. */
.wd-globe {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.wd-globe img {
  position: absolute;
  max-width: none;
}

.wd-globe-disc,
.wd-globe-map {
  left: 12.469%;
  top: 12.42%;
  width: 75.16%;
  height: 75.16%;
}

.wd-globe-america {
  left: 30.623%;
  top: 37.183%;
  width: 29.862%;
  height: 11.142%;
}

.wd-globe-orbit {
  left: 4.446%;
  top: 67.423%;
  width: 90.474%;
  height: 23.46%;
}

.wd-globe-person {
  left: 57.99%;
  top: 34.254%;
  width: 9.39%;
  height: 9.39%;
  border: 0.64px solid var(--green);
  border-radius: 50%;
  object-fit: cover;
}

.wd-globe-rings {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.story-text .sub.wd-final-sub {
  line-height: 1.6;
}

.wd-final-text .wd-final-cta {
  margin-top: 56px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .wd-solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .wd-solution + .wd-solution {
    border-left: 0;
  }

  .wd-solution:nth-child(even) {
    border-left: 1px solid #c2c8d2;
  }

  .wd-lifecycle {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .wd-flow {
    justify-self: center;
  }

  .wd-cross {
    gap: 56px;
  }
}

@media (max-width: 1100px) {
  .wd-section {
    padding: 96px 0;
  }

  .wd-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wd-hero-art img {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
  }

  .wd-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .wd-benefits {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 56px;
    border-top: 0;
  }

  .wd-benefit,
  .wd-benefit:first-child {
    padding: 32px 0;
    border-top: 1px solid #e2e8f0;
  }

  .wd-benefit + .wd-benefit {
    border-left: 0;
  }

  .wd-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 48px;
  }

  .wd-timeline::before {
    content: none;
  }

  .wd-cross {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .wd-route-card {
    width: 100%;
    max-width: 640px;
  }

  .wd-section.wd-final {
    padding: 96px 0;
  }

  .wd-final-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .wd-globe {
    max-width: 480px;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .wd-section,
  .wd-section.wd-final {
    padding: 64px 0;
  }

  .wd-hero {
    padding: 40px 0 64px;
  }

  .wd-solutions {
    margin-top: 40px;
  }

  .wd-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wd-step-num {
    font-size: 56px;
    line-height: 1;
  }

  .wd-step-node {
    margin: 16px 0 20px;
  }

  .wd-route-card {
    padding: 28px 20px 20px;
  }

  .wd-route-end strong {
    font-size: 19px;
  }

  .wd-stage {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .wd-stage-text {
    flex-basis: calc(100% - 42px);
  }

  .wd-pill {
    margin-left: 42px;
  }

  .wd-stage:not(:last-child)::before {
    bottom: -35px;
  }

  /* Infographic reflows into a single column; the branching inbound routes become one arrow. */
  .wd-flow {
    padding: 0;
  }

  .wd-flow-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .wd-flow-inbound {
    display: none;
  }

  .wd-flow-route.is-mobile {
    display: block;
    margin: 8px auto 6px;
  }

  .wd-flow-hub {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
  }

  .wd-flow-hub-icon {
    width: 80px;
    height: 60px;
  }

  .wd-flow-hub-text {
    margin-left: 14px;
    padding-left: 16px;
    font-size: 22px;
    letter-spacing: 1px;
    white-space: normal;
  }

  .wd-flow-hub-text small {
    font-size: 13px;
    letter-spacing: 3px;
  }

  .wd-flow-return {
    margin-top: 32px;
    padding: 8px 12px 8px 8px;
  }

  .wd-flow-return-text {
    margin-left: 12px;
    padding-left: 14px;
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .wd-solutions {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 0;
    row-gap: 0;
  }

  .wd-solution,
  .wd-solution:nth-child(even) {
    padding: 24px 20px;
    border-left: 0;
  }

  .wd-solution + .wd-solution {
    border-top: 1px solid #c2c8d2;
  }

  .wd-timeline {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .wd-closing p {
    font-size: 18px;
  }

  .wd-checks li {
    font-size: 15px;
  }

  .wd-route-head {
    gap: 8px;
  }

  .wd-route-end strong {
    font-size: 17px;
  }
}

/* ---------- Polish pass: wrapping, tablet alignment, small phones ---------- */

@media (max-width: 1100px) {
  .wd-hero-title,
  .wd-h2,
  .wd-closing p {
    text-wrap: balance;
  }

  .wd-route-card {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 760px) {
  /* Eyebrows that wrap: keep the dot beside the first line instead of floating at the left edge. */
  .wd-hero .eyebrow,
  .wd-section .eyebrow {
    display: block;
  }

  .wd-hero .eyebrow::before,
  .wd-section .eyebrow::before {
    display: inline-block;
    margin-right: 8px;
    vertical-align: 1px;
  }
}

@media (max-width: 400px) {
  .wd-cta {
    white-space: normal;
    height: auto;
    min-height: 44px;
    padding: 10px 20px;
    text-align: center;
  }
}

/* Body gray on the pale background was 4.2:1; this tint reaches AA (4.66:1) and is visually the same gray. */
.wd-section.pale {
  --gray: #666f82;
}

/* The shared pale-blue focus ring is hard to see on white and pale sections. */
.wd-section.white :focus-visible,
.wd-section.pale :focus-visible {
  outline-color: #0b5fa5;
}
