/* ==========================================================================
   TM SOLUTECH - NAVBAR
   Palette is sampled from the logo mark: sky → azure → blue → navy,
   leaf greens, and golden yellow → orange.
   ========================================================================== */

:root {
    --tm-sky: #4FCFFF;
    --tm-azure: #0AAEE0;
    --tm-blue: #1E75B0;
    --tm-navy: #173E6E;
    --tm-navy-deep: #162033;
    --tm-green: #9BC73B;
    --tm-green-dark: #62822A;
    --tm-yellow: #FDC943;
    --tm-orange: #F4A21E;
    --tm-orange-dark: #E57E27;
    --tm-ink: #1F1A17;

    --tm-gradient-brand: linear-gradient(135deg, #1E8FD0 0%, #1E75B0 55%, #16508E 100%);
    --tm-gradient-spectrum: linear-gradient(90deg, var(--tm-sky) 0%, var(--tm-azure) 18%, var(--tm-navy) 40%, var(--tm-green) 62%, var(--tm-yellow) 80%, var(--tm-orange-dark) 100%);

    --nav-height: 76px;
}

html { scroll-padding-top: calc(var(--nav-height) + 16px); }

/* -------------------------------------------------------
   BAR
------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 0.9rem 0;
    transition: padding 0.35s var(--ease-premium);
}

/* Glass background lives on a pseudo-element so .navbar itself has no
   backdrop-filter — otherwise it would become the containing block for the
   position:fixed mobile drawer and trap it inside the bar. */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(10, 36, 68, 0.07);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled { padding: 0.55rem 0; }
/* Open drawer must sit above the cookie notice (1150) and toasts (1200) */
.navbar.menu-open { z-index: 1300; }
.navbar.scrolled::before {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px -12px rgba(10, 12, 16, 0.18);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
}

/* -------------------------------------------------------
   BRAND
------------------------------------------------------- */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-premium);
}
.navbar-brand:hover { transform: translateY(-1px); }

.brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: height 0.35s var(--ease-premium);
}
.navbar.scrolled .brand-logo-img { height: 38px; }

/* -------------------------------------------------------
   DESKTOP LINKS
------------------------------------------------------- */
.navbar-nav-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(10, 36, 68, 0.035);
    border: 1px solid rgba(10, 36, 68, 0.08);
    border-radius: var(--radius-full);
    padding: 0.3rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.15rem;
    position: relative;
}

/* Sliding hover pill (JS-positioned) */
.nav-indicator {
    position: absolute;
    top: 0.3rem;
    left: 0;
    height: calc(100% - 0.6rem);
    width: 0;
    background: #ffffff;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 10px rgba(10, 12, 16, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-premium), width 0.4s var(--ease-premium), opacity 0.2s ease;
    z-index: 0;
}

.nav-item { position: relative; z-index: 1; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.005em;
    color: #2B3350;
    padding: 0.55rem 1.05rem;
    border-radius: var(--radius-full);
    transition: color 0.25s ease, transform 0.25s var(--ease-premium);
    position: relative;
    white-space: nowrap;
}
.nav-link:hover { color: var(--tm-navy); }
.nav-link:active { transform: scale(0.97); }

.nav-link-icon { display: none; }

/* Active page: navy text + a spectrum underline taken from the logo */
.nav-link.active { color: var(--tm-navy); }
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--tm-azure), var(--tm-green), var(--tm-orange));
    transform: translateX(-50%);
}
.has-dropdown .nav-link.active::after { left: calc(50% - 0.55rem); }

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--tm-blue);
    transition: transform 0.3s var(--ease-premium);
}
.has-dropdown:hover .dropdown-arrow,
.has-dropdown:focus-within .dropdown-arrow { transform: rotate(180deg); }

/* -------------------------------------------------------
   MEGA DROPDOWN (desktop)
------------------------------------------------------- */
/* Dropdowns are centred under the whole nav pill (not their own link), so
   wide panels stay on-screen whichever item opens them. */
.navbar-nav-container .has-dropdown { position: static; }

.mega-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.985);
    transform-origin: top center;
    width: min(720px, calc(100vw - 2rem));
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 40px 80px -20px rgba(10, 12, 16, 0.35), 0 0 0 1px rgba(10, 36, 68, 0.06);
    opacity: 0;
    visibility: hidden;
    /* Small close delay = hover intent, so diagonal mouse moves don't flicker it shut */
    transition: opacity 0.25s ease 0.08s, transform 0.3s var(--ease-premium) 0.08s, visibility 0s linear 0.33s;
    z-index: 1001;
}
/* Invisible bridge across the gap between pill and panel */
.mega-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}
.mega-dropdown-inner { display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; }

.has-dropdown:hover .mega-dropdown,
.has-dropdown:focus-within .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition: opacity 0.3s var(--ease-premium), transform 0.4s var(--ease-premium), visibility 0s;
}

/* -------------------------------------------------------
   ABOUT MEGA-MENU (feature panel + link cards)
------------------------------------------------------- */
.mega-about { width: min(800px, calc(100vw - 2rem)); }
.mega-about-inner { flex-direction: row; }

/* Join Us: two stacked cards beside the feature panel */
.mega-join { width: min(620px, calc(100vw - 2rem)); }
.mega-join .mega-about-grid { grid-template-columns: 1fr; align-content: center; }

.mega-about-feature {
    position: relative;
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 1.6rem 1.5rem;
    color: var(--gray-800);
    background: linear-gradient(180deg, #F8FAFE 0%, #F1F4FB 100%);
    border-right: 1px solid rgba(10, 36, 68, 0.07);
    overflow: hidden;
    isolation: isolate;
}

/* Decorative layers: logo-colour aurora + triangle mosaic echoing the mark */
.maf-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.maf-aurora { position: absolute; border-radius: 50%; filter: blur(46px); }
.maf-aurora-blue   { width: 210px; height: 210px; top: -90px; right: -60px; background: rgba(10, 174, 224, 0.28); }
.maf-aurora-green  { width: 170px; height: 170px; top: 38%; left: -90px; background: rgba(155, 199, 59, 0.22); }
.maf-aurora-orange { width: 190px; height: 190px; bottom: -100px; right: -50px; background: rgba(244, 162, 30, 0.24); }
.maf-mosaic {
    position: absolute;
    top: 14px;
    right: -18px;
    width: 128px;
    height: auto;
    opacity: 0.16;
    transform: rotate(8deg);
    -webkit-mask-image: linear-gradient(225deg, #000 20%, transparent 85%);
            mask-image: linear-gradient(225deg, #000 20%, transparent 85%);
}
.maf-mosaic polygon { transform-box: fill-box; transform-origin: center; }
.maf-sheen {
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: skewX(-18deg);
}
.has-dropdown:hover .maf-sheen,
/* Sweep on open, then again every 5s while the menu stays open (1.4s sweep + 3.6s rest) */
.has-dropdown:focus-within .maf-sheen { animation: mafSheenLoop 5s linear 0.15s infinite both; }
.has-dropdown:hover .maf-aurora-blue   { animation: mafDrift 9s ease-in-out infinite alternate; }
.has-dropdown:hover .maf-aurora-green  { animation: mafDrift 11s ease-in-out infinite alternate-reverse; }
.has-dropdown:hover .maf-aurora-orange { animation: mafDrift 10s ease-in-out infinite alternate; }
.has-dropdown:hover .maf-mosaic polygon { animation: mafTile 0.6s var(--ease-premium) backwards; }
.has-dropdown:hover .maf-mosaic polygon:nth-child(2) { animation-delay: 0.04s; }
.has-dropdown:hover .maf-mosaic polygon:nth-child(3) { animation-delay: 0.08s; }
.has-dropdown:hover .maf-mosaic polygon:nth-child(4) { animation-delay: 0.12s; }
.has-dropdown:hover .maf-mosaic polygon:nth-child(5) { animation-delay: 0.16s; }
.has-dropdown:hover .maf-mosaic polygon:nth-child(6) { animation-delay: 0.2s; }
.has-dropdown:hover .maf-mosaic polygon:nth-child(7) { animation-delay: 0.24s; }
.has-dropdown:hover .maf-mosaic polygon:nth-child(8) { animation-delay: 0.28s; }
.has-dropdown:hover .maf-mosaic polygon:nth-child(9) { animation-delay: 0.32s; }
@keyframes mafSheen { from { left: -60%; } to { left: 130%; } }
@keyframes mafSheenLoop {
    0%   { left: -60%; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
    28%  { left: 130%; }
    100% { left: 130%; }
}
@keyframes mafDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-20px, 16px) scale(1.12); } }
@keyframes mafTile { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

.maf-top { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.2rem; }
.maf-emblem {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 10px 22px -12px rgba(10, 12, 16, 0.45), 0 0 0 1px rgba(10, 36, 68, 0.06);
}
.maf-emblem img { width: 28px; height: auto; }
.maf-eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.32rem 0.75rem 0.32rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--tm-navy);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(10, 36, 68, 0.1);
    box-shadow: 0 4px 12px -8px rgba(10, 12, 16, 0.4);
}
.maf-dot {
    position: relative; width: 7px; height: 7px; border-radius: 50%;
    background: var(--tm-green); box-shadow: 0 0 6px rgba(155, 199, 59, 0.9);
}
.maf-dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid var(--tm-green); opacity: 0;
    animation: mafPulse 2s ease-out infinite;
}
@keyframes mafPulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

.maf-title {
    font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em;
    color: var(--gray-900); margin: 0 0 0.6rem;
}
.maf-title-accent {
    background: linear-gradient(90deg, var(--tm-azure) 0%, var(--tm-green-dark) 50%, var(--tm-orange-dark) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.maf-desc { font-size: 0.8125rem; line-height: 1.6; color: var(--gray-500); margin: 0 0 1.35rem; }

.maf-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    width: 100%;
    margin-bottom: 1.4rem;
}
.maf-stat {
    --stat-color: var(--tm-blue);
    position: relative;
    min-width: 0;
    padding: 0.8rem 0.85rem 0.75rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(10, 36, 68, 0.07);
    box-shadow: 0 10px 22px -18px rgba(10, 12, 16, 0.45);
    overflow: hidden;
}
.maf-stat:nth-child(2) { --stat-color: var(--tm-orange-dark); }
.maf-stat::before {
    content: ''; position: absolute; top: 0; left: 0.85rem; right: 0.85rem; height: 3px;
    border-radius: 0 0 3px 3px; background: var(--stat-color);
}
.maf-stat-value {
    display: block;
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--tm-navy);
}
.maf-stat-label { display: block; margin-top: 0.35rem; font-size: 0.7rem; line-height: 1.35; color: var(--gray-500); }

