/* ==========================================================================
   Shipping companies (.sh-*) — the index and each company's own page.
   Reads the site tokens from site.css; adds nothing global. Logical
   properties throughout, so RTL and LTR share every rule.
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.sh-hero { padding-block-end: clamp(1.8rem, 3.8vw, 2.8rem); }
/* Copy on one side, the courier list on the other. Centred text alone left
   the hero with a lot of nothing under it. */
.sh-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
  margin-block-start: clamp(.8rem, 2vw, 1.4rem);
}
.sh-hero__copy { display: grid; justify-items: start; gap: .15rem; min-width: 0; }
.sh-hero h1 {
  margin: .75rem 0 .6rem;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.sh-hero .lead { margin: 0; max-width: 46ch; color: var(--text-muted); font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.85; }
.sh-hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block-start: clamp(1.1rem, 2.4vw, 1.6rem); }

/* The panel is the real courier list, so it is useful as well as decorative. */
.sh-hero__panel {
  padding: clamp(1rem, 2.2vw, 1.3rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 78%);
  box-shadow: var(--shadow-lg);
}
.sh-hero__panelhead {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .75rem;
  padding-inline: .5rem;
  color: var(--text-faint);
  font-size: .8rem;
}
.sh-hero__panelhead b { font-family: var(--font-num); font-size: 1rem; color: var(--text-primary); }
.sh-hero__dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sh-hero__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sh-hero__list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .5rem;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sh-hero__list a:hover { background: var(--glass-2); color: var(--text-primary); }
.sh-hero__ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--glass);
  color: var(--primary);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sh-hero__list a:hover .sh-hero__ic { border-color: var(--primary); background: var(--primary); color: #FFFFFF; }
.sh-hero__nm { flex: 1; min-width: 0; font-family: var(--font-en); font-size: .93rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-hero__go { width: 14px; height: 14px; flex: none; color: var(--text-faint); opacity: 0; transition: opacity var(--t-fast) var(--ease); }
html[dir="rtl"] .sh-hero__go { transform: scaleX(-1); }
.sh-hero__list a:hover .sh-hero__go { opacity: 1; }

@media (max-width: 900px) {
  /* Stacked: the copy centres and the panel takes the full width under it. */
  .sh-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .sh-hero__copy { justify-items: center; text-align: center; }
  .sh-hero .lead { max-width: 52ch; }
  .sh-hero__actions { justify-content: center; }
}
@media (max-width: 420px) {
  .sh-hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .sh-hero__actions .fq-btn { width: 100%; }
}

/* One company's hero: the mark beside the name rather than a centred block. */
.sh-one { display: flex; align-items: flex-start; gap: clamp(.9rem, 2.4vw, 1.4rem); margin-block-start: clamp(.8rem, 2vw, 1.2rem); }
.sh-one__mark {
  display: grid;
  place-items: center;
  width: clamp(58px, 9vw, 74px);
  height: clamp(58px, 9vw, 74px);
  flex: none;
  border: 1px solid var(--primary-line);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  color: var(--primary);
  box-shadow: var(--shadow);
}
.sh-one__copy { display: grid; justify-items: start; gap: .35rem; min-width: 0; }
.sh-one__copy h1 {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.sh-one__alt { display: block; margin-block-start: .1rem; color: var(--text-muted); font-family: var(--font-ar, inherit); font-size: .95rem; font-weight: 500; }
.sh-one__copy .lead { margin: .2rem 0 0; max-width: 58ch; text-align: start; }
.sh-one__actions { margin-block-start: .7rem; }

/* --- Confirmed-service tags ---------------------------------------------- */
/* Only capabilities checked against that company's own site reach this list,
   which is why it can be read as a promise rather than as marketing. */
.sh-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.sh-tags li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  padding: .3rem .65rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--glass);
  color: var(--text-secondary);
  font-size: .76rem;
  font-weight: 600;
}
.sh-tags .icon { width: 13px; height: 13px; flex: none; color: var(--primary); }
.sh-tags--hero { margin-block-start: clamp(1.1rem, 2.6vw, 1.6rem); }
.sh-tags--hero li { padding: .38rem .8rem; font-size: .8rem; }

/* --- Why it matters ------------------------------------------------------ */
.sh-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}
.sh-intro__text h2 { margin-block-end: .8rem; }
.sh-intro__text p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.95; }
.sh-factors {
  padding: clamp(1.2rem, 2.6vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 76%);
  box-shadow: var(--shadow);
}
.sh-factors h3 { margin-block-end: .9rem; font-size: .92rem; font-weight: 700; color: var(--text-primary); }
.sh-factors ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sh-factors li { display: flex; align-items: center; gap: .55rem; min-width: 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }
.sh-factors__ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--glass);
  color: var(--primary);
}
.sh-factors__ic .icon { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .sh-intro { grid-template-columns: minmax(0, 1fr); }
}

