/* ==========================================================================
   Digital ROI — Header mega-menu (AdSpace-style)
   Animated sliding-text links + multi-column Services/Industries dropdowns.
   ========================================================================== */

.menu-header {
	--mm-accent: #ed3d0e;          /* matches theme accent */
	--mm-text: #ffffff;
	--mm-muted: rgba(255, 255, 255, 0.55);
	--mm-panel: #141414;
	--mm-panel-border: rgba(255, 255, 255, 0.08);
	--mm-ease: cubic-bezier(0.65, 0.05, 0.36, 1);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;   /* was unset — nav sat left-aligned */
	width: 100%;
	background: #0d0d0d;       /* was unset — nav had no fill, blended into page */
	padding: 16px 32px;
	color: var(--mm-text);
	gap: 24px;
}

/* ── Brand lockup ──
   Absolutely positioned so the nav stays optically centred in the bar rather
   than being pushed right by the logo's width. */
.menu-header__brand {
	position: absolute;
	left: 32px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	line-height: 0;
	z-index: 2;
}
.menu-header__brand img {
	height: 40px;
	width: auto;
	display: block;
}
/* Below the point where centred nav would collide with the logo, stop
   centring and let them sit side by side. */
@media (max-width: 1180px) {
	.menu-header__brand { position: static; transform: none; }
	.menu-header { justify-content: space-between; }
}
@media (max-width: 900px) {
	.menu-header__brand img { height: 34px; }
}

/* Lift the whole header container above the hero (which has z-index:1),
   so the dropdown panels are not painted behind page content. */
.e-con.e-parent:has(.menu-header),
.elementor-element-29366868 {
	position: relative;
	z-index: 100;
}

.menu-header__list {
	position: relative;
	z-index: 1;                    /* sits above the hover pill */
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Active/hovered top-level item: text switches to accent over the white pill. */
.menu-header__item:hover .link__text,
.menu-header__item:focus-within .link__text {
	color: var(--mm-accent) !important;
}

.menu-header__item:hover .icon-link,
.menu-header__item:focus-within .icon-link {
	color: var(--mm-accent);
}

.menu-header__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 10px 18px;
	border-radius: 100px;
}

/* ---- Animated sliding-text link ---- */
.menu-header__link,
.menu-header .link {
	display: block;
	overflow: hidden;
	position: relative;
	height: 20px;                 /* exactly one line — clips the duplicate */
	color: var(--mm-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

/* Force colour over the parent theme's link styling. */
.menu-header .link__text,
.menu-header__link {
	color: var(--mm-text) !important;
}

.menu-header__link_dropdown {
	cursor: default;
}

.link__inner {
	display: block;
	transition: transform 0.45s var(--mm-ease);
}

.link__content {
	display: block;
	height: 20px;
	line-height: 20px;
	white-space: nowrap;
}

.menu-header__link:hover .link__inner,
.menu-header__link:focus-visible .link__inner {
	transform: translateY(-50%);
}

.menu-header__item:hover > .menu-header__link .link__inner {
	transform: translateY(-50%);
}

/* ---- Dropdown trigger arrow ---- */
.icon-link {
	display: inline-flex;
	align-items: center;
	color: var(--mm-text);
	transition: transform 0.4s var(--mm-ease);
}

.icon-link__inner {
	display: block;
}

.icon-link__content:last-child {
	display: none;            /* show a single, clean chevron */
}

.icon-link__content svg {
	width: 12px;
	height: 8px;
	display: block;
	color: currentColor;
}

.menu-header__item_dropdown:hover .icon-link {
	transform: rotate(180deg);
}

/* ---- Sliding hover pill (positioned by JS) ---- */
.menu-header__hover {
	position: absolute;
	left: 0;
	top: 0;
	height: 0;
	width: 0;
	transform: translate(0, 0);
	background: #ffffff;
	border-radius: 100px;
	opacity: 0;
	pointer-events: none;
	transition: width 0.35s var(--mm-ease), height 0.35s var(--mm-ease),
		transform 0.35s var(--mm-ease), opacity 0.25s ease;
	z-index: 0;                    /* behind the list (z-index:1), above header bg */
}

/* ==========================================================================
   Mega dropdown panel
   ========================================================================== */
/* Anchor the (wide) panels to the centred nav list instead of each trigger,
   so a hidden panel never extends past the viewport and widens the page. */
.menu-header__item_dropdown {
	position: static;
}

.menu-header-dropdown {
	max-width: calc(100vw - 32px);
	position: absolute;
	top: 100%;
	left: 50%;
	padding-top: 18px;
	transform: translateX(-50%) translateY(8px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s var(--mm-ease), transform 0.3s var(--mm-ease), visibility 0s linear 0.3s;
	z-index: 999;
}

.menu-header__item_dropdown:hover .menu-header-dropdown,
.menu-header__item_dropdown:focus-within .menu-header-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
	transition: opacity 0.3s var(--mm-ease), transform 0.3s var(--mm-ease), visibility 0s;
}

.menu-header-dropdown__inner {
	background: var(--mm-panel);
	border: 1px solid var(--mm-panel-border);
	border-radius: 16px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
	overflow: hidden;
	min-width: min(880px, 92vw);
}

.menu-header-dropdown__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0;
	margin: 0;
	padding: 24px 24px 16px;
	list-style: none;
}

.menu-header-dropdown__item {
	display: flex;
	flex-direction: column;
	padding: 10px 14px;
	border-right: 1px solid var(--mm-panel-border);
}

.menu-header-dropdown__item:nth-child(4n) {
	border-right: none;
}

/* ── Column heading: icon + title + desc ── */
.menu-header-dropdown__title-wrap {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-bottom: 10px;
	text-decoration: none !important;
	color: inherit !important;
}

.mm-col-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(237, 61, 14, 0.12);
	color: var(--mm-accent);
	margin-top: 1px;
}