.maf-points { display: grid; grid-template-columns: 1fr; gap: .4rem; width: 100%; margin: -.4rem 0 1.4rem; padding: 0; list-style: none; }
.maf-points li { display: flex; align-items: center; gap: .6rem; padding: .42rem .65rem; border-radius: 12px; font-size: .8rem; line-height: 1.35; color: #4B5563; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 18px -14px rgba(11, 18, 32, .35); }
.maf-points li b { color: #1F2430; }
.maf-points i { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; color: #fff; background: linear-gradient(135deg, #1E8FD0, #16508E); }
.maf-points li:nth-child(4n+2) i { background: linear-gradient(135deg, #9BC73B, #5C8A1E); }
.maf-points li:nth-child(4n+3) i { background: linear-gradient(135deg, #FDC943, #E57E27); }
.maf-points li:nth-child(4n+4) i { background: linear-gradient(135deg, #4FCFFF, #1E75B0); }
.maf-cta {
    display: inline-flex; align-items: center; gap: 0.7rem;
    margin-top: auto;
    padding: 0.4rem 0.4rem 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1E8FD0 0%, #1E75B0 55%, #16508E 100%);
    box-shadow: 0 14px 26px -14px rgba(10, 12, 16, 0.75);
    transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}
.maf-cta-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 0.72rem; color: var(--tm-navy);
    background: #ffffff;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
.maf-cta-arrow i { transition: transform 0.35s var(--ease-premium); }
.maf-cta:hover { color: #ffffff; transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(10, 12, 16, 0.8); }
.maf-cta:hover .maf-cta-arrow { color: #ffffff; background: linear-gradient(135deg, var(--tm-orange), var(--tm-orange-dark)); }
.maf-cta:hover .maf-cta-arrow i { animation: mafArrow 0.5s var(--ease-premium); }
@keyframes mafArrow { 0% { transform: translateX(0); } 45% { transform: translateX(18px); } 46% { transform: translateX(-18px); } 100% { transform: translateX(0); } }

.mega-about-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
    align-content: start;
}
/* A three-item menu (About Us) reads best as a list of full-width rows */
.mega-about-grid.is-list { grid-template-columns: 1fr; gap: .25rem; }
.mega-about-grid.is-list .mega-about-card { align-items: center; padding: .7rem .9rem; }
.mega-about-grid.is-list .mega-about-card-more { display: none; }

.mega-about-card {
    --card-color: var(--tm-blue);
    --card-tint: rgba(30, 117, 176, 0.09);
    position: relative;
    display: flex;
    gap: 0.85rem;
    padding: 1.1rem;
    border-radius: 16px;
    border: 1px solid transparent;
    color: inherit;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}
.mega-about-card.accent-navy   { --card-color: var(--tm-navy); --card-tint: rgba(10, 36, 68, 0.08); }
.mega-about-card.accent-green  { --card-color: var(--tm-green-dark); --card-tint: rgba(155, 199, 59, 0.15); }
.mega-about-card.accent-orange { --card-color: var(--tm-orange-dark); --card-tint: rgba(244, 162, 30, 0.14); }

.mega-about-card:hover,
.mega-about-card:focus-visible {
    background: #F6F8FC;
    border-color: rgba(10, 36, 68, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -14px rgba(10, 12, 16, 0.3);
}
.mega-about-card.is-current { background: var(--card-tint); }

.mega-about-card-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: var(--card-tint);
    color: var(--card-color);
    transition: var(--transition);
}
.mega-about-card:hover .mega-about-card-icon { background: var(--card-color); color: #ffffff; transform: rotate(-5deg) scale(1.05); }

.mega-about-card-body { display: flex; flex-direction: column; min-width: 0; }
.mega-about-card-title { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--gray-900); margin-bottom: 0.25rem; }
.mega-about-card-desc { font-size: 0.8rem; line-height: 1.5; color: var(--gray-500); margin-bottom: 0.6rem; }
.mega-about-card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--card-color);
}
.mega-about-card-more i { font-size: 0.7rem; transition: transform 0.25s var(--ease-premium); }
.mega-about-card:hover .mega-about-card-more i { transform: translateX(4px); }

.has-dropdown:hover .mega-about-card,
.has-dropdown:focus-within .mega-about-card { animation: dropdownItemIn 0.4s var(--ease-premium) backwards; }
.has-dropdown:hover .mega-about-card:nth-child(2) { animation-delay: 0.05s; }
.has-dropdown:hover .mega-about-card:nth-child(3) { animation-delay: 0.1s; }
.has-dropdown:hover .mega-about-card:nth-child(4) { animation-delay: 0.15s; }
.has-dropdown:hover .mega-about-card:nth-child(5) { animation-delay: 0.2s; }
.has-dropdown:hover .mega-about-card:nth-child(6) { animation-delay: 0.25s; }

.has-dropdown:hover .mega-dropdown-category,
.has-dropdown:focus-within .mega-dropdown-category {
    animation: dropdownItemIn 0.4s var(--ease-premium) backwards;
}
.has-dropdown:hover .mega-dropdown-category:nth-child(1) { animation-delay: 0.04s; }
.has-dropdown:hover .mega-dropdown-category:nth-child(2) { animation-delay: 0.08s; }
.has-dropdown:hover .mega-dropdown-category:nth-child(3) { animation-delay: 0.12s; }
.has-dropdown:hover .mega-dropdown-category:nth-child(4) { animation-delay: 0.16s; }
.has-dropdown:hover .mega-dropdown-category:nth-child(5) { animation-delay: 0.2s; }
.has-dropdown:hover .mega-dropdown-category:nth-child(6) { animation-delay: 0.24s; }
@keyframes dropdownItemIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-all-services { display: none; }

.mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    padding: 1rem;
}

.mega-dropdown-category {
    --cat-color: var(--tm-blue);
    --cat-tint: rgba(30, 117, 176, 0.09);
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    transition: background 0.25s ease, opacity 0.3s ease;
}
/* Cycle the three logo colour families across categories */
.mega-dropdown-category:nth-child(3n+2) { --cat-color: var(--tm-green-dark); --cat-tint: rgba(155, 199, 59, 0.14); }
.mega-dropdown-category:nth-child(3n)   { --cat-color: var(--tm-orange-dark); --cat-tint: rgba(244, 162, 30, 0.13); }

.mega-dropdown-category:hover { background: #F6F8FC; }
.mega-dropdown-grid.has-focus .mega-dropdown-category:not(:hover) { opacity: 0.5; }

.category-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}
.category-icon-badge {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cat-tint);
    color: var(--cat-color);
    font-size: 1rem;
    transition: var(--transition);
}
.mega-dropdown-category:hover .category-icon-badge {
    background: var(--cat-color);
    color: #ffffff;
    transform: scale(1.06) rotate(-4deg);
}
.category-title-wrap h6 { margin: 0; font-size: 0.9rem; line-height: 1.3; flex: 1; }
.category-title-wrap a { color: var(--gray-900); }
.category-title-wrap a:hover { color: var(--cat-color); }

.category-toggle { display: none; }

.mega-dropdown-links { display: flex; flex-direction: column; gap: 0.35rem; }

.service-menu-link {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: var(--gray-600);
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0.25rem 0;
    transition: var(--transition);
}
.service-menu-link i {
    font-size: 0.7rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
    color: var(--cat-color);
}
.service-menu-link:hover { color: var(--cat-color); padding-left: 0.2rem; }
.service-menu-link:hover i { opacity: 1; transform: translateX(0); }
.service-menu-more { font-weight: 600; color: var(--cat-color); }
.service-menu-more i { opacity: 1; transform: none; margin-top: 0.28rem; }


/* -------------------------------------------------------
   SERVICES MEGA-MENU (category rail + swappable panels)
------------------------------------------------------- */
.mega-services { width: min(920px, calc(100vw - 2rem)); }
.ms-mobile { display: none; }

/* Height follows the content; capped to the viewport on short screens */
.ms-layout { display: flex; max-height: calc(100vh - var(--nav-height, 76px) - 40px); }

.ms-rail {
    position: relative;
    flex: 0 0 290px;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 0.75rem 0.85rem;
    overflow-y: auto;
    scrollbar-width: none;
    background: linear-gradient(180deg, #F8FAFE 0%, #F1F4FB 100%);
    border-right: 1px solid rgba(10, 36, 68, 0.07);
    overflow: hidden;
    isolation: isolate;
}
.ms-rail-head { padding: 0 0.6rem 0.7rem; }
.ms-rail-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--gray-900);
}

.ms-tabs { position: relative; display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.75rem; }
.ms-tab-indicator {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px -14px rgba(10, 12, 16, 0.35), 0 0 0 1px rgba(10, 36, 68, 0.06);
    transition: transform 0.4s var(--ease-premium), height 0.4s var(--ease-premium);
    pointer-events: none;
}
.ms-tab-indicator::before {
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 3px;
    border-radius: 3px;
    background: var(--ms-accent, var(--tm-blue));
    transition: background 0.3s ease;
}

.ms-tab {
    --tab-color: var(--tm-blue);
    --tab-tint: rgba(30, 117, 176, 0.1);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    color: var(--gray-800);
    transition: color 0.25s ease;
}
.ms-tab.accent-green  { --tab-color: var(--tm-green-dark); --tab-tint: rgba(155, 199, 59, 0.16); }
.ms-tab.accent-orange { --tab-color: var(--tm-orange-dark); --tab-tint: rgba(244, 162, 30, 0.15); }
.ms-tab-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: var(--tab-color);
    background: var(--tab-tint);
    transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-premium);
}
.ms-tab-name { flex: 1; min-width: 0; font-family: var(--font-heading); font-weight: 700; font-size: 0.84rem; line-height: 1.3; color: var(--gray-900); }
.ms-tab-count {
    flex-shrink: 0;
    min-width: 1.45rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem; font-weight: 700; text-align: center;
    color: var(--tab-color);
    background: var(--tab-tint);
    transition: background 0.3s ease, color 0.3s ease;
}
.ms-tab.is-active .ms-tab-count { color: #ffffff; background: var(--tab-color); }
.ms-tab-chevron {
    font-size: 0.7rem;
    color: var(--tab-color);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease-premium);
}
.ms-tab.is-active .ms-tab-icon { background: var(--tab-color); color: #ffffff; transform: scale(1.04); }
.ms-tab.is-active .ms-tab-chevron { opacity: 1; transform: translateX(0); }

.ms-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.9rem 0.25rem 0;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tm-navy);
    border: 1px dashed rgba(10, 36, 68, 0.2);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.ms-all-link span { display: inline-flex; align-items: center; gap: 0.5rem; }
.ms-all-link > i { font-size: 0.75rem; transition: transform 0.25s var(--ease-premium); }
.ms-all-link:hover { color: var(--tm-navy); background: #ffffff; border-color: rgba(10, 36, 68, 0.35); border-style: solid; }
.ms-all-link:hover > i { transform: translateX(4px); }

.ms-expert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: auto 0.15rem 0;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #1E8FD0 0%, #1E75B0 55%, #16508E 100%);
    overflow: hidden;
    box-shadow: 0 14px 28px -16px rgba(10, 12, 16, 0.7);
    transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}
.ms-expert::after {
    content: '';
    position: absolute; top: -40px; right: -30px;
    width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 207, 255, 0.35), transparent 70%);
}
.ms-expert-icon {
    flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--tm-yellow);
    background: rgba(255, 255, 255, 0.1);
}
.ms-expert-text { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ms-expert-text strong { font-size: 0.82rem; color: #ffffff; }
.ms-expert-text span { font-size: 0.74rem; color: rgba(226, 230, 238, 0.78); }
.ms-expert-text span i { font-size: 0.65rem; margin-left: 0.2rem; transition: transform 0.25s var(--ease-premium); }
.ms-expert:hover { color: #ffffff; transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(10, 12, 16, 0.8); }
.ms-expert:hover .ms-expert-text span i { transform: translateX(3px); }

/* Panels stack in one grid cell so the menu height never jumps between categories */
.ms-panels { flex: 1; min-width: 0; display: grid; }
.ms-panel {
    --ms-color: var(--tm-blue);
    --ms-tint: rgba(30, 117, 176, 0.09);
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.35rem 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: opacity 0.25s ease, transform 0.35s var(--ease-premium), visibility 0s linear 0.35s;
}
.ms-panel.accent-green  { --ms-color: var(--tm-green-dark); --ms-tint: rgba(155, 199, 59, 0.15); }
.ms-panel.accent-orange { --ms-color: var(--tm-orange-dark); --ms-tint: rgba(244, 162, 30, 0.14); }
.ms-panel.is-active {
    opacity: 1;
    /* inherit, not visible: a visible child would escape the closed menu's
       visibility:hidden and catch hovers, popping the menu open by itself */
    visibility: inherit;
    transform: none;
    transition: opacity 0.35s ease 0.05s, transform 0.45s var(--ease-premium) 0.05s, visibility 0s;
}

.ms-panel-head { padding-bottom: 0.8rem; margin-bottom: 0.6rem; border-bottom: 1px solid rgba(10, 36, 68, 0.07); }
.ms-panel-eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ms-color);
}
.ms-panel-eyebrow::before { content: ''; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.ms-panel-head h5 { margin: 0.3rem 0 0.25rem; font-size: 1.15rem; color: var(--gray-900); }
.ms-panel-head p { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--gray-500); max-width: 520px; }

.ms-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.6rem; align-content: start; }
.ms-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    border: 1px solid transparent;
    color: inherit;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}
.ms-card-icon {
    flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    color: var(--ms-color);
    background: var(--ms-tint);
    transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-premium);
}
.ms-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ms-card-title {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem;
    font-family: var(--font-heading); font-weight: 700; font-size: 0.84rem; line-height: 1.35; color: var(--gray-900);
}
.ms-card-desc {
    margin-top: 0.2rem;
    font-size: 0.74rem; line-height: 1.45; color: var(--gray-500);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ms-card-arrow {
    align-self: center;
    font-size: 0.7rem;
    color: var(--ms-color);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease-premium);
}
.ms-card:hover,
.ms-card:focus-visible {
    background: #F6F8FC;
    border-color: rgba(10, 36, 68, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -16px rgba(10, 12, 16, 0.35);
}
.ms-card:hover .ms-card-icon { background: var(--ms-color); color: #ffffff; transform: rotate(-5deg) scale(1.05); }
.ms-card:hover .ms-card-arrow { opacity: 1; transform: translateX(0); }
.ms-card.is-current { background: var(--ms-tint); }

/* Staggered card entrance each time a panel becomes active */
.ms-panel.is-active .ms-card { animation: dropdownItemIn 0.45s var(--ease-premium) backwards; }
.ms-panel.is-active .ms-card:nth-child(2) { animation-delay: 0.04s; }
.ms-panel.is-active .ms-card:nth-child(3) { animation-delay: 0.08s; }
.ms-panel.is-active .ms-card:nth-child(4) { animation-delay: 0.12s; }
.ms-panel.is-active .ms-card:nth-child(5) { animation-delay: 0.16s; }
.ms-panel.is-active .ms-card:nth-child(6) { animation-delay: 0.2s; }
.ms-panel.is-active .ms-card:nth-child(7) { animation-delay: 0.24s; }
.ms-panel.is-active .ms-card:nth-child(8) { animation-delay: 0.28s; }

.ms-badge {
    display: inline-flex; align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.ms-badge-new { color: #ffffff; background: linear-gradient(135deg, var(--tm-green), var(--tm-green-dark)); }
.ms-badge-popular { color: #ffffff; background: linear-gradient(135deg, var(--tm-yellow), var(--tm-orange-dark)); }

.ms-panel-foot {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    border-top: 1px solid rgba(10, 36, 68, 0.06);
}
.ms-all-services {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.78rem; font-weight: 600;
    color: var(--gray-500);
    transition: color 0.2s ease;
}
.ms-all-services i { font-size: 0.72rem; }
.ms-all-services:hover { color: var(--tm-navy); }
.ms-explore {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.82rem; font-weight: 700;
    color: var(--ms-color, var(--tm-navy));
}
.ms-explore i { font-size: 0.72rem; transition: transform 0.25s var(--ease-premium); }
.ms-explore:hover { color: var(--ms-color, var(--tm-navy)); }
.ms-explore:hover i { transform: translateX(4px); }
.ms-more {
    padding: 0.12rem 0.5rem; border-radius: var(--radius-full);
    font-size: 0.68rem; color: var(--ms-color); background: var(--ms-tint);
}
.ms-empty { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

/* -------------------------------------------------------
   CTA
------------------------------------------------------- */
.navbar-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.btn-navbar-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    overflow: hidden;
    isolation: isolate;
    background: var(--tm-gradient-brand);
    color: #ffffff !important;
    padding: 0.72rem 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px -6px rgba(10, 36, 68, 0.5);
    transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}
/* Warm half of the logo fades in on hover */
.btn-navbar-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--tm-orange) 0%, var(--tm-orange-dark) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.btn-navbar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}
.btn-navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(229, 126, 39, 0.55);
}
.btn-navbar-cta:hover::after { opacity: 1; }
.btn-navbar-cta:hover::before { animation: navShimmer 0.9s ease; }
.btn-navbar-cta i { transition: transform 0.25s var(--ease-premium); }
.btn-navbar-cta:hover i { transform: translateX(3px); }
@keyframes navShimmer { to { left: 130%; } }

/* -------------------------------------------------------
   SCROLL PROGRESS (docked to the bar's bottom edge)
------------------------------------------------------- */
.nav-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    pointer-events: none;
    overflow: visible;
}
.nav-progress-bar {
    position: absolute;
    inset: 0;
    display: block;
    background: var(--tm-gradient-spectrum);
    background-size: 100vw 100%;
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
}
/* Glowing leading edge — positioned by JS alongside the bar */
.nav-progress::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(244, 162, 30, 0.35), 0 0 14px 3px rgba(244, 162, 30, 0.65);
    transform: translateX(var(--progress-x, 0px));
    opacity: var(--progress-tip, 0);
    transition: opacity 0.3s ease;
    will-change: transform;
}

/* -------------------------------------------------------
   MOBILE TOGGLE
------------------------------------------------------- */
.mobile-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(10, 36, 68, 0.06);
    border: 1px solid rgba(10, 36, 68, 0.1);
    cursor: pointer;
    transition: background 0.25s ease;
}
.mobile-toggle:hover { background: rgba(10, 36, 68, 0.1); }
.mobile-toggle .bar {
    position: absolute;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--tm-navy);
    transition: transform 0.35s var(--ease-premium), opacity 0.2s ease, width 0.35s var(--ease-premium);
}
.mobile-toggle .bar:nth-child(1) { top: 15px; width: 20px; }
.mobile-toggle .bar:nth-child(2) { top: 21px; width: 14px; background: var(--tm-azure); }
.mobile-toggle .bar:nth-child(3) { top: 27px; width: 20px; background: var(--tm-orange); }

