/*
 * Ziebart UAE - phone and tablet menu, new look (see inc/zb-mobilemenu.php and inner-v3/mobilemenu.js).
 * Xtreme IT Services, 2026-11-20.
 */

/* ---------- Phone header bar: call button and menu button ---------- */

@media only screen and (max-width: 1080px) {
	header.mobileheadernew .logo.dddd {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		width: 100%;
	}

	header.mobileheadernew .zbmob-call {
		display: inline-flex !important;
		align-items: center;
		gap: 8px;
		height: 40px;
		padding: 0 15px;
		margin: 0 auto 0 0;
		border-radius: 999px;
		background: #dd0017;
		color: #fff !important;
		font-size: 13px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: .01em;
		text-decoration: none !important;
		white-space: nowrap;
		direction: ltr;
		unicode-bidi: isolate;
		box-shadow: 0 6px 14px -8px rgba(221, 0, 23, .8);
	}

	html[dir="rtl"] header.mobileheadernew .zbmob-call {
		margin: 0 0 0 auto;
	}

	header.mobileheadernew .zbmob-call .fa {
		color: #fff !important;
		font-size: 15px;
	}

	header.mobileheadernew .zbmob-call:active {
		background: #b80013;
	}

	header.mobileheadernew i.menu-toggle.zbmob-burger {
		display: inline-flex !important;
		flex: none;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		position: relative;
		top: auto;
		right: auto;
		left: auto;
		width: 44px;
		height: 44px;
		margin: 0;
		border-radius: 12px;
		background: #f2f3f5;
		font-size: 0 !important;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	header.mobileheadernew i.menu-toggle.zbmob-burger::before {
		content: none !important;
		display: none !important;
	}

	header.mobileheadernew i.zbmob-burger span {
		display: block;
		width: 20px;
		height: 2px;
		border-radius: 2px;
		background: #16181d;
	}

	header.mobileheadernew i.zbmob-burger:active {
		background: #e6e7ea;
	}

	header.mobileheadernew i.zbmob-burger:focus-visible,
	header.mobileheadernew .zbmob-call:focus-visible {
		outline: 2px solid #dd0017;
		outline-offset: 2px;
	}
}

/* Very narrow phones: the call button shows the short number only. */
@media only screen and (max-width: 359px) {
	header.mobileheadernew .zbmob-call {
		padding: 0 12px;
		font-size: 12px;
	}
}

/* ---------- The menu panel ---------- */

.mobile-menu.zbmob {
	--mob-red: #dd0017;
	--mob-ink: #16181d;
	--mob-text: #2b2f36;
	--mob-muted: #6b7079;
	--mob-line: #ececef;
	--mob-soft: #f5f6f8;
	top: 0;
	right: auto;
	left: 0 !important;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 440px;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	text-align: start;
	z-index: 100000;
	visibility: hidden;
	transform: translateX(-102%);
	transition: transform .32s cubic-bezier(.22, .8, .24, 1), visibility 0s linear .32s;
}

.mobile-menu.zbmob.active-menu {
	visibility: visible;
	transform: none;
	box-shadow: 0 0 48px rgba(0, 0, 0, .28);
	transition: transform .32s cubic-bezier(.22, .8, .24, 1), visibility 0s;
}

html[dir="rtl"] .mobile-menu.zbmob {
	right: 0;
	left: auto !important;
	transform: translateX(102%);
}

html[dir="rtl"] .mobile-menu.zbmob.active-menu {
	transform: none;
}

.zbmob-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(12, 14, 18, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s;
}

html.zbmob-open .zbmob-backdrop {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s ease, visibility 0s;
}

/* Stop the page scrolling behind the open menu. Only the outer page element is locked: the theme makes the page
   and body exactly one screen tall, so locking the body as well sent the page back to the top. */
html.zbmob-open {
	overflow: hidden !important;
}

html.zbmob-open body {
	overflow: visible !important;
}

/* Top bar */

.mobile-menu.zbmob .zbmob-top {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	min-height: 66px;
	padding: 10px 16px;
	background: #fff;
	border-bottom: 1px solid var(--mob-line);
}

.mobile-menu.zbmob .zbmob-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-inline-end: auto;
	text-decoration: none;
}

