/* ==========================================================================
   Meshit Solutions — Modern design system (2026 revamp)
   Layered on top of bootstrap.min.css + style.css. New components use the
   `ms-` prefix; a few legacy template classes are overridden where the
   homepage reuses them (navbar, footer, testimonial, breadcrumb).
   ========================================================================== */

:root {
    /* Brand palette (derived from the Meshit logo mark) */
    --ms-cyan: #00d1f9;
    --ms-blue: #2563eb;
    --ms-indigo: #4f46e5;
    --ms-violet: #7c3aed;
    --ms-magenta: #ec4899;
    --ms-navy: #050b2e;
    --ms-navy-2: #0a1550;
    --ms-ink: #0d1330;

    /* Signature gradient (matches logo sweep) */
    --ms-grad: linear-gradient(115deg, #00d1f9 0%, #4f46e5 45%, #7c3aed 70%, #ec4899 100%);
    --ms-grad-soft: linear-gradient(115deg, rgba(0,209,249,.14), rgba(124,58,237,.14) 60%, rgba(236,72,153,.14));
    --ms-grad-hero: radial-gradient(1200px 600px at 12% -10%, rgba(0,209,249,.28), transparent 55%),
                    radial-gradient(1000px 700px at 100% 0%, rgba(236,72,153,.22), transparent 55%),
                    radial-gradient(900px 800px at 60% 120%, rgba(79,70,229,.30), transparent 55%),
                    linear-gradient(160deg, #050b2e 0%, #0a1550 60%, #0b1140 100%);

    /* Surfaces & text */
    --ms-bg: #ffffff;
    --ms-bg-alt: #f5f8ff;
    --ms-line: #e6ebf5;
    --ms-text: #1c2440;
    --ms-muted: #5a6485;

    /* Shape & depth */
    --ms-radius: 18px;
    --ms-radius-lg: 26px;
    --ms-shadow-sm: 0 4px 18px rgba(16, 24, 64, .06);
    --ms-shadow: 0 18px 45px rgba(16, 24, 64, .10);
    --ms-shadow-brand: 0 20px 50px rgba(79, 70, 229, .28);

    --ms-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ms-font-head: "Sora", "Inter", system-ui, sans-serif;

    /* Keep Bootstrap component colors in sync */
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-secondary: #00d1f9;
    --bs-secondary-rgb: 0, 209, 249;
    --bs-dark: #050b2e;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ms-font);
    color: var(--ms-text);
    background: var(--ms-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
    font-family: var(--ms-font-head);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ms-ink);
}

p { color: var(--ms-muted); }

a { text-decoration: none; }

::selection { background: rgba(79, 70, 229, .18); }

/* ---------- Shared helpers ---------------------------------------------- */
.ms-grad-text {
    background: var(--ms-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ms-section { padding: 96px 0; position: relative; }
.ms-section--tight { padding: 72px 0; }
.ms-bg-alt { background: var(--ms-bg-alt); }
.ms-bg-navy { background: var(--ms-navy); }

.ms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--ms-font-head);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ms-indigo);
    padding: .45rem 1rem;
    border-radius: 999px;
    background: var(--ms-grad-soft);
    border: 1px solid rgba(79, 70, 229, .18);
}

.ms-head { max-width: 760px; }
.ms-head h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    line-height: 1.12;
    margin: 1rem 0 .75rem;
}
.ms-head p { font-size: 1.06rem; line-height: 1.7; }

/* Buttons */
.ms-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--ms-font-head);
    font-weight: 600;
    font-size: 1rem;
    padding: .85rem 1.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    cursor: pointer;
    line-height: 1;
}
.ms-btn i { transition: transform .25s ease; }
.ms-btn:hover i { transform: translateX(3px); }

.ms-btn--primary {
    color: #fff;
    background: var(--ms-grad);
    background-size: 160% 160%;
    box-shadow: var(--ms-shadow-brand);
}
.ms-btn--primary:hover { color: #fff; transform: translateY(-3px); background-position: 100% 0; }

.ms-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
}
.ms-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .16); transform: translateY(-3px); }

