/* Services Mega Menu - styles for client markup (.mega / .mega-head / .tile / .ico / .status / .new) */
:root {
	--zp-accent: #ff6a3d;
	--zp-icon-bg: #ffe6da;
	--zp-text: #1f1f1f;
	--zp-muted: #6b6b6b;
	--zp-border: #fbd9c9;
}

/* "New" badge next to the Services label */
#top-menu .new {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--zp-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.4;
	text-transform: uppercase;
	vertical-align: middle;
}
#top-menu .trigger .zp-chev { margin-left: 6px; vertical-align: middle; }

/* status pills */
.mega .status {
	display: inline-block;
	margin-left: 8px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #ececec;
	color: #555;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.2;
	text-transform: uppercase;
}
.mega .status.live { background: #d8f3e1; color: #1a7a3e; }
.mega .status.soon { background: #ffe6da; color: #d4501f; }
.mega .status.beta { background: #dcebff; color: #1f58b8; }

/* ---------- Desktop ---------- */
@media (min-width: 981px) {
	#main-header #top-menu > li.zp-mega-menu { position: static; }

	#main-header #top-menu li.zp-mega-menu > .mega {
		position: absolute;
		top: 100%;
		/* left: 50%;
		transform: translate(-50%, 8px); */
		/* width: min(calc(var(--zp-cols, 2) * 440px + 40px), 94vw); */
		/* top: calc(100% + 14px); */
		right: 35%;
		width: min(760px,94vw);
		box-sizing: border-box;
		padding: 24px 20px 22px;
		display: grid;
		grid-template-columns: repeat(var(--zp-cols, 2), minmax(0, 1fr));
		gap: 4px 20px;
		background: #fff;
		border: 1px solid var(--zp-border);
		border-radius: 20px;
		box-shadow: 0 20px 50px rgba(255, 106, 61, .18), 0 4px 14px rgba(0, 0, 0, .06);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		/* transition: opacity .18s ease, transform .18s ease, visibility .18s; */
		z-index: 99999;
		text-align: left;
	}

	/* hover bridge */
	#main-header #top-menu li.zp-mega-menu > .mega::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -40px;
		height: 40px;
	}

	#main-header #top-menu li.zp-mega-menu:hover > .mega,
	#main-header #top-menu li.zp-mega-menu:focus-within > .mega,
	#main-header #top-menu li.zp-mega-menu.zp-open > .mega {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		/* transform: translate(-50%, 0); */
	}

	.mega .mega-head {
		grid-column: 1 / -1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 6px 14px;
		margin-bottom: 10px;
		border-bottom: 1px solid var(--zp-border);
		line-height: 1.2;
	}
	.mega .mega-head span {
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: #5c5148;
	}
	#main-header #top-menu .mega .mega-head a {
		display: inline;
		width: auto;
		padding: 0;
		font-size: 16px;
		font-weight: 600;
		color: var(--zp-accent);
		white-space: nowrap;
	}
	#main-header #top-menu .mega .mega-head a:hover { opacity: .8; background: none; }

	#main-header #top-menu .mega .tile {
		display: flex;
		align-items: flex-start;
		gap: 16px;
		width: auto;
		padding: 12px 10px;
		border-radius: 14px;
		color: var(--zp-text);
		text-align: left;
		white-space: normal;
		transition: background .15s ease;
	}
	#main-header #top-menu .mega .tile:hover { background: #fff4ee; opacity: 1; }

	.mega .tile .ico {
		flex: 0 0 55px;
		width: 55px;
		height: 55px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--zp-icon-bg);
		border-radius: 16px;
		color: var(--zp-accent);
	}
	.mega .tile .ico svg { display: block; width: 24px; height: 24px; }
	.mega .tile .ico { transition: background .15s ease, color .15s ease; }
	.mega .tile:hover .ico { background: var(--zp-accent); color: #fff; }
	.mega .tile .ico img { display: block; width: 26px; height: 26px; object-fit: contain; }

	.mega .tile strong {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.25;
		color: var(--zp-text);
	}
	.mega .tile strong .status { margin-left: 8px; }
	.mega .tile small {
		display: block;
		margin-top: 4px;
		font-size: 13.5px;
		line-height: 1.5;
		font-weight: 400;
		color: var(--zp-muted);
	}
}

/* ---------- Mobile (Divi cloned menu) ---------- */
@media (max-width: 980px) {
	.mega .mega-head,
	.mega .tile .ico,
	.mega .tile small { display: none !important; }
	.mega .tile { display: block; padding: 8px 0; }
	.mega .tile strong { font-weight: 600; }
}
