/* =====================================================================
   Ramsons Innovations — Modern UI layer
   Self-contained: does not depend on the legacy style.css / slider CSS.
   Scope: pages that add class="m" to <body>.
   ===================================================================== */

/* ------------------------------ Tokens ------------------------------ */
body.m {
  --accent:        #1B54D6;   /* Ramsons professional blue */
  --accent-dark:   #123C9E;
  --accent-soft:   #EEF3FE;   /* faint blue tint (no mint/green) */
  --accent-rgb:    27,84,214;
  --accent-on-dark:#8FB4FF;
  --ink:           #0A1A33;   /* deep navy ink */
  --body:          #45536A;
  --muted:         #6A778C;
  --line:          #E4E9F2;
  --surface:       #FFFFFF;
  --surface-soft:  #F6F8FC;   /* cool neutral grey, very faint */
  --navy:          #0A1F44;   /* dark hero base */
  --navy-2:        #0E2A5C;
  --radius:        18px;
  --radius-lg:     24px;
  --radius-sm:     11px;
  --shadow-sm:     0 1px 2px rgba(10,26,51,.05), 0 6px 18px rgba(10,26,51,.05);
  --shadow-md:     0 2px 8px rgba(10,26,51,.06), 0 20px 44px rgba(10,26,51,.10);
  --shadow-lg:     0 8px 24px rgba(10,26,51,.10), 0 40px 80px rgba(10,26,51,.16);
  --container:     1200px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head:     'Poppins', var(--font);
}

/* ------------------------------ Reset ------------------------------ */
/* box-sizing only — a blanket `padding:0` here carries class-boosted
   specificity (body.m *) and would out-rank every component's own padding. */
body.m *, body.m *::before, body.m *::after { box-sizing: border-box; }
body.m h1, body.m h2, body.m h3, body.m h4, body.m h5, body.m h6,
body.m p, body.m ul, body.m ol, body.m figure, body.m blockquote, body.m dl, body.m dd {
  margin: 0;
}
body.m ul, body.m ol { padding: 0; }
html:has(body.m) { overflow-x: hidden; }
body.m {
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.m h1, body.m h2, body.m h3 { overflow-wrap: break-word; }
body.m img { max-width: 100%; display: block; }
body.m a { color: var(--accent-dark); text-decoration: none; transition: color .18s ease; }
body.m a:hover { color: var(--accent); }
body.m h1, body.m h2, body.m h3, body.m h4, body.m h5, body.m h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
}
body.m ul { list-style: none; }
body.m section { position: relative; }

/* ------------------------------ Layout ------------------------------ */
.m-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.m-section { padding: 96px 0; }
.m-section--tight { padding: 72px 0; }
.m-section--soft { background: var(--surface-soft); }

.m-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-dark);
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb),.18);
}
.m-head { max-width: 720px; margin-bottom: 52px; }
.m-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.m-head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
  margin: 18px 0 14px;
}
.m-head p { font-size: 1.06rem; color: var(--muted); }

/* ------------------------------ Buttons ------------------------------ */
.m-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.m-btn i { font-size: .85rem; }
.m-btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(var(--accent-rgb),.32); }
.m-btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--accent-rgb),.40); }
.m-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.m-btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.m-btn--ondark { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.m-btn--ondark:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-2px); }

/* ============================== Header ============================== */
.m-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.m-header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: rgba(255,255,255,.96); }

