/* ==========================================================================
   Pathway IT — migrations-upgrades.css  (Migrations & Upgrades page)
   Banner hero with a CTA hotspot, six services with left-aligned icons, a
   six-step connected process, a why-us row and a closing CTA band.
   ========================================================================== */

.mg-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: #FAFBFE; }
.mg-proc-wrap { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: #EFF1F9; }
.mg-cta-wrap { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); background: #FAFBFE; }

/* Icon slots are filled with an SVG by migrations-upgrades.js. */
span[data-icon]:not([class]) { display: inline-flex; flex: none; vertical-align: middle; }
span[data-icon]:not([class]) svg { width: 1em; height: 1em; }

/* -------------------------------------------------------------------------- */
/* Hero banner                                                                */
/* -------------------------------------------------------------------------- */
.mg-hero { background: #050A18; padding-top: var(--header-h); }
.mg-hero-media { position: relative; max-width: 1600px; margin-inline: auto; }
.mg-banner { display: block; width: 100%; height: auto; }

/* Transparent overlays sitting exactly on the "Start Your Migration" button
   baked into each banner. Percentages are measured from the artwork. */
.mg-hotspot {
  position: absolute; border: 0; background: transparent; padding: 0;
  cursor: pointer; border-radius: var(--r-pill);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.mg-hotspot:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(79, 70, 229, .45); }
.mg-hotspot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.mg-hotspot--desktop { left: 6.76%; top: 63.30%; width: 15.13%; height: 9.08%; }
.mg-hotspot--mobile  { left: 4.34%; top: 40.63%; width: 37.94%; height: 5.47%; display: none; }

@media (max-width: 760px) {
  .mg-hotspot--desktop { display: none; }
  .mg-hotspot--mobile  { display: block; }
}

/* -------------------------------------------------------------------------- */
/* Section heading                                                            */
/* -------------------------------------------------------------------------- */
.mg-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.2rem, 4.5vw, 3.2rem); }
.mg-eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--indigo);
}
.mg-head h2 {
  margin-top: .9rem;
  font-size: clamp(1.4rem, 2.7vw, 1.9rem);
  line-height: 1.3; letter-spacing: -.02em; color: var(--slate-900);
}
.mg-head > p { margin-top: .8rem; font-size: .9rem; line-height: 1.65; color: var(--slate-500); }

/* -------------------------------------------------------------------------- */
/* What we do (3 x 2, icon beside the copy)                                   */
/* -------------------------------------------------------------------------- */
.mg-do-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.mg-do {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--paper); border: 1px solid #E7EAF4; border-radius: 14px;
  padding: 1.5rem 1.4rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.mg-do:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(20, 22, 70, .09); border-color: #CFD5F5; }
.mg-do-ico {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 11px; background: var(--indigo-50); color: var(--indigo);
}
.mg-do-ico svg { width: 20px; height: 20px; }
.mg-do-body { min-width: 0; }
.mg-do h3 { font-size: .96rem; line-height: 1.35; margin-bottom: .45rem; color: var(--slate-900); }
.mg-do p { font-size: .83rem; line-height: 1.6; color: var(--slate-500); }
.mg-more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem;
  font-size: .81rem; font-weight: 600; color: var(--indigo);
}
.mg-more span { font-size: .95rem; transition: transform var(--t) var(--ease); }
.mg-more:hover span { transform: translateX(3px); }

