/* MEKSOFT site header (replaces the Elementor header). All selectors are scoped to .msh. */
html { scroll-padding-top: 96px; }

.msh {
    --msh-primary: #0A1B65;
    --msh-accent: #FD7E14;
    --msh-accent-2: #FF5A36;
    --msh-text: #3B3B3B;
    --msh-muted: #5B6380;
    --msh-line: #E8EBF4;
    --msh-soft: #F4F6FC;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    font-family: "Inter", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.msh.is-scrolled { box-shadow: 0 8px 28px rgba(10, 27, 101, .10); border-bottom-color: var(--msh-line); }

.msh *, .msh *::before, .msh *::after { box-sizing: border-box; }
.msh ul { list-style: none; margin: 0; padding: 0; }
.msh a { text-decoration: none; }
.msh .msh-btn-reset,
.msh .msh-btn-reset:hover,
.msh .msh-btn-reset:focus {
    appearance: none; background: none; border: 0; border-radius: 8px; margin: 0; padding: 0;
    color: var(--msh-primary); font: inherit; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.msh a:focus-visible, .msh button:focus-visible { outline: 2px solid var(--msh-accent); outline-offset: 2px; }

.msh-inner {
    max-width: 1290px; margin: 0 auto; padding: 0 24px; height: 84px;
    display: flex; align-items: center; gap: 28px; transition: height .25s ease;
}
.msh.is-scrolled .msh-inner { height: 70px; }

.msh-logo { flex: none; display: block; line-height: 0; }
.msh-logo img { height: 56px; width: auto; display: block; transition: height .25s ease; }
.msh.is-scrolled .msh-logo img { height: 48px; }

/* The drawer wraps the menu; on desktop it is transparent to the layout. */
.msh-drawer { display: contents; }
.msh-drawer-head, .msh-drawer-foot { display: none; }

.msh-nav { margin-left: auto; }
.msh-menu { display: flex; align-items: center; gap: 2px; }
.msh-item { position: relative; display: flex; align-items: center; }

.msh .msh-link {
    position: relative; display: block; padding: 10px 14px; border-radius: 8px;
    color: var(--msh-primary); font-size: 15.5px; font-weight: 500; line-height: 1.2; letter-spacing: .01em; white-space: nowrap;
    transition: color .2s ease;
}
.msh .msh-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
    background: var(--msh-accent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.msh .msh-link:hover { color: var(--msh-primary); }
.msh .msh-link:hover::after,
.msh .current-menu-item > .msh-link::after,
.msh .msh-has-sub:has(.current-menu-item) > .msh-link::after { transform: scaleX(1); }
.msh .current-menu-item > .msh-link { font-weight: 600; }

.msh .msh-sub-toggle { width: 26px; height: 26px; margin-left: -10px; display: inline-flex; align-items: center; justify-content: center; }
.msh-sub-toggle svg { width: 12px; height: 12px; transition: transform .2s ease; }
.msh-has-sub.is-open > .msh-sub-toggle svg { transform: rotate(180deg); }

/* Dropdown */
.msh-sub {
    position: absolute; top: 100%; left: 50%; width: 600px; margin-top: 10px; padding: 12px;
    background: #fff; border: 1px solid var(--msh-line); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(10, 27, 101, .16);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.msh-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.msh-sub ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.msh .msh-sub a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; transition: background .15s ease; }
.msh .msh-sub a:hover, .msh .msh-sub .current-menu-item > a { background: var(--msh-soft); }
.msh-sub-icon {
    flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: #FFF1E6; color: var(--msh-accent);
}
.msh-sub-icon svg { width: 18px; height: 18px; }
.msh-sub-text { display: flex; flex-direction: column; gap: 2px; }
.msh-sub-title { color: var(--msh-primary); font-size: 15px; font-weight: 600; line-height: 1.3; }
.msh-sub-desc { color: var(--msh-muted); font-size: 13px; line-height: 1.4; }
.msh .msh-sub-all {
    display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 12px 14px;
    border-top: 1px solid var(--msh-line); color: var(--msh-primary); font-size: 14px; font-weight: 600;
}
.msh .msh-sub-all:hover { color: var(--msh-accent); }
.msh-sub-all svg { flex: none; width: 16px; height: 16px; }
.msh svg { flex: none; }

/* Actions */
.msh-actions { flex: none; display: flex; align-items: center; gap: 14px; }
.msh-lang { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--msh-soft); }
.msh .msh-lang a { padding: 5px 8px; border-radius: 7px; color: var(--msh-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; line-height: 1.2; }
.msh .msh-lang a:hover { color: var(--msh-primary); }
.msh .msh-lang a[aria-current] { background: #fff; color: var(--msh-primary); box-shadow: 0 1px 3px rgba(10, 27, 101, .12); }

.msh .msh-cta {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
    background: linear-gradient(90deg, var(--msh-accent), var(--msh-accent-2)); color: #fff;
    font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
    box-shadow: 0 8px 20px rgba(253, 126, 20, .28); transition: transform .15s ease, box-shadow .15s ease;
}
.msh .msh-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(253, 126, 20, .36); }
.msh-cta svg { width: 16px; height: 16px; }

.msh .msh-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; }
.msh .msh-burger:hover { background: var(--msh-soft); }
.msh-burger svg { width: 26px; height: 26px; }

.msh-backdrop { display: none; }

@media (min-width: 1181px) {
    .msh-has-sub:hover > .msh-sub,
    .msh-has-sub:focus-within > .msh-sub,
    .msh-has-sub.is-open > .msh-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .msh-has-sub:hover > .msh-sub-toggle svg { transform: rotate(180deg); }
}
@media (min-width: 1181px) and (max-width: 1300px) {
    .msh-inner { gap: 18px; }
    .msh .msh-link { padding: 10px 10px; font-size: 15px; }
    .msh .msh-link::after { left: 10px; right: 10px; }
}

/* Tablet & mobile: off-canvas drawer */
@media (max-width: 1180px) {
    .msh-inner { height: 72px; gap: 16px; }
    .msh.is-scrolled .msh-inner { height: 64px; }
    .msh-logo img, .msh.is-scrolled .msh-logo img { height: 46px; }
    .msh-actions { margin-left: auto; }
    .msh-actions .msh-lang { display: none; }
    .msh .msh-burger { display: inline-flex; }

    .msh-drawer {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002; width: min(400px, 88vw);
        display: flex; flex-direction: column; background: #fff; overflow-y: auto; overscroll-behavior: contain;
        box-shadow: -20px 0 50px rgba(10, 27, 101, .18);
        transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    }
    html.msh-open .msh-drawer { transform: none; visibility: visible; }
    .msh-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1001; background: rgba(10, 27, 101, .45);
        opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
    }
    html.msh-open .msh-backdrop { opacity: 1; visibility: visible; }
    html.msh-open, html.msh-open body { overflow: hidden; }

    .msh-drawer-head {
        display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 24px;
        border-bottom: 1px solid var(--msh-line);
    }
    .msh-drawer-head img { height: 42px; width: auto; display: block; }
    .msh .msh-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .msh .msh-close:hover { background: var(--msh-soft); }
    .msh-close svg { width: 22px; height: 22px; }

    .msh-nav { margin: 0; padding: 8px 16px; }
    .msh-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .msh-item { flex-wrap: wrap; border-bottom: 1px solid var(--msh-line); }
    .msh .msh-link { flex: 1; padding: 16px 8px; font-size: 17px; }
    .msh .msh-link::after { display: none; }
    .msh .current-menu-item > .msh-link, .msh .msh-has-sub:has(.current-menu-item) > .msh-link { color: var(--msh-accent); }
    .msh .msh-sub-toggle { width: 44px; height: 44px; margin: 0; }
    .msh-sub-toggle svg { width: 14px; height: 14px; }

    .msh-sub {
        position: static; width: 100%; margin: 0 0 10px; padding: 0; border: 0; border-radius: 0; box-shadow: none;
        opacity: 1; visibility: visible; transform: none; display: none;
    }
    .msh-sub::before { display: none; }
    .msh-has-sub.is-open > .msh-sub { display: block; }
    .msh-sub ul { grid-template-columns: 1fr; }
    .msh .msh-sub a { padding: 10px 8px; align-items: center; }
    .msh-sub-icon { width: 30px; height: 30px; }
    .msh-sub-desc { display: none; }
    .msh .msh-sub-all { margin: 4px 0 0; padding: 12px 8px; }

    .msh-drawer-foot { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding: 20px 24px 28px; background: var(--msh-soft); }
    .msh-drawer-foot .msh-cta { justify-content: center; padding: 14px 22px; }
    .msh-drawer-foot .msh-lang { align-self: flex-start; background: #fff; }
    .msh-contact { display: flex; flex-direction: column; gap: 8px; }
    .msh .msh-contact a { display: flex; align-items: center; gap: 10px; color: var(--msh-primary); font-size: 15px; font-weight: 500; }
    .msh-contact svg { width: 18px; height: 18px; color: var(--msh-accent); }
}
@media (max-width: 640px) {
    .msh-inner { padding: 0 16px; }
    .msh-actions .msh-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .msh, .msh * { transition: none !important; }
}