/* slim utility row — pushed to the top-right corner of the page */
.m-utility {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.m-utility .m-container {
  max-width: none;
  display: flex; justify-content: flex-end; align-items: center; gap: 20px;
  height: 38px; padding-right: 34px;
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
}
.m-utility a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.m-utility a:hover { color: var(--accent-dark); }
.m-utility i { color: var(--accent); font-size: 14px; }
.m-utility-sep { color: var(--line); }
.m-header.is-stuck .m-utility { display: none; }

.m-header-main { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 20px; }
.m-logo { flex-shrink: 0; }
.m-logo img { height: 76px; width: auto; display: block; }

.m-nav { display: flex; align-items: center; gap: 2px; }
.m-nav > li { position: relative; }
.m-nav > li > a {
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 550; font-size: .9rem;
  color: var(--ink); padding: 12px 11px; border-radius: 10px;
}
.m-nav > li > a:hover { background: var(--surface-soft); color: var(--accent-dark); }
.m-nav > li > a i { font-size: .7rem; opacity: .6; }

.m-submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.m-nav > li:hover .m-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.m-submenu a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-size: .9rem; color: var(--body); font-weight: 500;
}
.m-submenu a:hover { background: var(--accent-soft); color: var(--accent-dark); }

.m-header-cta { display: flex; align-items: center; gap: 14px; }
.m-burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; }
.m-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .2s; }
.m-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-burger.is-open span:nth-child(2) { opacity: 0; }
.m-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================== Hero ============================== */
.m-hero {
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(43,108,255,.30), transparent 60%),
    radial-gradient(760px 520px at 2% 116%, rgba(9,20,44,.55), transparent 55%),
    linear-gradient(175deg, #0A1F44 0%, #0C244F 100%);
  color: #fff; overflow: hidden;
}
.m-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(820px 480px at 72% 22%, #000, transparent 76%);
  pointer-events: none;
}
.m-hero .m-container { position: relative; z-index: 1; padding-top: 108px; padding-bottom: 116px; }
.m-hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 64px; align-items: center; }
.m-hero-grid > * { min-width: 0; }
.m-hero .m-eyebrow {
  background: rgba(143,180,255,.22); border-color: rgba(179,205,255,.55); color: #eaf1ff;
}
.m-hero h1 {
  color: #fff; font-size: clamp(2.4rem, 1.3rem + 4vw, 3.9rem);
  margin: 24px 0 20px; letter-spacing: -0.035em; line-height: 1.08;
}
.m-hero h1 .grad {
  background: linear-gradient(110deg, #7fa9ff, #cfe0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-hero p.lead { font-size: 1.16rem; color: rgba(255,255,255,.76); max-width: 560px; }
.m-hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
body.m .m-hero .m-btn--ghost {
  border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
}
body.m .m-hero .m-btn--ghost:hover { border-color: #fff; color: #0A1F44; background: #fff; }
.m-hero-note {
  margin-top: 30px; font-size: .82rem; letter-spacing: .04em;
  color: rgba(255,255,255,.5); text-transform: uppercase;
}
.m-hero-note b { color: rgba(255,255,255,.8); font-weight: 600; }

.m-hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.m-hero-stats .n { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: #fff; }
.m-hero-stats .l { font-size: .8rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }

.m-hero-card {
  background: #fff;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-lg);
}
.m-hero-card h3 {
  color: var(--ink); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.m-hero-steps { display: grid; gap: 20px; counter-reset: hstep; }
.m-hero-steps li { display: flex; gap: 14px; align-items: flex-start; }
.m-hero-steps li span {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  font-size: .82rem; color: var(--accent-dark); background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb),.22);
}
.m-hero-steps li b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .96rem; margin-bottom: 2px; }
.m-hero-steps li p { font-size: .88rem; color: var(--muted); }
.m-hero-steps li:not(:last-child) { position: relative; }
.m-hero-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: -20px; width: 2px;
  background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px);
}

/* ------------------------- Industries strip ------------------------- */
.m-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.m-strip .m-container { padding-top: 34px; padding-bottom: 34px; text-align: center; }
.m-strip p { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.m-strip-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.m-strip-items span {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink);
  padding: 8px 18px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line);
}

/* --------------------------- Services grid --------------------------- */
.m-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.m-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.m-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(var(--accent-rgb),.35); }
.m-card-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.25rem; color: var(--accent-dark);
  background: var(--accent-soft); margin-bottom: 18px;
}
.m-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.m-card p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.m-card a { font-family: var(--font-head); font-weight: 600; font-size: .88rem; display: inline-flex; gap: 7px; align-items: center; }