/* -------------------------------------------------------
   DRAWER PARTS (hidden on desktop)
------------------------------------------------------- */
.drawer-header,
.drawer-footer { display: none; }

/* -------------------------------------------------------
   LAPTOP (1025px - 1199px)
------------------------------------------------------- */
@media (max-width: 1199px) {
    .nav-link { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
    .btn-navbar-cta { padding: 0.65rem 1.1rem; }
    .brand-logo-img { height: 40px; }
}

/* -------------------------------------------------------
   TABLET & MOBILE (≤1024px): off-canvas drawer
------------------------------------------------------- */
@media (max-width: 1024px) {
    :root { --nav-height: 64px; }

    .navbar,
    .navbar.scrolled { padding: 0.6rem 0; }
    .brand-logo-img,
    .navbar.scrolled .brand-logo-img { height: 36px; }

    .mobile-toggle { display: block; }
    .navbar-right > .btn-navbar-cta { display: none; }
    .nav-indicator { display: none; }

    .navbar-nav-container {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(400px, 100%);
        z-index: 1060;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        background: #ffffff;
        border: none;
        border-radius: 0;
        box-shadow: -24px 0 60px -20px rgba(10, 12, 16, 0.35);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.45s var(--ease-premium), visibility 0s linear 0.45s;
        overscroll-behavior: contain;
    }
    .navbar-nav-container.mobile-open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.45s var(--ease-premium), visibility 0s;
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: 0.9rem 1.25rem;
        border-bottom: 1px solid rgba(10, 36, 68, 0.08);
        position: relative;
    }
    .drawer-header::after {
        content: '';
        position: absolute;
        left: 0; right: 0; bottom: -1px;
        height: 2px;
        background: var(--tm-gradient-spectrum);
        opacity: 0.85;
    }
    .drawer-brand img { height: 34px; width: auto; }
    .drawer-close {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        color: var(--tm-navy);
        background: rgba(10, 36, 68, 0.06);
        transition: background 0.25s ease, transform 0.3s var(--ease-premium);
    }
    .drawer-close:hover { background: rgba(10, 36, 68, 0.12); transform: rotate(90deg); }

    .navbar-nav {
        flex: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 1rem 1rem 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Staggered entrance of drawer items */
    .navbar-nav > .nav-item {
        opacity: 0;
        transform: translateX(18px);
        transition: opacity 0.35s ease, transform 0.45s var(--ease-premium);
    }
    .mobile-open .navbar-nav > .nav-item { opacity: 1; transform: none; }
    .mobile-open .navbar-nav > .nav-item:nth-child(1) { transition-delay: 0.08s; }
    .mobile-open .navbar-nav > .nav-item:nth-child(2) { transition-delay: 0.12s; }
    .mobile-open .navbar-nav > .nav-item:nth-child(3) { transition-delay: 0.16s; }
    .mobile-open .navbar-nav > .nav-item:nth-child(4) { transition-delay: 0.2s; }
    .mobile-open .navbar-nav > .nav-item:nth-child(5) { transition-delay: 0.24s; }
    .mobile-open .navbar-nav > .nav-item:nth-child(6) { transition-delay: 0.28s; }

    .nav-link {
        gap: 0.85rem;
        width: 100%;
        min-height: 52px;
        padding: 0.7rem 0.85rem;
        border-radius: 14px;
        font-size: 1rem;
        color: #1F2744;
    }
    .nav-link:hover { background: #F4F6FB; }
    .nav-link-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        border-radius: 10px;
        font-size: 0.9rem;
        color: var(--tm-blue);
        background: rgba(30, 117, 176, 0.08);
    }
    .nav-link.active {
        background: linear-gradient(90deg, rgba(10, 174, 224, 0.1), rgba(10, 36, 68, 0.06));
        color: var(--tm-navy);
    }
    .nav-link.active::after,
    .has-dropdown .nav-link.active::after {
        left: 0;
        top: 50%;
        bottom: auto;
        width: 4px;
        height: 24px;
        transform: translateY(-50%);
        background: linear-gradient(180deg, var(--tm-azure), var(--tm-green), var(--tm-orange));
    }
    .nav-link.active .nav-link-icon { background: var(--tm-gradient-brand); color: #ffffff; }

    .dropdown-arrow {
        margin-left: auto;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(10, 36, 68, 0.05);
    }
    .has-dropdown:hover .dropdown-arrow,
    .has-dropdown:focus-within .dropdown-arrow { transform: none; }
    .has-dropdown.dropdown-open .dropdown-arrow { transform: rotate(180deg); }
    .navbar-nav-container .has-dropdown { position: relative; }
    .mega-dropdown::before { display: none; }

    /* Services accordion — grid-rows trick animates to the content's real height */
    .mega-dropdown,
    .has-dropdown:hover .mega-dropdown,
    .has-dropdown:focus-within .mega-dropdown {
        position: static;
        display: grid;
        grid-template-rows: 0fr;
        width: auto;
        max-width: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        transition: grid-template-rows 0.4s var(--ease-premium);
    }
    .has-dropdown.dropdown-open .mega-dropdown { grid-template-rows: 1fr; }
    .mega-dropdown-inner { min-height: 0; overflow: hidden; border-radius: 0; }

    .ms-layout { display: none; }
    .mega-services { width: auto; }

    /* An open section sits in one soft, tinted card — same family as the desktop panels */
    .ms-mobile,
    .mega-about-inner {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0.45rem 0 0.6rem;
        padding: 0.55rem;
        border-radius: 20px;
        background: #F5F7FC;
        border: 1px solid rgba(10, 36, 68, 0.06);
    }

    /* Shared hero card (About feature panel + Services header) */
    .mega-about-feature,
    .mm-hero {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        display: flex;
        flex: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1rem 1.05rem;
        border-radius: 15px;
        border: 1px solid rgba(10, 36, 68, 0.06);
        border-right: 1px solid rgba(10, 36, 68, 0.06);
        background: linear-gradient(180deg, #FAFBFE 0%, #EEF2FA 100%);
    }
    .mega-about-feature .maf-top,
    .mm-hero .maf-top { margin-bottom: 0.75rem; }
    .maf-emblem { width: 38px; height: 38px; border-radius: 11px; }
    .maf-emblem img { width: 24px; }
    .maf-title,
    .mm-hero-title { margin: 0; font-size: 1.08rem; line-height: 1.3; color: var(--gray-900); }
    .maf-desc,
    .maf-cta,
    .mega-about-feature .maf-mosaic { display: none; }
    .maf-stats { margin: 0.85rem 0 0; gap: 0.45rem; }
    .maf-stat { padding: 0.65rem 0.7rem 0.6rem; }
    .maf-stat-value { font-size: 1.25rem; }
    .mm-hero-meta { margin: 0.25rem 0 0; font-size: 0.76rem; color: var(--gray-500); }

    /* About links as white cards */
    .mega-about-grid { grid-template-columns: 1fr; gap: 0.45rem; padding: 0; }
    .mega-about-card {
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0.8rem;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid rgba(10, 36, 68, 0.07);
    }
    .mega-about-card:hover,
    .mega-about-card:focus-visible { transform: none; box-shadow: none; background: #ffffff; }
    .mega-about-card.is-current { background: var(--card-tint); border-color: transparent; }
    .mega-about-card-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 0.9rem; }
    .mega-about-card:hover .mega-about-card-icon { transform: none; background: var(--card-tint); color: var(--card-color); }
    .mega-about-card.is-current .mega-about-card-icon { background: var(--card-color); color: #ffffff; }
    .mega-about-card-title { font-size: 0.92rem; margin-bottom: 0.1rem; }
    .mega-about-card-desc { font-size: 0.76rem; margin-bottom: 0; }
    .mega-about-card-more { display: none; }
    .mega-about-card,
    .has-dropdown:hover .mega-about-card { animation: none; }

    /* Services: all-services link, category cards, service rows */
    .mobile-all-services {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 0.95rem;
        border-radius: 14px;
        font-size: 0.86rem;
        font-weight: 700;
        color: var(--tm-navy);
        background: #ffffff;
        border: 1px dashed rgba(10, 36, 68, 0.22);
    }
    .mobile-all-services span { display: inline-flex; align-items: center; gap: 0.5rem; }

    .mega-dropdown-grid { display: flex; flex-direction: column; gap: 0.45rem; padding: 0; }
    .mega-dropdown-category,
    .has-dropdown:hover .mega-dropdown-category { animation: none; }
    .mega-dropdown-category {
        padding: 0;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid rgba(10, 36, 68, 0.07);
        transition: box-shadow 0.3s ease, border-color 0.3s ease;
    }
    .mega-dropdown-category:hover { background: #ffffff; }
    .mega-dropdown-category.is-open { border-color: transparent; box-shadow: 0 12px 26px -18px rgba(10, 12, 16, 0.4); }
    .mega-dropdown-grid.has-focus .mega-dropdown-category:not(:hover) { opacity: 1; }

    .category-title-wrap { gap: 0.7rem; margin: 0; padding: 0.6rem 0.55rem 0.6rem 0.75rem; min-height: 58px; }
    .category-icon-badge { width: 36px; height: 36px; border-radius: 10px; font-size: 0.9rem; transition: background 0.3s ease, color 0.3s ease; }
    .mega-dropdown-category:hover .category-icon-badge { transform: none; background: var(--cat-tint); color: var(--cat-color); }
    .mega-dropdown-category.is-open .category-icon-badge { background: var(--cat-color); color: #ffffff; }
    .category-title-text { flex: 1; min-width: 0; }
    .category-title-wrap h6 { font-size: 0.9rem; font-weight: 700; line-height: 1.3; }
    .category-count { display: block; margin-top: 0.1rem; font-size: 0.72rem; color: var(--gray-500); }

    .category-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 0.78rem;
        color: var(--cat-color);
        background: var(--cat-tint);
        transition: background 0.25s ease, color 0.25s ease;
    }
    .category-toggle i { transition: transform 0.35s var(--ease-premium); }
    .mega-dropdown-category.is-open .category-toggle { background: var(--cat-color); color: #ffffff; }
    .mega-dropdown-category.is-open .category-toggle i { transform: rotate(45deg); }

    /* Height animates to the real content size (no max-height guesswork = smoother) */
    .mega-dropdown-links {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s var(--ease-premium);
    }
    .mega-dropdown-category.is-open .mega-dropdown-links { grid-template-rows: 1fr; }
    .mega-dropdown-links-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0.15rem; }
    .mega-dropdown-links-inner > :first-child { margin-top: 0.1rem; }
    .mega-dropdown-links-inner > :last-child { margin-bottom: 0.55rem; }

    .service-menu-link,
    .service-menu-link:hover {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin: 0 0.5rem;
        padding: 0.5rem 0.5rem;
        border-radius: 10px;
        font-size: 0.85rem;
        line-height: 1.35;
        color: var(--gray-700);
    }
    .service-menu-link:hover { background: #F6F8FC; color: var(--gray-900); }
    .service-menu-link i { opacity: 1; transform: none; margin-top: 0; color: inherit; font-size: inherit; }
    .service-menu-icon {
        flex-shrink: 0;
        width: 28px; height: 28px; border-radius: 8px;
        display: flex; align-items: center; justify-content: center;
        font-size: 0.72rem;
        color: var(--cat-color);
        background: var(--cat-tint);
    }
    .service-menu-label { flex: 1; min-width: 0; }
    .service-menu-link .ms-badge { align-self: center; }
    .service-menu-link.is-current { background: var(--cat-tint); color: var(--gray-900); font-weight: 600; }
    .service-menu-more,
    .service-menu-more:hover {
        justify-content: space-between;
        margin-top: 0.2rem;
        padding: 0.65rem 0.5rem 0.2rem;
        border-top: 1px dashed rgba(10, 36, 68, 0.12);
        border-radius: 0;
        background: transparent;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--cat-color);
    }
    .service-menu-more i { font-size: 0.72rem; color: var(--cat-color); }

    .mm-expert { margin: 0.05rem 0 0; }

    /* Staggered entrance when a section / category opens */
    .dropdown-open .mega-about-feature,
    .dropdown-open .mm-hero,
    .dropdown-open .mega-about-card,
    .dropdown-open .mobile-all-services,
    .dropdown-open .mega-dropdown-category,
    .dropdown-open .mm-expert { animation: mmItemIn 0.45s var(--ease-premium) backwards; }
    .dropdown-open .mega-about-card:nth-child(1),
    .dropdown-open .mobile-all-services { animation-delay: 0.06s; }
    .dropdown-open .mega-about-card:nth-child(2),
    .dropdown-open .mega-dropdown-category:nth-child(1) { animation-delay: 0.1s; }
    .dropdown-open .mega-about-card:nth-child(3),
    .dropdown-open .mega-dropdown-category:nth-child(2) { animation-delay: 0.14s; }
    .dropdown-open .mega-about-card:nth-child(4),
    .dropdown-open .mega-dropdown-category:nth-child(3) { animation-delay: 0.18s; }
    .dropdown-open .mega-dropdown-category:nth-child(4) { animation-delay: 0.22s; }
    .dropdown-open .mm-expert { animation-delay: 0.24s; }
    .mega-dropdown-category.is-open .service-menu-link { animation: mmItemIn 0.4s var(--ease-premium) backwards; }
    .mega-dropdown-category.is-open .service-menu-link:nth-child(2) { animation-delay: 0.03s; }
    .mega-dropdown-category.is-open .service-menu-link:nth-child(3) { animation-delay: 0.06s; }
    .mega-dropdown-category.is-open .service-menu-link:nth-child(4) { animation-delay: 0.09s; }
    .mega-dropdown-category.is-open .service-menu-link:nth-child(5) { animation-delay: 0.12s; }
    .mega-dropdown-category.is-open .service-menu-link:nth-child(6) { animation-delay: 0.15s; }
    .mega-dropdown-category.is-open .service-menu-link:nth-child(n+7) { animation-delay: 0.18s; }
    @keyframes mmItemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

    /* Touch polish: no grey tap flash, gentle press feedback, contained drawer scrolling */
    .navbar a,
    .navbar button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    .nav-link,
    .mega-about-card,
    .service-menu-link,
    .mobile-all-services,
    .category-toggle,
    .ms-expert,
    .drawer-cta { transition-property: transform, background, color, box-shadow, border-color; }
    .nav-link:active,
    .mega-about-card:active,
    .service-menu-link:active,
    .mobile-all-services:active,
    .ms-expert:active,
    .drawer-cta:active { transform: scale(0.98); }
    .category-toggle:active { transform: scale(0.92); }
    .navbar-nav { overscroll-behavior: contain; scroll-behavior: smooth; }

    .drawer-footer {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        flex-shrink: 0;
        padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(10, 36, 68, 0.08);
        background: #F8F9FD;
    }
    .drawer-cta { width: 100%; padding: 0.9rem 1.2rem; font-size: 0.95rem; }
    .drawer-contact { display: flex; flex-direction: column; gap: 0.35rem; }
    .drawer-contact a {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.85rem;
        color: var(--gray-600);
        padding: 0.3rem 0;
        overflow-wrap: anywhere;
    }
    .drawer-contact i { width: 16px; color: var(--tm-blue); }
    .drawer-contact a:hover { color: var(--tm-navy); }
}

@media (max-width: 480px) {
    .brand-logo-img,
    .navbar.scrolled .brand-logo-img { height: 32px; }
    .navbar .container { padding-left: 1rem; padding-right: 1rem; }
    .navbar-nav-container { width: 100%; }
}

/* Page scroll lock while the drawer is open */
html.nav-locked,
html.nav-locked body { overflow: hidden; }
/* Keep the open drawer uncluttered on tablets, where the page shows beside it */
html.nav-locked .cookie-notice,
html.nav-locked .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }

/* -------------------------------------------------------
   ACCESSIBILITY & REDUCED MOTION
------------------------------------------------------- */
.navbar a:focus-visible,
.navbar button:focus-visible {
    outline: 2px solid var(--tm-azure);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .navbar,
    .navbar::before,
    .nav-indicator,
    .nav-link,
    .brand-logo-img,
    .mega-dropdown,
    .mega-dropdown-category,
    .mega-dropdown-links,
    .mega-about-card,
    .mega-about-card-icon,
    .ms-tab-indicator,
    .ms-panel,
    .mm-hero,
    .mega-dropdown-category,
    .dropdown-open .mega-about-feature,
    .dropdown-open .mobile-all-services,
    .dropdown-open .mm-expert,
    .ms-card,
    .ms-card-icon,
    .maf-sheen,
    .maf-aurora,
    .maf-mosaic polygon,
    .maf-dot::after,
    .maf-cta,
    .maf-cta-arrow i,
    .navbar-nav > .nav-item,
    .navbar-nav-container,
    .btn-navbar-cta,
    .btn-navbar-cta::before,
    .mobile-toggle .bar,
    .service-menu-link,
    .service-menu-link i,
    .dropdown-arrow,
    .category-toggle,
    .category-toggle i {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   SITE SEARCH (navbar trigger + command-palette overlay)
   ========================================================================== */
.nav-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    height: 44px;
    padding: 0 0.6rem 0 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    background: rgba(10, 36, 68, 0.04);
    border: 1px solid rgba(10, 36, 68, 0.1);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav-search-btn i { font-size: 0.9rem; color: var(--tm-navy); }
.nav-search-btn:hover { color: var(--tm-navy); background: #ffffff; border-color: rgba(10, 36, 68, 0.22); box-shadow: 0 8px 18px -12px rgba(10, 12, 16, 0.45); }
.nav-search-text { min-width: 64px; text-align: left; }
.nav-search-kbd {
    padding: 0.18rem 0.45rem;
    border-radius: 7px;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gray-500);
    background: #ffffff;
    border: 1px solid rgba(10, 36, 68, 0.12);
    box-shadow: 0 1px 0 rgba(10, 36, 68, 0.12);
}
@media (max-width: 1279px) {
    .nav-search-btn { width: 44px; padding: 0; justify-content: center; }
    .nav-search-text, .nav-search-kbd { display: none; }
}

.site-search {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: min(12vh, 110px) 1rem 1rem;
}
.site-search[hidden] { display: none; }
.ss-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 12, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ss-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: min(640px, calc(100vh - 2rem));
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 50px 100px -30px rgba(8, 9, 12, 0.65), 0 0 0 1px rgba(10, 36, 68, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.35s var(--ease-premium);
}
.ss-panel::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--tm-gradient-spectrum);
    z-index: 2;
}
.site-search.is-open .ss-backdrop { opacity: 1; }
.site-search.is-open .ss-panel { opacity: 1; transform: none; }

.ss-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.1rem 1rem 1.35rem;
    border-bottom: 1px solid rgba(10, 36, 68, 0.08);
}
.ss-icon { font-size: 1.1rem; color: var(--tm-navy); }
.ss-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    -webkit-appearance: none;
    appearance: none;
}
.ss-input::placeholder { color: var(--gray-400); font-weight: 500; }
/* The panel itself is the focus context; the global focus ring would clash here */
.ss-input:focus,
.ss-input:focus-visible,
.sp-form input:focus,
.sp-form input:focus-visible { outline: none; box-shadow: none; }
.sp-form:focus-within { border-color: rgba(10, 12, 16, 0.5); box-shadow: 0 0 0 4px rgba(10, 174, 224, 0.12), 0 18px 40px -26px rgba(10, 12, 16, 0.45); }
.ss-input::-webkit-search-cancel-button { display: none; }
.ss-spinner {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(10, 174, 224, 0.2);
    border-top-color: var(--tm-azure);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.site-search.is-loading .ss-spinner { opacity: 1; animation: ssSpin 0.7s linear infinite; }
@keyframes ssSpin { to { transform: rotate(360deg); } }
.ss-clear,
.ss-esc {
    display: none;
    align-items: center;
    justify-content: center;
    height: 30px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    cursor: pointer;
}
.ss-clear { width: 30px; }
.site-search.has-query .ss-clear { display: inline-flex; }
.ss-esc { display: inline-flex; padding: 0 0.6rem; }
.ss-esc-icon { display: none; }
.ss-clear:hover, .ss-esc:hover { color: var(--tm-navy); background: #ffffff; }

.ss-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.75rem 0.75rem 0.9rem; }
.site-search.has-query .ss-default { display: none; }

.ss-section + .ss-section { margin-top: 1rem; }
.ss-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.6rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.ss-link-btn { font-size: 0.72rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--tm-blue); background: none; border: none; cursor: pointer; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 0.5rem; }
.ss-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ss-chip i { color: var(--tm-blue); font-size: 0.75rem; }
.ss-chip:hover { color: var(--tm-navy); background: #ffffff; border-color: rgba(10, 36, 68, 0.25); }
.ss-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0 0.5rem; }
.ss-quick-item {
    --q-color: var(--tm-blue);
    --q-tint: rgba(30, 117, 176, 0.1);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem;
    border-radius: 14px;
    color: inherit;
    border: 1px solid rgba(10, 36, 68, 0.08);
    transition: transform 0.25s var(--ease-premium), box-shadow 0.25s ease, border-color 0.25s ease;
}
.ss-quick-item.accent-green  { --q-color: var(--tm-green-dark); --q-tint: rgba(155, 199, 59, 0.16); }
.ss-quick-item.accent-orange { --q-color: var(--tm-orange-dark); --q-tint: rgba(244, 162, 30, 0.15); }
.ss-quick-item:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 12px 24px -16px rgba(10, 12, 16, 0.45); }
.ss-quick-icon {
    flex-shrink: 0;
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--q-color); background: var(--q-tint);
}
.ss-quick-text { display: flex; flex-direction: column; min-width: 0; }
.ss-quick-text strong { font-size: 0.82rem; line-height: 1.3; color: var(--gray-900); }
.ss-quick-text span { font-size: 0.7rem; color: var(--gray-500); }

