@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800&family=Noto+Sans+Georgian:wght@400;500;600;700;800&display=swap');

:root {
  --services-ink: #0a2148;
  --services-blue: #0665ef;
  --services-line: #cfdae8;
  --services-soft: #f3f7fc;
  --services-gold: #c8a96d;
}

.jmt-services-page {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: #f7faff;
  color: var(--services-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.jmt-services-page *,
.jmt-services-page *::before,
.jmt-services-page *::after { box-sizing: border-box; }

.services-main { background: #f3f7fc; }
.services-frame { width: 100%; max-width: 1680px; margin: 0 auto; }

.services-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(54px, 5vw, 104px);
  padding: 0 clamp(34px, 7.6vw, 130px) clamp(18px, 1.5vw, 22px);
}

.services-eyebrow {
  margin: 0 0 14px;
  color: var(--services-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.services-intro h1 {
  margin: 0;
  color: #061738;
  font-family: "Noto Sans Georgian", "Noto Sans", Arial, sans-serif;
  font-size: clamp(38px, 3vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .028em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.services-intro__subtitle {
  max-width: 650px;
  margin: 20px 0 0;
  color: #2f4567;
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.32;
}

.services-intro__lead {
  position: relative;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 2px 0 2px 42px;
  color: #142a4d;
  font-size: clamp(16px, 1.22vw, 20px);
  line-height: 1.42;
}
.services-intro__lead::before {
  position: absolute;
  top: 4px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--services-gold);
  content: '';
}

.services-banner {
  position: relative;
  left: 50%;
  width: 100vw;
  /* Exact source geometry: 1487 × 181. The container keeps this ratio at
     every width, so the full supplied panorama stays visible without crop. */
  aspect-ratio: 1487 / 181;
  height: auto;
  margin: 0 0 0 -50vw;
  overflow: hidden;
  background: #092f5b;
}
.services-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.services-solutions { padding: clamp(24px, 1.8vw, 30px) clamp(34px, 5.5vw, 110px) 18px; }
.services-solutions h2 {
  margin: 0 0 20px;
  color: #0b2249;
  font-family: "Noto Sans Georgian", "Noto Sans", Arial, sans-serif;
  font-size: clamp(29px, 2.35vw, 38px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: .018em;
  text-align: left;
}

.services-solutions__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 300px); align-items: center; gap: clamp(38px, 3.8vw, 60px); }
.services-solutions__rows { min-width: 0; }

.service-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  min-height: 118px;
  border-bottom: 1px solid #b9c8da;
}

.service-row:first-child { border-top: 0; }
.service-row__number { display: block; color: #9ebfff; font-size: clamp(48px, 4.3vw, 68px); font-weight: 300; line-height: 1; letter-spacing: -.06em; }
.service-row__copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 15px 0 10px 24px; border-left: 1px solid #b9c8da; }
.service-row__copy h3 { margin: 0 0 6px; color: #0b2249; font-size: clamp(15px, 1.08vw, 17px); font-weight: 700; line-height: 1.2; }
.service-row__copy p { max-width: 410px; margin: 0; color: #334866; font-size: clamp(12px, .88vw, 14px); line-height: 1.3; }
.service-row__items { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 8px clamp(17px, 2.2vw, 34px); margin: 0; padding: 0 0 16px 24px; list-style: none; }
.service-row__items > .service-row__item { position: relative; display: flex; min-width: 0; }
.service-row__trigger { display: inline-flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 5px 0; border: 0; border-radius: 6px; background: transparent; color: var(--services-blue); font: inherit; font-size: clamp(13px, 1.02vw, 16px); font-weight: 700; line-height: 1.25; text-align: left; cursor: help; }
.service-row__trigger:hover, .service-row__trigger:focus-visible { color: #0757ca; outline: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.service-row__trigger:focus-visible { box-shadow: 0 0 0 3px rgba(20, 100, 223, .18); }
.service-row__items .fa { flex: 0 0 auto; font-size: 11px; }
.service-row__tooltip { position: absolute; z-index: 20; top: calc(100% + 11px); left: -12px; width: min(348px, calc(100vw - 44px)); padding: 16px 18px 15px; border: 1px solid rgba(128, 183, 255, .78); border-radius: 10px; background: #1167df; box-shadow: 0 14px 28px rgba(6, 46, 108, .25); color: #fff; opacity: 0; visibility: hidden; transform: translateY(-5px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; pointer-events: none; }
.service-row__tooltip::before { position: absolute; top: -8px; left: 30px; width: 16px; height: 16px; background: #1167df; content: ''; transform: rotate(45deg); }
.service-row__tooltip > * { position: relative; z-index: 1; }
.service-row__tooltip strong { display: block; margin: 0 0 6px; color: #fff; font-size: 15px; line-height: 1.25; }
.service-row__tooltip p { margin: 0; color: rgba(255, 255, 255, .96); font-size: 13px; font-weight: 400; line-height: 1.42; }
.service-row__tooltip ul { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.service-row__tooltip li { position: relative; display: block; padding-left: 13px; color: rgba(255, 255, 255, .98); font-size: 12px; font-weight: 500; line-height: 1.35; }
.service-row__tooltip li::before { position: absolute; top: .47em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #c9e1ff; content: ''; }
.service-row__item:hover .service-row__tooltip, .service-row__item:focus-within .service-row__tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.service-row__item:nth-child(2) .service-row__tooltip { right: -12px; left: auto; }
.service-row__item:nth-child(2) .service-row__tooltip::before { right: 30px; left: auto; }
.service-row__items .fa-train,
.service-row__items .fa-ship {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: center / contain no-repeat;
    font-size: 0;
    line-height: 0;
}
.service-row__items .fa-train {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230665ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='15' rx='2'/%3E%3Cpath d='M8 7h8M8 11h8M8 18l-3 3M16 18l3 3M9 21h6'/%3E%3C/svg%3E");
}
.service-row__items .fa-ship {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230665ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17h18l-2 3H5l-2-3ZM7 17V8h10v9M12 8V3M7 12h10M6 22c1.3 1 2.7 1 4 0 1.3 1 2.7 1 4 0 1.3 1 2.7 1 4 0'/%3E%3C/svg%3E");
}

.services-planner { position: relative; width: 100%; max-width: 300px; height: 303px; min-height: 0; margin: 0; justify-self: end; overflow: hidden; background: #e7eef7; }
.services-planner::after { position: absolute; inset: 0; border: 1px solid rgba(9, 37, 76, .12); content: ''; pointer-events: none; }
.services-planner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.services-support { position: relative; display: grid; width: 100%; grid-template-columns: minmax(440px, 1.1fr) minmax(0, 2.9fr); align-items: center; gap: clamp(42px, 5vw, 84px); margin: 0; padding: 30px clamp(38px, 7.6vw, 130px) 34px; border-top: 1px solid #d6e0ec; background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%); }
.services-support h2 { max-width: none; margin: 0; color: #0b2249; font-size: clamp(18px, 1.25vw, 21px); font-weight: 600; line-height: 1.2; letter-spacing: -.012em; white-space: nowrap; }
.services-support ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.services-support li { position: relative; display: flex; min-width: 0; min-height: 62px; align-items: center; justify-content: center; gap: 15px; padding: 0 clamp(12px, 1.4vw, 24px); color: #314667; font-size: clamp(13px, 1.02vw, 16px); line-height: 1.22; white-space: normal; }
.services-support li:not(:last-child)::after { position: absolute; top: 50%; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--services-blue); content: ''; transform: translateY(-50%); }
.services-support .fa { color: var(--services-blue); font-size: clamp(30px, 2.6vw, 48px); }

.jmt-services-page .nav-bar-menu a.is-active { color: var(--services-blue); }

@media (max-width: 1180px) {
  .services-intro { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 52px; }
  .service-row__copy { padding-left: 19px; }
  .service-row__items { padding-left: 19px; }
  .services-planner { width: min(100%, 230px); height: 288px; }
  /* Keep the stage strip inside the viewport on compact laptops.  A fixed
     title column left only a few pixels for each of the four labels. */
  .services-support { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .services-support h2 { min-width: 0; white-space: normal; }
  .services-support ul { min-width: 0; }
  .services-support li { min-width: 0; gap: 11px; padding-inline: 12px; white-space: normal; }
}

/* At browser zoom and on compact laptops the former two-column layout could
   leave too little width for the service labels.  Move the editorial image
   below the list before that can happen. */
@media (max-width: 1200px) {
  .services-solutions__grid { grid-template-columns: minmax(0, 1fr); }
  .services-planner { width: 100%; max-width: none; height: 260px; min-height: 0; justify-self: stretch; }
  .service-row__items { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .services-intro { grid-template-columns: 1fr; gap: 30px; }
  .services-intro__lead { max-width: 660px; min-height: 0; }
  .services-solutions__grid { grid-template-columns: 1fr; }
  .services-planner { height: 240px; min-height: 0; }
  .services-planner img { object-position: center 42%; }
  .services-support { grid-template-columns: 1fr; gap: 18px; }
  .services-support h2 { max-width: none; }
}

/* Four milestones are readable in one row only on wide screens.  Switch to
   two equal columns before the labels can reach the edge at browser zoom. */
@media (max-width: 1080px) {
  .services-support ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; column-gap: 14px; }
  .services-support li { justify-content: flex-start; }
  .services-support li::after { display: none; }
}

@media (max-width: 640px) {
  .services-intro { gap: 24px; padding: 16px 22px 31px; }
  .services-eyebrow { margin-bottom: 10px; font-size: 12px; }
  .services-intro h1 { font-size: clamp(34px, 9.5vw, 42px); }
  .services-intro__subtitle { margin-top: 14px; font-size: 18px; }
  .services-intro__lead { padding-left: 19px; font-size: 15px; }
  .services-solutions { padding: 34px 22px 24px; }
  .services-solutions h2 { margin-bottom: 20px; font-size: 29px; }
  .service-row { grid-template-columns: 55px minmax(0, 1fr); align-items: start; min-height: 0; padding: 20px 0; }
  .service-row__number { padding-top: 2px; font-size: 44px; }
  .service-row__copy { display: block; padding: 0 0 0 17px; border-left: 1px solid #b9c8da; }
  .service-row__copy h3 { font-size: 17px; }
  .service-row__copy p { font-size: 14px; }
  .service-row__items { grid-column: 2; gap: 9px; margin-top: 16px; padding: 0 0 0 17px; }
  .service-row__items > .service-row__item { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
  .service-row__trigger { font-size: 14px; }
  .service-row__tooltip { position: static; display: none; width: auto; margin-top: 8px; transform: none; }
  .service-row__tooltip::before { display: none; }
  .service-row__item:hover .service-row__tooltip, .service-row__item:focus-within .service-row__tooltip { display: block; transform: none; }
  .services-planner { height: 210px; min-height: 0; margin-top: 1px; }
  .services-support { gap: 18px; padding: 28px 22px; }
  .services-support h2 { font-size: clamp(15px, 4.35vw, 18px); letter-spacing: -.025em; }
  .services-support ul { row-gap: 22px; }
  .services-support li { gap: 9px; font-size: 13px; }
  .services-support li::after { display: none; }
  .services-support .fa { font-size: 30px; }
}
