/* =====================================================================
   Header refresh — palette from the brand artwork
   navy #0f1220/#161a2a · indigo #533fcc · periwinkle #7087f6/#8382f4
   orchid #e186e6 · sky #5792d9 · lavender #b29efa
   Loaded after every other stylesheet so it is the single source of
   truth for the header's look on all public pages.
   ===================================================================== */
:root{
    --nxh-grad:linear-gradient(90deg,#e186e6 0%,#8382f4 50%,#5792d9 100%);
    --nxh-cta:linear-gradient(120deg,#533fcc 0%,#6b07a1 100%);
    --nxh-glass:rgba(255,255,255,.78);
    --nxh-edge:rgba(83,63,204,.14);
    --nxh-ink:#161a2a;
    --nxh-hover:rgba(112,135,246,.12);
    --nxh-shadow:0 10px 34px rgba(30,36,60,.10);
}
html:not(.nm-light){
    --nxh-glass:rgba(22,26,42,.72);
    --nxh-edge:rgba(178,158,250,.16);
    --nxh-ink:#f4f5fb;
    --nxh-hover:rgba(178,158,250,.12);
    --nxh-shadow:0 14px 40px rgba(0,0,0,.35);
}

/* Glass bar with a gradient hairline taken from the artwork */
html.nm-polished-theme .nm-header-1-wrap{
    position:relative;
    background:var(--nxh-glass)!important;
    border:1px solid var(--nxh-edge)!important;
    border-radius:18px!important;
    box-shadow:var(--nxh-shadow)!important;
    -webkit-backdrop-filter:blur(16px) saturate(1.5);
    backdrop-filter:blur(16px) saturate(1.5);
    transition:box-shadow .3s ease,background .3s ease,transform .3s ease;
}
html.nm-polished-theme .nm-header-1-wrap::after{
    content:"";position:absolute;left:18px;right:18px;bottom:-1px;height:2px;
    border-radius:2px;background:var(--nxh-grad);opacity:.85;pointer-events:none;
}

/* Scroll progress: fills the hairline as the reader moves down the page */
html.nm-polished-theme .nm-header-1-wrap .nx-header-progress{
    position:absolute;left:18px;right:18px;bottom:-1px;height:2px;border-radius:2px;
    background:var(--nxh-grad);transform-origin:left center;transform:scaleX(var(--nx-progress,0));
    box-shadow:0 0 12px rgba(225,134,230,.65);pointer-events:none;z-index:1;
}
html.nm-polished-theme .nm-header-1-wrap:has(.nx-header-progress)::after{opacity:.22}

/* Navigation: calm labels, tinted pill on hover, gradient underline */
html.nm-polished-theme .nm-main-navigation #main-nav > li > a{
    position:relative;border-radius:10px!important;padding-inline:12px!important;
    font-weight:600!important;letter-spacing:-.005em;
    transition:background-color .2s ease,color .2s ease!important;
}
html.nm-polished-theme .nm-main-navigation #main-nav > li > a::after{
    content:"";position:absolute;left:12px;right:12px;bottom:3px;height:2px;border-radius:2px;
    background:var(--nxh-grad);transform:scaleX(0);transform-origin:left;transition:transform .25s ease;
}
html.nm-polished-theme .nm-main-navigation #main-nav > li:hover > a,
html.nm-polished-theme .nm-main-navigation #main-nav > li > a:focus-visible{background:var(--nxh-hover)!important}
html.nm-polished-theme .nm-main-navigation #main-nav > li:hover > a::after,
html.nm-polished-theme .nm-main-navigation #main-nav > li.current-menu-item > a::after,
html.nm-polished-theme .nm-main-navigation #main-nav > li.current-menu-ancestor > a::after,
html.nm-polished-theme .nm-main-navigation #main-nav > li > a[aria-current="page"]::after{transform:scaleX(1)}

/* Dropdown chevrons: small, light, and they turn when the menu opens */
html.nm-polished-theme .nm-main-navigation #main-nav > li > a > i.flaticon-down{
    font-size:9px!important;margin-left:6px;opacity:.7;display:inline-block;
    transition:transform .25s ease,opacity .2s ease;
}
html.nm-polished-theme .nm-main-navigation #main-nav > li:hover > a > i.flaticon-down{transform:rotate(180deg);opacity:1}

/* Dropdowns pick up the same glass and gradient edge */
html.nm-polished-theme .nm-main-navigation #main-nav .dropdown-menu{
    border:1px solid var(--nxh-edge)!important;border-radius:16px!important;
    box-shadow:0 22px 50px rgba(30,36,60,.18)!important;overflow:hidden;
}
html.nm-polished-theme .nm-main-navigation #main-nav .dropdown-menu::before{
    content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--nxh-grad);pointer-events:none;
}