/* Results */
.ss-group + .ss-group { margin-top: 0.6rem; }
.ss-group-head { display: flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.6rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }
.ss-group-head i { color: var(--tm-azure); }
.ss-group-count { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ss-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.7rem;
    border-radius: 13px;
    color: inherit;
    scroll-margin: 0.5rem;
    transition: background 0.15s ease;
    animation: ssItemIn 0.3s var(--ease-premium) backwards;
}
.ss-item-icon {
    flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    color: var(--tm-blue);
    background: rgba(30, 117, 176, 0.09);
    transition: background 0.2s ease, color 0.2s ease;
}
.ss-group[data-key="insights"] .ss-item-icon,
.ss-group[data-key="industries"] .ss-item-icon { color: var(--tm-green-dark); background: rgba(155, 199, 59, 0.15); }
.ss-group[data-key="faqs"] .ss-item-icon,
.ss-group[data-key="pages"] .ss-item-icon { color: var(--tm-orange-dark); background: rgba(244, 162, 30, 0.14); }
.ss-item-body { flex: 1; min-width: 0; }
.ss-item-title { display: block; font-weight: 700; font-size: 0.9rem; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-item-title .ms-badge { margin-left: 0.35rem; vertical-align: 1px; }
.ss-item-sub { display: block; font-size: 0.76rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-item mark { background: linear-gradient(transparent 55%, rgba(253, 201, 67, 0.55) 55%); color: inherit; padding: 0; border-radius: 2px; }
.ss-item-meta { flex-shrink: 0; font-size: 0.68rem; font-weight: 600; color: var(--gray-500); padding: 0.2rem 0.5rem; border-radius: var(--radius-full); background: var(--gray-50); border: 1px solid var(--gray-100); }
.ss-item-go { flex-shrink: 0; font-size: 0.75rem; color: var(--tm-navy); opacity: 0; transform: translateX(-4px); transition: opacity 0.15s ease, transform 0.2s ease; }
.ss-item:hover,
.ss-item.is-active { background: #F3F6FC; }
.ss-item.is-active { box-shadow: inset 3px 0 0 var(--tm-azure); }
.ss-item.is-active .ss-item-icon { color: #ffffff; background: var(--tm-gradient-brand); }
.ss-item.is-active .ss-item-go,
.ss-item:hover .ss-item-go { opacity: 1; transform: none; }
@keyframes ssItemIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ss-empty { padding: 2.25rem 1rem 2rem; text-align: center; }
.ss-empty-icon {
    width: 56px; height: 56px; margin: 0 auto 0.85rem; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    color: var(--tm-navy); background: rgba(10, 36, 68, 0.06);
}
.ss-empty h6 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--gray-900); }
.ss-empty p { margin: 0 auto 1rem; max-width: 380px; font-size: 0.85rem; color: var(--gray-500); }

.ss-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.2rem;
    border-top: 1px solid rgba(10, 36, 68, 0.08);
    background: #F8F9FD;
}
.ss-hints { display: flex; gap: 1rem; font-size: 0.72rem; color: var(--gray-500); }
.ss-hints kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 0.3rem; margin-right: 0.2rem;
    border-radius: 5px; font-family: var(--font-sans); font-size: 0.66rem; font-weight: 700;
    color: var(--gray-600); background: #ffffff; border: 1px solid var(--gray-200); box-shadow: 0 1px 0 var(--gray-200);
}
.ss-see-all { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 700; color: var(--tm-navy); white-space: nowrap; }
.ss-see-all[hidden] { display: none; }
.ss-see-all i { font-size: 0.7rem; transition: transform 0.2s ease; }
.ss-see-all:hover i { transform: translateX(3px); }

html.search-locked,
html.search-locked body { overflow: hidden; }

/* Phones: full-screen sheet */
@media (max-width: 640px) {
    .site-search { padding: 0; }
    .ss-panel { width: 100%; max-height: none; height: 100%; border-radius: 0; transform: translateY(16px); }
    .ss-form { padding: calc(0.85rem + env(safe-area-inset-top)) 0.85rem 0.85rem 1.1rem; }
    .ss-input { font-size: 1.05rem; }
    .ss-esc { width: 38px; height: 38px; padding: 0; border-radius: 11px; }
    .ss-esc-text { display: none; }
    .ss-esc-icon { display: inline; font-size: 1rem; }
    .ss-quick { grid-template-columns: 1fr; }
    .ss-hints { display: none; }
    .ss-footer { justify-content: center; padding-bottom: calc(0.7rem + env(safe-area-inset-bottom)); }
    .ss-item-meta { display: none; }
}
@media (max-width: 1024px) {
    .navbar-right { gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ss-backdrop, .ss-panel, .ss-item { transition: none !important; animation: none !important; }
}

/* Search results page */
.sp-section { padding-top: 3rem; }
.sp-form {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.45rem 0.45rem 0.45rem 1.25rem; margin-bottom: 1.5rem;
    border-radius: var(--radius-full); background: #ffffff;
    border: 1px solid rgba(10, 36, 68, 0.12);
    box-shadow: 0 18px 40px -26px rgba(10, 12, 16, 0.45);
}
.sp-form > i { color: var(--tm-navy); }
.sp-form input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 1.02rem; font-weight: 600; color: var(--gray-900); }
.sp-form button {
    display: inline-flex; align-items: center; gap: 0.5rem; height: 46px; padding: 0 1.3rem; border: none; border-radius: var(--radius-full);
    font-weight: 700; color: #ffffff; background: var(--tm-gradient-brand); cursor: pointer;
}
.sp-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.sp-filter {
    display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 600; color: var(--gray-700); background: var(--gray-50); border: 1px solid var(--gray-200);
}
.sp-filter i { color: var(--tm-blue); }
.sp-filter span { font-size: 0.72rem; padding: 0 0.4rem; border-radius: 10px; color: var(--tm-navy); background: rgba(10, 36, 68, 0.08); }
.sp-filter:hover { color: var(--tm-navy); border-color: rgba(10, 36, 68, 0.25); background: #ffffff; }
.sp-group { scroll-margin-top: calc(var(--nav-height) + 20px); }
.sp-group + .sp-group { margin-top: 2rem; }
.sp-group-title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--gray-900); }
.sp-group-title i { color: var(--tm-azure); }
.sp-group-title span { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); }
.sp-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sp-item {
    display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border-radius: 16px; color: inherit;
    background: #ffffff; border: 1px solid rgba(10, 36, 68, 0.08);
    transition: transform 0.25s var(--ease-premium), box-shadow 0.25s ease, border-color 0.25s ease;
}
.sp-item:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 16px 32px -20px rgba(10, 12, 16, 0.45); }
.sp-item-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--tm-blue); background: rgba(30, 117, 176, 0.09); }
.sp-insights .sp-item-icon, .sp-industries .sp-item-icon { color: var(--tm-green-dark); background: rgba(155, 199, 59, 0.15); }
.sp-faqs .sp-item-icon, .sp-pages .sp-item-icon { color: var(--tm-orange-dark); background: rgba(244, 162, 30, 0.14); }
.sp-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-item-title { font-weight: 700; color: var(--gray-900); }
.sp-item-sub { font-size: 0.84rem; color: var(--gray-500); }
.sp-item-meta { flex-shrink: 0; font-size: 0.72rem; font-weight: 600; color: var(--gray-500); padding: 0.2rem 0.55rem; border-radius: var(--radius-full); background: var(--gray-50); border: 1px solid var(--gray-100); }
.sp-item-go { color: var(--tm-navy); font-size: 0.8rem; opacity: 0.4; transition: opacity 0.2s ease, transform 0.2s ease; }
.sp-item:hover .sp-item-go { opacity: 1; transform: translateX(3px); }
.sp-empty { text-align: center; padding: 2.5rem 1rem; }
.sp-empty h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.sp-empty p { color: var(--gray-500); max-width: 460px; margin: 0 auto 1.25rem; }
.sp-empty kbd { padding: 0.1rem 0.4rem; border-radius: 5px; border: 1px solid var(--gray-200); background: var(--gray-50); font-size: 0.8rem; }
.sp-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
@media (max-width: 575px) {
    .sp-form button { width: 46px; padding: 0; justify-content: center; font-size: 0; }
    .sp-form button i { font-size: 0.9rem; }
    .sp-item-meta { display: none; }
}
.sp-form .sp-spinner { flex-shrink: 0; }
.sp-form.is-loading .sp-spinner { opacity: 1; animation: ssSpin 0.7s linear infinite; }
.sp-item { animation: ssItemIn 0.35s var(--ease-premium) backwards; }
.sp-item mark { background: linear-gradient(transparent 55%, rgba(253, 201, 67, 0.55) 55%); color: inherit; padding: 0; }