/* ---------------------------- Why / split ---------------------------- */
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.m-split-media { position: relative; }
.m-split-media img { border-radius: 20px; box-shadow: var(--shadow-md); }
.m-split-media::after {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 62%; height: 78%;
  border-radius: 20px; background: var(--accent-soft); z-index: -1;
}
.m-checklist { display: grid; gap: 14px; margin: 24px 0 32px; }
.m-checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.m-checklist i {
  color: var(--accent-dark); background: var(--accent-soft);
  width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center;
  font-size: .7rem; margin-top: 3px; flex-shrink: 0;
}
.m-counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.m-counter { border-left: 3px solid var(--accent); padding-left: 16px; }
.m-counter .n { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--ink); }
.m-counter .l { font-size: .88rem; color: var(--muted); }

/* --------------------------- Technologies --------------------------- */
.m-tech { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.m-tech div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 16px; text-align: center; font-family: var(--font-head);
  font-weight: 600; font-size: .9rem; color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease;
}
.m-tech div:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--accent-dark); }
.m-tech i { display: block; font-size: 1.5rem; color: var(--accent); margin-bottom: 12px; }

/* ------------------------------ Process ------------------------------ */
.m-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.m-step { position: relative; padding-top: 22px; }
.m-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--accent-dark);
}
.m-step h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.m-step p { font-size: .9rem; color: var(--muted); }
.m-step::after {
  content: ""; position: absolute; top: 30px; left: 46px; right: -22px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.m-step:last-child::after { display: none; }

/* ---------------------------- Testimonial ---------------------------- */
.m-quote {
  max-width: 860px; margin: 0 auto; text-align: center;
}
.m-quote .mark { font-family: var(--font-head); font-size: 3.5rem; color: var(--accent); line-height: .5; }
.m-quote blockquote {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem); color: var(--ink);
  line-height: 1.5; margin: 20px 0 24px; letter-spacing: -0.01em;
}
.m-quote cite { font-style: normal; color: var(--muted); font-size: .95rem; }

/* ------------------------------ CTA band ------------------------------ */
.m-cta {
  background: radial-gradient(700px 300px at 20% 0%, rgba(var(--accent-rgb),.35), transparent 60%),
              linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff; text-align: center; border-radius: 28px;
  padding: 64px 32px; margin: 0 24px;
}
.m-cta h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 14px; }
.m-cta p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 28px; }

/* ------------------------------ Footer ------------------------------ */
.m-footer { background: var(--navy); color: rgba(255,255,255,.66); padding-top: 72px; font-size: .92rem; }
.m-footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px; font-weight: 600;
}
.m-footer a { color: rgba(255,255,255,.66); }
.m-footer a:hover { color: var(--accent); }
.m-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.m-footer-brand img {
  height: 40px; margin-bottom: 18px;
  background: #fff; padding: 8px 12px; border-radius: 10px;
}
.m-footer-brand p { max-width: 300px; }
.m-footer-links { display: grid; gap: 11px; }
.m-footer-social { display: flex; gap: 12px; margin-top: 18px; }
.m-footer-social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.m-footer-social a:hover { background: var(--accent); }
.m-newsletter { display: flex; gap: 10px; margin-top: 14px; }
.m-newsletter input {
  flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 12px 14px; color: #fff; font-family: var(--font); font-size: .9rem;
}
.m-newsletter input::placeholder { color: rgba(255,255,255,.45); }
.m-newsletter button {
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 0 18px; font-family: var(--font-head); font-weight: 600; cursor: pointer;
}
.m-newsletter button:hover { background: var(--accent-dark); }
.m-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: .86rem;
}
.m-footer-bottom ul { display: flex; gap: 20px; }

/* ----------------------- Chat launcher (custom) ----------------------- */
.m-chat {
  position: fixed; right: 24px; bottom: 24px; z-index: 850;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  box-shadow: 0 6px 16px rgba(12,27,42,.10), 0 18px 40px rgba(12,27,42,.12);
  transition: transform .16s ease, box-shadow .16s ease;
}
.m-chat:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(12,27,42,.14), 0 22px 48px rgba(12,27,42,.16); }
.m-chat i { color: var(--accent); font-size: 1.05rem; }