.mobile-menu.zbmob .zbmob-logo img {
	display: block;
	width: auto;
	height: 42px;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: none;
}

.mobile-menu.zbmob .zbmob-logo img.zbmob-mark {
	width: 104px;
	height: auto;
}

.mobile-menu.zbmob .zbmob-lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #dcdee3;
	color: var(--mob-ink) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
}

.mobile-menu.zbmob .zbmob-lang[lang="ar"] {
	font-size: 15px;
}

.mobile-menu.zbmob .zbmob-ico {
	width: 18px;
	height: 18px;
	flex: none;
}

.mobile-menu.zbmob .zbmob-ico--line {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mobile-menu.zbmob .mobile-menu-close {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mob-soft);
	color: var(--mob-ink);
	font-size: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.mobile-menu.zbmob .mobile-menu-close .zbmob-ico {
	stroke-width: 2.2;
}

.mobile-menu.zbmob .mobile-menu-close:active {
	background: #e6e7ea;
}

.mobile-menu.zbmob a:focus-visible,
.mobile-menu.zbmob [role="button"]:focus-visible {
	outline: 2px solid var(--mob-red);
	outline-offset: -2px;
}

/* Menu rows */

/* Block, not the theme's reversed Arabic list: that packed the rows at the bottom of the stretched list on tall screens.
   The Arabic menu itself (ul.menu) keeps the theme's reversed order. */
.mobile-menu.zbmob > ul {
	display: block;
	flex: 1 0 auto;
	margin: 0 !important;
	padding: 6px 0 0 !important;
	text-align: start;
}

.mobile-menu.zbmob #lang_sel_list {
	display: none !important;
}

.mobile-menu.zbmob ul.menu {
	margin: 0 !important;
	padding: 0 !important;
}

.mobile-menu.zbmob ul.menu > li {
	margin: 0;
	padding: 0;
}

.mobile-menu.zbmob ul.menu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	position: relative;
	padding: 15px 22px !important;
	margin: 0;
	border-bottom: 1px solid var(--mob-line);
	color: var(--mob-ink) !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: start;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

html[dir="rtl"] .mobile-menu.zbmob ul.menu > li > a {
	font-size: 16.5px;
}

.mobile-menu.zbmob ul.menu > li > a:active {
	background: var(--mob-soft);
}

/* The arrow at the end of each row (the theme's FontAwesome triangle is replaced). */
.mobile-menu.zbmob ul.menu > li > a::after {
	content: "" !important;
	position: static !important;
	flex: none;
	width: 8px;
	height: 8px;
	margin-inline-end: 3px;
	border-right: 2px solid #b4b8c1;
	border-bottom: 2px solid #b4b8c1;
	font-size: 0;
	transform: rotate(-45deg);
	transition: transform .25s ease;
}

html[dir="rtl"] .mobile-menu.zbmob ul.menu > li > a::after {
	transform: rotate(135deg);
}

.mobile-menu.zbmob ul.menu > li.menu-item-has-children > a::after,
html[dir="rtl"] .mobile-menu.zbmob ul.menu > li.menu-item-has-children > a::after {
	margin-top: -4px;
	transform: rotate(45deg);
}

.mobile-menu.zbmob ul.menu > li.menu-item-has-children.is-open > a::after,
html[dir="rtl"] .mobile-menu.zbmob ul.menu > li.menu-item-has-children.is-open > a::after {
	margin-top: 4px;
	transform: rotate(225deg);
	border-color: var(--mob-red);
}

.mobile-menu.zbmob ul.menu > li.menu-item-has-children.is-open > a {
	color: var(--mob-red) !important;
	border-bottom-color: transparent;
}

