/**
 * New primary navigation: desktop mega menu + mobile drawer.
 * Fonts: 'Wix Madefor Text' (headings/labels), 'Noto Sans' (descriptions) — loaded in header.php.
 */

:root {
	--nav-navy: #05001c;
	--nav-orange: #ea5729;
	--nav-orange-2: #ff7821;
	--nav-grad-start: #ff9336;
	--nav-grad-end: #ff7721;
	--header-height: 96px;
}

/* ---------------------------------------------------------------------- */
/* Header shell                                                            */
/* ---------------------------------------------------------------------- */

#menu-main-menu {
	display: none;
}

.site-header {
	height: 96px;
	width: 100%;
	position: fixed;
	top: 0;
	padding: 27px;
	z-index: 99998;
	box-shadow: 0 4px 10px -10px rgba(0, 0, 0, .6);
	transition: transform .3s ease, background-color .3s ease;
}

.site-header--hidden {
	transform: translateY(-100%);
}

.site-header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: auto;
	padding-left: 36px;
	padding-right: 36px;
	position: absolute;
	max-width: 1404px;
	right: 0;
	left: 0;
	z-index: 99999;
}

.site-branding img {
	display: block;
}

/* Burger button (unchanged behaviour, reused across breakpoints) */
.mmb-container {
	position: absolute;
	top: 50%;
	right: 0;
}

.mobile-menu-button {
	display: none;
	line-height: 0;
	transform: translateY(-50%);
	position: relative;
	padding: 27px 36px;
	cursor: pointer;
	background: none;
	border: none;
}

.lines-button {
	transition: .3s;
}

.lines,
.lines:after,
.lines:before {
	display: inline-block;
	width: 20px;
	height: 2px;
	border-radius: 5px;
	position: relative;
	background-color: #fff;
}

.lines:after,
.lines:before {
	position: absolute;
	left: 0;
	content: '';
}

.lines:before {
	top: 6px;
}

.lines:after {
	top: -6px;
}

.lines-button.x2.close .lines,
.lines-button.x2.closing .lines {
	transition: background .3s ease-in-out;
	background: 0 0 !important;
}

.lines-button.x2.close .lines:before {
	transform: rotate3d(0, 0, 1, 45deg);
}

.lines-button.x2.close .lines:after,
.lines-button.x2.close .lines:before {
	transition: top .3s ease-in-out, transform .3s ease-in-out .5s;
	top: 0;
	width: 20px;
}

.lines-button.x2.close .lines:after {
	transform: rotate3d(0, 0, 1, -45deg);
}

/* ---------------------------------------------------------------------- */
/* Desktop primary nav                                                     */
/* ---------------------------------------------------------------------- */

.primary-nav {
	display: flex;
	align-items: center;
	gap: 40px;
}

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__item {
	position: relative;
}

.primary-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	border-bottom: 1px solid transparent !important;
	padding: 11px 0;
	font-family: 'Wix Madefor Text', sans-serif;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .021em;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav__link:hover,
.primary-nav__item.is-open .primary-nav__link {
	border-bottom-color: var(--nav-orange) !important;
}

.primary-nav__chevron {
	display: inline-block;
	width: 10px;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 12px;
	line-height: 1;
	transition: transform .25s ease;
}

.primary-nav__chevron::before {
	content: "\f107";
}

.primary-nav__item.is-open .primary-nav__chevron {
	transform: rotate(180deg);
}

.primary-nav__cta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: 'Wix Madefor Text', sans-serif;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .021em;
	padding: 12px 18px;
	border-radius: 2px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	border: 1px solid transparent;
}

.btn img {
	width: 20px;
	height: 20px;
}

.btn-outline {
	background: transparent;
	border-color: rgba(255, 255, 255, .3);
	color: #fff;
}

.btn-outline:hover {
	border-color: #ffffff80;
}