@media (max-width: 1000px) { .mg-do-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mg-do-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* Process (6 connected steps)                                                */
/* -------------------------------------------------------------------------- */
.mg-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; list-style: none; }
.mg-step { position: relative; text-align: center; padding-inline: .2rem; }
.mg-step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 22px; height: 22px; margin: 0 auto .7rem;
  border-radius: 50%; background: var(--paper); border: 1px solid #DCE0F0;
  font-family: var(--font-mono); font-size: .58rem; font-weight: 600; color: var(--slate-500);
}
.mg-step-ico {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto .9rem;
  border-radius: 50%; background: var(--paper); border: 1px solid #DDE1F2;
  color: var(--indigo); box-shadow: 0 4px 14px rgba(20, 22, 70, .07);
}
.mg-step-ico svg { width: 21px; height: 21px; }
/* Dashed rail linking the icon circles. */
.mg-step:not(:last-child)::after {
  content: ""; position: absolute; top: 54px; height: 0;
  border-top: 1px dashed #C9CFE8;
  left: calc(50% + 32px); right: calc(-50% + 32px);
}
.mg-step h3 { font-size: .87rem; margin-bottom: .4rem; color: var(--slate-900); }
.mg-step p { font-size: .76rem; line-height: 1.55; color: var(--slate-500); }

@media (max-width: 1000px) {
  .mg-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; }
  .mg-step:nth-child(3n)::after { display: none; }
}
@media (max-width: 620px) {
  .mg-steps { grid-template-columns: repeat(2, 1fr); }
  .mg-step:nth-child(n)::after { display: none; }
}
@media (max-width: 380px) { .mg-steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* Why us (6 across)                                                          */
/* -------------------------------------------------------------------------- */
.mg-why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.mg-why { text-align: center; padding-inline: .3rem; }
.mg-why-ico {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto .9rem;
  border-radius: 12px; background: var(--indigo-50); color: var(--indigo);
}
.mg-why-ico svg { width: 20px; height: 20px; }
.mg-why h3 { font-size: .87rem; margin-bottom: .4rem; color: var(--slate-900); }
.mg-why p { font-size: .76rem; line-height: 1.55; color: var(--slate-500); }

@media (max-width: 1000px) { .mg-why-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; } }
@media (max-width: 560px) { .mg-why-grid { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------- */
/* Closing CTA band                                                           */
/* -------------------------------------------------------------------------- */
.mg-cta {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(1.6rem, 4vw, 3rem);
  background: #0A0F26; border-radius: 18px;
  padding: clamp(1.8rem, 3.6vw, 2.6rem) clamp(1.6rem, 3.6vw, 2.8rem);
  background-image: radial-gradient(110% 150% at 15% 0%, rgba(79, 70, 229, .16) 0%, transparent 60%);
}
.mg-cta-copy h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.35; color: #fff; letter-spacing: -.01em; }
.mg-cta-copy p { margin-top: .6rem; font-size: .86rem; line-height: 1.6; color: #98A2C0; }

.mg-cta-action { flex: none; }
.mg-cta-form { display: flex; gap: .7rem; }
.mg-cta-form input {
  width: clamp(200px, 22vw, 260px);
  background: #131A36; border: 1px solid #262F55; color: #fff;
  border-radius: 10px; padding: .8rem 1rem; font-size: .88rem;
}
.mg-cta-form input::placeholder { color: #6E779B; }
.mg-cta-form input:focus-visible { outline: 2px solid var(--indigo-400); outline-offset: 1px; }
.mg-cta-btn {
  background: var(--indigo); color: #fff; border-radius: 10px;
  padding: .8rem 1.3rem; font-size: .88rem; white-space: nowrap; gap: .45rem;
}
.mg-cta-btn:hover { background: #4338CA; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, .38); }

.mg-cta-points { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; }
.mg-cta-points li { display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: #98A2C0; }
.mg-cta-points svg { width: 13px; height: 13px; color: var(--indigo-400); flex: none; }

@media (max-width: 940px) {
  .mg-cta { flex-direction: column; align-items: flex-start; }
  .mg-cta-copy h2 br { display: none; }
  .mg-cta-action { width: 100%; }
  .mg-cta-form input { width: 100%; flex: 1; }
}
@media (max-width: 520px) {
  .mg-cta-form { flex-direction: column; }
  .mg-cta-btn { justify-content: center; }
}
