/* Desktop navigation refresh - October 2026. */
@media (min-width: 992px) {
	#thp-nav .thp-nav--item--megamenu {
		--thp-menu-surface: #fff;
		--thp-menu-tabs: #fff;
		--thp-menu-tab-hover: #f7f8fa;
		--thp-menu-tab-active: #fff;
		--thp-menu-accent: #f46b31;
		--thp-menu-text: #17385c;
		--thp-menu-muted: #486987;
		--thp-menu-subtle: #627d98;
		--thp-menu-divider: rgba(23, 56, 92, 0.18);
		--thp-menu-border: rgba(23, 56, 92, 0.14);
		--thp-menu-card-border: #d5dbe1;
		--thp-menu-card-border-hover: #bcc6d0;
		--thp-menu-card-shadow: 0 3px 10px rgba(5, 28, 51, 0.08);
		--thp-menu-card-shadow-hover: 0 6px 16px rgba(5, 28, 51, 0.15);
		--thp-menu-hover: #d94f1d;
		--thp-menu-link-bg: #f3f4f5;
		--thp-menu-link-hover-bg: #fff;
		--thp-menu-pointer-left: 50%;
		left: 0;
		right: auto;
		top: 100%;
		width: min(1050px, calc(100vw - 48px));
		max-width: calc(100vw - 48px);
		max-height: calc(100vh - 132px);
		background: var(--thp-menu-surface);
		border: 1px solid var(--thp-menu-border);
		border-radius: 0.25rem;
		box-shadow: 0 18px 44px rgba(5, 28, 51, 0.16), 0 4px 14px rgba(5, 28, 51, 0.08);
		color: var(--thp-menu-text);
		overflow: visible;
		opacity: 0;
		visibility: hidden;
		clip: auto;
		transform: translateY(4px) scale(0.995);
		transform-origin: var(--thp-menu-pointer-left) top;
		transition: opacity 60ms ease-out, transform 75ms ease-out, visibility 0s linear 75ms;
		will-change: opacity, transform;
	}

	#thp-nav .thp-nav--item--megamenu::before {
		content: "";
		position: absolute;
		z-index: 1;
		top: -8px;
		left: var(--thp-menu-pointer-left);
		width: 18px;
		height: 18px;
		background: var(--thp-menu-surface);
		border-left: 1px solid var(--thp-menu-border);
		border-top: 1px solid var(--thp-menu-border);
		box-shadow: -5px -5px 12px rgba(5, 28, 51, 0.08);
		transform: translateX(-50%) rotate(45deg);
	}

	/* Invisible pointer bridge between the parent item and its dropdown. */
	#thp-nav .thp-nav--item--megamenu::after {
		content: "";
		position: absolute;
		z-index: 0;
		top: -14px;
		left: 0;
		width: 100%;
		height: 14px;
		background: transparent;
		pointer-events: auto;
	}

	#thp-nav .thp-nav--item--megamenu > * {
		position: relative;
		z-index: 2;
		border-radius: inherit;
		overflow: hidden;
	}

	#thp-nav .thp-nav--item.thp-nav--item-active > .thp-nav--item--megamenu {
		opacity: 1;
		visibility: visible;
		clip: auto;
		transform: translateY(0) scale(1);
		transition-delay: 0s;
	}

	#thp-nav .thp-nav--item--top-level:focus,
	#thp-nav .thp-nav--item--top-level:active,
	#thp-nav .thp-nav--item.thp-nav--item-active > .thp-nav--item--top-level {
		background-color: transparent;
		box-shadow: none;
		color: #f46b31;
		text-decoration: none;
	}

	#thp-nav .thp-nav--item--top-level:focus:not(:focus-visible) {
		outline: none;
	}

	#thp-nav .thp-nav--item--top-level:focus-visible {
		outline: 2px solid rgba(244, 107, 49, 0.55);
		outline-offset: 3px;
	}

	#thp-nav .thp-nav--item--megamenu,
	#thp-nav .thp-nav--item--megamenu p,
	#thp-nav .thp-nav--item--megamenu address,
	#thp-nav .thp-nav--item--megamenu .tab-content {
		color: var(--thp-menu-text);
	}

	#thp-nav .thp-nav--item--megamenu h3 {
		font-size: 1.5rem;
		font-weight: 700;
		line-height: 1.2;
	}

	#thp-nav .thp-nav--item--megamenu .card,
	#thp-nav .thp-nav--item--megamenu .card p,
	#thp-nav .thp-nav--item--megamenu .card .card-title,
	#thp-nav .thp-nav--item--megamenu .card .card-body {
		color: #17385c;
	}

	#thp-nav .thp-nav--item--megamenu .card {
		border-color: var(--thp-menu-card-border);
		border-radius: 0.25rem;
		background: #fff;
		box-shadow: var(--thp-menu-card-shadow);
		overflow: hidden;
		transition: border-color 90ms ease-out, box-shadow 90ms ease-out, transform 90ms ease-out;
	}

	#thp-nav .thp-nav--item--megamenu .card:hover {
		border-color: var(--thp-menu-card-border-hover);
		box-shadow: var(--thp-menu-card-shadow-hover);
		transform: translateY(-1px);
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills,
	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link {
		background-color: var(--thp-menu-tabs);
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills {
		padding: 0.4rem 0;
		border-right: 1px solid var(--thp-menu-divider);
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link {
		position: relative;
		margin: 0;
		padding: 0.78rem 2.4rem 0.78rem 1.15rem;
		border: 0;
		border-bottom: 1px solid var(--thp-menu-divider);
		border-radius: 0;
		color: var(--thp-menu-text);
		font-weight: 600;
		line-height: 1.2;
		transition: background-color 90ms ease-out, color 90ms ease-out;
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link:last-child {
		border-bottom: 0;
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link::after {
		content: "";
		position: absolute;
		right: 1rem;
		top: 50%;
		width: 7px;
		height: 7px;
		border-top: 2px solid currentColor;
		border-right: 2px solid currentColor;
		color: var(--thp-menu-subtle);
		opacity: 0.72;
		transform: translateY(-50%) rotate(45deg);
		transition: color 90ms ease-out, opacity 90ms ease-out, transform 90ms ease-out;
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0.42rem;
		bottom: 0.42rem;
		width: 4px;
		border-radius: 0;
		background: var(--thp-menu-accent);
		opacity: 0;
		transform: scaleY(0.45);
		transition: opacity 90ms ease-out, transform 90ms ease-out;
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link:hover,
	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link:focus {
		background-color: var(--thp-menu-tab-hover);
		color: var(--thp-menu-text);
		text-decoration: none;
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link:focus-visible {
		outline: 2px solid rgba(244, 107, 49, 0.42);
		outline-offset: -3px;
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link.active,
	#thp-nav .thp-nav--item--megamenu .nav-pills .show > .nav-link {
		background-color: var(--thp-menu-tab-active);
		box-shadow: 5px 0 14px rgba(5, 28, 51, 0.06);
		color: var(--thp-menu-text);
		font-weight: 700;
		text-decoration: none;
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link:hover::before,
	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link:focus::before {
		opacity: 0.5;
		transform: scaleY(0.72);
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link.active::before,
	#thp-nav .thp-nav--item--megamenu .nav-pills .show > .nav-link::before {
		opacity: 1;
		transform: scaleY(1);
	}

	#thp-nav .thp-nav--item--megamenu .nav-pills .nav-link.active::after,
	#thp-nav .thp-nav--item--megamenu .nav-pills .show > .nav-link::after {
		color: var(--thp-menu-accent);
		opacity: 1;
		transform: translate(2px, -50%) rotate(45deg);
	}

	#thp-nav .thp-nav--item--megamenu .tab-content {
		background: var(--thp-menu-surface);
	}

	#thp-nav .thp-nav--item--megamenu .tab-pane.fade {
		transition: opacity 65ms ease-out;
	}


	#thp-nav .thp-menu-min-height {
		min-height: 0;
	}

	#thp-nav .thp-service-menu {
		min-height: 390px;
	}

	#thp-nav .thp-service-menu__panel {
		padding: 1.15rem 1.55rem 1.35rem;
	}

	#thp-nav .thp-service-menu__title {
		margin: 0 0 0.8rem;
		padding-bottom: 0.5rem;
		border-bottom: 1px solid var(--thp-menu-divider);
		color: #f46b31;
		font-size: 1rem;
		font-weight: 700;
		letter-spacing: 0;
		line-height: 1.2;
		text-transform: none;
	}

	#thp-nav .thp-service-menu__groups {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-content: start;
		gap: 1.25rem 1.9rem;
	}

	#thp-nav .thp-service-menu__groups--single {
		grid-template-columns: minmax(0, 1fr);
	}

	#thp-nav .thp-service-menu__group h4 {
		margin: 0 0 0.68rem;
		padding-bottom: 0.48rem;
		border-bottom: 1px solid var(--thp-menu-divider);
		color: #f46b31;
		font-size: 1rem;
		font-weight: 700;
		letter-spacing: 0;
		line-height: 1.2;
		text-transform: none;
	}

	#thp-nav .thp-service-menu__links {
		display: grid;
		gap: 0.48rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	#thp-nav .thp-service-menu__groups--single .thp-service-menu__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.58rem 2rem;
	}

	#thp-nav .thp-service-menu__links li {
		position: relative;
		padding-left: 0.82rem;
		line-height: 1.3;
	}

	#thp-nav .thp-service-menu__links li::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0.48em;
		width: 4px;
		height: 4px;
		border-radius: 50%;
		background: #f46b31;
	}

	#thp-nav .thp-service-menu__links li.is-supporting {
		margin-left: 0.55rem;
		font-size: 0.88em;
		opacity: 0.78;
	}

	#thp-nav .thp-service-menu__links li.is-supporting::before {
		width: 5px;
		height: 1px;
		border-radius: 0;
		background: currentColor;
	}

	#thp-nav .thp-service-menu__links a {
		display: inline-block;
		color: var(--thp-menu-text);
		font-size: 0.94rem;
		font-weight: 500;
		text-decoration: none;
		transition: color 80ms ease-out, transform 80ms ease-out;
	}

	#thp-nav .thp-service-menu__links a:hover,
	#thp-nav .thp-service-menu__links a:focus {
		color: var(--thp-menu-hover);
		text-decoration: underline;
		text-underline-offset: 0.18em;
		transform: translateX(2px);
	}

	#thp-nav .thp-menu-section__intro {
		width: 100%;
		margin-bottom: 0.9rem;
	}

	#thp-nav .thp-menu-heading-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		margin-bottom: 0.85rem;
	}

	#thp-nav .thp-menu-heading-row h3 {
		flex: 0 0 auto;
		margin-bottom: 0;
	}

	#thp-nav .thp-menu-category-links {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 0.38rem;
	}

	#thp-nav .thp-menu-category-links a {
		display: inline-flex;
		align-items: center;
		min-height: 1.75rem;
		padding: 0.32rem 0.72rem;
		border: 1px solid #d5dbe1;
		border-radius: 999px;
		background: #e8ebee;
		color: #17385c;
		font-size: 0.7rem;
		font-weight: 700;
		line-height: 1;
		text-decoration: none;
		transition: background-color 90ms ease-out, border-color 90ms ease-out, color 90ms ease-out;
	}

	#thp-nav .thp-menu-category-links a:hover,
	#thp-nav .thp-menu-category-links a:focus {
		border-color: #c3ccd5;
		background: #dbe1e7;
		color: #17385c;
		text-decoration: none;
	}

	#thp-nav .thp-menu-icon-links {
		display: grid;
		gap: 0.45rem;
	}

	#thp-nav .thp-menu-icon-link {
		display: grid;
		grid-template-columns: 3rem minmax(0, 1fr);
		align-items: center;
		gap: 0.65rem;
		min-height: 4rem;
		padding: 0.42rem 0.58rem;
		border: 1px solid var(--thp-menu-card-border);
		border-left: 5px solid #f46b31;
		border-radius: 0.25rem;
		background: #fff;
		box-shadow: var(--thp-menu-card-shadow);
		color: var(--thp-menu-text);
		font-size: 0.9rem;
		font-weight: 600;
		line-height: 1.2;
		text-decoration: none;
		transition: border-color 90ms ease-out, box-shadow 90ms ease-out, transform 90ms ease-out;
	}

	#thp-nav .thp-menu-icon-link:hover,
	#thp-nav .thp-menu-icon-link:focus {
		border-color: var(--thp-menu-card-border-hover);
		border-left-color: #f46b31;
		background: #fff;
		box-shadow: var(--thp-menu-card-shadow-hover);
		color: var(--thp-menu-text);
		text-decoration: none;
		transform: translateY(-1px);
	}

	#thp-nav .thp-menu-image-link__thumbnail,
	#thp-nav .thp-menu-image-link__thumbnail img {
		display: block;
		width: 3rem;
		height: 3rem;
		border-radius: 0.25rem;
	}

	#thp-nav .thp-menu-image-link__thumbnail {
		overflow: hidden;
		background: #e8ebee;
	}

	#thp-nav .thp-menu-image-link__thumbnail img {
		padding: 0;
		object-fit: cover;
	}

	#thp-nav .thp-menu-image-link__thumbnail--icon {
		display: flex;
		align-items: center;
		justify-content: center;
		background: #17385c;
		color: #fff;
	}

	#thp-nav .thp-menu-image-link__thumbnail--icon > i,
	#thp-nav .thp-menu-image-link__thumbnail--icon > .svg-inline--fa {
		color: #fff;
		font-size: 1.4rem;
	}

	#thp-nav .thp-menu-image-link strong,
	#thp-nav .thp-menu-image-link small {
		display: block;
		line-height: 1.2;
	}

	#thp-nav .thp-menu-image-link small {
		margin-top: 0.14rem;
		color: #627d98;
		font-size: 0.7rem;
		font-weight: 500;
	}

	#thp-nav .thp-menu-team-links .thp-menu-icon-link {
		height: 100%;
	}

	#thp-nav .thp-menu-case-study-link {
		display: flex;
		flex-direction: column;
		min-height: 6.25rem;
		height: 100%;
		padding: 0.65rem 0.75rem;
		border: 1px solid var(--thp-menu-card-border);
		border-left: 5px solid #224771;
		border-radius: 0.25rem;
		background: #fff;
		box-shadow: var(--thp-menu-card-shadow);
		color: #17385c;
		text-decoration: none;
		transition: border-color 90ms ease-out, box-shadow 90ms ease-out, transform 90ms ease-out;
	}

	#thp-nav .thp-menu-case-study-link:hover,
	#thp-nav .thp-menu-case-study-link:focus {
		border-color: var(--thp-menu-card-border-hover);
		border-left-color: #224771;
		background: #fff;
		box-shadow: var(--thp-menu-card-shadow-hover);
		color: #17385c;
		text-decoration: none;
		transform: translateY(-1px);
	}

	#thp-nav .thp-menu-case-study-link__quote {
		display: -webkit-box;
		overflow: hidden;
		font-size: 0.9rem;
		line-height: 1.35;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	#thp-nav .thp-menu-case-study-link__quote i {
		color: #f46b31;
	}

	#thp-nav .thp-menu-case-study-link__meta {
		display: grid;
		grid-template-columns: 2.65rem minmax(0, 1fr);
		align-items: center;
		gap: 0.65rem;
		margin-top: auto;
		padding-top: 0.55rem;
	}

	#thp-nav .thp-menu-case-study-link__meta strong,
	#thp-nav .thp-menu-case-study-link__meta small {
		display: block;
		overflow: hidden;
		line-height: 1.2;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	#thp-nav .thp-menu-case-study-link__meta strong {
		font-size: 0.84rem;
	}

	#thp-nav .thp-menu-case-study-link__meta small {
		font-size: 0.76rem;
		opacity: 0.76;
	}

	#thp-nav .thp-menu-case-study-link__thumbnail,
	#thp-nav .thp-menu-case-study-link__thumbnail img {
		display: block;
		width: 2.65rem;
		height: 2.65rem;
		border-radius: 50%;
	}

	#thp-nav .thp-menu-case-study-grid {
		margin-bottom: 0.45rem;
	}

	#thp-nav .thp-menu-case-study-button {
		margin-top: 0.35rem;
	}

	#thp-nav .thp-menu-case-study-link__thumbnail {
		overflow: hidden;
		background: #e8ebee;
	}

	#thp-nav .thp-menu-case-study-link__thumbnail img {
		padding: 0;
		object-fit: cover;
	}

	#thp-nav .thp-client-zone-grid {
		margin-bottom: -0.5rem;
	}

	#thp-nav .thp-client-zone-box {
		height: 100%;
		margin-bottom: 0;
	}

	#thp-nav .thp-client-zone-box > a {
		display: flex;
		align-items: center;
		gap: 0.72rem;
		height: 100%;
		min-height: 4.5rem;
		padding: 0.55rem;
		border: 1px solid var(--thp-menu-card-border);
		border-left: 5px solid #f46b31;
		border-radius: 0.25rem;
		background: #fff;
		box-shadow: var(--thp-menu-card-shadow);
		color: #17385c;
		text-decoration: none;
		transition: border-color 90ms ease-out, box-shadow 90ms ease-out, transform 90ms ease-out;
	}

	#thp-nav .thp-client-zone-box > a:hover,
	#thp-nav .thp-client-zone-box > a:focus {
		border-color: var(--thp-menu-card-border-hover);
		border-left-color: #f46b31;
		background: #fff;
		box-shadow: var(--thp-menu-card-shadow-hover);
		color: #17385c;
		text-decoration: none;
		transform: translateY(-1px);
	}

	#thp-nav .thp-client-zone-box img {
		flex: 0 0 3.3rem;
		width: 3.3rem;
		height: 3.3rem;
		padding: 0.18rem;
		border-radius: 0.25rem;
		background: #f1f3f5;
		object-fit: contain;
	}

	#thp-nav .thp-client-zone-box div {
		min-width: 0;
		margin-top: 0;
	}

	#thp-nav .thp-client-zone-box h6 {
		margin: 0 0 0.15rem;
		color: #17385c;
		font-size: 0.9rem;
		line-height: 1.15;
	}

	#thp-nav .thp-client-zone-box small {
		display: block;
		color: #627d98;
		font-size: 0.7rem;
		line-height: 1.2;
	}

	#thp-nav .thp-menu-text-link {
		display: inline-block;
		margin-top: 0.35rem;
		color: var(--thp-menu-text);
		font-size: 0.88rem;
		font-weight: 700;
		text-decoration: none;
	}

	#thp-nav .thp-menu-text-link:hover,
	#thp-nav .thp-menu-text-link:focus {
		color: var(--thp-menu-hover);
		text-decoration: none;
	}

	#thp-nav .thp-nav--item--megamenu .card-img-top {
		width: 100%;
		aspect-ratio: 16 / 9;
		object-fit: cover;
	}

	#thp-nav .thp-nav--item--megamenu .thp-menu-card-placeholder {
		padding: 1rem;
		background: #f1f3f5;
		object-fit: contain;
	}

	#thp-nav .thp-nav--item--megamenu img.thp-menu-card-placeholder {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	#thp-nav .thp-client-zone-box img.thp-menu-card-placeholder {
		flex-basis: 3.3rem;
		width: 3.3rem;
		height: 3.3rem;
		padding: 0.18rem;
		aspect-ratio: 1;
	}

	#thp-nav .thp-menu-image-link__thumbnail img.thp-menu-card-placeholder,
	#thp-nav .thp-menu-case-study-link__thumbnail img.thp-menu-card-placeholder {
		width: 100%;
		height: 100%;
		padding: 0.15rem;
		aspect-ratio: 1;
		object-fit: contain;
	}
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	#thp-nav .thp-nav--item--megamenu {
		width: calc(100vw - 48px);
	}

	#thp-nav .thp-service-menu__panel {
		padding-right: 1.2rem;
		padding-left: 1.2rem;
	}

	#thp-nav .thp-service-menu__groups {
		gap: 0.95rem 1.15rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	#thp-nav .thp-nav--item--megamenu,
	#thp-nav .thp-nav--item--megamenu *,
	#thp-nav .thp-nav--item--megamenu *::before,
	#thp-nav .thp-nav--item--megamenu *::after {
		transition-duration: 0.001ms !important;
	}
}