.btn-gradient {
	background: linear-gradient(90deg, var(--nav-grad-start) 0%, var(--nav-grad-end) 100%);
	color: var(--nav-navy);
}

.btn-gradient:hover {
	background: linear-gradient(90deg, #eb610b 0%, #eb610b 100%);
}

/* ---------------------------------------------------------------------- */
/* Desktop mega panel                                                      */
/* ---------------------------------------------------------------------- */

.mega-panel {
	position: absolute;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	background-color: #0E0D6A70;
	-webkit-backdrop-filter: blur(51px);
	backdrop-filter: blur(51px);
	transition: height .35s ease, opacity .25s ease;
	z-index: 99997;
}

.mega-panel.is-open {
	height: 460px;
	opacity: 1;
	visibility: visible;
}

.mega-panel__glow {
	position: absolute;
	display: block;
	pointer-events: none;
	z-index: 0;
}

.mega-panel__glow--orange {
	top: 0;
	left: 0;
	width: 140px;
	height: auto;
}

.mega-panel__glow--blue {
	bottom: 0;
	right: 0;
	width: 160px;
	height: auto;
}

.mega-panel__content {
	display: none;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	height: 100%;
	max-width: 1404px;
	margin: 0 auto;
	padding: 44px 36px;
	gap: 56px;
	/* align-items: center; */
}

.mega-panel__content.is-active {
	display: flex;
}

.mega-col {
	display: flex;
	flex-direction: column;
	gap: 19px;
	flex: 1;
	min-width: 0;
}

.mega-col--wide {
	flex: 0 0 340px;
}

.mega-col__head {
	padding: 8px;
	margin: -8px -8px 0;
	border-radius: 5px;
	transition: background-color .2s ease;
}

.mega-col__head:hover {
	background: linear-gradient(90deg, rgba(255, 255, 255, .12) 0%, rgba(48, 81, 230, 0) 75%);
}

.mega-col__title {
	font-family: 'Wix Madefor Text', sans-serif;
	font-weight: 700;
	font-size: 24px;
	letter-spacing: .021em;
	color: #fff;
	margin: 0;
	padding-bottom: 10px;
}

.mega-col__desc {
	font-family: 'Noto Sans', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .75);
	margin: 0;
	min-height: 42px;
}

.mega-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.mega-list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 8px;
	border-radius: 5px;
	font-family: 'Wix Madefor Text', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .021em;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(90deg, rgba(48, 81, 230, 0) 0%, rgba(48, 81, 230, 0) 100%);
}

.mega-list a:hover {
	background: linear-gradient(90deg, rgba(48, 81, 230, .55) 0%, rgba(48, 81, 230, 0) 75%);
}

.mega-list a img {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.mega-list--compact a {
	font-weight: 500;
	padding: 10px 14px;
}

.mega-list--compact a img {
	width: 14px;
	height: 14px;
}

.mega-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding: 17px 16px 17px 8px;
	border-radius: 5px;
	font-family: 'Wix Madefor Text', sans-serif;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: .021em;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(90deg, rgba(48, 81, 230, 0) 0%, rgba(48, 81, 230, 0) 100%);
}

.mega-cta:hover {
	background: linear-gradient(90deg, rgba(48, 81, 230, .55) 0%, rgba(48, 81, 230, 0) 80%);
}

.mega-cta img {
	width: 24px;
	height: 24px;
	margin-left: 0;
	transition: margin-left .2s ease;
}

.mega-cta:hover img {
	margin-left: 10px;
}

/* Data Centres panel photos */
.mega-photos {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex: 1.4;
	height: 100%;
	align-self: stretch;
}

.mega-photos__item {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	max-height: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
}

.mega-photos__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Company panel photo + copy */
.mega-company-photo {
	flex: 2.2;
	display: flex;
	flex-direction: column;
	gap: 24px;
	height: 100%;
	align-self: stretch;
	padding-right: 2vw;
}

.mega-company-photo__image {
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
	object-fit: cover;
	border-radius: 100px;
	display: block;
}