/* Primary call to action: indigo to deep-purple with an orchid arrow chip */
html.nm-polished-theme .nm-header-1-action-link .nm-pr-btn-1{
    background:var(--nxh-cta)!important;border-radius:999px!important;
    box-shadow:0 10px 26px rgba(83,63,204,.35);transition:box-shadow .25s ease,transform .25s ease;
}
html.nm-polished-theme .nm-header-1-action-link .nm-pr-btn-1:hover{box-shadow:0 14px 34px rgba(225,134,230,.45);transform:translateY(-1px)}
html.nm-polished-theme .nm-header-1-action-link .nm-pr-btn-1 .text,
html.nm-polished-theme .nm-header-1-action-link .nm-pr-btn-1:hover .text{color:#fff!important}

/* Theme switch and mobile menu button share one rounded-square style */
html.nm-polished-theme .nm-header-1-action-link .nm-theme-toggle,
html.nm-polished-theme .nm-header-1-action-link .nm-offcanvas-btn-1{
    border-radius:12px!important;border:1px solid var(--nxh-edge)!important;
    background:var(--nxh-hover)!important;color:var(--nxh-ink)!important;
    transition:background .2s ease,transform .2s ease;
}
html.nm-polished-theme .nm-header-1-action-link .nm-offcanvas-btn-1{background:var(--nxh-cta)!important;color:#fff!important;border-color:transparent!important}
html.nm-polished-theme .nm-header-1-action-link .nm-offcanvas-btn-1 *{color:#fff!important}
html.nm-polished-theme .nm-header-1-action-link :is(.nm-theme-toggle,.nm-offcanvas-btn-1):hover{transform:translateY(-1px)}

/* Sticky state: slightly tighter and more opaque once the page scrolls */
html.nm-polished-theme .wa_sticky .nm-header-1-wrap{--nxh-shadow:0 14px 40px rgba(30,36,60,.16)}
html.nm-polished-theme:not(.nm-light) .wa_sticky .nm-header-1-wrap{background:rgba(15,18,32,.86)!important}
html.nm-polished-theme.nm-light .wa_sticky .nm-header-1-wrap{background:rgba(255,255,255,.9)!important}

@media (prefers-reduced-motion:reduce){
    html.nm-polished-theme .nm-main-navigation #main-nav > li > a::after,
    html.nm-polished-theme .nm-main-navigation #main-nav > li > a > i.flaticon-down{transition:none}
}

/* =====================================================================
   Nimo-style fluid mouse trail (site-wide). The canvas never takes
   clicks; it is hidden on touch devices and for reduced motion.
   ===================================================================== */
.nx-mouse-trail{
    filter:none!important;-webkit-filter:none!important;
    position:fixed;inset:0;width:100vw;height:100vh;z-index:998;
    pointer-events:none;opacity:0;transition:opacity .6s ease;mix-blend-mode:normal;
}
.nx-mouse-trail.is-ready{opacity:.85}
html.nm-light .nx-mouse-trail.is-ready{opacity:.7}
@media (hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){.nx-mouse-trail{display:none}}

/* =====================================================================
   Menu text colours (both themes)
   ===================================================================== */
/* Dropdown panels are fully opaque so page text never shows through */
html.nm-polished-theme:not(.nm-light) #main-nav .dropdown-menu{background-color:#161a2a!important}
/* Mega-menu active category: an ID-level dark-mode rule forced pale text on
   the white pill. Use a gradient pill with white text in both themes. */
html.nm-polished-theme #main-nav .nx-mega-menu .nx-mega-menu__category.is-active,
html.nm-polished-theme #main-nav .nx-mega-menu .nx-mega-menu__category.is-active:hover{
    background:linear-gradient(120deg,#533fcc,#6b07a1)!important;
    color:#fff!important;-webkit-text-fill-color:#fff!important;
    box-shadow:0 8px 22px rgba(83,63,204,.35)!important;
}
html.nm-polished-theme #main-nav .nx-mega-menu .nx-mega-menu__category.is-active i{color:#fff!important}
/* Mobile drawer is always a white panel: keep dark-on-light highlights */
html.nm-polished-theme #m-main-nav a[aria-current="page"],
html.nm-polished-theme #m-main-nav .current-menu-item > a,
html.nm-polished-theme #m-main-nav .current-menu-ancestor > a{
    background:#f6f3ff!important;color:#3d2fb0!important;-webkit-text-fill-color:#3d2fb0!important;
}
/* The category label sits in its own span, which a dark-mode rule also tinted */
html.nm-polished-theme #main-nav .nx-mega-menu .nx-mega-menu__category.is-active *{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Homepage service tabs, light mode: a navy hover fill hid the navy label.
   Use a lavender tint so the label stays dark and readable. */
html.nm-polished-theme.nm-light .nm-services-1-tabs-btn .nav-link:hover,
html.nm-polished-theme.nm-light .nm-services-1-tabs-btn .nav-link.active{
    background:#ece7fe!important;border-color:#d9cffd!important;
}
html.nm-polished-theme.nm-light .nm-services-1-tabs-btn .nav-link:hover,
html.nm-polished-theme.nm-light .nm-services-1-tabs-btn .nav-link:hover *,
html.nm-polished-theme.nm-light .nm-services-1-tabs-btn .nav-link.active,
html.nm-polished-theme.nm-light .nm-services-1-tabs-btn .nav-link.active *{
    color:#3d2fb0!important;-webkit-text-fill-color:#3d2fb0!important;
}

/* =====================================================================
   One button style for the whole site (.nm-pr-btn-1)
   Indigo to deep-purple pill, white label, plain white arrow (no circle).
   Hover darkens the gradient and nudges the arrow; text stays white so
   it reads clearly in both themes.
   ===================================================================== */
html.nm-polished-theme .nm-pr-btn-1{
    background:linear-gradient(120deg,#533fcc 0%,#6b07a1 100%)!important;
    border:0!important;border-radius:999px!important;
    box-shadow:0 10px 26px rgba(83,63,204,.30);
    transition:box-shadow .25s ease,transform .25s ease,filter .25s ease!important;
}
html.nm-polished-theme .nm-pr-btn-1:hover,
html.nm-polished-theme .nm-pr-btn-1:focus-visible{
    background:linear-gradient(120deg,#3d2fb0 0%,#4a0570 100%)!important;
    box-shadow:0 14px 32px rgba(107,7,161,.38);transform:translateY(-1px);
}
html.nm-polished-theme .nm-pr-btn-1 .text,
html.nm-polished-theme .nm-pr-btn-1:hover .text,
html.nm-polished-theme .nm-pr-btn-1 .text::before,
html.nm-polished-theme .nm-pr-btn-1 .text::after{color:#fff!important;-webkit-text-fill-color:#fff!important}
html.nm-polished-theme .nm-pr-btn-1 .icon,
html.nm-polished-theme .nm-pr-btn-1:hover .icon,
html.nm-polished-theme .nm-header-1-action-link .nm-pr-btn-1 .icon{
    background:transparent!important;box-shadow:none!important;border:0!important;outline:0!important;
    width:26px!important;height:26px!important;flex:0 0 26px!important;border-radius:0!important;color:#fff!important;
}
html.nm-polished-theme .nm-pr-btn-1 .icon i,
html.nm-polished-theme .nm-pr-btn-1:hover .icon i{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:16px}

/* =====================================================================
   Breadcrumb trail: glass pill with palette chevrons (replaces the teal
   double-arrow image from the original theme)
   ===================================================================== */
html.nm-polished-theme .nm-breadcrumb-list .bread-crumb{
    display:inline-flex!important;flex-wrap:wrap;align-items:center;gap:2px;
    padding:7px 16px;border-radius:999px;
    background:rgba(255,255,255,.72);border:1px solid rgba(83,63,204,.14);
    box-shadow:0 6px 18px rgba(30,36,60,.06);
    -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
html.nm-polished-theme:not(.nm-light) .nm-breadcrumb-list .bread-crumb{
    background:rgba(30,36,60,.6);border-color:rgba(178,158,250,.18);box-shadow:none;
}
html.nm-polished-theme .nm-breadcrumb-list :is(a,span){font-size:14px!important;line-height:1.6!important;font-weight:500}
html.nm-polished-theme .nm-breadcrumb-list a{padding-right:22px!important;margin-right:6px!important}
html.nm-polished-theme .nm-breadcrumb-list a::after{
    background:none!important;width:6px!important;height:6px!important;right:4px!important;top:50%!important;
    border-top:2px solid #8382f4;border-right:2px solid #8382f4;border-radius:1px;
    transform:translateY(-50%) rotate(45deg)!important;
}
html.nm-polished-theme .nm-breadcrumb-list li:first-child a::before{
    content:"\f015";font-family:"Font Awesome 6 Free","Font Awesome 5 Free";font-weight:900;
    margin-right:7px;font-size:12px;color:#533fcc;
}
html.nm-polished-theme:not(.nm-light) .nm-breadcrumb-list li:first-child a::before{color:#b29efa}
html.nm-polished-theme .nm-breadcrumb-list li:last-child span{font-weight:700!important;opacity:1!important}
/* Light-mode dropdown link rules are more specific; match them for the active pill */
html.nm-polished-theme.nm-light body #main-nav .dropdown-menu .nx-mega-menu__category.is-active,
html.nm-polished-theme.nm-light body #main-nav .dropdown-menu .nx-mega-menu__category.is-active *,
html.nm-polished-theme:not(.nm-light) body #main-nav .dropdown-menu .nx-mega-menu__category.is-active,
html.nm-polished-theme:not(.nm-light) body #main-nav .dropdown-menu .nx-mega-menu__category.is-active *{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Dropdown labels are split into per-word/per-letter elements by the hover
   text animation. As flex items they each got the flex gap, creating wide
   word spacing. Lay the link out as normal text instead. */
html.nm-polished-theme :is(#main-nav, #m-main-nav) .dropdown-menu:not(.nx-mega-menu) a{display:block!important;gap:0!important;white-space:nowrap}
html.nm-polished-theme :is(#main-nav, #m-main-nav) .dropdown-menu:not(.nx-mega-menu) a .nx-menu-item-icon{display:inline-block;width:20px;margin-right:10px;text-align:center}
