/*
 * HD Header Glass, the extras (Nov 14, 2026): the mega menus as sheets of frosted glass, and the Go to Top button
 * with the turning light the top bar's search has, plus a glow that turns with it. Applies only while <body>
 * carries .hd-glass-extras (header-glass.php decides; option hd_glass_extras).
 */

/* ---------- Mega menus ---------- */
/* Each mega menu is Avada's .awb-menu__mega-wrap (placed under its menu item) around one full-width container,
   which carried the white background. That container becomes the sheet. */
body.hd-glass-extras .fusion-tb-header .awb-menu_desktop.awb-menu_row .awb-menu__mega-wrap {
	/* The sheet floats about 8px under the bar at every height the bar takes, instead of opening straight under the
	   menu items (where it covered the bar's bottom edge, and the logo at the top of the page). The bar's height
	   comes from header-glass.css's numbers; the menu items are 33px tall and Avada already leaves 10px. The space
	   is padding, not margin, so the pointer stays inside the menu on its way down to the sheet. */
	padding-top: calc((var(--hdhg-h0, 80px) - (var(--hdhg-h0, 80px) - var(--hdhg-h1, 80px)) * var(--hdhg-p, 1) - 33px) / 2 + 9px);
	/* Nothing between the menu item and the sheet may let go of the menu. Avada left a 10px margin there that
	   belonged to neither (now part of the padding above, with a pixel of overlap), and it switched the closing
	   menu's pointer events off at once; they stay on for the quarter second it takes to close, so a pointer that
	   cuts a corner can still catch it. Closed, the menu is visibility: hidden and cannot be touched. */
	margin-top: -1px !important;
	pointer-events: auto !important;
	/* The wrap no longer fades. A parent at less than full opacity switches a child's backdrop blur off until the
	   fade ends, so the sheet would snap from clear to frosted; the sheet fades itself instead. */
	opacity: 1 !important;
	transition: visibility 0s linear .24s, z-index 0s linear .24s !important;
}
body.hd-glass-extras .fusion-tb-header .awb-menu_em-hover .awb-menu__li.hover > .awb-menu__mega-wrap,
body.hd-glass-extras .fusion-tb-header .awb-menu_em-hover .awb-menu__li:focus-within > .awb-menu__mega-wrap,
body.hd-glass-extras .fusion-tb-header .awb-menu_em-hover .awb-menu__li:hover > .awb-menu__mega-wrap,
body.hd-glass-extras .fusion-tb-header .awb-menu_em-click .awb-menu__open-nav-submenu_click[aria-expanded=true] ~ .awb-menu__mega-wrap {
	transition-delay: 0s !important;
}