.ms-btn--outline {
    color: var(--ms-indigo);
    background: #fff;
    border-color: rgba(79, 70, 229, .35);
    box-shadow: var(--ms-shadow-sm);
}
.ms-btn--outline:hover { color: #fff; background: var(--ms-indigo); transform: translateY(-3px); }

.ms-btn--wa { background: #25d366; color: #fff; box-shadow: 0 16px 36px rgba(37, 211, 102, .32); }
.ms-btn--wa:hover { color: #fff; background: #20bd5a; transform: translateY(-3px); }

/* ---------- Navbar (override legacy template navbar) -------------------- */
.navbar {
    background: transparent;
    transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
    z-index: 1030;
}
.navbar .navbar-brand h1 {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--ms-font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff !important;
    margin: 0;
    letter-spacing: -.02em;
    white-space: nowrap;
}
.navbar .navbar-brand img { max-height: 46px; }

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .88);
    font-family: var(--ms-font-head);
    font-size: .98rem;
    font-weight: 500;
    padding: 34px 0 !important;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active { color: #fff; }
.navbar-light .navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 0; bottom: 26px;
    width: 0; height: 2px;
    border-radius: 2px;
    background: var(--ms-grad);
    transition: width .3s ease;
}
.navbar-light .navbar-nav .nav-link:hover::before,
.navbar-light .navbar-nav .nav-link.active::before { width: 100%; }

/* Sticky state -> solid navy glass (keeps text light on every page) */
.navbar.sticky-top {
    background: rgba(5, 11, 46, .88) !important;
    backdrop-filter: saturate(140%) blur(14px);
    box-shadow: 0 10px 30px rgba(5, 11, 46, .28) !important;
}
.sticky-top.navbar-light .navbar-nav .nav-link { color: rgba(255, 255, 255, .88); padding: 20px 0 !important; }
.sticky-top.navbar-light .navbar-nav .nav-link:hover,
.sticky-top.navbar-light .navbar-nav .nav-link.active { color: #fff; }
.sticky-top.navbar-light .navbar-nav .nav-link::before { bottom: 12px; }
.navbar .dropdown-menu {
    border: 1px solid var(--ms-line);
    border-radius: 14px;
    box-shadow: var(--ms-shadow);
    padding: .5rem;
    margin-top: .4rem !important;
}
.navbar .dropdown-item {
    border-radius: 10px;
    font-weight: 500;
    padding: .6rem .9rem;
    color: var(--ms-text);
}
.navbar .dropdown-item:hover { background: var(--ms-grad-soft); color: var(--ms-indigo); }
.navbar-toggler { border: 0; color: #fff; }
.navbar-toggler:focus { box-shadow: none; }

.ms-nav-cta { margin-left: 1.25rem; padding: .6rem 1.35rem; font-size: .92rem; }

@media (max-width: 991.98px) {
    .navbar { background: rgba(5, 11, 46, .95); }
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, .04);
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 16px;
    }
    .navbar-light .navbar-nav .nav-link { padding: .6rem 0 !important; }
        /* Drop the desktop underline indicator in the stacked mobile menu — its
       fixed offset lands mid-text and reads as a stray line on the active item. */
        .navbar-light .navbar-nav .nav-link::before {
            display: none;
        }
    .ms-nav-cta { margin: .8rem 0 0; display: inline-flex; }
}

/* ---------- Hero -------------------------------------------------------- */
.ms-hero {
    position: relative;
    background: var(--ms-grad-hero);
    color: #fff;
    padding: 170px 0 120px;
    overflow: hidden;
}
.ms-hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
}
.ms-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: ms-float 12s ease-in-out infinite;
}
.ms-hero__blob--1 { width: 420px; height: 420px; background: #00d1f9; top: -120px; left: -80px; }
.ms-hero__blob--2 { width: 380px; height: 380px; background: #ec4899; bottom: -140px; right: -60px; animation-delay: -4s; }
.ms-hero__blob--3 { width: 300px; height: 300px; background: #7c3aed; top: 30%; right: 20%; animation-delay: -8s; }
@keyframes ms-float { 50% { transform: translateY(-26px) translateX(14px); } }

.ms-hero .container { position: relative; z-index: 2; }
.ms-hero__eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    font-family: var(--ms-font-head);
    font-size: .82rem; font-weight: 500;
    letter-spacing: .04em;
    color: #e8ecff;
    backdrop-filter: blur(6px);
}
.ms-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: #22e07a; box-shadow: 0 0 0 4px rgba(34, 224, 122, .25); }
.ms-hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5.2vw, 4.1rem);
    line-height: 1.05;
    margin: 1.5rem 0 1.3rem;
}
.ms-hero__sub {
    color: rgba(255, 255, 255, .82);
    font-size: 1.18rem;
    line-height: 1.65;
    max-width: 620px;
}
.ms-hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1.6rem; }
.ms-hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.ms-chip {
    font-size: .84rem; font-weight: 500;
    color: rgba(255, 255, 255, .9);
    padding: .45rem .95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
}
.ms-chip i { color: var(--ms-cyan); margin-right: .4rem; }

