/* ════════════════════════════════════════════════════════════════════════════
   Public website header — premium glass / sticky / centered pill navigation.

   These styles are GLOBAL (not Blazor-scoped) on purpose: the desktop menu and
   the Apply Now CTA use <NavLink>, whose rendered <a> does NOT receive a parent
   component's CSS-isolation scope attribute. Scoped rules therefore never match
   those anchors (they fall back to default blue underlined links). Keeping the
   header styles global guarantees the pills/CTA render as designed.
   All selectors are `.mts-*` prefixed and confined to the public header.
   ════════════════════════════════════════════════════════════════════════════ */

.mts-header { z-index: 1030; }

/* ── Utility top bar (dark navy) ─────────────────────────────────────────────── */
.mts-topbar {
    background: #062B57;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    padding: 0.45rem 0;
    letter-spacing: 0.01em;
}

.mts-topbar-info a,
.mts-topbar-info span {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.18s ease;
}

.mts-topbar-info i { color: var(--mts-accent); margin-right: 0.4rem; font-size: 0.9rem; }
.mts-topbar-info a:hover { color: #fff; }

/* Social icons */
.mts-social {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mts-social:hover { background: var(--mts-accent); color: #062B57; transform: translateY(-2px); }

.mts-divider {
    width: 1px; height: 18px;
    background: rgba(255, 255, 255, 0.22);
    display: inline-block; margin: 0 0.25rem;
}

/* Top-bar login */
.mts-topbar-login {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.25rem;
    transition: color 0.18s ease;
}
.mts-topbar-login:hover { color: var(--mts-accent); }
.mts-topbar-login .bi-person-circle { font-size: 1.05rem; }

/* ── Main navbar — white glass, ~90px, rounded bottom, shadow-on-scroll ──────── */
.mts-navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(13, 59, 102, 0.08);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 0 0 rgba(13, 59, 102, 0);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Shadow appears only after scrolling (toggled by js/mts-utils.js) */
.mts-header.scrolled .mts-navbar {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 34px rgba(13, 59, 102, 0.14);
}

/* The bar: brand left, nav centered in the middle zone, CTA right.
   A flex gap guarantees a minimum space between the three sections. */
.mts-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 90px;
}

/* Brand — logo + title + subtitle, all vertically centered */
.mts-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex-shrink: 0; }

.mts-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 3px 6px rgba(13, 59, 102, 0.14));
}
.mts-logo.mts-logo-sm { height: 42px; filter: none; }
@media (max-width: 991.98px) { .mts-logo { height: 54px; } }
@media (max-width: 575.98px) { .mts-logo { height: 46px; } }

.mts-brand-name {
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
    color: var(--mts-navy);
    letter-spacing: -0.01em;
}
.mts-brand-sub {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mts-accent-dark);
    margin-top: 4px;
    white-space: nowrap;     /* never crop / hide the subtitle */
}

/* ── Desktop nav — glass pill bar centered in the remaining space ────────────── */
/* The zone takes all space between the logo and the CTA and centres the pill bar
   inside it, so the nav is centred without ever overlapping or crowding the logo. */
.mts-navzone {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mts-navwrap {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 34px rgba(13, 59, 102, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.mts-nav { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0; }

/* Each item — a premium, fully-rounded navigation pill (never a hyperlink) */
.mts-nav .mts-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1;
    color: #062B57;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

/* Hover — gold fill, dark-blue text, lift, glow */
.mts-nav .mts-link:hover {
    background: #FFC107;
    color: #062B57;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 193, 7, 0.5);
}

/* Active — dark-blue gradient pill with soft glow + shadow */
.mts-nav .mts-link.active {
    background: linear-gradient(135deg, #062B57 0%, #0D4C92 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(13, 76, 146, 0.45), 0 0 0 3px rgba(13, 76, 146, 0.14);
}
.mts-nav .mts-link.active:hover {
    background: linear-gradient(135deg, #062B57 0%, #0D4C92 100%);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Apply Now — hero-grade gold gradient pill ───────────────────────────────── */
.mts-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-shrink: 0;
    height: 60px;
    padding: 0 36px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    box-shadow: 0 8px 22px rgba(255, 152, 0, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, filter 0.25s ease;
}
.mts-apply .bi { font-size: 1.05rem; transition: transform 0.25s ease; }
.mts-apply:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #FFCA28 0%, #FB8C00 100%);
    box-shadow: 0 16px 34px rgba(255, 152, 0, 0.6), 0 0 0 4px rgba(255, 193, 7, 0.2);
    filter: brightness(1.03);
}
.mts-apply:hover .bi { transform: translateX(4px); }

.mts-apply-block { display: flex; justify-content: center; margin-left: 0; padding: 14px 28px; }

/* ── Hamburger — tablet & mobile only (never desktop) ────────────────────────── */
.mts-burger {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 59, 102, 0.06);
    color: var(--mts-navy);
    transition: background 0.2s ease, transform 0.2s ease;
}
.mts-burger:focus { outline: none; box-shadow: none; }
.mts-burger:hover { background: rgba(13, 59, 102, 0.13); transform: translateY(-1px); }
.mts-burger .bi { font-size: 1.7rem; line-height: 1; }

/* ── Off-canvas (slide-in) ───────────────────────────────────────────────────── */
.mts-offcanvas {
    width: min(340px, 86vw);
    border-left: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: -12px 0 40px rgba(13, 59, 102, 0.18);
}
.mts-offcanvas .offcanvas-title { font-weight: 800; color: var(--mts-navy); }

.mts-offcanvas .nav-link {
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #062B57;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}
.mts-offcanvas .nav-link:hover {
    color: #062B57;
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 193, 7, 0.45);
}
.mts-offcanvas .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #062B57 0%, #0D4C92 100%);
    box-shadow: 0 10px 24px rgba(13, 76, 146, 0.35);
}

.mts-mobile-social .mts-social { color: var(--mts-navy); background: rgba(13, 59, 102, 0.07); }
.mts-mobile-social .mts-social:hover { color: #062B57; background: var(--mts-accent); }

.mts-mobile-contact { color: #6b7280; border-top: 1px solid rgba(13, 59, 102, 0.08); }
.mts-mobile-contact i { color: var(--mts-accent-dark); }

/* Wide desktops (xl container ~1140): compact to fit — subtitle stays visible */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .mts-navwrap { height: 54px; padding: 0 12px; }
    .mts-nav { gap: 10px; }
    .mts-nav .mts-link { padding: 9px 15px; font-size: 15px; }
    .mts-brand-name { font-size: 21px; }
    .mts-brand-sub { font-size: 12px; letter-spacing: 1.5px; }
    .mts-logo { height: 56px; }
    .mts-apply { height: 54px; padding: 0 26px; font-size: 16px; }
}

/* Small desktops (lg container ~960): tighter, subtitle still visible */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .mts-navwrap { height: 48px; padding: 0 8px; }
    .mts-nav { gap: 6px; }
    .mts-nav .mts-link { padding: 7px 12px; font-size: 13.5px; letter-spacing: 0.3px; }
    .mts-brand-name { font-size: 19px; }
    .mts-brand-sub { font-size: 10.5px; letter-spacing: 1px; }
    .mts-logo { height: 48px; }
    .mts-apply { height: 48px; padding: 0 20px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .mts-nav .mts-link, .mts-apply, .mts-apply .bi, .mts-social { transition: none; }
    .mts-nav .mts-link:hover, .mts-apply:hover { transform: none; }
}