.mm-col-icon svg {
	width: 14px;
	height: 14px;
	display: block;
	stroke: currentColor;
}

.mm-col-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.menu-header-dropdown__title {
	display: block;
	color: var(--mm-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.3;
}

.menu-header-dropdown__title-wrap:hover .menu-header-dropdown__title {
	color: var(--mm-accent);
}

.mm-col-desc {
	display: block;
	color: var(--mm-muted);
	font-size: 10.5px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

/* ── Per-column link list ── */
.mm-col-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.menu-header-dropdown__link,
.menu-header-dropdown .link-dropdown {
	display: block;
	overflow: hidden;
	width: fit-content;
	max-width: 100%;
	height: 18px;
	color: var(--mm-muted);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 18px;
	text-decoration: none;
	padding: 3px 0;
	box-sizing: content-box;
}

.menu-header-dropdown .link-dropdown__text {
	color: var(--mm-muted) !important;
}

.link-dropdown__inner {
	display: block;
	transition: transform 0.4s var(--mm-ease);
}

.link-dropdown__content {
	display: block;
	height: 18px;
	line-height: 18px;
	white-space: nowrap;
}

.menu-header-dropdown__link:hover .link-dropdown__inner,
.menu-header-dropdown__link:focus-visible .link-dropdown__inner {
	transform: translateY(-50%);
}

.menu-header-dropdown__link:hover .link-dropdown__text,
.menu-header-dropdown__link:focus-visible .link-dropdown__text {
	color: var(--mm-accent) !important;
}

/* ── "View all services" footer bar ── */
.mm-dropdown-footer {
	border-top: 1px solid var(--mm-panel-border);
	padding: 12px 24px;
	display: flex;
	justify-content: flex-end;
}

.mm-view-all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--mm-accent) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: opacity 0.2s;
}

.mm-view-all:hover { opacity: 0.75; }

.mm-view-all svg {
	width: 14px;
	height: 14px;
	display: block;
	flex-shrink: 0;
}

/* ==========================================================================
   Responsive — hide desktop menu on tablet/mobile, show mobile drawer
   ========================================================================== */
@media (max-width: 992px) {
	/* Keep the bar and the brand — hide only the desktop link list, so mobile
	   gets a real header (logo left, hamburger right) instead of a bare
	   floating button with no branding. */
	.menu-header__list,
	.menu-header__hover {
		display: none !important;
	}
	.menu-header {
		justify-content: space-between;
		padding: 12px 20px;
	}
}

/* ── Hamburger button — red-orange circle ── */
.droi-mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: #ed3d0e;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10001;
	flex-shrink: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.droi-mobile-toggle:hover {
	background: #d43509;
}