/* Hero visual card stack */
.ms-hero__visual { position: relative; }
.ms-hero__panel {
    position: relative;
    background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--ms-radius-lg);
    padding: 1.6rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 70px rgba(5, 11, 46, .45);
}
.ms-hero__panel-head { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; }
.ms-hero__panel-head span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.35); }
.ms-hero__panel-head span:nth-child(1) { background: #ff5f57; }
.ms-hero__panel-head span:nth-child(2) { background: #febc2e; }
.ms-hero__panel-head span:nth-child(3) { background: #28c840; }
.ms-hero__stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.ms-hero__stat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 1rem;
}
.ms-hero__stat .n { font-family: var(--ms-font-head); font-size: 1.5rem; font-weight: 700; color: #fff; }
.ms-hero__stat .l { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.ms-hero__bars { display: flex; align-items: flex-end; gap: .5rem; height: 84px; margin-top: 1rem; padding: 0 .2rem; }
.ms-hero__bars i { flex: 1; border-radius: 6px 6px 0 0; background: var(--ms-grad); opacity: .85; display: block; }

.ms-hero__badge {
    position: absolute;
    display: flex; align-items: center; gap: .6rem;
    background: #fff; color: var(--ms-ink);
    padding: .7rem 1rem;
    border-radius: 14px;
    box-shadow: var(--ms-shadow);
    font-weight: 600; font-size: .85rem;
    animation: ms-float 6s ease-in-out infinite;
}
.ms-hero__badge i { font-size: 1.1rem; }
.ms-hero__badge--tl { top: -22px; left: -22px; }
.ms-hero__badge--br { bottom: -20px; right: -14px; animation-delay: -3s; }
.ms-hero__badge .ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--ms-grad-soft); color: var(--ms-indigo); }

/* Marquee / trusted strip */
.ms-trusted { padding: 34px 0; border-bottom: 1px solid var(--ms-line); }
.ms-trusted p { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--ms-muted); }
.ms-trusted__row { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; align-items: center; }
.ms-trusted__item { font-family: var(--ms-font-head); font-weight: 700; font-size: 1.05rem; color: #9aa4c4; }

/* ---------- Feature / service cards ------------------------------------ */
.ms-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.ms-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--ms-shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    overflow: hidden;
}
.ms-card::after {
    content: "";
    position: absolute; left: 0; top: 0; height: 4px; width: 100%;
    background: var(--ms-grad);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
.ms-card:hover { transform: translateY(-8px); box-shadow: var(--ms-shadow); border-color: transparent; }
.ms-card:hover::after { transform: scaleX(1); }
.ms-icon {
    width: 62px; height: 62px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: var(--ms-grad-soft);
    color: var(--ms-indigo);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.ms-card:hover .ms-icon { background: var(--ms-grad); color: #fff; }
.ms-icon, .ms-card:hover .ms-icon { transition: background .35s ease, color .35s ease; }
.ms-card h3 { font-size: 1.24rem; margin-bottom: .6rem; }
.ms-card p { font-size: .96rem; line-height: 1.65; margin: 0; }
.ms-card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; font-family: var(--ms-font-head); color: var(--ms-indigo); }
.ms-card__link i { transition: transform .25s ease; }
.ms-card:hover .ms-card__link i { transform: translateX(4px); }

/* ---------- Stats band -------------------------------------------------- */
.ms-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.ms-stat {
    text-align: center;
    padding: 1.8rem 1rem;
    border-radius: var(--ms-radius);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
}
.ms-stat .num { font-family: var(--ms-font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1; }
.ms-stat .num span { -webkit-text-fill-color: transparent; }
.ms-stat .lbl { margin-top: .55rem; color: rgba(255, 255, 255, .72); font-size: .95rem; }

/* ---------- About ------------------------------------------------------- */
.ms-about__media { position: relative; border-radius: var(--ms-radius-lg); overflow: hidden; box-shadow: var(--ms-shadow); }
.ms-about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-about__exp {
    position: absolute; left: 22px; bottom: 22px;
    background: var(--ms-grad);
    color: #fff;
    padding: 1rem 1.3rem;
    border-radius: 16px;
    box-shadow: var(--ms-shadow-brand);
}
.ms-about__exp b { font-family: var(--ms-font-head); font-size: 1.8rem; display: block; line-height: 1; }
.ms-about__exp span { font-size: .82rem; opacity: .9; }
.ms-point { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ms-line); }
.ms-point:last-child { border-bottom: 0; }
.ms-point .ico {
    flex: 0 0 auto;
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--ms-grad-soft); color: var(--ms-indigo);
    font-size: 1.2rem;
}
.ms-point h4 { font-size: 1.1rem; margin: 0 0 .3rem; }
.ms-point p { margin: 0; font-size: .95rem; }

/* ---------- Industries -------------------------------------------------- */
.ms-ind {
    display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius);
    padding: 1.6rem;
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.ms-ind:hover { transform: translateY(-6px); box-shadow: var(--ms-shadow); }
.ms-ind .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--ms-grad); }
.ms-ind h4 { font-size: 1.08rem; margin: 0; }
.ms-ind p { font-size: .9rem; margin: 0; line-height: 1.55; }

