/* ==========================================================================
   Site-wide WoodMart navigation in the MX1 brand system: desktop links,
   the CTA button, the services dropdown and the mobile drawer.
   Scoped to body.mx1-nav; the navy bar itself comes from MX1_VP_Render::header_css().
   ========================================================================== */
body.mx1-nav {
	--nv-blue: #365de3;
	--nv-blue-2: #4672f9;
	--nv-glow: #5f98fd;
	--nv-navy: #080e38;
	--nv-panel: #0d1442;
	--nv-paper: #f2f4ff;
	--nv-mute: rgba(242, 244, 255, 0.72);
	--nv-line: rgba(242, 244, 255, 0.1);
	--nv-font: "MX1 Readex", "Readex Pro", Tajawal, system-ui, sans-serif;
	--nv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.mx1-nav .whb-header :is(.wd-nav-main, .wd-dropdown-menu, .wd-button-wrapper) :is(a, span, li, div),
.mx1-nav .mobile-nav :is(a, span, li, div, p, strong) { font-family: var(--nv-font) !important; }

/* ---------- desktop links ---------- */
.mx1-nav .whb-header .wd-nav-main { gap: 0.25rem; }
.mx1-nav .whb-header .wd-nav-main > li > a {
	position: relative; height: 44px; padding-inline: 0.95rem !important; font-size: 0.98rem; font-weight: 600; letter-spacing: 0;
	color: var(--nv-mute) !important; transition: color 0.25s;
}
.mx1-nav .whb-header .wd-nav-main > li > a .nav-link-text { font-family: var(--nv-font) !important; }
.mx1-nav .whb-header .wd-nav-main > li > a::after { display: none !important; } /* theme underline */
.mx1-nav .whb-header .wd-nav-main > li > a::before {
	content: ""; position: absolute; inset-inline: 0.95rem; inset-block-end: 4px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--nv-glow), var(--nv-blue-2)); transform: scaleX(0); transition: transform 0.35s var(--nv-ease);
}
.mx1-nav .whb-header .wd-nav-main > li:is(:hover, .wd-opened, :focus-within) > a,
.mx1-nav .whb-header .wd-nav-main > li:is(.current-menu-item, .current-menu-ancestor, .current-page-ancestor, .current-menu-parent) > a { color: #fff !important; }
.mx1-nav .whb-header .wd-nav-main > li:is(:hover, :focus-within) > a::before,
.mx1-nav .whb-header .wd-nav-main > li:is(.current-menu-item, .current-menu-ancestor, .current-page-ancestor, .current-menu-parent) > a::before { transform: scaleX(1); }
.mx1-nav .whb-header .wd-nav-main > li.menu-item-has-children > a .nav-link-text::after { color: var(--nv-glow); }

/* ---------- CTA ---------- */
.mx1-nav .whb-header .wd-button-wrapper .btn {
	display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0 1.35rem !important; border: 0 !important; border-radius: 0 !important;
	font-size: 0.98rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff !important;
	background: linear-gradient(120deg, var(--nv-blue-2), var(--nv-blue)) !important; box-shadow: none !important;
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
	transition: background 0.3s, filter 0.3s;
}
.mx1-nav .whb-header .wd-button-wrapper .btn:is(:hover, :focus-visible) { background: linear-gradient(120deg, var(--nv-glow), var(--nv-blue-2)) !important; filter: drop-shadow(0 6px 18px rgba(70, 114, 249, 0.55)); }
.mx1-nav .whb-header .wd-button-wrapper .btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- services dropdown ---------- */
.mx1-nav .whb-header .wd-dropdown-menu.wd-design-default {
	min-width: 320px; width: max-content; max-width: 380px; padding: 0.6rem !important; margin-block-start: 6px;
	background: rgba(11, 18, 58, 0.97) !important; border: 0 !important; border-radius: 0 !important;
	box-shadow: inset 0 0 0 1px rgba(95, 152, 253, 0.28), 0 24px 48px -12px rgba(0, 0, 0, 0.55) !important;
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.mx1-nav .whb-header .wd-dropdown-menu.wd-design-default::before,
.mx1-nav .whb-header .wd-dropdown-menu.wd-design-default::after { display: none !important; }
.mx1-nav .whb-header .wd-dropdown-menu .container { padding: 0 !important; max-width: none; }
.mx1-nav .whb-header .wd-dropdown-menu .wd-sub-menu { display: grid; gap: 2px; padding: 0 !important; background: none !important; }
.mx1-nav .whb-header .wd-dropdown-menu .wd-sub-menu li { padding: 0 !important; background: none !important; }
.mx1-nav .whb-header .wd-dropdown-menu .wd-sub-menu li > a {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0.6rem 0.9rem !important;
	font-size: 0.97rem; font-weight: 600; line-height: 1.5; white-space: normal; color: var(--nv-paper) !important; background: transparent !important;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background 0.25s, color 0.25s, padding 0.3s var(--nv-ease);
}
.mx1-nav .whb-header .wd-dropdown-menu .wd-sub-menu li > a::after {
	content: ""; flex: none; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); color: var(--nv-glow); opacity: 0; transition: opacity 0.25s, transform 0.3s var(--nv-ease);
}
.mx1-nav .whb-header .wd-dropdown-menu .wd-sub-menu li > a:is(:hover, :focus-visible) { background: rgba(70, 114, 249, 0.16) !important; color: #fff !important; padding-inline-start: 1.15rem !important; }
.mx1-nav .whb-header .wd-dropdown-menu .wd-sub-menu li > a:is(:hover, :focus-visible)::after { opacity: 1; }
.mx1-nav .whb-header .wd-dropdown-menu .wd-sub-menu li.current-menu-item > a { background: linear-gradient(120deg, var(--nv-blue-2), var(--nv-blue)) !important; color: #fff !important; }
.mx1-nav .whb-header .wd-dropdown-menu .wd-sub-menu li.current-menu-item > a::after { opacity: 1; color: #fff; }

/* ---------- mobile bar ---------- */
.mx1-nav .whb-header .wd-header-mobile-nav .wd-tools-icon { color: #fff !important; }
.mx1-nav .whb-header .wd-header-mobile-nav > a {
	display: inline-grid; place-items: center; width: 46px; height: 46px; background: rgba(242, 244, 255, 0.08);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.mx1-nav .whb-header .wd-header-mobile-nav .wd-tools-icon::before { color: #fff !important; }

/* ---------- mobile drawer ---------- */
.mx1-nav .mobile-nav.wd-side-hidden {
	display: flex; flex-direction: column; width: min(340px, 88vw);
	background: linear-gradient(180deg, var(--nv-navy) 0%, #0b1238 100%) !important; color: var(--nv-paper);
	box-shadow: -24px 0 48px rgba(0, 0, 0, 0.45);
}
.mx1-nav .mobile-nav .mx1-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-block-end: 1px solid var(--nv-line); }
.mx1-nav .mobile-nav .mx1-drawer__head img { width: 96px; height: auto; }
.mx1-nav .mobile-nav .mx1-drawer__close {
	display: inline-grid; place-items: center; width: 42px; height: 42px; min-height: 0; padding: 0; border: 0; color: #fff; background: rgba(242, 244, 255, 0.08); cursor: pointer;
	clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.mx1-nav .mobile-nav .mx1-drawer__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mx1-nav .mobile-nav .wd-nav-mobile { padding: 0.6rem 0.75rem !important; background: none !important; }
.mx1-nav .mobile-nav .wd-nav-mobile li { border: 0 !important; background: none !important; }
.mx1-nav .mobile-nav .wd-nav-mobile > li { margin-block-end: 2px; }
.mx1-nav .mobile-nav .wd-nav-mobile li > a {
	min-height: 52px; padding: 0.7rem 0.9rem !important; font-size: 1.02rem; font-weight: 600; color: var(--nv-paper) !important; background: none !important;
	border: 0 !important; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); transition: background 0.25s;
}
.mx1-nav .mobile-nav .wd-nav-mobile li > a:is(:hover, :focus-visible) { background: rgba(70, 114, 249, 0.14) !important; color: #fff !important; }
.mx1-nav .mobile-nav .wd-nav-mobile li:is(.current-menu-item, .current-page-ancestor, .current-menu-ancestor) > a { background: rgba(70, 114, 249, 0.18) !important; color: #fff !important; box-shadow: inset -3px 0 0 var(--nv-blue-2); }
.mx1-nav .mobile-nav .wd-nav-mobile .wd-nav-opener { width: 52px; height: 52px; color: var(--nv-glow) !important; border: 0 !important; background: rgba(242, 244, 255, 0.05) !important; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.mx1-nav .mobile-nav .wd-nav-mobile .wd-nav-opener::after { color: var(--nv-glow) !important; }
.mx1-nav .mobile-nav .wd-nav-mobile .wd-sub-menu { margin: 2px 0 6px !important; padding: 0.35rem 0 !important; background: rgba(242, 244, 255, 0.04) !important; border-inline-end: 2px solid rgba(70, 114, 249, 0.5); }
.mx1-nav .mobile-nav .wd-nav-mobile .wd-sub-menu li > a { min-height: 46px; padding-inline: 1.25rem 0.9rem !important; font-size: 0.95rem; font-weight: 500; color: var(--nv-mute) !important; }
.mx1-nav .mobile-nav .mx1-drawer__foot { display: grid; gap: 0.6rem; margin-block-start: auto; padding: 1.1rem 1.25rem 1.5rem; border-block-start: 1px solid var(--nv-line); }
.mx1-nav .mobile-nav .mx1-drawer__foot p { margin: 0 0 0.25rem; font-size: 0.92rem; line-height: 1.7; color: var(--nv-mute); }
.mx1-nav .mobile-nav .mx1-drawer__btn {
	display: flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 50px; padding: 0 1rem; font-size: 1rem; font-weight: 700; color: #fff !important;
	background: linear-gradient(120deg, var(--nv-blue-2), var(--nv-blue)); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.mx1-nav .mobile-nav .mx1-drawer__btn--ghost { background: rgba(242, 244, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(242, 244, 255, 0.25); }
.mx1-nav .mobile-nav .mx1-drawer__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mx1-nav .wd-close-side { background: rgba(3, 6, 26, 0.6) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* The floating chat bubble would cover the drawer's buttons while it is open. */
body.mx1-nav:has(.mobile-nav.wd-opened) #wa { display: none !important; }