/* --------------------------- Back to top --------------------------- */
.m-top {
  position: fixed; right: 24px; bottom: 84px; z-index: 800;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  background: #fff; color: var(--accent-dark); font-size: 1rem;
  box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .2s ease;
}
.m-top:hover { color: var(--accent); }
.m-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ----------------------------- Reveal ----------------------------- */
.m-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.m-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .m-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------- Mobile nav ---------------------------- */
.m-mobile {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 950;
  background: #fff; box-shadow: var(--shadow-md); padding: 86px 24px 32px;
  transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
}
.m-mobile.is-open { transform: translateX(0); }
.m-mobile a { display: block; padding: 12px 0; font-family: var(--font-head); font-weight: 550; color: var(--ink); border-bottom: 1px solid var(--line); }
.m-mobile .sub a { padding-left: 16px; font-weight: 400; font-size: .9rem; color: var(--body); border-bottom: 0; }
.m-overlay { position: fixed; inset: 0; background: rgba(7,26,47,.45); z-index: 940; opacity: 0; visibility: hidden; transition: .2s; }
.m-overlay.is-open { opacity: 1; visibility: visible; }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 992px) {
  .m-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .m-hero-card { max-width: 100%; }
  .m-split { grid-template-columns: 1fr; gap: 40px; }
  .m-split-media { order: -1; }
  .m-cards { grid-template-columns: repeat(2, 1fr); }
  .m-tech { grid-template-columns: repeat(3, 1fr); }
  .m-steps { grid-template-columns: repeat(2, 1fr); }
  .m-step::after { display: none; }
}
@media (max-width: 980px) {
  .m-nav, .m-header-cta .m-btn { display: none; }
  .m-burger { display: block; }
  .m-utility { display: none; }
  .m-section { padding: 64px 0; }
  .m-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .m-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 560px) {
  .m-cards, .m-tech, .m-steps, .m-counters, .m-footer-grid { grid-template-columns: 1fr; }
  .m-hero .m-container { padding-top: 56px; padding-bottom: 64px; }
  body.m .m-hero h1 { font-size: 2rem; }
  .m-cta { margin: 0 16px; padding: 48px 22px; }
  .m-chat { right: 16px; bottom: 16px; padding: 12px; }
  .m-chat span { display: none; }
  .m-chat i { font-size: 1.2rem; }
  .m-top { right: 18px; bottom: 74px; }
}

/* ------------- Specificity patch --------------------------------------
   body.m a / body.m h1..h6 in the base layer out-rank the component
   classes below, so restate their colours with matching weight. */
