/*
 * Header: open states and WordPress menus.
 *
 * The original header re-rendered inline styles on every click; here the same looks hang off
 * aria-expanded, so the header itself stays plain Elementor content. Link lists are WordPress
 * menus (WordPress Menu widget + includes/menus.php) laid out to match the original markup.
 */

/* ---- open states ------------------------------------------------------------------------ */
.hd-nb > .cb-icon > svg {
	transition: transform .2s;
}

.hd-nb[aria-expanded="true"] {
	background: #e8eefc !important;
	color: #1d4ed8 !important;
}

.hd-nb[aria-expanded="true"] > .cb-icon > svg {
	transform: rotate(180deg);
}

@media (min-width: 1024px) {
	.hd-drawer {
		display: none !important;
	}
}

body.cb-drawer-open {
	overflow: hidden;
}

body.cb-drawer-open .hd-sticky {
	display: none !important;
}

/* ---- menu widgets take no box: links sit in the panel column / grid as before ------------- */
.cb-menu,
.cb-menu > div,
.cb-menu > div > div {
	display: contents;
}

/* ---- desktop panels ----------------------------------------------------------------------- */
.cb-menu .cb-mi--strong {
	font-weight: 700;
	color: #0a0a0a;
}

.cb-menu .cb-mi--more {
	font-weight: 700;
	color: #1d4ed8;
}

/* Services columns: title + description, optional indented sub-links */
.cb-menu:is(.cb-menu--services-1, .cb-menu--services-2, .cb-menu--services-3) .cb-mi {
	display: block;
}

.cb-menu:is(.cb-menu--services-1, .cb-menu--services-2, .cb-menu--services-3) .cb-mi:not(.cb-mi--sub) .cb-mi__t {
	display: block;
	font-weight: 700;
	color: #0a0a0a;
}

.cb-menu .cb-mi:hover .cb-mi__t {
	color: #1d4ed8;
}

.cb-menu .cb-mi__d {
	display: block;
	font-size: 14px;
	color: #5b6475;
}

.cb-menu .cb-mi__group {
	display: block;
}

.cb-menu .cb-mi__sub {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
	padding-left: 12px;
	border-left: 2px solid #e3e8f0;
	font-size: 14px;
}

/* Industries: tile grid */
.cb-menu.cb-menu--industries-tiles .cb-mi {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid #e3e8f0;
	background: #f6f8fb;
	font-weight: 600;
	color: #0a0a0a;
}

/* About: tiles with a description line */
.cb-menu.cb-menu--about-tiles .cb-mi {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	border-radius: 14px;
	border: 1px solid #e3e8f0;
	background: #f6f8fb;
}

.cb-menu.cb-menu--about-tiles .cb-mi__t {
	font-weight: 700;
	font-size: 18px;
	color: #0a0a0a;
}

.cb-menu.cb-menu--about-tiles .cb-mi__d {
	font-size: 14px;
	color: #5b6475;
}

.cb-menu:is(.cb-menu--industries-tiles, .cb-menu--about-tiles) .cb-mi:hover {
	border-color: #1d4ed8 !important;
	background: #e8eefc !important;
}

/* ---- mobile drawer (Primary Menu) --------------------------------------------------------- */
.cb-drawer {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cb-drawer__sec {
	border-bottom: 1px solid #e3e8f0;
}

.cb-drawer__btn {
	width: 100%;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	color: #0a0a0a;
}

.cb-drawer__btn[aria-expanded="true"] {
	color: #1d4ed8;
}

.cb-drawer__chev {
	display: inline-flex;
	transition: transform .2s;
}

.cb-drawer__btn[aria-expanded="true"] .cb-drawer__chev {
	transform: rotate(180deg);
}

.cb-drawer__links {
	list-style: none;
	margin: 0 0 12px;
	padding: 4px 12px;
	background: #f6f8fb;
	border-radius: 12px;
}

.cb-drawer__link {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	color: #1f2937;
}

.cb-drawer .cb-drawer__link.cb-mi--more {
	font-weight: 700;
	color: #1d4ed8;
}

@media (prefers-reduced-motion: reduce) {
	.hd-nb > .cb-icon > svg,
	.cb-drawer__chev {
		transition: none;
	}
}