body.hd-glass-extras .fusion-tb-header .awb-menu_desktop .awb-menu__mega-wrap > .fusion-fullwidth {
	background-color: rgba(255, 255, 255, .9) !important;
	-webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
	border-radius: 18px !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .95), 0 32px 70px -26px rgba(0, 27, 68, .6), 0 6px 18px -8px rgba(0, 27, 68, .22) !important;
	opacity: 0; transform: translateY(-8px) scale(.985); transform-origin: 50% 0;
	transition: opacity .2s ease, transform .3s cubic-bezier(.22, .8, .26, 1);
}
body.hd-glass-extras .fusion-tb-header .awb-menu_em-hover .awb-menu__li.hover > .awb-menu__mega-wrap > .fusion-fullwidth,
body.hd-glass-extras .fusion-tb-header .awb-menu_em-hover .awb-menu__li:focus-within > .awb-menu__mega-wrap > .fusion-fullwidth,
body.hd-glass-extras .fusion-tb-header .awb-menu_em-hover .awb-menu__li:hover > .awb-menu__mega-wrap > .fusion-fullwidth,
body.hd-glass-extras .fusion-tb-header .awb-menu_em-click .awb-menu__open-nav-submenu_click[aria-expanded=true] ~ .awb-menu__mega-wrap > .fusion-fullwidth {
	opacity: 1; transform: none;
}
/* A browser that cannot blur what is behind the sheet gets a nearly solid one, so the page does not show through as clutter. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	body.hd-glass-extras .fusion-tb-header .awb-menu_desktop .awb-menu__mega-wrap > .fusion-fullwidth { background-color: rgba(255, 255, 255, .97) !important; }
}
/* Where the sheet would reach the edges of the screen, keep it off them so its corners show. */
@media (max-width: 1290px) {
	body.hd-glass-extras .fusion-tb-header .awb-menu_desktop .awb-menu__mega-wrap > .fusion-fullwidth { margin-left: 12px !important; margin-right: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
	body.hd-glass-extras .fusion-tb-header .awb-menu_desktop .awb-menu__mega-wrap > .fusion-fullwidth { transform: none; transition: opacity .01s; }
}

/* ---------- The pill buttons in the mega menus ---------- */
/* "Request a quote" (Services), "Explore all our work" (Work) and "Read all articles" (Resources). The quote
   button's label was the menu's link blue on a blue pill (the strip's link color out-ranked the button's own white).
   All three are navy pills with white lettering, the turning light of the Go to Top button round the edge, and the
   glow that turns with it. The registered angle and its keyframes are declared under Go to Top below. The Work and
   Resources buttons keep their arrow, which still slides on hover (the menu's own rule). */
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap .hdmm-strip a.hdmm-quote,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all {
	position: relative; isolation: isolate; display: inline-flex; align-items: center;
	padding: 11px 26px; border-radius: 999px; background: none !important;
	color: #fff !important; font-size: 12px; font-weight: 700; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; white-space: nowrap;
	animation: hdtt-spin 6s linear infinite;
	transition: transform .25s cubic-bezier(.22, .8, .26, 1);
}
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all { gap: 9px; padding-right: 22px; box-shadow: none !important; }
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all .hdwm-arrow { font-size: 15px; line-height: 1; letter-spacing: 0; color: inherit; }
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap .hdmm-strip a.hdmm-quote::before,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all::before {
	content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 2px solid transparent; width: auto; height: auto;
	background: linear-gradient(120deg, #001b44 0%, #0a3a6b 100%) padding-box,
		conic-gradient(from var(--hdtt-a), rgba(179, 224, 242, .34) 0deg, rgba(179, 224, 242, .34) 195deg, #3ecfb2 258deg, #22d3ee 300deg, rgba(179, 224, 242, .34) 360deg) border-box;
}
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap .hdmm-strip a.hdmm-quote::after,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all::after {
	content: ''; position: absolute; inset: -5px; z-index: -2; border-radius: inherit; pointer-events: none; width: auto; height: auto;
	background: conic-gradient(from var(--hdtt-a), transparent 0deg, transparent 180deg, rgba(62, 207, 178, .9) 255deg, rgb(34, 211, 238) 300deg, transparent 355deg);
	filter: blur(9px); opacity: .8; transition: opacity .25s, inset .25s;
}
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap .hdmm-strip a.hdmm-quote:hover,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap .hdmm-strip a.hdmm-quote:focus-visible,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all:hover,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all:focus-visible { transform: translateY(-2px); }
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap .hdmm-strip a.hdmm-quote:hover::after,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap .hdmm-strip a.hdmm-quote:focus-visible::after,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all:hover::after,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all:focus-visible::after { opacity: 1; inset: -8px; }
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap .hdmm-strip a.hdmm-quote:focus-visible,
body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all:focus-visible { outline: 2px solid #22d3ee; outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
	body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap .hdmm-strip a.hdmm-quote,
	body.hd-glass-extras .fusion-tb-header .awb-menu__mega-wrap a.hdwm__all { animation: none; --hdtt-a: 40deg; transition: none; }
}

/* ---------- Go to Top ---------- */
/* Avada drew the page's scroll progress round this button as a square stroke, which read as a broken border.
   It is now a small piece of the same glass: a light turns round its edge (as on the top bar's search) and a
   glow turns with it. Avada's progress drawing (the svg inside the link) is reused as the button's face. */
@property --hdtt-a { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@keyframes hdtt-spin { to { --hdtt-a: 360deg; } }

body.hd-glass-extras #toTop.fusion-top-top-link {
	--hdtt-face: rgba(0, 24, 60, .86);
	--hdtt-light: conic-gradient(from var(--hdtt-a), rgba(179, 224, 242, .26) 0deg, rgba(179, 224, 242, .26) 195deg, #3ecfb2 258deg, #22d3ee 300deg, rgba(179, 224, 242, .26) 360deg);
	width: 48px; height: 48px; border-radius: 15px; overflow: visible;
	box-shadow: 0 12px 28px -14px rgba(0, 10, 30, .8);
	animation: hdtt-spin 6s linear infinite;
	transition: opacity .4s ease-in-out, transform .25s cubic-bezier(.22, .8, .26, 1);
}
body.hd-glass-extras #toTop.fusion-top-top-link.fusion-to-top-active { opacity: 1; }
/* The glow: the turning light again, blurred, behind the face and spilling past its edge. */
body.hd-glass-extras #toTop.fusion-top-top-link::after {
	content: ''; position: absolute; inset: -7px; z-index: -1; border-radius: 22px; pointer-events: none;
	background: conic-gradient(from var(--hdtt-a), transparent 0deg, transparent 180deg, rgba(62, 207, 178, .9) 255deg, rgb(34, 211, 238) 300deg, transparent 355deg);
	filter: blur(9px); opacity: .85; transition: opacity .25s, inset .25s;
}
/* The face. */
body.hd-glass-extras #toTop.fusion-top-top-link .awb-to-top-progress {
	position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; box-sizing: border-box; border-radius: inherit; border: 2px solid transparent;
	background: linear-gradient(var(--hdtt-face), var(--hdtt-face)) padding-box, var(--hdtt-light) border-box;
	-webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
}
body.hd-glass-extras #toTop.fusion-top-top-link .awb-to-top-progress rect { display: none; }
/* Without Avada's scroll-progress option there is no svg, so the link carries the face itself. */
body.hd-glass-extras .to-top-container:not(.awb-to-top-scroll-progress) #toTop.fusion-top-top-link {
	border: 1.5px solid transparent;
	background: linear-gradient(var(--hdtt-face), var(--hdtt-face)) padding-box, var(--hdtt-light) border-box !important;
}
body.hd-glass-extras #toTop.fusion-top-top-link::before { position: relative; z-index: 1; line-height: 48px; color: #fff; }
body.hd-glass-extras #toTop.fusion-top-top-link:hover, body.hd-glass-extras #toTop.fusion-top-top-link:focus-visible { transform: translateY(-2px); }
body.hd-glass-extras #toTop.fusion-top-top-link:hover::after, body.hd-glass-extras #toTop.fusion-top-top-link:focus-visible::after { opacity: 1; inset: -9px; }
body.hd-glass-extras #toTop.fusion-top-top-link:focus-visible { outline: 2px solid #22d3ee; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
	body.hd-glass-extras #toTop.fusion-top-top-link { animation: none; --hdtt-a: 40deg; }
}