/* ---------- Product cards ----------------------------------------------- */
.ms-prod {
    background: #fff;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius);
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ms-prod:hover { transform: translateY(-8px); box-shadow: var(--ms-shadow); border-color: transparent; }
.ms-prod__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ms-grad-soft); }
.ms-prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ms-prod:hover .ms-prod__media img { transform: scale(1.06); }
.ms-prod__tag {
    position: absolute; top: 12px; left: 12px;
    font-size: .72rem; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase;
    padding: .35rem .8rem; border-radius: 999px;
    background: rgba(5, 11, 46, .78); color: #fff;
    backdrop-filter: blur(6px);
}
.ms-prod__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.ms-prod__body h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.ms-prod__body p { font-size: .93rem; line-height: 1.6; margin: 0 0 1.1rem; flex: 1; }
.ms-prod__link { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--ms-font-head); font-weight: 600; color: var(--ms-indigo); }
.ms-prod__link i { transition: transform .25s ease; }
.ms-prod:hover .ms-prod__link i { transform: translateX(4px); }

/* ---------- Why choose / process --------------------------------------- */
.ms-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.ms-why__item { display: flex; gap: 1rem; }
.ms-why__num {
    flex: 0 0 auto;
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    font-family: var(--ms-font-head); font-weight: 700;
    color: #fff; background: var(--ms-grad);
}
.ms-why__item h4 { font-size: 1.1rem; margin: .2rem 0 .4rem; }
.ms-why__item p { font-size: .93rem; margin: 0; }

/* ---------- CTA band ---------------------------------------------------- */
.ms-cta {
    position: relative;
    background: var(--ms-grad-hero);
    border-radius: var(--ms-radius-lg);
    padding: 3.4rem;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--ms-shadow-brand);
}
.ms-cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 90% 10%, rgba(0,209,249,.3), transparent 60%);
}
.ms-cta > * { position: relative; z-index: 1; }
.ms-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.ms-cta p { color: rgba(255, 255, 255, .82); font-size: 1.05rem; }