/* The page being shown */
.mobile-menu.zbmob ul.menu > li.current-menu-item > a,
.mobile-menu.zbmob ul.menu > li.current_page_item > a {
	color: var(--mob-red) !important;
	box-shadow: inset 3px 0 0 var(--mob-red);
}

html[dir="rtl"] .mobile-menu.zbmob ul.menu > li.current-menu-item > a,
html[dir="rtl"] .mobile-menu.zbmob ul.menu > li.current_page_item > a {
	box-shadow: inset -3px 0 0 var(--mob-red);
}

.mobile-menu.zbmob ul.menu > li.current-menu-item > a::after,
.mobile-menu.zbmob ul.menu > li.current_page_item > a::after {
	border-color: var(--mob-red);
}

/* Services list (filled by the mega menu script) */
.mobile-menu.zbmob ul.sub-menu {
	margin: 0 !important;
	padding: 0 16px !important;
	border-bottom: 1px solid var(--mob-line);
}

.mobile-menu.zbmob ul.sub-menu .zbmm-m {
	margin: 0 0 16px;
}

/* ---------- Footer ---------- */

.mobile-menu.zbmob .zbmob-foot {
	flex: none;
	margin-top: 22px;
	padding: 22px 20px calc(26px + env(safe-area-inset-bottom, 0px));
	background: var(--mob-soft);
	border-top: 1px solid var(--mob-line);
	text-align: start;
}

.mobile-menu.zbmob .zbmob-foot__title {
	margin: 0 0 12px;
	color: var(--mob-muted);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .07em;
	line-height: 1.3;
	text-transform: uppercase;
}

html[dir="rtl"] .mobile-menu.zbmob .zbmob-foot__title {
	font-size: 14px;
	letter-spacing: 0;
}

.mobile-menu.zbmob .zbmob-foot__btns {
	display: grid;
	gap: 10px;
}

.mobile-menu.zbmob .zbmob-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 16px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
}

.mobile-menu.zbmob .zbmob-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex: none;
}

.mobile-menu.zbmob .zbmob-btn--red {
	background: var(--mob-red);
	color: #fff !important;
	box-shadow: 0 10px 20px -12px rgba(221, 0, 23, .9);
}

.mobile-menu.zbmob .zbmob-btn--red:active {
	background: #b80013;
}

.mobile-menu.zbmob .zbmob-btn--line {
	background: #fff;
	color: var(--mob-ink) !important;
	box-shadow: inset 0 0 0 1.5px #d4d7dd;
}

.mobile-menu.zbmob .zbmob-btn--line svg {
	fill: var(--mob-red);
}

.mobile-menu.zbmob .zbmob-btn--line:active {
	background: #eef0f3;
}

.mobile-menu.zbmob ul.zbmob-contact {
	display: grid;
	gap: 2px;
	margin: 18px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.mobile-menu.zbmob ul.zbmob-contact li {
	margin: 0;
	padding: 0;
}

.mobile-menu.zbmob ul.zbmob-contact li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0 !important;
	border: 0 !important;
	color: var(--mob-text) !important;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.35;
	text-align: start;
	text-decoration: none;
	word-break: break-word;
}

.mobile-menu.zbmob ul.zbmob-contact svg {
	width: 18px;
	height: 18px;
	flex: none;
	fill: var(--mob-red);
}

.mobile-menu.zbmob .zbmob-social {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.mobile-menu.zbmob .zbmob-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 1px #dcdee3;
	color: var(--mob-ink) !important;
	text-decoration: none;
}

.mobile-menu.zbmob .zbmob-social a:active {
	background: #eef0f3;
}

.mobile-menu.zbmob .zbmob-social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.mobile-menu.zbmob,
	.mobile-menu.zbmob.active-menu,
	.zbmob-backdrop,
	html.zbmob-open .zbmob-backdrop,
	.mobile-menu.zbmob ul.menu > li > a::after {
		transition: none;
	}
}