body.m .m-cta h2,
body.m .m-footer h4,
body.m .m-footer-brand p { color: #fff; }

body.m .m-hero h1 { color: #fff; }
body.m .m-hero h1 .grad { color: transparent; }
body.m .m-hero p.lead { color: rgba(255,255,255,.76); }
body.m .m-hero-stats .n { color: #fff; }
body.m .m-hero-card h3 { color: var(--ink); }
body.m .m-hero-steps li b { color: var(--ink); }

body.m .m-btn--primary,
body.m .m-btn--primary:hover,
body.m .m-btn--ondark,
body.m .m-btn--ondark:hover { color: #fff; }
body.m .m-btn--ghost { color: var(--ink); }
body.m .m-btn--ghost:hover { color: var(--accent-dark); }

body.m .m-cta p,
body.m .m-footer,
body.m .m-footer-bottom { color: rgba(255,255,255,.78); }
body.m .m-cta { text-align: center; }
body.m .m-cta h2 { margin: 0 auto 14px; text-align: center; max-width: 640px; }
body.m .m-cta p { margin: 0 auto 28px; text-align: center; }
body.m .m-footer a { color: rgba(255,255,255,.66); }
body.m .m-footer a:hover { color: var(--accent); }
body.m .m-nav > li > a { color: var(--ink); }
body.m .m-nav > li > a:hover { color: var(--accent-dark); }

/* ===================================================================
   Interior pages (shared banner, prose, sidebar, cards, forms)
   =================================================================== */

/* --------------------------- Page banner --------------------------- */
.m-page-hero {
  background:
    radial-gradient(680px 340px at 90% -30%, rgba(var(--accent-rgb),.09), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, var(--surface-soft) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.m-page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(10,26,51,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(10,26,51,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(560px 300px at 82% 6%, #000, transparent 80%);
}
.m-page-hero .m-container { position: relative; z-index: 1; padding-top: 52px; padding-bottom: 56px; }
.m-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 500;
  color: var(--muted); margin-bottom: 16px;
}
.m-crumb a { color: var(--muted); }
.m-crumb a:hover { color: var(--accent-dark); }
.m-crumb i { font-size: .7rem; opacity: .6; }
.m-crumb > span:last-child { color: var(--ink); }
.m-page-hero h1 {
  color: var(--ink); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  letter-spacing: -0.02em;
}
.m-page-hero p { margin-top: 12px; max-width: 640px; color: var(--muted); font-size: 1.04rem; }

/* --------------------------- Layout w/ sidebar --------------------------- */
.m-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 52px; align-items: start; }
.m-layout--wide { grid-template-columns: 1fr; }

/* ------------------------------ Prose ------------------------------ */
.m-prose { color: var(--body); font-size: 1rem; line-height: 1.75; }
.m-prose > * + * { margin-top: 18px; }
.m-prose h2 { font-size: 1.5rem; margin-top: 40px; }
.m-prose h3 { font-size: 1.2rem; margin-top: 32px; }
.m-prose h4 { font-size: 1.05rem; margin-top: 26px; font-family: var(--font-head); color: var(--ink); }
.m-prose h5 { font-size: .98rem; margin-top: 22px; font-family: var(--font-head); color: var(--ink); }
.m-prose a { color: var(--accent-dark); font-weight: 500; }
.m-prose a:hover { text-decoration: underline; }
.m-prose strong, .m-prose b { color: var(--ink); font-weight: 600; }
.m-prose ul, .m-prose ol { padding-left: 4px; display: grid; gap: 10px; }
.m-prose ul li { display: flex; gap: 12px; align-items: flex-start; }
.m-prose ul li::before {
  content: ""; flex-shrink: 0; margin-top: 9px; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}
.m-prose ol { counter-reset: mo; }
.m-prose ol li { display: flex; gap: 12px; align-items: flex-start; counter-increment: mo; }
.m-prose ol li::before {
  content: counter(mo); flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark); font-family: var(--font-head);
  font-weight: 700; font-size: .74rem; display: grid; place-items: center; margin-top: 2px;
}
.m-prose img { border-radius: var(--radius-sm); border: 1px solid var(--line); margin-top: 22px; }
.m-prose blockquote {
  border-left: 3px solid var(--accent); background: var(--surface-soft);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--body);
}
.m-prose address { font-style: normal; color: var(--muted); line-height: 1.7; }
.m-prose hr { border: 0; border-top: 1px solid var(--line); }
.m-lead-note {
  font-size: 1.1rem; line-height: 1.7; color: var(--ink); font-family: var(--font-head); font-weight: 500;
}

/* ------------------------------ Sidebar ------------------------------ */
.m-side { position: sticky; top: 120px; display: grid; gap: 24px; }
.m-side-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; }
.m-side-card h4 {
  font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.m-side-links { display: grid; gap: 4px; }
.m-side-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 9px; font-size: .9rem; font-weight: 500;
  color: var(--body); font-family: var(--font-head);
}
.m-side-links a::after { content: "\f105"; font-family: FontAwesome; opacity: .35; }
.m-side-links a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.m-side-links a.is-current { background: var(--accent); color: #fff; }
.m-side-links a.is-current::after { opacity: .8; }
.m-side-cta {
  border-radius: var(--radius); padding: 22px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: rgba(255,255,255,.8);
}
.m-side-cta h4 { color: #fff; font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 8px; letter-spacing: 0; text-transform: none; }
.m-side-cta p { font-size: .88rem; margin-bottom: 16px; }
body.m .m-side-cta h4 { color: #fff; }

/* ----------------------- Feature / value grid ----------------------- */
.m-fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.m-fgrid--2 { grid-template-columns: repeat(2, 1fr); }
.m-fcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff; }
.m-fcard .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark); font-size: 1.15rem; margin-bottom: 16px;
}
.m-fcard h3 { font-size: 1.05rem; margin-bottom: 8px; }
.m-fcard p { font-size: .92rem; color: var(--muted); }
.m-fcard.is-dark { background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-color: transparent; }
body.m .m-fcard.is-dark h3 { color: #fff; }
.m-fcard.is-dark p { color: rgba(255,255,255,.72); }
.m-fcard.is-dark .ic { background: rgba(var(--accent-rgb),.18); color: var(--accent-on-dark); }

/* linked service/tech cards */
.m-linkcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.m-linkcard {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.m-linkcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(var(--accent-rgb),.35); }
.m-linkcard .ic { color: var(--accent); font-size: 1.4rem; }
.m-linkcard h3 { font-size: 1.02rem; color: var(--ink); }
.m-linkcard p { font-size: .9rem; color: var(--muted); flex: 1; }
.m-linkcard span { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------ Accordion ------------------------------ */
.m-acc { display: grid; gap: 12px; }
.m-acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.m-acc-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink);
}
.m-acc-head:hover { color: var(--accent-dark); }
.m-acc-head i { transition: transform .2s ease; color: var(--accent); flex-shrink: 0; }
.m-acc-item.is-open .m-acc-head i { transform: rotate(180deg); }
.m-acc-body { display: none; padding: 0 20px 20px; border-top: 1px solid var(--line); }
.m-acc-item.is-open .m-acc-body { display: block; }
.m-acc-body { color: var(--body); font-size: .95rem; line-height: 1.7; }
.m-acc-body > * + * { margin-top: 12px; }
.m-acc-body img { float: right; max-height: 150px; margin: 0 0 12px 18px; border-radius: var(--radius-sm); }

/* ------------------------------ Locations ------------------------------ */
.m-locs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.m-loc { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.m-loc .tag {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.m-loc h3 { font-size: 1.02rem; margin-bottom: 6px; }
.m-loc address { font-style: normal; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.m-loc.is-hq {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb),.35);
  box-shadow: inset 3px 0 0 var(--accent);
}
.m-loc.is-hq .tag { background: #fff; color: var(--accent-dark); }

/* ------------------------------ Contact form ------------------------------ */
.m-form { display: grid; gap: 14px; }
.m-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.m-form input, .m-form textarea, .m-form select {
  width: 100%; font-family: var(--font); font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .16s ease, box-shadow .16s ease;
}
.m-form input:focus, .m-form textarea:focus, .m-form select:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.15);
}
.m-form textarea { resize: vertical; min-height: 130px; }
.m-form-msg { font-size: .9rem; }

/* ------------------------------ E-Verify / trust ------------------------------ */
.m-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: var(--surface-soft);
}
.m-trust .b {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 600; font-size: .9rem; color: var(--ink);
}
.m-trust .b i { color: var(--accent-dark); }

/* ------------------------------ Table ------------------------------ */
.m-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.m-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.m-table th, .m-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.m-table th {
  font-family: var(--font-head); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-soft);
}
.m-table tbody tr:last-child td { border-bottom: 0; }
.m-table tbody tr:hover td { background: var(--surface-soft); }
.m-table a { color: var(--accent-dark); font-weight: 500; }
.m-table .button, .m-table .button-border {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .78rem;
  font-family: var(--font-head); font-weight: 600; background: var(--accent-soft); color: var(--accent-dark);
}

/* ------------------------- Accordion body lists ------------------------- */
.m-acc-body ul { display: grid; gap: 9px; padding-left: 2px; margin-top: 6px; }
.m-acc-body ul li { display: flex; gap: 10px; align-items: flex-start; }
.m-acc-body ul li::before {
  content: ""; flex-shrink: 0; margin-top: 8px; width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}
.m-acc-body ul li a { display: inline; }
.m-acc-body ul li a i { color: var(--accent-dark); margin-right: 6px; }

/* --------------------------- Client logos --------------------------- */
.m-clientwrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; }
.m-clientwrap img {
  max-height: 64px; width: auto; opacity: .85; filter: grayscale(1);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; background: #fff;
  transition: opacity .16s ease, filter .16s ease;
}
.m-clientwrap img:hover { opacity: 1; filter: none; }

