/* =========================================================
   AE mobile navigation — premium business drawer (v2)
   ========================================================= */

/* ---------- top bar (visible < 980px, desktop-style strip) ---------- */
.ae-topbar {
	display: none;
}

/* drawer header/footer only exist on mobile */
.ae-drawer-head,
.ae-drawer-foot {
	display: none;
}
.ae-topbar-title {
	color: #f2f3f5;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.4px;
	margin-left: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ae-topbar-title:before {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 9px;
	background: #69aa3c;
	border-radius: 2px;
	vertical-align: 1px;
}

/* ---------- hamburger chip ---------- */
.ae-menu-button {
	cursor: pointer;
	width: 38px;
	height: 32px;
	box-sizing: border-box;
	flex: 0 0 auto;
	z-index: 1300;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, border-color 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}
.ae-menu-button:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.3);
}
.ae-menu-button .icon-bar {
	display: block;
	width: 18px;
	height: 2px;
	margin: 2px 0;
	background: #ffffff;
	border-radius: 2px;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

/* ---------- dark overlay with frosted blur ---------- */
.ae-content-overlay {
	display: none;
	position: fixed;
	z-index: 1100;
	left: 0; top: 0; right: 0; bottom: 0;
	background: rgba(14, 15, 17, 0.6);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.4s ease;
}
body.ae-show-nav .ae-content-overlay { opacity: 1; }

/* hide the bar's hamburger chip while the drawer is open (close via drawer X) */
body.ae-show-nav .ae-menu-button {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

/* raise the header (drawer's ancestor) above the overlay while open */
#ja-headerwrap { position: relative; }
body.ae-show-nav #ja-headerwrap { z-index: 1201; }

@media only screen and (max-width: 979px) {

	/* page wrapper becomes fluid */
	#ja-header,
	#ja-subnav,
	#ja-container,
	#ja-botsl,
	#ja-footer,
	#ja-headerwrap {
		width: 100% !important;
	}

	/* headerwrap has a fixed 120px height in the template;
	   let it grow so the top bar does not overlap the page title */
	#ja-headerwrap {
		height: auto !important;
	}

	/* desktop-style dark strip below the logo header */
	.ae-topbar {
		display: flex;
		align-items: center;
		height: 48px;
		padding: 0 15px;
		box-sizing: border-box;
		background: linear-gradient(180deg, #2b2c30 0%, #1f2023 100%);
		border-bottom: 1px solid rgba(0, 0, 0, 0.6);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 2px 6px rgba(0, 0, 0, 0.3);
		position: relative;
	}

	/* old burger must not appear */
	#ct_burger { display: none !important; }

	/* ---------- the drawer ---------- */
	#ja-header #ja-mainnav,
	#ja-mainnav {
		position: fixed !important;
		top: 0;
		bottom: 0;
		left: -340px;
		width: 300px;
		max-width: 84vw;
		height: auto !important;
		margin: 0;
		padding: 0;
		background: linear-gradient(165deg, #242528 0%, #1a1b1e 100%);
		box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
		z-index: 1200;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
		display: flex !important;
		flex-direction: column;
	}
	body.ae-show-nav #ja-header #ja-mainnav,
	body.ae-show-nav #ja-mainnav { left: 0; }

	/* drawer header: brand + close button (site green) */
	.ae-drawer-head {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: space-between;
		padding: 20px 18px 18px 22px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.18);
		background: linear-gradient(160deg, #41b34d 0%, #3aa945 55%, #2f9339 100%);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
	}
	.ae-drawer-brand { line-height: 1.35; }
	.ae-drawer-brand .b1 {
		display: block;
		color: #ffffff;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 0.4px;
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
	}
	.ae-drawer-brand .b2 {
		display: block;
		color: rgba(255, 255, 255, 0.75);
		font-size: 10px;
		letter-spacing: 2.4px;
		text-transform: uppercase;
		margin-top: 2px;
	}
	.ae-drawer-close {
		cursor: pointer;
		flex: 0 0 auto;
		width: 30px;
		height: 30px;
		border-radius: 50%;
		border: 1px solid rgba(255, 255, 255, 0.45);
		position: relative;
		background: rgba(255, 255, 255, 0.08);
		transition: transform 0.3s ease, background 0.25s ease, border-color 0.25s ease;
		-webkit-tap-highlight-color: transparent;
	}
	.ae-drawer-close:hover {
		background: rgba(255, 255, 255, 0.22);
		border-color: rgba(255, 255, 255, 0.75);
		transform: rotate(90deg);
	}
	.ae-drawer-close:before,
	.ae-drawer-close:after {
		content: '';
		position: absolute;
		width: 2px;
		height: 13px;
		top: 8px;
		left: 14px;
		background: #ffffff;
		border-radius: 1px;
	}
	.ae-drawer-close:before { transform: rotate(45deg); }
	.ae-drawer-close:after  { transform: rotate(-45deg); }

	/* section label above the list */
	#ja-mainnav #ja-splitmenu:before {
		content: "MENU";
		display: block;
		padding: 16px 22px 8px;
		color: rgba(255, 255, 255, 0.35);
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 2.6px;
	}

	/* ---------- menu items ---------- */
	#ja-mainnav #ja-splitmenu ul {
		margin: 0;
		padding: 0;
		float: none !important;
		width: 100% !important;
	}
	#ja-mainnav #ja-splitmenu ul li {
		float: none !important;
		display: block;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		background: none !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
		/* stagger-in animation */
		opacity: 0;
		transform: translateX(-14px);
		transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	}
	#ja-mainnav #ja-splitmenu ul li:last-child { border-bottom: 0; }
	body.ae-show-nav #ja-mainnav #ja-splitmenu ul li {
		opacity: 1;
		transform: translateX(0);
	}
	body.ae-show-nav #ja-mainnav #ja-splitmenu ul li:nth-child(1) { transition-delay: 0.06s; }
	body.ae-show-nav #ja-mainnav #ja-splitmenu ul li:nth-child(2) { transition-delay: 0.11s; }
	body.ae-show-nav #ja-mainnav #ja-splitmenu ul li:nth-child(3) { transition-delay: 0.16s; }
	body.ae-show-nav #ja-mainnav #ja-splitmenu ul li:nth-child(4) { transition-delay: 0.21s; }
	body.ae-show-nav #ja-mainnav #ja-splitmenu ul li:nth-child(5) { transition-delay: 0.26s; }
	body.ae-show-nav #ja-mainnav #ja-splitmenu ul li:nth-child(6) { transition-delay: 0.31s; }
	body.ae-show-nav #ja-mainnav #ja-splitmenu ul li:nth-child(7) { transition-delay: 0.36s; }
	body.ae-show-nav #ja-mainnav #ja-splitmenu ul li:nth-child(8) { transition-delay: 0.41s; }

	#ja-mainnav #ja-splitmenu ul li a,
	#ja-mainnav #ja-splitmenu ul li a span {
		display: block;
		float: none !important;
		width: 100% !important;
		box-sizing: border-box;
		background: none !important;
		color: #ced1d6 !important;
		text-align: left;
		font-size: 14px;
		font-weight: 500;
		letter-spacing: 0.25px;
		line-height: 22px;
		height: auto;
	}
	#ja-mainnav #ja-splitmenu ul li a {
		position: relative;
		padding: 13px 40px 13px 22px !important;
		transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	}
	#ja-mainnav #ja-splitmenu ul li a span { padding: 0 !important; margin: 0 !important; }

	/* chevron on the right of each item */
	#ja-mainnav #ja-splitmenu ul li a:after {
		content: '›';
		position: absolute;
		right: 18px;
		top: 50%;
		margin-top: -12px;
		font-size: 17px;
		font-weight: 400;
		color: rgba(255, 255, 255, 0.22);
		transition: transform 0.25s ease, color 0.25s ease;
	}
	#ja-mainnav #ja-splitmenu ul li a:hover:after {
		transform: translateX(4px);
		color: rgba(255, 255, 255, 0.6);
	}

	/* hover / current page: green accent bar + soft glow */
	#ja-mainnav #ja-splitmenu ul li a:hover,
	#ja-mainnav #ja-splitmenu ul li a:active {
		background: rgba(255, 255, 255, 0.045) !important;
		box-shadow: inset 3px 0 0 #69aa3c;
		color: #ffffff !important;
	}
	#ja-mainnav #ja-splitmenu ul li.active a {
		background: linear-gradient(90deg, rgba(105, 170, 60, 0.18), rgba(105, 170, 60, 0) 75%) !important;
		box-shadow: inset 3px 0 0 #69aa3c;
		color: #ffffff !important;
		font-weight: 600;
	}

	/* drawer footer contact line */
	.ae-drawer-foot {
		display: block;
		flex: 0 0 auto;
		margin-top: auto;
		padding: 16px 22px 20px;
		border-top: 1px solid rgba(255, 255, 255, 0.07);
		color: rgba(255, 255, 255, 0.4);
		font-size: 11px;
		letter-spacing: 0.4px;
		line-height: 1.7;
	}
	.ae-drawer-foot a {
		color: #9fca7f !important;
		text-decoration: none;
	}
		.ae-drawer-foot a:hover { text-decoration: underline; }
	.ae-copy-chip {
		cursor: pointer;
		display: inline-block;
		margin-left: 8px;
		padding: 1px 8px;
		font-size: 10px;
		line-height: 16px;
		letter-spacing: 0.5px;
		color: rgba(255, 255, 255, 0.55);
		border: 1px solid rgba(255, 255, 255, 0.25);
		border-radius: 3px;
		vertical-align: 1px;
		transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
		-webkit-tap-highlight-color: transparent;
	}
	.ae-copy-chip:hover {
		color: #ffffff;
		border-color: rgba(255, 255, 255, 0.5);
		background: rgba(255, 255, 255, 0.08);
	}
	.ae-copy-chip.copied {
		color: #9fca7f;
		border-color: #69aa3c;
		background: rgba(105, 170, 60, 0.12);
	}
}

/* stack content + sidebar on small screens */
@media only screen and (max-width: 767px) {
	#ja-mainbody,
	#ja-content,
	#ja-col1,
	#ja-massbot,
	#ja-masstop {
		width: 100% !important;
		float: none !important;
		clear: both !important;
	}
	#ja-content div.ja-innerpad { padding: 0 10px; }
	#ja-botsl > div { width: 100% !important; }
}