/* ==========================================================================
   HEADER REFINEMENT (desktop ≥1025px)
   One bold element (the CTA), quiet secondary controls, no stacked pills.
   Radius scale: 10px controls · 8px inner chips · pills only for tiny tags.
   ========================================================================== */
@media (min-width: 1025px) {
    /* Crisper bar: near-opaque white so the dark hero never greys the logo/text */
    .navbar::before {
        background: rgba(255, 255, 255, 0.97);
        border-bottom-color: rgba(10, 36, 68, 0.08);
    }
    .navbar.scrolled::before { background: rgba(255, 255, 255, 0.98); }

    .navbar-inner { gap: 2rem; }

    /* Links sit directly on the bar: no capsule around them */
    .navbar-nav-container {
        flex: 1;
        justify-content: center;
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
    }
    .navbar-nav { gap: 0.25rem; }

    .nav-link {
        padding: 0.6rem 0.95rem;
        border-radius: 10px;
        font-size: 0.92rem;
        color: #1C1F26;
    }
    .nav-link:hover { color: var(--tm-navy); }
    .dropdown-arrow { font-size: 0.62rem; color: #5B6690; }
    .has-dropdown:hover .dropdown-arrow,
    .has-dropdown:focus-within .dropdown-arrow { color: var(--tm-blue); }

    /* Hover / open highlight: soft tinted tile instead of a white pill */
    .nav-indicator {
        top: 0;
        height: 100%;
        border-radius: 10px;
        background: rgba(10, 36, 68, 0.055);
        box-shadow: none;
    }

    .nav-link.active::after { bottom: 0.15rem; width: 18px; height: 2.5px; }

    /* Actions group, set apart by a hairline divider */
    .navbar-right { gap: 0.6rem; position: relative; padding-left: 1.4rem; }
    .navbar-right::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 1px;
        height: 24px;
        transform: translateY(-50%);
        background: rgba(10, 36, 68, 0.12);
    }

    /* Search: secondary, outlined, quiet */
    .nav-search-btn {
        height: 42px;
        padding: 0 0.45rem 0 0.8rem;
        border-radius: 10px;
        background: #ffffff;
        border-color: rgba(10, 36, 68, 0.12);
        color: #5B6690;
        font-weight: 500;
    }
    .nav-search-btn i { font-size: 0.85rem; color: #5B6690; transition: color 0.2s ease; }
    .nav-search-btn:hover { border-color: rgba(10, 36, 68, 0.28); box-shadow: none; }
    .nav-search-btn:hover i { color: var(--tm-navy); }
    .nav-search-text { min-width: 54px; }
    .nav-search-kbd { border-radius: 6px; background: #F5F7FC; box-shadow: none; }

    /* CTA: the single primary action */
    .btn-navbar-cta {
        height: 42px;
        padding: 0 1.15rem 0 1.25rem;
        border-radius: 10px;
        font-size: 0.86rem;
        letter-spacing: 0.005em;
        background: linear-gradient(135deg, #1E8FD0 0%, #1E75B0 55%, #16508E 100%);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 18px -10px rgba(10, 36, 68, 0.75);
    }
    .btn-navbar-cta:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 12px 22px -10px rgba(229, 126, 39, 0.6); }

    /* Mega-menus open a touch closer to the flat bar */
    .mega-dropdown { top: calc(100% + 14px); border-radius: 18px; }
}

@media (min-width: 1025px) and (max-width: 1279px) {
    .navbar-inner { gap: 1.25rem; }
    .nav-link { padding: 0.55rem 0.7rem; font-size: 0.88rem; }
    .navbar-right { padding-left: 1rem; }
    .nav-search-btn { width: 42px; padding: 0; }
}

/* Switching between menus: the one being left closes at once instead of
   fading over the new one */
@media (min-width: 1025px) {
    .navbar-nav:has(.has-dropdown:hover) .has-dropdown:not(:hover) .mega-dropdown {
        opacity: 0;
        visibility: hidden;
        transition: none;
    }
}

/* Feature-panel buttons: rounded rectangle, not another pill */
.maf-cta { border-radius: 10px; padding: 0.35rem 0.35rem 0.35rem 1rem; }
.maf-cta-arrow { border-radius: 7px; width: 28px; height: 28px; }

/* -------------------------------------------------------
   JOIN US: compact hiring card, links get equal weight
------------------------------------------------------- */
.mega-join { width: min(640px, calc(100vw - 2rem)); }
.mega-join .mega-about-feature { flex: 0 0 232px; padding: 1.25rem 1.25rem 1.2rem; }
.mega-join .maf-top { margin-bottom: 0.85rem; }
.mega-join .maf-emblem { display: none; }
.mega-join .maf-title { font-size: 1.12rem; line-height: 1.3; margin-bottom: 0.5rem; }
.mega-join .maf-desc { font-size: 0.78rem; line-height: 1.55; margin-bottom: 1rem; }
.mega-join .maf-cta { font-size: 0.78rem; }
.mega-join .mega-about-grid { gap: 0.6rem; padding: 1.1rem; align-content: stretch; }
.mega-join .mega-about-card {
    align-items: center;
    background: #FAFBFE;
    border: 1px solid rgba(10, 36, 68, 0.07);
}
.mega-join .mega-about-card:hover,
.mega-join .mega-about-card:focus-visible { background: #ffffff; border-color: rgba(10, 36, 68, 0.14); }
.mega-join .mega-about-card-title { font-size: 1rem; }

/* ==========================================================================
   SERVICES MEGA-MENU v3: header · clean grid · live preview footer
   ========================================================================== */
.ms-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.ms-panel { padding: 1.2rem 1.35rem 1rem; }

/* Header: title left, explore action right */
.ms-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.75rem;
}
.ms-panel-heading { min-width: 0; }
.ms-panel-head h5 { margin: 0.3rem 0 0; font-size: 1.2rem; letter-spacing: -0.01em; }
.ms-explore-btn {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 0.45rem;
    height: 34px;
    padding: 0 0.85rem;
    border-radius: 9px;
    font-size: 0.78rem; font-weight: 700;
    color: var(--ms-color);
    background: var(--ms-tint);
    transition: background 0.25s ease, color 0.25s ease;
}
.ms-explore-btn i { font-size: 0.68rem; transition: transform 0.25s var(--ease-premium); }
.ms-explore-btn:hover { color: #ffffff; background: var(--ms-color); }
.ms-explore-btn:hover i { transform: translateX(3px); }

/* Grid: icon + name only, calm two-column list */
.ms-cards { grid-template-columns: 1fr 1fr; gap: 0.25rem 0.6rem; }
.ms-card {
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
    border-radius: 11px;
}
.ms-card-icon { width: 34px; height: 34px; border-radius: 9px; font-size: 0.85rem; }
.ms-card-title {
    flex: 1;
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 600;
    color: #1C1F26;
}
.ms-card:hover,
.ms-card:focus-visible,
.ms-card.is-previewed {
    background: #F5F7FC;
    border-color: rgba(10, 36, 68, 0.06);
    transform: none;
    box-shadow: none;
}
.ms-card:hover .ms-card-title,
.ms-card.is-previewed .ms-card-title { color: var(--ms-color); }
.ms-card:hover .ms-card-icon { transform: none; }

/* Footer: live preview + all-services link */
.ms-panel-foot {
    margin-top: auto;
    padding-top: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(10, 36, 68, 0.07);
}
.ms-preview {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ms-tint) 0%, rgba(255, 255, 255, 0) 85%);
}
.ms-preview-icon {
    flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    color: #ffffff;
    background: var(--ms-color);
}
.ms-preview-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: opacity 0.18s ease, transform 0.25s var(--ease-premium);
}
.ms-preview-body.is-swapping { opacity: 0; transform: translateY(3px); }
.ms-preview-title { font-size: 0.76rem; font-weight: 700; color: var(--gray-900); }
.ms-preview-text {
    font-size: 0.74rem; line-height: 1.45; color: var(--gray-500);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ms-all-services { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
    .ms-preview-body { transition: none; }
}

/* ==========================================================================
   SERVICES MEGA-MENU v4: descriptive tiles, height fits the open area
   ========================================================================== */
@media (min-width: 1025px) {
    /* Panels no longer share the tallest panel's height */
    .ms-panels {
        position: relative;
        display: block;
        align-self: flex-start;
        transition: height 0.35s var(--ease-premium);
    }
    .ms-panel { position: absolute; top: 0; left: 0; right: 0; overflow: visible; }
    .ms-panel.is-active { position: relative; }

    /* Service tiles: icon · title · one description, light border for structure */
    .ms-cards { gap: 0.55rem; }
    .ms-card {
        align-items: flex-start;
        gap: 0.7rem;
        padding: 0.7rem 0.75rem;
        border-radius: 12px;
        border: 1px solid rgba(10, 36, 68, 0.07);
        background: #ffffff;
    }
    .ms-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
    .ms-card-title { font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
    .ms-card-desc {
        margin: 0;
        font-size: 0.74rem; line-height: 1.45; color: var(--gray-500);
        -webkit-line-clamp: 2;
    }
    .ms-card-arrow { align-self: center; }
    .ms-card:hover,
    .ms-card:focus-visible {
        background: #F7F9FD;
        border-color: color-mix(in srgb, var(--ms-color) 28%, transparent);
        transform: translateY(-1px);
        box-shadow: 0 10px 20px -16px rgba(10, 12, 16, 0.45);
    }
    .ms-card:hover .ms-card-icon { background: var(--ms-color); color: #ffffff; }

    .ms-panel-foot { margin-top: 0.85rem; }
    .ms-preview { min-height: 0; }
    .ms-preview-text { -webkit-line-clamp: 1; }

    /* Left rail sized to its content, expert card right under the areas */
    .ms-layout { align-items: flex-start; }
    .ms-rail { align-self: stretch; }
}

/* Rail trust stats sit above the expert card and absorb spare height */
@media (min-width: 1025px) {
    .ms-rail { overflow: hidden; }
    .ms-rail-stats {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin: auto 0.15rem 0.6rem;
    }
    .ms-rail-stat {
        padding: 0.55rem 0.7rem;
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.75);
        border: 1px solid rgba(10, 36, 68, 0.06);
    }
    .ms-rail-stat strong {
        display: block;
        font-family: var(--font-heading);
        font-size: 1.05rem;
        line-height: 1.1;
        color: var(--tm-navy);
        font-variant-numeric: tabular-nums;
    }
    .ms-rail-stat span { display: block; margin-top: 0.15rem; font-size: 0.68rem; line-height: 1.3; color: var(--gray-500); }
    .ms-rail-stats + .ms-expert { margin-top: 0; }
    .ms-tabs { margin-bottom: 0.9rem; }
}
@media (min-width: 1025px) {
    .ms-rail { padding-top: 0.95rem; }
    .ms-rail-head { padding-bottom: 0.55rem; }
    .ms-tab { padding-top: 0.44rem; padding-bottom: 0.44rem; }
    .ms-tabs { margin-bottom: 0.7rem; }
    .ms-rail-stats { margin-bottom: 0.5rem; }
}

/* ==========================================================================
   SERVICES MEGA-MENU v5: both columns share one height, no blank gaps
   - Left: areas · industries we serve (flexes) · expert card
   - Right: header · service tiles (rows share the spare height) · footer
   ========================================================================== */
@media (min-width: 1025px) {
    .ms-layout { align-items: stretch; }
    .ms-panels { display: flex; flex-direction: column; align-self: stretch; height: auto; transition: none; }
    .ms-panel.is-active { flex: 1; display: flex; flex-direction: column; }
    .ms-cards { flex: 1; grid-auto-rows: 1fr; }
    .ms-card { align-items: center; }

    .ms-rail-industries {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin: 0 0.15rem 0.6rem;
        padding: 0.65rem 0.6rem 0.55rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(10, 36, 68, 0.06);
    }
    .ms-rail-label {
        padding: 0 0.35rem 0.35rem;
        font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
        color: var(--gray-500);
    }
    .ms-industry-list {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        gap: 0.1rem;
    }
    .ms-industry {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.3rem 0.35rem;
        border-radius: 8px;
        font-size: 0.78rem;
        font-weight: 600;
        color: #2B3350;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .ms-industry i {
        width: 22px; height: 22px; border-radius: 6px;
        display: inline-flex; align-items: center; justify-content: center;
        flex-shrink: 0;
        font-size: 0.66rem;
        color: var(--tm-blue);
        background: rgba(30, 117, 176, 0.09);
    }
    .ms-industry:nth-child(3n+2) i { color: var(--tm-green-dark); background: rgba(155, 199, 59, 0.15); }
    .ms-industry:nth-child(3n) i { color: var(--tm-orange-dark); background: rgba(244, 162, 30, 0.14); }
    .ms-industry span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ms-industry:hover { color: var(--tm-navy); background: #ffffff; }
    .ms-rail-industries + .ms-expert { margin-top: 0; }
}
@media (min-width: 1025px) {
    .ms-rail-industries { padding: 0.55rem 0.55rem 0.45rem; margin-bottom: 0.5rem; }
    .ms-rail-label { padding-bottom: 0.2rem; }
    .ms-industry { padding: 0.2rem 0.35rem; font-size: 0.77rem; }
    .ms-industry i { width: 20px; height: 20px; }
    .ms-tabs { margin-bottom: 0.55rem; }
    .ms-expert { padding-top: 0.55rem; padding-bottom: 0.55rem; }
}

/* ==========================================================================
   NAV LINKS: round pills again
   - hover / open menu: soft pill that slides between links
   - current page: the same soft pill + spectrum underline
   ========================================================================== */
@media (min-width: 1025px) {
    .nav-link { border-radius: var(--radius-full); padding: 0.6rem 1.05rem; }
    .nav-indicator { border-radius: var(--radius-full); }
    .nav-link.active {
        color: var(--tm-navy);
        background: rgba(10, 36, 68, 0.06);
    }
    .nav-link.active::after { bottom: 0.2rem; width: 20px; height: 3px; }
}

/* ==========================================================================
   SERVICES MEGA-MENU v6 (final): compact, no stretched tiles, no blank bands
   Height = the taller of rail / active panel. The rail's area rows share any
   spare height; a shorter panel keeps its expert strip pinned to the bottom.
   ========================================================================== */
@media (min-width: 1025px) {
    .ms-layout { align-items: stretch; max-height: none; }

    /* ---- Rail ---- */
    .ms-rail { display: flex; flex-direction: column; padding: 0.9rem 0.7rem 0.75rem; overflow: hidden; }
    .ms-rail-head { padding: 0 0.55rem 0.5rem; }
    .ms-tabs { flex: 1; display: flex; flex-direction: column; gap: 2px; margin-bottom: 0.6rem; }
    .ms-tab { flex: 1 1 auto; min-height: 42px; padding: 0.3rem 0.55rem; }
    .ms-rail-all {
        margin-top: auto;
        display: flex; align-items: center; justify-content: space-between;
        padding: 0.6rem 0.75rem;
        border-radius: 11px;
        font-size: 0.8rem; font-weight: 700;
        color: var(--tm-navy);
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(10, 36, 68, 0.08);
        transition: background 0.2s ease, border-color 0.2s ease;
    }
    .ms-rail-all span { display: inline-flex; align-items: center; gap: 0.5rem; }
    .ms-rail-all > i { font-size: 0.7rem; transition: transform 0.25s var(--ease-premium); }
    .ms-rail-all:hover { color: var(--tm-navy); background: #ffffff; border-color: rgba(10, 36, 68, 0.18); }
    .ms-rail-all:hover > i { transform: translateX(3px); }

    /* ---- Panels: only the open one takes space ---- */
    .ms-panels { display: block; position: relative; align-self: stretch; height: auto; transition: none; }
    .ms-panel { position: absolute; top: 0; left: 0; right: 0; padding: 1.05rem 1.25rem 0.95rem; }
    .ms-panel.is-active { position: relative; min-height: 100%; display: flex; flex-direction: column; flex: none; }

    .ms-panel-head {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        padding-bottom: 0.75rem; margin-bottom: 0.45rem;
        border-bottom: 1px solid rgba(10, 36, 68, 0.07);
    }
    .ms-panel-head h5 { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 1.12rem; }
    .ms-count-pill {
        padding: 0.15rem 0.5rem;
        border-radius: 999px;
        font-family: var(--font-sans);
        font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
        color: var(--ms-color);
        background: var(--ms-tint);
    }
    .ms-panel-summary {
        margin: 0.25rem 0 0;
        max-width: 470px;
        font-size: 0.78rem; line-height: 1.45; color: var(--gray-500);
        display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    }

    /* ---- Service rows: icon · name · one-line description ---- */
    .ms-cards { flex: none; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 2px 0.5rem; }
    .ms-card {
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.55rem 0.6rem;
        border-radius: 10px;
        border: 1px solid transparent;
        background: transparent;
    }
    .ms-card-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 0.82rem; }
    .ms-card-body { gap: 0.1rem; }
    .ms-card-title { font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
    .ms-card-desc { -webkit-line-clamp: 1; font-size: 0.75rem; line-height: 1.45; }
    .ms-card-arrow { align-self: center; }
    .ms-card:hover,
    .ms-card:focus-visible {
        background: #F5F7FC;
        border-color: transparent;
        transform: none;
        box-shadow: none;
    }

    /* ---- Footer: expert strip ---- */
    .ms-panel-foot { margin-top: auto; padding-top: 0.6rem; border-top: 0; display: block; }
    .ms-expert-strip {
        display: flex; align-items: center; gap: 0.65rem;
        padding: 0.55rem 0.8rem;
        border-radius: 11px;
        font-size: 0.79rem;
        color: rgba(226, 230, 238, 0.85);
        background: linear-gradient(135deg, #1E8FD0 0%, #1E75B0 55%, #16508E 100%);
        box-shadow: 0 10px 22px -16px rgba(10, 12, 16, 0.8);
        transition: transform 0.25s var(--ease-premium), box-shadow 0.25s ease;
    }
    .ms-expert-strip strong { color: #ffffff; font-weight: 700; margin-right: 0.25rem; }
    .ms-expert-strip-text { flex: 1; min-width: 0; }
    .ms-expert-strip-icon {
        width: 28px; height: 28px; border-radius: 8px;
        display: inline-flex; align-items: center; justify-content: center;
        color: var(--tm-yellow); background: rgba(255, 255, 255, 0.1);
        font-size: 0.8rem;
    }
    .ms-expert-strip > i { font-size: 0.7rem; color: #ffffff; transition: transform 0.25s var(--ease-premium); }
    .ms-expert-strip:hover { color: rgba(226, 230, 238, 0.95); transform: translateY(-1px); box-shadow: 0 14px 26px -16px rgba(10, 12, 16, 0.9); }
    .ms-expert-strip:hover > i { transform: translateX(3px); }
}

/* ==========================================================================
   SERVICES MEGA-MENU v7: premium layer on the v6 layout
   ========================================================================== */
@media (min-width: 1025px) {
    .mega-services { width: min(1000px, calc(100vw - 2rem)); }
    .ms-rail { flex-basis: 300px; }

    /* ---- Page dims + softly blurs behind any open mega-menu ---- */
    .navbar::after {
        content: '';
        position: fixed;
        left: 0; right: 0;
        top: var(--nav-height, 76px);
        height: 100vh;
        z-index: -2;
        background: rgba(8, 9, 12, 0.38);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }
    .navbar:has(.navbar-nav-container .has-dropdown:hover)::after,
    .navbar:has(.navbar-nav-container .has-dropdown:focus-within)::after {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease 0.05s, visibility 0s;
    }

    /* ---- Panel header: bigger, with an animated accent rule ---- */
    .ms-panel { padding: 1.2rem 1.4rem 1.05rem; }
    .ms-panel-head { position: relative; padding-bottom: 0.85rem; margin-bottom: 0.55rem; }
    .ms-panel-head::after {
        content: '';
        position: absolute; left: 0; bottom: -1px;
        width: 64px; height: 2px; border-radius: 2px;
        background: linear-gradient(90deg, var(--ms-color), transparent);
        transform-origin: left;
    }
    .ms-panel.is-active .ms-panel-head::after { animation: msRule 0.6s var(--ease-premium) both; }
    @keyframes msRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .ms-panel-head h5 { font-size: 1.22rem; }
    .ms-panel-summary { font-size: 0.8rem; max-width: 520px; }

    /* ---- Service rows: two-line descriptions, cursor glow, accent bar ---- */
    .ms-cards { gap: 0.2rem 0.6rem; }
    .ms-card {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        padding: 0.65rem 0.7rem;
        border-radius: 12px;
    }
    .ms-card::before {
        content: '';
        position: absolute; inset: 0; z-index: -1;
        background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--ms-tint), transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .ms-card::after {
        content: '';
        position: absolute; left: 0; top: 22%; bottom: 22%;
        width: 3px; border-radius: 0 3px 3px 0;
        background: var(--ms-color);
        transform: scaleY(0);
        transition: transform 0.3s var(--ease-premium);
    }
    .ms-card:hover::before, .ms-card:focus-visible::before { opacity: 1; }
    .ms-card:hover::after, .ms-card:focus-visible::after { transform: scaleY(1); }
    .ms-card:hover, .ms-card:focus-visible { background: #FAFBFE; }
    .ms-card-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 0.9rem; transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-premium); }
    .ms-card:hover .ms-card-icon { background: var(--ms-color); color: #ffffff; transform: scale(1.06) rotate(-4deg); }
    .ms-card-title { font-size: 0.9rem; }
    .ms-card:hover .ms-card-title { color: var(--ms-color); }
    .ms-card-desc { -webkit-line-clamp: 2; font-size: 0.76rem; }
    .ms-card-arrow { opacity: 0; transform: translateX(-6px); }
    .ms-card:hover .ms-card-arrow { opacity: 1; transform: none; }

    /* Rows cascade in whenever an area opens */
    .ms-panel.is-active .ms-card { animation: msRowIn 0.45s var(--ease-premium) backwards; }
    .ms-panel.is-active .ms-card:nth-child(2) { animation-delay: 0.035s; }
    .ms-panel.is-active .ms-card:nth-child(3) { animation-delay: 0.07s; }
    .ms-panel.is-active .ms-card:nth-child(4) { animation-delay: 0.105s; }
    .ms-panel.is-active .ms-card:nth-child(5) { animation-delay: 0.14s; }
    .ms-panel.is-active .ms-card:nth-child(6) { animation-delay: 0.175s; }
    .ms-panel.is-active .ms-card:nth-child(7) { animation-delay: 0.21s; }
    .ms-panel.is-active .ms-card:nth-child(8) { animation-delay: 0.245s; }
    @keyframes msRowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

    /* ---- Footer: expert CTA + direct call ---- */
    .ms-panel-foot { display: flex; align-items: stretch; gap: 0.6rem; padding-top: 0.75rem; }
    .ms-expert-strip { flex: 1; padding: 0.6rem 0.85rem; }
    .ms-expert-strip-text { display: flex; flex-direction: column; line-height: 1.3; }
    .ms-expert-strip-text strong { margin: 0; font-size: 0.82rem; }
    .ms-expert-strip-text span { font-size: 0.74rem; }
    .ms-expert-strip-icon { width: 32px; height: 32px; }
    .ms-call {
        display: flex; align-items: center; gap: 0.6rem;
        padding: 0.55rem 0.95rem 0.55rem 0.6rem;
        border-radius: 11px;
        border: 1px solid rgba(10, 36, 68, 0.1);
        background: #ffffff;
        color: var(--gray-900);
        transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-premium);
    }
    .ms-call-icon {
        width: 32px; height: 32px; border-radius: 9px;
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 0.78rem; color: var(--tm-green-dark); background: rgba(155, 199, 59, 0.16);
    }
    .ms-call-text { display: flex; flex-direction: column; line-height: 1.25; }
    .ms-call-text small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
    .ms-call-text strong { font-size: 0.84rem; font-variant-numeric: tabular-nums; }
    .ms-call:hover { color: var(--gray-900); border-color: rgba(10, 36, 68, 0.22); box-shadow: 0 10px 20px -16px rgba(10, 12, 16, 0.5); transform: translateY(-1px); }

    /* ---- Rail spotlight ---- */
    .ms-spotlight {
        position: relative;
        margin: 0.2rem 0.1rem 0.55rem;
        padding: 0.7rem 0.75rem 0.8rem;
        border-radius: 14px;
        background: linear-gradient(150deg, #ffffff 0%, rgba(255, 255, 255, 0.82) 100%);
        border: 1px solid rgba(10, 36, 68, 0.08);
        box-shadow: 0 12px 26px -20px rgba(10, 12, 16, 0.45);
        overflow: hidden;
    }
    .ms-spot-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.55rem; }
    .ms-spot-label {
        display: inline-flex; align-items: center; gap: 0.4rem;
        font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
        color: var(--tm-orange-dark);
    }
    .ms-spot-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--tm-orange); }
    .ms-spot-dot::after {
        content: ''; position: absolute; inset: -3px; border-radius: 50%;
        border: 1px solid var(--tm-orange);
        animation: mafPulse 1.8s ease-out infinite;
    }
    .ms-spot-dots { display: inline-flex; gap: 4px; }
    .ms-spot-pip {
        width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px;
        background: rgba(10, 36, 68, 0.16);
        cursor: pointer;
        transition: width 0.3s var(--ease-premium), background 0.3s ease;
    }
    .ms-spot-pip.is-active { width: 16px; background: var(--tm-navy); }
    .ms-spot-stage { position: relative; display: grid; }
    .ms-spot-slide {
        grid-area: 1 / 1;
        display: flex; align-items: center; gap: 0.65rem;
        color: inherit;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-10px);
        /* leaving: quick fade so it never overlaps the incoming slide */
        transition: opacity 0.16s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }
    .ms-spot-slide.is-active {
        opacity: 1;
        visibility: inherit;
        transform: none;
        /* entering: waits for the old slide to clear */
        transition: opacity 0.35s ease 0.18s, transform 0.5s var(--ease-premium) 0.18s, visibility 0s;
    }
    .ms-spot-icon {
        flex-shrink: 0;
        width: 38px; height: 38px; border-radius: 11px;
        display: inline-flex; align-items: center; justify-content: center;
        color: #ffffff;
        background: var(--tm-gradient-brand);
        box-shadow: 0 8px 16px -10px rgba(10, 36, 68, 0.8);
    }
    .ms-spot-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .ms-spot-cat { font-size: 0.66rem; font-weight: 600; color: var(--gray-500); }
    .ms-spot-title {
        font-family: var(--font-heading); font-size: 0.84rem; line-height: 1.3; color: var(--gray-900);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .ms-spot-arrow { font-size: 0.7rem; color: var(--tm-navy); transition: transform 0.25s var(--ease-premium); }
    .ms-spot-slide:hover .ms-spot-title { color: var(--tm-navy); }
    .ms-spot-slide:hover .ms-spot-arrow { transform: translateX(3px); }
    .ms-spot-progress {
        position: absolute; left: 0; right: 0; bottom: 0;
        height: 2px; background: rgba(10, 36, 68, 0.06);
    }
    .ms-spot-progress span {
        display: block; height: 100%; width: 100%;
        background: linear-gradient(90deg, var(--tm-azure), var(--tm-green), var(--tm-orange));
        transform: scaleX(0); transform-origin: left;
    }
    .ms-spotlight.is-running .ms-spot-progress span { animation: msSpotTimer 5s linear forwards; }
    .ms-spotlight.is-paused .ms-spot-progress span { animation-play-state: paused; }
    @keyframes msSpotTimer { to { transform: scaleX(1); } }
}

@media (prefers-reduced-motion: reduce) {
    .ms-panel.is-active .ms-card,
    .ms-panel.is-active .ms-panel-head::after,
    .ms-spot-dot::after { animation: none !important; }
    .ms-spot-slide, .ms-spot-slide.is-active { transition: none; }
}
/* v7 balance: rail ≈ panel for 5–6 service areas */
@media (min-width: 1025px) {
    .ms-rail { padding: 0.8rem 0.7rem 0.65rem; }
    .ms-rail-head { padding: 0 0.6rem 0.4rem; }
    .ms-rail-head .maf-eyebrow {
        padding: 0; background: none; border: 0; box-shadow: none;
        font-size: 0.64rem; letter-spacing: 0.12em; color: var(--gray-500);
    }
    .ms-tab { min-height: 38px; }
    .ms-tabs { margin-bottom: 0.45rem; }
    .ms-spotlight { padding: 0.6rem 0.7rem 0.75rem; margin-bottom: 0.45rem; }
    .ms-spot-head { margin-bottom: 0.45rem; }
    .ms-spot-icon { width: 34px; height: 34px; }
    .ms-rail-all { padding: 0.5rem 0.75rem; }

    .ms-panel { padding: 1.35rem 1.45rem 1.2rem; }
    .ms-panel-head { margin-bottom: 0.7rem; }
    .ms-cards { gap: 0.35rem 0.6rem; }
    .ms-card { padding: 0.72rem 0.75rem; }
}

/* Spotlight: prev / dots / next controls */
@media (min-width: 1025px) {
    .ms-spot-nav { display: inline-flex; align-items: center; gap: 0.35rem; }
    .ms-spot-btn {
        width: 22px; height: 22px;
        display: inline-flex; align-items: center; justify-content: center;
        padding: 0;
        border-radius: 50%;
        border: 1px solid rgba(10, 36, 68, 0.12);
        background: #ffffff;
        color: var(--tm-navy);
        font-size: 0.55rem;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-premium);
    }
    .ms-spot-btn:hover { color: #ffffff; background: var(--tm-navy); border-color: var(--tm-navy); }
    .ms-spot-btn:active { transform: scale(0.92); }
    .ms-spot-btn:focus-visible { outline: 2px solid var(--tm-azure); outline-offset: 2px; }
    .ms-spot-slide:hover .ms-spot-icon { transform: scale(1.05) rotate(-4deg); }
    .ms-spot-icon { transition: transform 0.3s var(--ease-premium); }
}

/* ==========================================================================
   NAVBAR PREMIUM LAYER
   1 entrance cascade · 2 spectrum hover line · 3 hiring pulse
   4 rotating search hints · 5 CTA ring + shimmer + magnet · 6 smart sticky
   ========================================================================== */
@property --cta-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@media (min-width: 1025px) {
    /* 1. Entrance: first page of a visit only (html.nav-seen skips it) */
    html:not(.nav-seen) .navbar-brand,
    html:not(.nav-seen) .navbar-nav > .nav-item,
    html:not(.nav-seen) .navbar-right > * {
        animation: navIn 0.6s var(--ease-premium) backwards;
    }
    html:not(.nav-seen) .navbar-nav > .nav-item:nth-child(1) { animation-delay: 0.08s; }
    html:not(.nav-seen) .navbar-nav > .nav-item:nth-child(2) { animation-delay: 0.13s; }
    html:not(.nav-seen) .navbar-nav > .nav-item:nth-child(3) { animation-delay: 0.18s; }
    html:not(.nav-seen) .navbar-nav > .nav-item:nth-child(4) { animation-delay: 0.23s; }
    html:not(.nav-seen) .navbar-nav > .nav-item:nth-child(5) { animation-delay: 0.28s; }
    html:not(.nav-seen) .navbar-right > :nth-child(1) { animation-delay: 0.34s; }
    html:not(.nav-seen) .navbar-right > :nth-child(2) { animation-delay: 0.4s; }
    @keyframes navIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

    /* 2. Hover pill carries a spectrum line that glides with it */
    .nav-indicator::after {
        content: '';
        position: absolute;
        left: 50%; bottom: 3px;
        width: 34%; height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--tm-azure), var(--tm-green), var(--tm-orange));
        transform: translateX(-50%) scaleX(0);
        transition: transform 0.45s var(--ease-premium);
    }
    .navbar-nav-container:hover .nav-indicator::after { transform: translateX(-50%) scaleX(1); }
    /* Active underline gets a slow shimmer */
    .nav-link.active::after {
        background: linear-gradient(90deg, var(--tm-azure), var(--tm-green), var(--tm-orange), var(--tm-azure));
        background-size: 300% 100%;
        animation: navUnderline 6s linear infinite;
    }
    @keyframes navUnderline { to { background-position: 300% 0; } }

    /* Search label: fixed width so the pill never shifts */
    .nav-search-text { width: auto; min-width: 54px; }

    /* 5. CTA: rotating brand ring, periodic shimmer, magnetic pull */
    .btn-navbar-cta {
        translate: var(--mag-x, 0) var(--mag-y, 0);
        transition: transform 0.3s var(--ease-premium), box-shadow 0.3s ease, translate 0.35s var(--ease-premium);
    }
    .btn-navbar-cta > span:not(.cta-ring),
    .btn-navbar-cta > i { position: relative; z-index: 1; }
    .cta-ring {
        position: absolute; inset: 0; z-index: 0;
        padding: 1.5px;
        border-radius: inherit;
        background: conic-gradient(from var(--cta-angle), transparent 0deg, var(--tm-sky) 60deg, var(--tm-green) 120deg, var(--tm-yellow) 170deg, transparent 220deg, transparent 360deg);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
                mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
        opacity: 0.85;
        animation: ctaSpin 4.5s linear infinite;
        pointer-events: none;
    }
    @keyframes ctaSpin { to { --cta-angle: 360deg; } }
    .btn-navbar-cta::before { animation: navShimmerLoop 6s ease-in-out 1.5s infinite; }
    .btn-navbar-cta:hover::before { animation: navShimmer 0.9s ease; }
    @keyframes navShimmerLoop { 0% { left: -75%; } 18% { left: 130%; } 100% { left: 130%; } }

    /* 6. Smart sticky: tucks away on scroll down, returns on scroll up */
    .navbar { transition: padding 0.35s var(--ease-premium), transform 0.45s var(--ease-premium); }
    .navbar.nav-tucked { transform: translateY(calc(-100% - 4px)); }
    .svc-jumpbar { transition: top 0.45s var(--ease-premium), box-shadow 0.3s ease; }
    html.nav-is-tucked .svc-jumpbar { top: 0; }
}

@media (min-width: 1025px) and (max-width: 1279px) {
    .nav-search-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html:not(.nav-seen) .navbar-brand,
    html:not(.nav-seen) .navbar-nav > .nav-item,
    html:not(.nav-seen) .navbar-right > *,
    .nav-link.active::after,
    .cta-ring,
    .btn-navbar-cta::before { animation: none !important; }
    .navbar.nav-tucked { transform: none; }
}

/* ==========================================================================
   NAVBAR v3: glass capsule with living gradient border (TM logo colours)
   ========================================================================== */
@property --cap-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@media (min-width: 1025px) {
    /* Spectrum hairline along the bottom of the bar */
    .navbar::before {
        background:
            linear-gradient(90deg, rgba(79, 207, 255, 0) 0%, rgba(10, 12, 16, 0.5) 18%, rgba(10, 36, 68, 0.45) 40%, rgba(155, 199, 59, 0.5) 62%, rgba(253, 201, 67, 0.55) 80%, rgba(229, 126, 39, 0) 100%) left bottom / 100% 1px no-repeat,
            rgba(255, 255, 255, 0.96);
        border-bottom: 0;
    }

    .navbar-inner { gap: 1.5rem; }

    /* The capsule */
    .navbar-nav-container {
        flex: 0 1 auto;
        margin: 0 auto;
        padding: 0.3rem;
        border-radius: 999px;
        border: 1px solid transparent;
        background:
            linear-gradient(180deg, #FAFBFE, #F3F5FB) padding-box,
            conic-gradient(from var(--cap-angle),
                rgba(10, 36, 68, 0.10) 0deg,
                rgba(10, 12, 16, 0.5) 40deg,
                rgba(155, 199, 59, 0.55) 80deg,
                rgba(244, 162, 30, 0.55) 120deg,
                rgba(10, 36, 68, 0.10) 165deg,
                rgba(10, 36, 68, 0.10) 360deg) border-box;
        box-shadow: inset 0 1px 0 #ffffff, 0 8px 22px -16px rgba(10, 12, 16, 0.35);
        animation: capGlint 9s linear infinite;
    }
    @keyframes capGlint { to { --cap-angle: 360deg; } }

    /* Mega-menus centred on the viewport */
    .navbar-nav-container .mega-dropdown { margin-left: var(--dd-shift, 0px); }

    /* Hover: white lifted pill gliding behind links */
    .nav-indicator {
        top: 0.3rem;
        height: calc(100% - 0.6rem);
        border-radius: 999px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(10, 12, 16, 0.10), 0 0 0 1px rgba(10, 36, 68, 0.06);
    }
    .nav-link { padding: 0.62rem 1.15rem; color: #1C1F26; }

    /* Current page: white pill + spectrum underline */
    .nav-link.active {
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(10, 12, 16, 0.08), 0 0 0 1px rgba(10, 36, 68, 0.08);
    }
    .nav-link.active::after { bottom: 0.18rem; width: 20px; height: 3px; }

    /* Actions: no divider, fully rounded */
    .navbar-right { padding-left: 0; gap: 0.65rem; }
    .navbar-right::before { display: none; }
    .nav-search-btn {
        height: 46px;
        padding: 0 0.5rem 0 1rem;
        border-radius: 999px;
        background: #ffffff;
        border-color: rgba(10, 36, 68, 0.12);
        box-shadow: 0 6px 16px -14px rgba(10, 12, 16, 0.4);
    }
    .nav-search-kbd { border-radius: 8px; }
    .btn-navbar-cta {
        height: 48px;
        padding: 0 1.25rem 0 1.4rem;
        border-radius: 999px;
        font-size: 0.9rem;
        background: linear-gradient(135deg, #1E8FD0 0%, #1E75B0 55%, #16508E 100%);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 26px -12px rgba(10, 36, 68, 0.75);
    }
    .btn-navbar-cta:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 30px -12px rgba(229, 126, 39, 0.6); }
}

@media (min-width: 1025px) and (max-width: 1279px) {
    .nav-link { padding: 0.55rem 0.8rem; }
    .nav-search-btn { width: 46px; padding: 0; }
    .btn-navbar-cta { padding: 0 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-nav-container { animation: none; }
}

/* ==========================================================================
   MEGA-MENU POLISH: notch pointer · brand glow · rail cascade
   ========================================================================== */
@media (min-width: 1025px) {
    /* Pointer notch (sits on the panel's top edge, aimed by JS) */
    .navbar-nav-container .mega-dropdown-inner { position: relative; overflow: visible; }
    .navbar-nav-container .mega-dropdown-inner > .ms-layout,
    .navbar-nav-container .mega-dropdown-inner { border-radius: inherit; }
    .navbar-nav-container .mega-dropdown .mega-dropdown-inner::before {
        content: '';
        position: absolute;
        top: -6px;
        left: var(--notch-x, 50%);
        width: 12px; height: 12px;
        margin-left: -6px;
        background: #F8FAFE;
        border-top: 1px solid rgba(10, 36, 68, 0.08);
        border-left: 1px solid rgba(10, 36, 68, 0.08);
        border-radius: 3px 0 0 0;
        transform: rotate(45deg);
        transition: left 0.35s var(--ease-premium);
        z-index: 2;
    }
    .mega-services .ms-layout,
    .mega-about .mega-about-inner { border-radius: inherit; overflow: hidden; }

    /* Brand-coloured glow under open menus */
    .navbar-nav-container .mega-dropdown {
        box-shadow:
            0 40px 80px -24px rgba(10, 12, 16, 0.45),
            0 0 0 1px rgba(10, 36, 68, 0.06),
            -40px 30px 90px -50px rgba(10, 12, 16, 0.5),
            40px 30px 90px -50px rgba(244, 162, 30, 0.45);
    }

    /* Service areas cascade in when the menu opens */
    .has-dropdown:hover .ms-tab,
    .has-dropdown:focus-within .ms-tab { animation: msTabIn 0.45s var(--ease-premium) backwards; }
    .has-dropdown:hover .ms-tab:nth-of-type(2) { animation-delay: 0.04s; }
    .has-dropdown:hover .ms-tab:nth-of-type(3) { animation-delay: 0.08s; }
    .has-dropdown:hover .ms-tab:nth-of-type(4) { animation-delay: 0.12s; }
    .has-dropdown:hover .ms-tab:nth-of-type(5) { animation-delay: 0.16s; }
    .has-dropdown:hover .ms-tab:nth-of-type(6) { animation-delay: 0.2s; }
    .has-dropdown:hover .ms-spotlight { animation: msTabIn 0.5s var(--ease-premium) 0.22s backwards; }
    @keyframes msTabIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
    .has-dropdown:hover .ms-tab, .has-dropdown:hover .ms-spotlight { animation: none !important; }
}
@media (min-width: 1025px) {
    .ms-panels { display: flex; flex-direction: column; }
    .ms-panel.is-active { flex: 1 0 auto; min-height: 0; }
}

/* ==========================================================================
   CAPSULE BORDER v2: full TM spectrum, clearly visible, rotating + halo
   ========================================================================== */
@media (min-width: 1025px) {
    .navbar-nav-container {
        --cap-spectrum: conic-gradient(from var(--cap-angle),
            #4FCFFF 0deg,
            #0AAEE0 50deg,
            #1E75B0 95deg,
            #173E6E 140deg,
            #9BC73B 195deg,
            #FDC943 245deg,
            #F4A21E 285deg,
            #E57E27 320deg,
            #4FCFFF 360deg);
        border: 1.5px solid transparent;
        background:
            linear-gradient(180deg, #FCFDFF, #F4F6FC) padding-box,
            var(--cap-spectrum) border-box;
        box-shadow: inset 0 1px 0 #ffffff, 0 10px 26px -18px rgba(10, 12, 16, 0.4);
        animation: capGlint 6s linear infinite;
    }
    /* Soft coloured halo that rotates with the border */
    .navbar-nav-container::after {
        content: '';
        position: absolute;
        inset: -2px;
        z-index: -1;
        border-radius: inherit;
        background: var(--cap-spectrum);
        filter: blur(10px);
        opacity: 0.32;
        pointer-events: none;
        animation: capGlint 6s linear infinite;
    }
}
@media (prefers-reduced-motion: reduce) {
    .navbar-nav-container, .navbar-nav-container::after { animation: none; }
}

/* ==========================================================================
   BUTTER LAYER: compositor-only animation, seamless menu switching
   ========================================================================== */
.cap-ring, .cap-halo { display: none; }

@media (min-width: 1025px) {
    /* --- Capsule spectrum: rotate a pre-painted wheel (transform only) --- */
    .navbar-nav-container {
        animation: none;
        border: 1.5px solid transparent;
        background: linear-gradient(180deg, #FCFDFF, #F4F6FC) padding-box;
    }
    .navbar-nav-container::after { content: none; }

    .cap-ring, .cap-halo {
        display: block;
        position: absolute;
        border-radius: 999px;
        pointer-events: none;
        overflow: hidden;
    }
    .cap-ring {
        inset: -1.5px;
        z-index: 0;
        padding: 1.5px;
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
                mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    }
    .cap-halo {
        inset: -3px;
        z-index: -1;
        opacity: 0.3;
        filter: blur(10px);
    }
    .cap-ring::before, .cap-halo::before {
        content: '';
        position: absolute;
        left: 50%; top: 50%;
        width: 115%;
        aspect-ratio: 1;
        background: conic-gradient(#4FCFFF 0deg, #0AAEE0 50deg, #1E75B0 95deg, #173E6E 140deg, #9BC73B 195deg, #FDC943 245deg, #F4A21E 285deg, #E57E27 320deg, #4FCFFF 360deg);
        transform: translate(-50%, -50%) rotate(0deg);
        animation: capWheel 6s linear infinite;
        will-change: transform;
    }
    @keyframes capWheel { to { transform: translate(-50%, -50%) rotate(360deg); } }

    /* --- CTA ring: same technique --- */
    .cta-ring { background: none; animation: none; overflow: hidden; }
    .cta-ring::before {
        content: '';
        position: absolute;
        left: 50%; top: 50%;
        width: 130%;
        aspect-ratio: 1;
        background: conic-gradient(transparent 0deg, #4FCFFF 60deg, #9BC73B 120deg, #FDC943 170deg, transparent 220deg, transparent 360deg);
        transform: translate(-50%, -50%) rotate(0deg);
        animation: capWheel 4.5s linear infinite;
        will-change: transform;
    }

    /* --- Dim behind menus: no full-page blur (expensive), longer grace on hide --- */
    .navbar::after {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(8, 9, 12, 0.34);
        transition: opacity 0.35s ease 0.18s, visibility 0s linear 0.53s;
    }

    /* --- Hover intent: a breath before opening so sweeps don't flash menus --- */
    .has-dropdown:hover .mega-dropdown {
        transition: opacity 0.3s var(--ease-premium) 0.06s, transform 0.4s var(--ease-premium) 0.06s, visibility 0s 0.06s;
    }
    /* Switching from one open menu to another: instant cross-fade, no re-drop */
    .navbar-nav.is-switching .has-dropdown:hover .mega-dropdown {
        transform: translateX(-50%) translateY(0) scale(1);
        transition: opacity 0.18s ease, visibility 0s;
    }
    .navbar-nav.is-switching .has-dropdown:hover .mega-dropdown * { animation-duration: 0s !important; animation-delay: 0s !important; }

    /* Keyboard dismiss (Escape) */
    .navbar-nav-container .has-dropdown.is-dismissed .mega-dropdown { opacity: 0 !important; visibility: hidden !important; transition: none !important; }

    /* GPU hints for the moving parts */
}

@media (prefers-reduced-motion: reduce) {
    .cap-ring::before, .cap-halo::before, .cta-ring::before { animation: none !important; }
}

/* ==========================================================================
   MICRO-INTERACTIONS: ripple · text lift · logo glow · compact capsule
   ========================================================================== */
@media (min-width: 1025px) {
    .nav-link > span:not(.nav-link-icon) { display: inline-block; transition: transform 0.3s var(--ease-premium); }
    .nav-link:hover > span:not(.nav-link-icon) { transform: translateY(-1px); }

    .navbar-brand .brand-logo-img { transition: height 0.35s var(--ease-premium), filter 0.4s ease; }
    .navbar-brand:hover .brand-logo-img { filter: drop-shadow(0 4px 10px rgba(10, 174, 224, 0.28)) drop-shadow(0 2px 6px rgba(244, 162, 30, 0.18)); }

    .navbar.scrolled .navbar-nav-container { padding: 0.22rem; }
    .navbar.scrolled .nav-indicator { top: 0.22rem; height: calc(100% - 0.44rem); }
    .navbar-nav-container { transition: padding 0.35s var(--ease-premium); }
}

/* Click ripple (spawned by JS at the pointer) */
.nav-ripple {
    position: absolute;
    width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 174, 224, 0.35), rgba(10, 174, 224, 0) 70%);
    pointer-events: none;
    transform: scale(0);
    animation: navRipple 0.6s var(--ease-premium) forwards;
    z-index: 0;
}
.btn-navbar-cta .nav-ripple { background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%); }
@keyframes navRipple { to { transform: scale(14); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nav-ripple { display: none; } }

/* Mobile drawer: a closed Why Us / Join Us section collapses completely
   (its padding/border used to peek out as a thin empty strip) */
@media (max-width: 1024px) {
    .mega-about-inner { transition: padding 0.35s var(--ease-premium), margin 0.35s var(--ease-premium), border-width 0.35s ease; }
    .has-dropdown:not(.dropdown-open) .mega-about-inner {
        padding-top: 0; padding-bottom: 0;
        margin-top: 0; margin-bottom: 0;
        border-width: 0;
    }
}
@media (max-width: 1024px) {
    /* the desktop 232px column width must not become a height in the stacked drawer */
    .mega-join .mega-about-feature { flex: none; }
}
@media (max-width: 1024px) {
    .mega-join .mega-about-grid { padding: 0; }
}

/* Search: latest insights in the empty state */
.ss-chip { cursor: pointer; font-family: inherit; }
.ss-latest { display: flex; flex-direction: column; gap: 0.15rem; padding: 0 0.35rem; }
.ss-latest-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.6rem; border-radius: 12px; color: var(--tm-navy, #111A2B); transition: background 0.2s ease; }
.ss-latest-item:hover, .ss-latest-item:focus-visible { background: rgba(10, 36, 68, 0.05); }
.ss-latest-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; color: #fff; background: linear-gradient(135deg, #1E8FD0, #16508E); }
.ss-latest-item > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ss-latest-item strong { font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-latest-item small { font-size: 0.74rem; color: #6B7280; }
.ss-latest-go { font-size: 0.75rem; color: #9CA3AF; opacity: 0; transform: translateX(-4px); transition: all 0.2s ease; }
.ss-latest-item:hover .ss-latest-go { opacity: 1; transform: none; }

/* Why Us mega menu: labelled sections + trust strip */
.mega-about-side { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1rem 1rem .9rem; }
.mega-about-side > .mega-about-grid { flex: 0 0 auto; padding: .35rem 0 0; }
.mas-label { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8A93A1; padding: 0 .35rem; }
.mas-visit { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; margin-top: .7rem; padding: .8rem .9rem; border-radius: 14px; background: linear-gradient(135deg, #F3F8FD, #F6F7F9); border: 1px solid #E3ECF6; }
.mas-visit-place { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.mas-visit-place .mas-label { padding: 0; }
.mas-visit-name { font-size: .86rem; font-weight: 800; color: #111A2B; }
.mas-visit-addr { font-size: .76rem; font-weight: 500; line-height: 1.4; color: #4B5563; }
.mas-visit-addr i { margin-right: .25rem; color: #E57E27; }
.mas-visit-hours { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; color: #5B6472; }
.mas-visit-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #94A3B8; }
.mas-visit-dot.is-open { background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.mas-visit-dot.is-closed { background: #F59E0B; }
.mas-visit-links { display: flex; flex-direction: column; gap: .35rem; padding-left: 1rem; border-left: 1px dashed #DCE0E6; }
.mas-visit-links a { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; color: #1E75B0; white-space: nowrap; text-decoration: none; }
.mas-visit-links a:hover { color: #16508E; }
.mas-visit-links i { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; color: #fff; background: linear-gradient(135deg, #1E8FD0, #16508E); }
.mas-trust { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin-top: .7rem; padding: .8rem .9rem; border-radius: 14px; background: #F6F7F9; border: 1px solid #EDEFF2; }
.mas-certs { display: flex; flex-direction: column; gap: .35rem; padding-right: 1rem; border-right: 1px dashed #DCE0E6; }
.mas-certs .mas-label, .mas-partners .mas-label { padding: 0; margin-bottom: .1rem; }
.mas-cert { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; color: #1F2430; white-space: nowrap; }
.mas-cert i { color: #5C8A1E; font-size: .72rem; }
.mas-partners { min-width: 0; }
.mas-logos { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .9rem; margin-top: .35rem; }
.mas-logos img { height: 16px; width: auto; max-width: 70px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.mega-about:hover .mas-logos img { filter: none; opacity: 1; }
@media (max-width: 1024px) { .mas-trust, .mas-visit, .maf-points { display: none; } .mega-about-side { padding: 0; } .mega-about-side > .mas-label { display: none; } }

/* Services menu: Industries card in the rail (distinct from the service-area tabs) */
.ms-tab.ms-ind-cta { position: relative; display: flex; align-items: center; gap: .7rem; margin: .7rem 0 .2rem; padding: .7rem .8rem; border-radius: 14px; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, #111A2B, #16508E); box-shadow: 0 14px 28px -18px rgba(11,18,32,.8); transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.ms-tab.ms-ind-cta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: linear-gradient(90deg, #4FCFFF, #9BC73B, #F4A21E); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.ms-tab.ms-ind-cta:hover, .ms-tab.ms-ind-cta.is-active { transform: translateY(-1px); box-shadow: 0 18px 32px -18px rgba(11,18,32,.9); }
.ms-tab.ms-ind-cta.is-active::after { opacity: 1; }
.ms-ind-cta-thumbs { display: flex; flex-shrink: 0; }
.ms-ind-cta-thumbs img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #16508E; margin-left: -9px; }
.ms-ind-cta-thumbs img:first-child { margin-left: 0; }
.ms-ind-cta-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.ms-ind-cta-text strong { font-family: var(--font-heading); font-size: .86rem; color: #fff; }
.ms-ind-cta-text small { font-size: .7rem; color: rgba(255,255,255,.7); }
.ms-ind-cta-go { font-size: .72rem; color: #FDC943; transition: transform .25s; }
.ms-ind-cta:hover .ms-ind-cta-go, .ms-ind-cta.is-active .ms-ind-cta-go { transform: translateX(3px); }

/* Services menu: Industries panel tiles */
.ms-ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.ms-ind { position: relative; display: flex; align-items: flex-end; height: 150px; overflow: hidden; padding: .75rem; border-radius: 14px; color: #fff; background: #111A2B; text-decoration: none; }
.ms-ind:hover { color: #fff; }
.ms-ind-img { position: absolute; inset: 0; }
.ms-ind-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.ms-ind-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,.05) 0%, rgba(11,18,32,.55) 40%, rgba(11,18,32,.95) 100%); }
.ms-ind:hover .ms-ind-img img { transform: scale(1.08); }
.ms-ind-body { position: relative; display: grid; gap: .3rem; }
.ms-ind-title { display: flex; align-items: center; gap: .5rem; }
.ms-ind-icon { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; background: rgba(255,255,255,.18); }
.ms-ind-body strong { font-size: .84rem; line-height: 1.25; }
.ms-ind-body small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .7rem; line-height: 1.4; color: rgba(255,255,255,.72); }
.ms-ind.is-current { box-shadow: 0 0 0 2px #F4A21E; }

/* ==========================================================================
   SERVICES MEGA-MENU: fit six service areas on screen
   With all six areas the rail outgrew laptop screens (about 600px tall at
   125-150% display scaling) and the menu ran off the bottom. The spotlight
   box goes on desktop, and short screens get slightly tighter rows.
   ========================================================================== */
@media (min-width: 1025px) {
    .ms-spotlight { display: none; }
}
@media (min-width: 1025px) and (max-height: 760px) {
    .ms-tab { min-height: 32px; padding-top: .3rem; padding-bottom: .3rem; }
    .ms-rail { padding-top: .7rem; padding-bottom: .6rem; }
    .ms-panel { padding-top: 1rem; padding-bottom: .9rem; }
}

/* Compact Why Us / About Us menus */
.mega-about { width: min(760px, calc(100vw - 2rem)); }
.mega-about-feature { flex-basis: 270px; padding: 1.3rem 1.3rem 1.2rem; }
.mega-about-feature .maf-title { font-size: 1.2rem; }
.mega-about-feature .maf-desc { margin-bottom: 1rem; }
.mega-about-feature .maf-stats { margin-bottom: 1rem; }
.mega-about-side { padding: .9rem .9rem .8rem; }
.mega-about-side > .mega-about-grid { gap: .25rem; }
.mega-about-card { gap: .75rem; padding: .75rem .8rem; border-radius: 14px; }
.mega-about-card-icon { width: 38px; height: 38px; border-radius: 11px; }
.mega-about-card-title { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-about-card-desc { font-size: .76rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-about-card-more { margin-top: .35rem; font-size: .76rem; }
.mas-visit { grid-template-columns: auto 1fr auto; gap: .75rem; margin-top: .5rem; padding: .65rem .8rem; }
.mas-visit-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; color: #fff; background: linear-gradient(135deg, #FDC943, #E57E27); }
.mas-visit-place { gap: .1rem; }
.mas-visit-name { font-size: .8rem; }
.mas-visit-addr { font-size: .72rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mas-visit-links { gap: .25rem; padding-left: .8rem; }
.mas-visit-links a { font-size: .74rem; }
.mas-visit-links i { width: 20px; height: 20px; border-radius: 6px; font-size: .6rem; }
.mas-visit-hours { font-size: .7rem; white-space: nowrap; }
.mega-about-feature .maf-eyebrow { white-space: nowrap; font-size: .64rem; letter-spacing: .1em; }

/* Bottom strips: Head Office (About Us) and Some of our clients (Why Us) */
.mas-visit { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .9rem; }
.mas-visit-addr { -webkit-line-clamp: unset; display: block; }
.mas-divider { align-self: stretch; width: 1px; background: linear-gradient(180deg, transparent, #CBD5E1 20%, #CBD5E1 80%, transparent); }
.mas-visit-links { padding-left: 0; border-left: 0; gap: .3rem; }
.mas-visit-links .mas-label { padding: 0; }
.mas-clients { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; margin-top: .5rem; padding: .65rem .8rem; border-radius: 14px; text-decoration: none; color: inherit; background: linear-gradient(135deg, #F3F8FD, #F6F7F9); border: 1px solid #E3ECF6; transition: border-color .25s, box-shadow .25s; }
.mas-clients:hover { border-color: rgba(30, 143, 208, .35); box-shadow: 0 12px 24px -18px rgba(11, 18, 32, .5); }
.mas-clients-text { display: flex; flex-direction: column; gap: .15rem; }
.mas-clients-text .mas-label { padding: 0; }
.mas-clients-text strong { font-size: .76rem; font-weight: 700; color: #1F2430; line-height: 1.35; max-width: 170px; }
.mas-clients-logos { display: flex; align-items: center; gap: .4rem; min-width: 0; overflow: hidden; }
.mas-clients-logos span { flex: 0 0 auto; width: 54px; height: 34px; display: flex; align-items: center; justify-content: center; padding: .25rem .35rem; border-radius: 8px; background: #fff; border: 1px solid #E5E9EF; }
.mas-clients-logos img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mas-clients-go { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; color: #fff; background: linear-gradient(135deg, #1E8FD0, #16508E); transition: transform .25s; }
.mas-clients:hover .mas-clients-go { transform: translateX(3px); }
@media (max-width: 1024px) { .mas-clients { display: none; } }
