/* ============================================================
   components.css — buttons, cards, chips, badges, marquee, timeline
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border: 0; border-radius: 10px;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; text-align: center; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn .ms { font-size: 19px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(200, 30, 30, .32); }
.btn--primary:hover { background: var(--red-hover); color: #fff; }
.btn--outline-navy { background: #fff; border: 1.5px solid var(--navy); color: var(--navy); box-shadow: none; }
.btn--outline-navy:hover { background: var(--surface); color: var(--navy); }
.btn--outline-light { background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: #FFF1F1; color: var(--red); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Section kicker + heading ---------- */
.kicker { margin: 0; font-size: 12px; letter-spacing: .18em; font-weight: 700; color: var(--red); text-transform: uppercase; }
.section-title { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.14; margin: 10px 0 0; }
.section-lead { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.section-head-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.section-head-row .section-title { margin: 0; max-width: 20em; }
.section-head-row .section-lead { max-width: 28em; }

/* ---------- Badge (pill) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
}
.badge--orange { border: 1px solid rgba(245, 130, 13, .6); background: rgba(245, 130, 13, .12); color: #FFC178; }
.badge .ms { font-size: 15px; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 24px 22px; cursor: pointer; color: inherit; display: block;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: #C9D8EC; color: inherit; }
.service-card .icon-box {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: #EDF3FB; color: var(--blue);
}
.service-card .icon-box .ms { font-size: 27px; }
.service-card h3 { font-weight: 700; font-size: 18px; line-height: 1.3; margin: 18px 0 8px; }
.service-card p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--red); }
.card-link .ms { font-size: 17px; }

.service-card--cta {
  border: 1.5px dashed #B9CBE4; background: #EDF3FB;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.service-card--cta .ms { font-size: 28px; color: var(--navy); }
.service-card--cta h3 { font-size: 17px; margin: 0; }
.service-card--cta .card-link { margin-top: 0; }

/* ---------- Stats block (counter) ---------- */
.stats-grid { display: grid; gap: clamp(20px, 2.6vw, 34px); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 4.2vw, 56px); line-height: 1; color: var(--orange); letter-spacing: -.02em; }
.stat-label { margin-top: 10px; font-size: 13.5px; font-weight: 500; color: #BFD4EE; line-height: 1.4; }

/* ---------- Partner marquee ---------- */
.marquee-label { display: flex; align-items: center; gap: 14px; max-width: var(--container); margin: 0 auto 20px; padding-inline: clamp(18px, 3.5vw, 44px); }
.marquee-label span.bar { width: 26px; height: 2px; background: var(--orange); flex: 0 0 auto; }
.marquee-label p { margin: 0; font-size: 11.5px; letter-spacing: .18em; font-weight: 700; color: #8595AD; }
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track { display: flex; align-items: center; gap: 12px; width: max-content; animation: uiMarquee 46s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.logo-tile {
  flex: 0 0 auto; min-width: 184px; height: 88px; display: grid; place-items: center; padding: 0 26px;
  border: 1px solid #E9EEF6; border-radius: 12px; background: #FBFCFE;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.logo-tile:hover { border-color: #C9D8EC; background: #fff; box-shadow: var(--shadow-soft); }
.logo-tile img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Client logo grid ---------- */
.client-grid { display: grid; gap: 12px; margin-top: clamp(28px, 3.2vw, 44px); grid-template-columns: repeat(7, minmax(0, 1fr)); }
.client-tile {
  background: #fff; height: 116px; display: grid; place-items: center; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.client-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27, 58, 107, .11); border-color: #C9D8EC; }
.client-tile img { max-width: 100%; max-height: 70px; width: auto; object-fit: contain; transition: transform .22s ease; }
.client-tile:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Timeline (Door-to-Door) ---------- */
/* Desktop: two columns, steps 1–4 left, 5–8 right (column flow). */
.timeline {
  display: grid; gap: 0 clamp(28px, 3.4vw, 56px); margin-top: clamp(26px, 3vw, 42px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
}
/* Hide the connector under the last step of each column (4 and 8) on desktop. */
@media (min-width: 861px) {
  .timeline .tl-step:nth-child(4) .tl-line { display: none; }
}
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
.timeline .tl-step:last-child .tl-line { display: none; }
.tl-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-node { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(27, 58, 107, .22); }
.tl-node .ms { font-size: 19px; }
.tl-node--last { background: var(--red); }
.tl-line { flex: 1; width: 2px; background: linear-gradient(#D9E3F2, #EDF1F7); margin: 8px 0; }
.tl-body { padding-bottom: 26px; min-width: 0; }
.tl-meta { display: flex; align-items: baseline; gap: 9px; }
.tl-meta .n { font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .1em; color: var(--orange); }
.tl-meta .rule { height: 1px; flex: 1; background: #EDF1F7; }
.tl-meta .phase { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: #9AA9BE; }
.tl-body h4 { font-weight: 700; font-size: 16px; line-height: 1.3; margin: 10px 0 6px; }
.tl-body p { font-size: 13.5px; line-height: 1.65; color: #63758E; }

/* ---------- News cards ---------- */
.news-grid { display: grid; gap: 18px; margin-top: clamp(24px, 2.8vw, 38px); grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.news-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 24px 22px; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(27, 58, 107, .12); color: inherit; }
.news-meta { display: flex; align-items: center; gap: 10px; }
.news-tag { padding: 5px 10px; border-radius: 6px; background: #EDF3FB; color: var(--blue); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; }
.news-date { font-size: 12.5px; color: #8595AD; }
.news-card h3 { font-weight: 700; font-size: 17px; line-height: 1.36; margin: 16px 0 8px; }
.news-card p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* ---------- Warehouse list ---------- */
.wh-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; align-self: start; }
.wh-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #EDF1F7; background: #FBFCFE; }
.wh-panel-head .title { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); letter-spacing: .02em; }
.wh-panel-head .count { font-size: 12px; font-weight: 600; color: var(--orange); }
.wh-list { max-height: 520px; overflow-y: auto; }
.wh-item { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid #F2F5FA; }
.wh-item .ms { font-size: 20px; color: var(--red); margin-top: 2px; }
.wh-item .city { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); }
.wh-item .addr { font-size: 12.5px; line-height: 1.55; color: #6B7C94; margin-top: 3px; }
.wh-map-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px; }
.wh-map-wrap us-warehouse-map { display: block; width: 100%; max-width: 100%; overflow: hidden; min-height: 180px; }

/* ---------- Global network map ---------- */
.world-map-wrap { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 12px; }
.world-map-wrap world-network-map { display: block; width: 100%; max-width: 100%; overflow: hidden; min-height: 160px; }

/* ---------- Chips (lane modes) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; justify-self: start;
  padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.chip .ms { font-size: 14px; }
.chip--air { background: rgba(46, 107, 184, .22); color: #9CC4F0; border: 1px solid rgba(92, 141, 208, .45); }
.chip--sea { background: rgba(255, 255, 255, .09); color: #C3D6EF; border: 1px solid rgba(255, 255, 255, .2); }
.chip--exp { background: rgba(200, 30, 30, .24); color: #FFB3B3; border: 1px solid rgba(200, 30, 30, .5); }