@media (max-width: 900px) {
  .m-layout { grid-template-columns: 1fr; gap: 40px; }
  .m-side { position: static; }
  .m-fgrid, .m-fgrid--2, .m-linkcards, .m-locs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .m-fgrid, .m-fgrid--2, .m-linkcards, .m-locs, .m-form .row2 { grid-template-columns: 1fr; }
  .m-acc-body img { float: none; margin: 0 0 12px; max-height: none; width: 100%; }
}

/* ===================================================================
   Homepage 2026 — stat band, offerings, skills, candidate CTA
   =================================================================== */

/* --- Stat band: overlaps the bottom of the dark hero --- */
.m-statband { position: relative; z-index: 3; margin-top: -60px; }
.m-statband .inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.m-statband .cell { padding: 30px 28px; border-left: 1px solid var(--line); }
.m-statband .cell:first-child { border-left: 0; }
.m-statband .n {
  font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.m-statband .l { margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* --- Section heading number motif --- */
.m-num {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--accent-dark); letter-spacing: .14em;
}
.m-rule { height: 1px; background: var(--line); margin: 0 0 44px; }

/* --- Offerings (3 up, tall) --- */
.m-offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.m-offer-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  padding: 30px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.m-offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(var(--accent-rgb),.35); }
.m-offer-card .ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.3rem; color: var(--accent-dark); background: var(--accent-soft); margin-bottom: 20px;
}
.m-offer-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.m-offer-card p { font-size: .94rem; color: var(--muted); margin-bottom: 18px; }
.m-offer-card ul { display: grid; gap: 9px; margin-bottom: 22px; }
.m-offer-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--body); }
.m-offer-card li i { color: var(--accent); font-size: .72rem; margin-top: 5px; flex-shrink: 0; }
.m-offer-card .go {
  margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 7px; color: var(--accent-dark);
}