.mega-company-photo__text {
	flex-shrink: 0;
}

.mega-company-photo__text h3 {
	font-family: 'Wix Madefor Text', sans-serif;
	font-weight: 700;
	font-size: 24px;
	color: #fff;
	margin: 0 0 12px;
}

.mega-company-photo__text p {
	font-family: 'Noto Sans', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .8);
	margin: 0;
}

@media screen and (max-width: 1200px) {
	.mega-panel__content {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 32px 40px;
		overflow-y: auto;
	}

	.mega-col {
		flex: 1 1 40%;
	}

	.mega-col--wide {
		flex: 1 1 100%;
	}

	.mega-photos,
	.mega-company-photo {
		flex: 1 1 100%;
		height: auto;
	}

	.mega-photos__item {
		max-height: none;
	}
}

/* ---------------------------------------------------------------------- */
/* Mobile drawer                                                           */
/* ---------------------------------------------------------------------- */

.mobile-drawer {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow-y: auto;
	background: rgba(5, 0, 28, .85);
	-webkit-backdrop-filter: blur(51px);
	backdrop-filter: blur(51px);
	z-index: 99996;
	flex-direction: column;
	justify-content: space-between;
	padding-top: var(--header-height);
	box-sizing: border-box;
}

body.nav-open #head-topper {
	background-color: transparent !important;
}

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

.mobile-drawer__item {
	border-bottom: none;
}

.mobile-drawer__item.is-active {
	background: rgba(0, 0, 0, .65);
	border-left: 4px solid var(--nav-orange-2);
}

.mobile-drawer__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: none;
	border: none;
	padding: 24px 36px;
	font-family: 'Wix Madefor Text', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #fff;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
}

.mobile-drawer__item.is-active > .mobile-drawer__toggle {
	color: var(--nav-orange-2);
}

.mobile-drawer__item.is-active > .mobile-drawer__toggle .primary-nav__chevron {
	transform: rotate(180deg);
}

.mobile-drawer__panel {
	display: none;
	padding: 0 26px 24px;
	flex-direction: column;
	gap: 24px;
}

.mobile-drawer__item.is-active .mobile-drawer__panel {
	display: flex;
}

.mobile-drawer__section-head {
	display: block;
	text-decoration: none;
	color: inherit;
}

.mobile-drawer__section-title {
	font-family: 'Wix Madefor Text', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #fff;
	margin: 0 0 4px;
}

.mobile-drawer__section-desc {
	font-family: 'Noto Sans', sans-serif;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .7);
	margin: 0 0 12px;
}

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

.mobile-drawer__links a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 0;
	font-family: 'Wix Madefor Text', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	text-decoration: none;
}

.mobile-drawer__links a img {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.mobile-drawer__links--compact a {
	font-weight: 500;
}

.mobile-drawer__links--compact a img {
	width: 14px;
	height: 14px;
}

.mobile-drawer__divider {
	border: none;
	border-top: 1px solid #ffffff24 !important;
	margin: 0;
	background-color: transparent !important;
}

.mobile-drawer__item--plain > a {
	text-decoration: none;
}

.mobile-drawer__cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 26px 26px;
}

.mobile-drawer__cta .btn {
	width: 100%;
}

body.nav-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------- */
/* Breakpoint switch                                                       */
/* ---------------------------------------------------------------------- */

@media screen and (max-width: 1250px) {
	.site-branding {
		margin-top: 3vw;
	}

	.primary-nav,
	.mega-panel {
		display: none !important;
	}

	.mobile-menu-button {
		display: inline-flex;
		opacity: 1 !important;
	}

	.mobile-drawer.is-open {
		display: flex;
	}
}

@media screen and (min-width: 1251px) {
	.mobile-menu-button,
	.mobile-drawer {
		display: none !important;
	}
}

@media screen and (min-width: 1350px) {
	.mega-list li {
		padding-bottom: 10px;
	}
}