.droi-mobile-toggle__bar {
	display: block;
	width: 18px;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
	transform-origin: center;
}

/* Animate to × when open */
.droi-mobile-toggle.is-open .droi-mobile-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.droi-mobile-toggle.is-open .droi-mobile-toggle__bar:nth-child(2) { opacity: 0; width: 0; }
.droi-mobile-toggle.is-open .droi-mobile-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
	.droi-mobile-toggle { display: flex; }
}

/* ── Scrim overlay ── */
.droi-mobile-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.droi-mobile-overlay.is-open {
	display: block;
	opacity: 1;
}

/* ── Drawer panel ── */
.droi-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(360px, 92vw);
	height: 100%;
	background: #0e0e0e;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	z-index: 10001;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.droi-mobile-drawer.is-open {
	transform: translateX(0);
}

/* Drawer header */
.droi-mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
}

.droi-mobile-drawer__logo img {
	display: block;
	height: 34px;
	width: auto;
}

.droi-mobile-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	color: #fff;
	border-radius: 50%;
	transition: background 0.2s;
}

.droi-mobile-close:hover { background: rgba(255,255,255,0.08); }

.droi-mobile-close svg {
	width: 20px;
	height: 20px;
}

/* Nav list */
.droi-mobile-nav {
	flex: 1;
	padding: 12px 0;
}

.droi-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.droi-mobile-nav__item { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.droi-mobile-nav__link {
	display: block;
	padding: 10px 20px;
	color: rgba(255,255,255,0.85) !important;
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
	transition: color 0.2s;
}

.droi-mobile-nav__link:hover { color: #ffffff !important; }
/* Top-level links and accordion buttons share one size; the Elementor kit's `a` rule otherwise decides the links' size. */
.droi-mobile-drawer .droi-mobile-nav__link { font-size: 16px; font-weight: 500; }

/* Accordion trigger */
.droi-mobile-accordion__trigger {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100% !important;
	padding: 10px 20px !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: rgba(255,255,255,0.85) !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s;
}

.droi-mobile-accordion__trigger:hover { color: #ffffff !important; }

.droi-mobile-accordion__arrow {
	width: 10px;
	height: 6px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.droi-mobile-accordion.is-open .droi-mobile-accordion__arrow {
	transform: rotate(180deg);
}

.droi-mobile-accordion.is-open .droi-mobile-accordion__trigger {
	color: #ed3d0e !important;
	background: none !important;
	background-color: transparent !important;
}

/* Accordion panel */
.droi-mobile-accordion__panel {
	background: rgba(255, 255, 255, 0.03);
	padding: 8px 0 14px;
	border-top: 1px solid rgba(255,255,255,0.06);
}

.droi-mobile-accordion__panel[hidden] { display: none; }

.droi-mobile-accordion__view-all {
	display: block;
	padding: 6px 20px 10px;
	color: #ed3d0e !important;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.droi-mobile-accordion__group {
	padding: 4px 20px 0;
}

.droi-mobile-accordion__group-title {
	display: block;
	color: #ed3d0e !important;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 2px;
	text-decoration: none !important;
}

.droi-mobile-accordion__links {
	list-style: none;
	margin: 0 0 6px;
	padding: 0;
}

.droi-mobile-accordion__links li a {
	display: block;
	padding: 3px 0;
	color: rgba(255, 255, 255, 0.55) !important;
	font-size: 12px;
	font-weight: 400;
	text-decoration: none;
	transition: color 0.2s;
}

.droi-mobile-accordion__links li a:hover { color: #ffffff !important; }

/* CTA at bottom */
.droi-mobile-drawer__cta {
	padding: 14px 20px;
	border-top: 1px solid rgba(255,255,255,0.08);
	flex-shrink: 0;
}

.droi-mobile-cta-btn {
	display: block;
	width: 100%;
	padding: 10px;
	background: #ed3d0e;
	color: #ffffff !important;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: 6px;
	transition: opacity 0.2s;
}

.droi-mobile-cta-btn:hover { opacity: 0.85; }

/* Reset's button padding (.5rem 1rem) squeezed the close icon to 0px wide. */
.droi-mobile-close { padding: 0; }
.droi-mobile-close svg { flex-shrink: 0; }