/* ---------- Testimonials (override legacy) ------------------------------ */
.testimonial-item {
    background: #fff !important;
    border: 1px solid var(--ms-line);
    border-radius: var(--ms-radius) !important;
    box-shadow: var(--ms-shadow-sm);
    text-align: left !important;
    padding: 2rem !important;
}
.testimonial-item > p:first-child { font-size: 1.02rem; line-height: 1.7; color: var(--ms-text); position: relative; }
.ms-quote-mark { font-family: var(--ms-font-head); font-size: 2.6rem; line-height: 0; color: var(--ms-indigo); opacity: .28; }
.testimonial-item .d-flex.justify-content-center { justify-content: flex-start !important; }
.testimonial-item img { width: 60px !important; height: 60px !important; border-radius: 50% !important; border-width: 2px !important; }
.testimonial-item .d-block { text-align: left; }
.ms-avatar {
    width: 54px; height: 54px; flex: 0 0 auto;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--ms-font-head); font-weight: 700; font-size: 1.15rem;
    color: #fff; background: var(--ms-grad);
    box-shadow: 0 8px 20px rgba(79, 70, 229, .28);
}
.owl-carousel .owl-dots { margin-top: 2rem !important; }
.owl-carousel button.owl-dot span { background: var(--ms-line) !important; width: 10px !important; height: 10px !important; }
.owl-carousel button.owl-dot.active span { background: var(--ms-grad) !important; width: 28px !important; border-radius: 5px !important; }

/* Testimonial nav arrows — vertically centred on either side of the track. */
.testimonial-carousel { position: relative; }
.testimonial-carousel .owl-nav { margin: 0; }
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; margin: 0 !important;
    border-radius: 50% !important;
    display: grid !important; place-items: center;
    background: #fff !important; color: var(--ms-indigo, #4f46e5) !important;
    border: 1px solid var(--ms-line) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
    font-size: 1.2rem; line-height: 1;
    transition: transform .2s ease, background .2s ease, color .2s ease;
    z-index: 5;
}
.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--ms-grad) !important; color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-50%) scale(1.08);
}
.testimonial-carousel .owl-nav .owl-prev { left: -22px; }
.testimonial-carousel .owl-nav .owl-next { right: -22px; }
@media (max-width: 1200px) {
    .testimonial-carousel .owl-nav .owl-prev { left: 4px; }
    .testimonial-carousel .owl-nav .owl-next { right: 4px; }
}