/* --- The company cards --------------------------------------------------- */
/* Three across, two on a tablet, one on a phone. */
.sh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: stretch;
}
@media (max-width: 1023px) { .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .sh-grid { grid-template-columns: minmax(0, 1fr); } }
.sh-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 0;
  padding: clamp(1.2rem, 2.6vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 76%);
  box-shadow: var(--shadow);
  transition: transform var(--t) var(--ease-out), border-color var(--t) var(--ease),
              box-shadow var(--t-slow) var(--ease);
}
.sh-card:hover { transform: translateY(-5px); border-color: var(--primary-line); box-shadow: var(--shadow-md), 0 28px 56px -42px var(--primary-glow); }
.sh-card__head { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.sh-card__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--glass);
  color: var(--primary);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.sh-card:hover .sh-card__mark { border-color: var(--primary); background: var(--primary); color: #FFFFFF; }
.sh-card__names { display: grid; gap: .1rem; min-width: 0; }
.sh-card__names h3 { font-family: var(--font-en); font-size: 1.12rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.sh-card__alt { color: var(--text-faint); font-size: .8rem; overflow-wrap: anywhere; }
.sh-card__text { color: var(--text-muted); font-size: .9rem; line-height: 1.8; }
/* margin-top:auto pins the buttons to the bottom, so cards in a row end level
   however much text each description carries. */
.sh-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block-start: auto;
  padding-block-start: .9rem;
  border-block-start: 1px solid var(--border);
}
.sh-card__actions .fq-btn { flex: 1 1 auto; min-width: 0; padding: .7rem 1rem; font-size: .88rem; }
.sh-card__actions .fq-btn span:not(.sr-only) { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 420px) {
  /* Two buttons across a ~280px card leave no room for either label. */
  .sh-card__actions .fq-btn { flex: 1 1 100%; }
}

/* --- The four steps ------------------------------------------------------ */
/* A rail runs behind the four stages so they read as one process. It is
   drawn on the list, not between the cards, so it cannot drift when a card
   changes height. */
.sh-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sh-steps::before {
  content: "";
  position: absolute;
  inset-inline: 8%;
  inset-block-start: 2.9rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-line) 12%, var(--primary-line) 88%, transparent);
  pointer-events: none;
}
@media (max-width: 1023px) { .sh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .sh-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) { .sh-steps::before { display: none; } }
.sh-step {
  position: relative;
  display: grid;
  justify-items: start;
  gap: .4rem;
  padding: clamp(1.2rem, 2.6vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 76%);
  overflow: hidden;
}
.sh-step::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: .5;
}
.sh-step__n {
  font-family: var(--font-num);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary-line);
}
.sh-step__ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-block: .4rem .3rem;
  border: 1px solid var(--primary-line);
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}
.sh-step h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.sh-step p { color: var(--text-muted); font-size: .88rem; line-height: 1.8; }

/* --- What Site Snap does ------------------------------------------------- */
.sh-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 3vw, 2.6rem);
  align-items: center;
  padding: clamp(1.4rem, 3.2vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
}
.sh-help__intro { display: grid; justify-items: start; gap: .3rem; min-width: 0; }
.sh-help__intro h2 { margin-block: .5rem .3rem; }
.sh-help__intro p { color: var(--text-muted); font-size: .96rem; line-height: 1.9; }
.sh-help__intro .fq-btn { margin-block-start: 1.1rem; }
.sh-help__list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sh-help__list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--glass);
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.55;
}
.sh-help__ic { display: grid; place-items: center; flex: none; color: var(--primary); }
.sh-help__ic .icon { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .sh-help { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* --- The two costs ------------------------------------------------------- */
.sh-costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: stretch;
}
@media (max-width: 860px) { .sh-costs { grid-template-columns: minmax(0, 1fr); } }

/* The priced block. It is the only figure on this page, and it is Site Snap's
   own — so it is the one thing here allowed to look like a price. The
   courier's cost sits beside it built completely differently, which is what
   stops a reader taking the 500 for a delivery rate. */
.sh-fee {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: .3rem;
  padding: clamp(1.3rem, 2.8vw, 1.8rem);
  border: 1px solid var(--primary-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 50% 0%, var(--primary-soft), transparent 58%),
    linear-gradient(165deg, var(--surface-2), var(--surface) 76%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sh-fee::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.sh-fee__ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-block-end: .5rem;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--primary-hover), var(--primary));
  color: #FFFFFF;
  box-shadow: 0 12px 26px -14px var(--primary-glow);
}
.sh-fee__label { margin: 0; color: var(--text-secondary); font-size: .95rem; font-weight: 700; line-height: 1.5; }
.sh-fee__amount { display: flex; align-items: baseline; gap: .4rem; margin: .2rem 0 0; }
.sh-fee__amount b {
  font-family: var(--font-num);
  font-size: clamp(2.4rem, 5.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--primary);
}
.sh-fee__amount span { color: var(--text-secondary); font-size: 1.05rem; font-weight: 600; }
.sh-fee__note {
  margin: .35rem 0 0;
  padding: .28rem .7rem;
  border-radius: var(--r-pill);
  background: var(--glass-2);
  color: var(--text-faint);
  font-size: .78rem;
  font-weight: 600;
}
.sh-fee__text { margin: .8rem 0 0; color: var(--text-muted); font-size: .9rem; line-height: 1.85; }

