/*
 * C7 HF4 — Homepage Premium Refinement
 * Scope:
 * 1) Premium/clean Homepage service cards.
 * 2) Desktop hero copy safe-zone so the overlapping global logo never covers copy.
 * 3) Premium mobile Cargo Journey timeline.
 * Loaded after C7 HF2/HF3 locks so these refinements are deterministic.
 */

/* ---------- Homepage hero / desktop logo safe-zone ---------- */
@media (min-width: 901px) {
  #home.eh-hero .eh-hero__content {
    padding-left: clamp(150px, 13.2vw, 194px) !important;
  }

  #home.eh-hero .eh-hero__content h1 {
    max-width: clamp(455px, 38vw, 555px) !important;
  }
}

/* ---------- Homepage services: premium card system ---------- */
.eh-services {
  background:
    radial-gradient(circle at 10% 0%, rgba(226,162,12,.055), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
}

.eh-service-card {
  border: 1px solid #e1e8ef !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(5,45,85,.085) !important;
  isolation: isolate;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.eh-service-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg, #d18b00 0%, #efb928 50%, #d18b00 100%);
}

.eh-service-card > img {
  display: block;
  width: 100% !important;
  filter: saturate(1.04) contrast(1.025) brightness(1.025) !important;
}

.eh-service-icon {
  z-index: 5;
  background: linear-gradient(145deg, #073766 0%, #052b54 100%) !important;
  border: 4px solid #fff !important;
  box-shadow: 0 8px 20px rgba(5,45,85,.22), 0 0 0 1px rgba(219,154,6,.34) !important;
}

.eh-service-icon svg {
  color: #e4a30c !important;
  fill: #e4a30c !important;
}

.eh-service-card__body {
  display: flex;
  flex-direction: column;
}

.eh-service-card__body h3 {
  color: #062f5f !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
}

.eh-service-card__body p {
  color: #44596d !important;
  font-weight: 450 !important;
}

.eh-service-card__body a {
  width: 100%;
  margin-top: auto !important;
  padding-top: 9px;
  border-top: 1px solid #edf1f4;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  color: #ad7100 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.eh-service-card__body a span {
  width: 24px;
  height: 24px;
  padding: 0 !important;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #d79606;
  font-size: 12px;
  line-height: 1;
}

@media (min-width: 901px) {
  .eh-services {
    height: auto !important;
    min-height: clamp(355px, 34vw, 480px);
    padding: clamp(23px, 2.05vw, 31px) 0 clamp(27px, 2.35vw, 35px) !important;
  }

  .eh-section-head {
    margin-bottom: clamp(17px, 1.45vw, 22px) !important;
  }

  .eh-service-grid {
    gap: clamp(14px, 1.28vw, 19px) !important;
    align-items: stretch;
  }

  .eh-service-card {
    height: auto !important;
    min-height: clamp(280px, 25.8vw, 370px);
  }

  .eh-service-card > img {
    height: clamp(118px, 10.6vw, 153px) !important;
  }

  .eh-service-icon {
    top: clamp(96px, 8.65vw, 126px) !important;
    left: clamp(17px, 1.55vw, 23px) !important;
    width: clamp(44px, 4vw, 58px) !important;
    height: clamp(44px, 4vw, 58px) !important;
  }

  .eh-service-card__body {
    min-height: clamp(155px, 14vw, 202px);
    padding: clamp(31px, 2.7vw, 39px) clamp(17px, 1.55vw, 23px) clamp(16px, 1.45vw, 21px) !important;
  }

  .eh-service-card__body h3 {
    font-size: clamp(12.8px, 1.13vw, 16.6px) !important;
    line-height: 1.2 !important;
    margin-bottom: clamp(7px, .65vw, 10px) !important;
  }

  .eh-service-card__body p {
    font-size: clamp(9px, .80vw, 11.8px) !important;
    line-height: 1.55 !important;
    margin-bottom: 12px !important;
  }

  .eh-service-card__body a {
    font-size: clamp(8.4px, .74vw, 10.8px) !important;
  }

  .eh-service-card:hover {
    transform: translateY(-6px);
    border-color: #d5dee7 !important;
    box-shadow: 0 20px 42px rgba(5,45,85,.145) !important;
  }

  .eh-service-card:hover > img {
    filter: saturate(1.08) contrast(1.035) brightness(1.035) !important;
  }
}

/* ---------- Mobile service cards ---------- */
@media (max-width: 900px) {
  .eh-services {
    padding-top: 34px !important;
    padding-bottom: 38px !important;
  }

  .eh-section-head {
    margin-bottom: 22px !important;
  }

  .eh-section-head h2 {
    font-size: clamp(25px, 6.7vw, 34px) !important;
    line-height: 1.08 !important;
  }

  .eh-section-head p {
    max-width: 620px;
    margin: 7px auto 0 !important;
    font-size: clamp(12px, 3.1vw, 14px) !important;
    line-height: 1.55 !important;
  }

  .eh-service-grid {
    gap: 18px !important;
  }

  .eh-service-card {
    min-height: 0 !important;
    border-radius: 16px !important;
  }

  .eh-service-card > img {
    height: clamp(170px, 36vw, 230px) !important;
  }

  .eh-service-icon {
    top: clamp(145px, 31vw, 202px) !important;
    left: 20px !important;
    width: 50px !important;
    height: 50px !important;
  }

  .eh-service-card__body {
    min-height: 0 !important;
    padding: 32px 20px 20px !important;
  }

  .eh-service-card__body h3 {
    font-size: 17px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
  }

  .eh-service-card__body p {
    font-size: 12.8px !important;
    line-height: 1.58 !important;
    margin-bottom: 15px !important;
  }

  .eh-service-card__body a {
    font-size: 11.5px !important;
    padding-top: 11px;
  }
}

/* ---------- Cargo Journey: premium mobile timeline ---------- */
@media (max-width: 900px) {
  .eh-journey {
    position: relative;
    height: auto !important;
    padding: 42px 0 46px !important;
    background:
      radial-gradient(circle at 90% 5%, rgba(222,158,8,.10), transparent 25%),
      linear-gradient(180deg, #f8fafc 0%, #f3f7fa 100%) !important;
  }

  .eh-journey__head {
    max-width: 620px;
    margin: 0 auto;
    padding-inline: 4px;
  }

  .eh-journey__head small {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(207,139,0,.18);
    border-radius: 999px;
    background: rgba(228,163,12,.09);
    color: #9f6900 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
  }

  .eh-journey__head small::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #d79506;
  }

  .eh-journey__head h2 {
    margin: 12px 0 0 !important;
    font-size: clamp(28px, 7vw, 36px) !important;
    line-height: 1.07 !important;
    color: #062f5f !important;
    font-weight: 700 !important;
    letter-spacing: -.035em !important;
  }

  .eh-journey__head p {
    max-width: 500px;
    margin: 9px auto 0 !important;
    color: #506579 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
  }

  .eh-steps {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 680px;
    margin: 28px auto 0 !important;
  }

  .eh-steps article {
    position: relative !important;
    min-height: 118px !important;
    padding: 22px 54px 22px 88px !important;
    text-align: left !important;
    border: 1px solid #e0e8ef;
    border-radius: 17px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 30px rgba(5,45,85,.075);
  }

  .eh-steps article::before {
    content: "" !important;
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 3px;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(180deg, #e9ae1c, #c98700);
  }

  .eh-steps article:not(:last-child)::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: 0;
    left: 43px !important;
    right: auto !important;
    top: 100% !important;
    width: 0 !important;
    height: 17px !important;
    border: 0 !important;
    border-left: 2px dashed rgba(211,145,3,.55) !important;
    color: transparent !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
  }

  .eh-steps svg {
    position: absolute;
    z-index: 2;
    left: 20px;
    top: 30px;
    width: 46px !important;
    height: 46px !important;
    padding: 11px;
    border: 1px solid #e3e9ef;
    border-radius: 14px;
    color: #d59605 !important;
    fill: #d59605 !important;
    background: #f8fafc;
    box-shadow: 0 5px 14px rgba(5,45,85,.08);
  }

  .eh-step-no {
    position: absolute !important;
    z-index: 3;
    top: 18px !important;
    right: 17px !important;
    left: auto !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #d69505 !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(174,111,0,.20);
    font-size: 8px !important;
    font-weight: 800 !important;
  }

  .eh-steps h3 {
    margin: 2px 0 6px !important;
    color: #062f5f !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -.015em;
  }

  .eh-steps p {
    max-width: 470px;
    margin: 0 !important;
    color: #516579 !important;
    font-size: 12.4px !important;
    line-height: 1.52 !important;
    font-weight: 400 !important;
  }
}

@media (max-width: 560px) {
  .eh-journey {
    padding: 36px 0 40px !important;
  }

  .eh-steps {
    gap: 14px !important;
    margin-top: 24px !important;
  }

  .eh-steps article {
    min-height: 112px !important;
    padding: 20px 45px 20px 78px !important;
    border-radius: 15px;
  }

  .eh-steps article:not(:last-child)::after {
    left: 38px !important;
    height: 15px !important;
  }

  .eh-steps svg {
    left: 17px;
    top: 28px;
    width: 42px !important;
    height: 42px !important;
    padding: 10px;
    border-radius: 13px;
  }

  .eh-step-no {
    top: 16px !important;
    right: 14px !important;
    width: 26px !important;
    height: 26px !important;
  }

  .eh-steps h3 {
    font-size: 15px !important;
  }

  .eh-steps p {
    font-size: 12px !important;
  }
}
