/* =====================================================================
   Service landing page (page-service-transfer.php)
   Navy + green. Tokens come from assets/css/style.css; the shared tm-*
   primitives (wrap / breadcrumb / arrow / check) come from trade-mission.css.
   ===================================================================== */
.svc {
  --svc-navy: var(--ast-primary, #1b2a6b);
  --svc-green: var(--ast-accent, #2d9145);
  --svc-soft: #f2f5fb;
  --svc-green-soft: #e8f5ec;
  background: #fff;
  color: var(--ast-ink);
}

.svc * {
  box-sizing: border-box;
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.svc-hero {
  position: relative;
  width: 100%;
  max-width: var(--ast-maxw);
  overflow: hidden;
  background: #fff;
  padding-block: 28px 44px;
  margin: auto;
}

.svc-hero__img {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 0;
  width: min(58%, 900px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(-105deg, black 75%, transparent 75%);
  z-index: 0;
}

[dir="rtl"] .svc-hero__img {
  mask-image: linear-gradient(105deg, black 75%, transparent 75%);
}

.svc-hero__inner {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: min(var(--ast-maxw, 1200px), 100%);
  padding-block: 8px 4px;
}

.svc-hero__inner > * {
  max-width: 560px;
}

.svc-breadcrumb {
  margin-bottom: 4px;
}

.svc-hero__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 800;
  display: flex;
  flex-direction: column;
}

.svc-hero__title-1 {
  color: var(--svc-navy);
}

.svc-hero__title-2 {
  color: var(--svc-green);
}

.svc-hero__text {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: var(--ast-ink);
}

.svc-hero__badges {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  max-width: 620px;
}

.svc-hbadge {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 170px;
}

.svc-hbadge__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--svc-soft);
  color: var(--svc-navy);
}

.svc-hbadge__icon svg {
  width: 20px;
  height: 20px;
}

.svc-hbadge__text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--svc-navy);
}

/* ── LAYOUT ───────────────────────────────────────────────────────────── */
.svc-main {
  padding-block: 40px 64px;
  background: #fff;
}

.svc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
  gap: 32px;
}

.svc-content {
  display: flex;
  flex-direction: column;
  gap: 44px;
  min-width: 0;
}

/* ── Section heads ────────────────────────────────────────────────────── */
.svc-head {
  margin-bottom: 22px;
}

.svc-head__title {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--svc-navy);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.svc-head__title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 4px;
  background: var(--svc-green);
  margin-top: 12px;
}

/* ── Service cards (repeater grid) ────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(15, 27, 76, 0.05);
}

.svc-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--svc-soft);
}

.svc-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.svc-card__icon {
  position: absolute;
  inset-block-end: -22px;
  inset-inline-start: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--svc-green);
  box-shadow: 0 4px 12px rgba(15, 27, 76, 0.18);
}

.svc-card--primary .svc-card__icon {
  background: var(--svc-navy);
}

.svc-card__icon svg {
  width: 24px;
  height: 24px;
}

.svc-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px 18px 20px;
}

.svc-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--svc-green);
}

.svc-card--primary .svc-card__title {
  color: var(--svc-navy);
}

.svc-card__subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ast-muted);
}

.svc-card__text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ast-ink);
}

.svc-card__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--ast-line);
  padding-top: 14px;
}

.svc-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.6;
}

.svc-card__tick {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--svc-green);
}

.svc-card__tick .tm-check {
  width: 17px;
  height: 17px;
}

.svc-card__link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--svc-green);
  text-decoration: none;
}

.svc-card__link:hover {
  color: var(--ast-accent-dark);
}

/* ── CTA banner ───────────────────────────────────────────────────────── */
.svc-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--ast-radius);
  background: var(--svc-navy);
  color: #fff;
  padding: 34px 30px;
}

.svc-cta::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 46%;
  background-image: var(--svc-cta-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  mask-image: linear-gradient(to left, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent);
  pointer-events: none;
}

[dir="rtl"] .svc-cta::after {
  mask-image: linear-gradient(to right, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent);
}

.svc-cta__body {
  position: relative;
  z-index: 1;
  max-width: 60%;
}

.svc-cta__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.svc-cta__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.82);
}

/* ── Why choose ───────────────────────────────────────────────────────── */
.svc-why__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 22px 14px;
}

.svc-why__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.svc-why__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--svc-green);
}

.svc-why__icon svg {
  width: 32px;
  height: 32px;
}

.svc-why__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--svc-navy);
  max-width: 140px;
}

/* ── Related services ─────────────────────────────────────────────────── */
.svc-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.svc-rel {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  background: #fff;
}

.svc-rel__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--svc-green-soft);
  color: var(--svc-green);
}

.svc-rel__icon svg {
  width: 22px;
  height: 22px;
}

.svc-rel__body {
  min-width: 0;
}

.svc-rel__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--svc-navy);
}

.svc-rel__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ast-muted);
}

.svc-rel__link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--svc-green);
  text-decoration: none;
}

.svc-rel__link:hover {
  color: var(--ast-accent-dark);
}

/* ── Sidebar form ─────────────────────────────────────────────────────── */
.svc-aside {
  position: sticky;
  top: calc(var(--ast-header-height, 72px) + 16px);
}

.svc-form {
  background: #fff;
  border: 1px solid var(--ast-line);
  border-radius: var(--ast-radius);
  box-shadow: 0 8px 30px rgba(15, 27, 76, 0.08);
  padding: 26px 24px;
}

.svc-form__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  color: var(--svc-navy);
}

.svc-form .gform_wrapper .gform_footer input[type="submit"],
.svc-form .gform_wrapper .gform_footer button {
  width: 100%;
  background: var(--svc-green);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
}

.svc-form .gform_wrapper .gform_footer input[type="submit"]:hover,
.svc-form .gform_wrapper .gform_footer button:hover {
  background: var(--ast-accent-dark);
}

.svc-form__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ast-muted);
  text-align: start;
}

.svc-form__note-icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--svc-navy);
}

.svc-form__note-icon svg {
  width: 17px;
  height: 17px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .svc-layout {
    grid-template-columns: 1fr;
  }

  .svc-aside {
    position: static;
  }

  .svc-hero__img {
    width: 100%;
    opacity: 0.11;
  }
}

@media (max-width: 640px) {
  .svc-hero__inner > * {
    max-width: 100%;
  }

  .svc-card__media img {
    height: 250px;
  }

  .svc-cta {
    padding: 26px 20px;
  }

  .svc-cta__body {
    max-width: 100%;
  }

  .svc-cta::after {
    opacity: 0.18;
    width: 100%;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .svc-hbadge {
    max-width: none;
  }
}