/* ---------- Footer (override legacy) ------------------------------------ */
.footer {
    background: var(--ms-navy) !important;
    position: relative;
    color: rgba(255, 255, 255, .72);
}
.footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--ms-grad);
}
.footer h3, .footer h4 { color: #fff !important; font-family: var(--ms-font-head); }
.footer p { color: rgba(255, 255, 255, .66); }
.footer a { color: rgba(255, 255, 255, .74); transition: color .25s ease, padding .25s ease; }
.footer a:hover { color: #fff; }
.footer .footer-item a:not(.btn):hover { padding-left: 4px; }
.footer .form-control { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.footer .form-control::placeholder { color: rgba(255, 255, 255, .5); }
.ms-social { display: flex; gap: .6rem; }
.ms-social a {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff !important;
}
.ms-social a:hover { background: var(--ms-grad); border-color: transparent; transform: translateY(-3px); }
.copyright { background: #030720; }
.copyright a { color: rgba(255, 255, 255, .7); }

/* ---------- Breadcrumb header (inner pages) ----------------------------- */
.bg-breadcrumb {
    background: var(--ms-grad-hero) !important;
    padding: 150px 0 70px !important;
    position: relative;
    overflow: hidden;
}
/* Match the home hero's depth: faint grid + soft colour glow. */
.bg-breadcrumb::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000 40%, transparent 100%);
    mask-image: radial-gradient(70% 80% at 50% 30%, #000 40%, transparent 100%);
}
.bg-breadcrumb::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(360px 220px at 12% 0%, rgba(0,209,249,.28), transparent 60%),
                radial-gradient(360px 220px at 88% 120%, rgba(236,72,153,.24), transparent 60%);
}
.bg-breadcrumb > .container { position: relative; z-index: 1; }
.bg-breadcrumb .breadcrumb-item a { color: rgba(255, 255, 255, .8); }
.bg-breadcrumb .breadcrumb-item.active { color: var(--ms-cyan) !important; }
.bg-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* ---------- WhatsApp float ---------------------------------------------- */
.whatsapp-float {
    position: fixed; right: 30px; bottom: 30px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: grid; place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
    z-index: 98;
    transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
/* Stack the back-to-top button above the WhatsApp float, right edges aligned. */
.back-to-top {
    right: 30px !important; bottom: 100px !important;
    background: var(--ms-grad) !important; border: 0 !important;
    z-index: 98;
}

/* ---------- Responsive tweaks ------------------------------------------ */
@media (max-width: 991.98px) {
    .ms-section { padding: 72px 0; }
    .ms-hero { padding: 140px 0 90px; }
    .ms-hero__visual { margin-top: 3rem; }
    .ms-cta { padding: 2.4rem; text-align: center; }
}
@media (max-width: 575.98px) {
    .ms-hero__badge { display: none; }
    .ms-cta { padding: 2rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ms-hero__blob, .ms-hero__badge { animation: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Phase 3 — unique page components (fresh build)
   ========================================================================== */

/* ---------- Client strip (marquee) ------------------------------------- */
.ms-strip { padding: 46px 0; border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); background: #fff; }
.ms-strip__label { text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700; color: var(--ms-muted); margin-bottom: 1.4rem; }
.ms-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ms-marquee__track { display: flex; width: max-content; gap: 3.4rem; animation: ms-scroll 26s linear infinite; }
.ms-marquee:hover .ms-marquee__track { animation-play-state: paused; }
.ms-marquee__item { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--ms-font-head); font-weight: 700; font-size: 1.15rem; color: #8a93b4; white-space: nowrap; }
.ms-marquee__item i { color: var(--ms-indigo); opacity: .7; }
@keyframes ms-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ms-marquee__track { animation: none; } }

/* ---------- Checklist --------------------------------------------------- */
.ms-check { list-style: none; padding: 0; margin: 0; }
.ms-check li { position: relative; padding: .4rem 0 .4rem 2rem; color: var(--ms-text); font-size: .98rem; }
.ms-check li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .45rem; color: var(--ms-indigo); font-size: .85rem; }

/* ---------- Alternating service detail rows ---------------------------- */
.ms-srow { align-items: center; }
.ms-srow + .ms-srow { margin-top: 5rem; }
.ms-srow__tag { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ms-font-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--ms-indigo); text-transform: uppercase; }
.ms-srow h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .7rem 0 1rem; }
.ms-srow p.lead { font-size: 1.05rem; line-height: 1.7; color: var(--ms-muted); }
.ms-srow__art {
    aspect-ratio: 4 / 3;
    border-radius: var(--ms-radius-lg);
    background: var(--ms-grad-hero);
    display: grid; place-items: center;
    position: relative; overflow: hidden;
    box-shadow: var(--ms-shadow);
}
.ms-srow__art i { font-size: 6rem; color: #fff; opacity: .92; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); position: relative; z-index: 1; }
.ms-srow__art::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(0,209,249,.5), transparent 70%); filter: blur(30px); }
.ms-srow__art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 34px 34px; }

/* ---------- Timeline (about journey) ----------------------------------- */
.ms-timeline { position: relative; padding-left: 0; }
.ms-timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--ms-indigo), var(--ms-magenta)); opacity: .3; }
.ms-tl { position: relative; display: flex; gap: 1.4rem; padding-bottom: 2rem; }
.ms-tl:last-child { padding-bottom: 0; }
.ms-tl__dot { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--ms-grad); font-size: 1.25rem; box-shadow: var(--ms-shadow-brand); z-index: 1; }
.ms-tl__body h4 { font-size: 1.15rem; margin: .3rem 0 .35rem; }
.ms-tl__body p { margin: 0; font-size: .96rem; }
.ms-tl__body .yr { font-family: var(--ms-font-head); font-weight: 700; color: var(--ms-indigo); font-size: .85rem; letter-spacing: .04em; }