/* --- Skills we staff (chips) --- */
.m-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.m-chips span {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink);
  padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.m-chips span:hover { border-color: rgba(var(--accent-rgb),.4); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.m-chips span i { color: var(--accent); }

/* --- Candidate CTA band --- */
.m-candidate {
  display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 30px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-lg); padding: 44px 48px; overflow: hidden; position: relative;
}
.m-candidate::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 999px; background: radial-gradient(circle, rgba(43,108,255,.35), transparent 70%);
  pointer-events: none;
}
.m-candidate h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin-bottom: 8px; }
.m-candidate p { color: rgba(255,255,255,.75); max-width: 520px; position: relative; z-index: 1; }
.m-candidate .acts { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
body.m .m-candidate h2 { color: #fff; }

@media (max-width: 980px) {
  .m-statband { margin-top: -44px; }
  .m-statband .inner { grid-template-columns: repeat(2, 1fr); }
  .m-statband .cell:nth-child(3) { border-left: 0; }
  .m-statband .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .m-offer { grid-template-columns: 1fr; }
  .m-candidate { grid-template-columns: 1fr; padding: 36px 30px; }
}
@media (max-width: 560px) {
  .m-statband { margin-top: 0; }
  .m-statband .inner { grid-template-columns: 1fr; }
  .m-statband .cell { border-left: 0; border-top: 1px solid var(--line); }
  .m-statband .cell:first-child { border-top: 0; }
}