/* What the courier's own cost depends on. */
.sh-cost__pts { display: flex; flex-wrap: wrap; gap: .35rem; margin: .85rem 0 0; padding: 0; list-style: none; }
.sh-cost__pts li {
  padding: .26rem .65rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--glass);
  color: var(--text-faint);
  font-size: .76rem;
}
.sh-cost {
  display: grid;
  justify-items: start;
  gap: .5rem;
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 76%);
}
.sh-cost__ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block-end: .3rem;
  border: 1px solid var(--primary-line);
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}
.sh-cost h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.5; }
.sh-cost p { color: var(--text-muted); font-size: .9rem; line-height: 1.85; }

.sh-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-block-start: clamp(1.4rem, 3vw, 2rem); }
@media (max-width: 420px) {
  .sh-cta { flex-direction: column; align-items: stretch; }
  .sh-cta .fq-btn { width: 100%; }
}

/* --- A company page: about, services, detail rows ------------------------ */
.sh-about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}
.sh-about__text { display: grid; justify-items: start; gap: .3rem; min-width: 0; }
.sh-about__text h2 { margin-block: .5rem .4rem; }
.sh-about__p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.95; }
.sh-services {
  padding: clamp(1.2rem, 2.6vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 76%);
  box-shadow: var(--shadow);
}
.sh-services h3 { margin-block-end: .9rem; font-size: .95rem; font-weight: 700; }
.sh-services ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.sh-services li { display: flex; align-items: flex-start; gap: .55rem; color: var(--text-secondary); font-size: .9rem; line-height: 1.7; }
.sh-tick { flex: none; margin-block-start: .3rem; fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .sh-about { grid-template-columns: minmax(0, 1fr); }
}

/* The detail rows. Two columns on a wide screen, stacked on a phone — a
   label and a sentence cannot share a 300px line. */
.sh-dl {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(175deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sh-dl__row {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  gap: .5rem clamp(.8rem, 2vw, 1.6rem);
  padding: clamp(.8rem, 1.8vw, 1.05rem) clamp(1rem, 2.2vw, 1.6rem);
}
.sh-dl__row + .sh-dl__row { border-block-start: 1px solid var(--border); }
.sh-dl__row:nth-child(even) { background: var(--glass); }
.sh-dl dt { align-self: center; min-width: 0; color: var(--text-primary); font-size: .92rem; font-weight: 700; line-height: 1.55; }
.sh-dl dd {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  align-self: center;
  margin: 0;
  min-width: 0;
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.75;
}
/* A value the company does not publish reads as an open question, not as a
   feature — muted, italic-free, with a question mark beside it. */
.sh-dl__row.is-open dd { color: var(--text-faint); }
.sh-dl__q { display: grid; place-items: center; flex: none; margin-block-start: .15rem; color: var(--text-faint); }
.sh-dl__q .icon { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .sh-dl__row { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .sh-dl dt { font-size: .88rem; color: var(--text-faint); }
  .sh-dl dd { font-size: .92rem; color: var(--text-primary); }
  .sh-dl__row.is-open dd { color: var(--text-muted); }
}

.sh-notes { display: grid; gap: .55rem; margin: clamp(1rem, 2.2vw, 1.4rem) 0 0; padding: 0; list-style: none; }
.sh-notes li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .85rem 1rem;
  border: 1px solid var(--primary-line);
  border-radius: var(--r-md);
  background: var(--primary-soft);
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.8;
}
.sh-notes .icon { width: 16px; height: 16px; flex: none; margin-block-start: .25rem; color: var(--primary); }

.sh-sources { margin: clamp(1rem, 2.2vw, 1.4rem) 0 0; color: var(--text-faint); font-size: .84rem; line-height: 1.9; overflow-wrap: anywhere; }
.sh-sources b { color: var(--text-muted); font-weight: 600; }
.sh-sources a { color: var(--primary); }
.sh-sources a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- A company page's closing card --------------------------------------- */
.sh-onecta {
  display: grid;
  justify-items: center;
  gap: .45rem;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(1.7rem, 3.6vw, 2.4rem) clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--primary-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 50% 0%, var(--primary-soft), transparent 62%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.sh-onecta__ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-block-end: .5rem;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--primary-hover), var(--primary));
  color: #FFFFFF;
  box-shadow: 0 14px 30px -14px var(--primary-glow);
}
.sh-onecta h2 { font-size: clamp(1.2rem, 2.7vw, 1.6rem); font-weight: 700; line-height: 1.45; text-wrap: balance; overflow-wrap: anywhere; }
.sh-onecta p { margin: 0; max-width: 46ch; color: var(--text-muted); font-size: .94rem; line-height: 1.8; }
.sh-onecta .sh-cta { margin-block-start: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .sh-card { transition: none; }
  .sh-card:hover { transform: none; }
}