/* ---------- Split feature (about approach / home who-we-are) ------------ */
.ms-split__media { border-radius: var(--ms-radius-lg); overflow: hidden; box-shadow: var(--ms-shadow); position: relative; }
.ms-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Big CTA variants / misc ------------------------------------ */
.ms-mini-quote {
    background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius);
    padding: 1.8rem; box-shadow: var(--ms-shadow-sm); height: 100%;
}
.ms-mini-quote p { color: var(--ms-text); font-size: 1rem; line-height: 1.65; }
.ms-mini-quote .who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }

.form-control { border-radius: 12px; border-color: var(--ms-line); }
.form-control:focus { border-color: var(--ms-indigo); box-shadow: 0 0 0 .2rem rgba(79,70,229,.12); }

@media (max-width: 767.98px) {
    .ms-srow__art { margin-top: 2rem; }
    .ms-srow--rev .ms-srow__art { order: -1; }
}

/* ---------- Legal / policy pages --------------------------------------- */
.ms-legal { color: var(--ms-text); font-size: 1.02rem; line-height: 1.8; }
.ms-legal h1, .ms-legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2rem 0 1rem; }
.ms-legal h2:first-child, .ms-legal h1:first-child { margin-top: 0; }
.ms-legal h3 { font-size: 1.2rem; margin: 1.8rem 0 .7rem; color: var(--ms-ink); }
.ms-legal h4 { font-size: 1.05rem; margin: 1.4rem 0 .5rem; }
.ms-legal p { color: var(--ms-text); margin-bottom: 1rem; }
.ms-legal ul, .ms-legal ol { margin: 0 0 1.2rem 0; padding-left: 1.3rem; }
.ms-legal li { margin-bottom: .5rem; }
.ms-legal a { color: var(--ms-indigo); text-decoration: underline; text-underline-offset: 2px; }
.ms-legal a:hover { color: var(--ms-violet); }
.ms-legal strong { color: var(--ms-ink); }
.ms-legal table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.ms-legal th, .ms-legal td { border: 1px solid var(--ms-line); padding: .7rem .9rem; text-align: left; }
.ms-legal th { background: var(--ms-bg-alt); }
.ms-legal hr { border: 0; border-top: 1px solid var(--ms-line); margin: 2rem 0; }

/* ---------- Careers / jobs --------------------------------------------- */
.ms-job { background: #fff; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); box-shadow: var(--ms-shadow-sm); overflow: hidden; }
.ms-job__head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; padding: 1.6rem 1.8rem; border-bottom: 1px solid var(--ms-line); background: var(--ms-bg-alt); }
.ms-job__title h3 { font-size: 1.35rem; margin: 0 0 .5rem; }
.ms-job__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.ms-job__badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ms-indigo); background: var(--ms-grad-soft); border: 1px solid rgba(79,70,229,.18); padding: .35rem .8rem; border-radius: 999px; }
.ms-job__body { padding: 1.8rem; }
.ms-job__body h5 { font-family: var(--ms-font-head); font-size: 1.02rem; margin: 1.2rem 0 .6rem; color: var(--ms-ink); }
.ms-job__body h5:first-child { margin-top: 0; }
.ms-job__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Alerts ------------------------------------------------------ */
.ms-alert { border-radius: 14px; padding: 1rem 1.2rem; font-weight: 500; border: 1px solid transparent; display: flex; align-items: center; gap: .7rem; }
.ms-alert--ok { background: #e8f9ef; border-color: #b7ebc9; color: #0f7a3d; }
.ms-alert--err { background: #fdecef; border-color: #f6c2cc; color: #b02a3a; }
.field-validation-error { color: #b02a3a; font-size: .85rem; display: block; margin-top: .3rem; }
.input-validation-error { border-color: #e0637a !important; }
