/* ==========================================================================
   Neuro navigation dropdowns
   Scope: ONLY the desktop dropdown panels (.nav-dd*). The header bar, logo,
   top-level links, CTA and hamburger are styled by main-min.css and untouched.
   Tokens come from the site theme (--color-*) with safe fallbacks.
   ========================================================================== */

.nav-dd-wrap {
	--nav-dd-ink: var(--color-secondary, #1a1a1c);
	--nav-dd-muted: #5f6b7a;
	--nav-dd-line: var(--color-stroke-1, #dfe4eb);
	--nav-dd-hover: var(--color-background-3, #f4f5f8);
	--nav-dd-blue: var(--color-primary-500, #3c5294);
	--nav-dd-tint: #f4f6fb;
	--nav-dd-w: 640px;
}
.nav-dd-wrap--solutions { --nav-dd-w: 900px; }
.nav-dd-wrap--platform  { --nav-dd-w: 960px; }
.nav-dd-wrap--columns   { --nav-dd-w: 1200px; }
.nav-dd-wrap--grid      { --nav-dd-w: 1200px; }

/* Panel shell */
.dropdown-menu.nav-dd {
	width: min(var(--nav-dd-w), calc(100vw - 48px));
	padding: 12px;
	background: #fff;
	border: 1px solid var(--nav-dd-line);
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .04);
	color: var(--nav-dd-ink);
	text-align: left;
	/* 150-200ms; visibility flips after fade-out so hidden panels leave the tab order */
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.dropdown-menu.nav-dd.active {
	transform: translateY(0);
	transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.dropdown-menu-bridge.nav-dd-bridge {
	width: min(var(--nav-dd-w), calc(100vw - 48px));
}
.nav-dd ul { list-style: none; margin: 0; padding: 0; }

/* Shared link focus + hover */
.nav-dd a:focus-visible {
	outline: 2px solid var(--nav-dd-blue);
	outline-offset: -2px;
}

/* ---------- Solutions: overview panel (shared .nav-dd__panel) | divider | 2 stacked links ---------- */
.nav-dd--solutions {
	display: grid;
	grid-template-columns: 38% minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
}
.nav-dd__links {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: 16px !important;
	padding-left: 16px !important;
	border-left: 1px solid var(--nav-dd-line);
}
.nav-dd__links li + li { border-top: 1px solid var(--nav-dd-line); }
.nav-dd__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 12px;
	border-radius: 10px;
	transition: background-color .18s ease;
}
.nav-dd__link:hover,
.nav-dd__link:focus-visible { background: var(--nav-dd-hover); }
.nav-dd__link-text { display: block; min-width: 0; }
.nav-dd__link-title { display: block; font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--nav-dd-ink); margin-bottom: 4px; }
.nav-dd__link-desc  { display: block; font-size: 13px; line-height: 1.5; color: var(--nav-dd-muted); }
.nav-dd__link .nav-dd__arrow {
	flex-shrink: 0;
	color: var(--nav-dd-muted);
	transition: color .18s ease, transform .18s ease;
}
.nav-dd__link:hover .nav-dd__arrow,
.nav-dd__link:focus-visible .nav-dd__arrow { color: var(--nav-dd-blue); transform: translateX(3px); }

/* ---------- Platform: overview panel | divider | 2 x 3 apps ---------- */
.nav-dd--platform {
	display: grid;
	grid-template-columns: 272px 1fr;
	gap: 0;
	align-items: stretch;
}
.nav-dd__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 24px;
	background: var(--nav-dd-tint);
	border-radius: 14px;
}
.nav-dd__eyebrow {
	margin: 0;
	font-size: 11px;
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--nav-dd-muted);
}
.nav-dd__headline {
	margin: 12px 0 20px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 500;
	letter-spacing: -.01em;
	color: var(--nav-dd-ink);
}
.nav-dd__panel-link {
	align-self: flex-start;
	font-size: 14px;
	font-weight: 500;
	color: var(--nav-dd-blue);
	border-radius: 6px;
}
.nav-dd__panel-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-dd__apps {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(3, auto);
	grid-auto-flow: column;           /* items 1-3 -> column 1, items 4-6 -> column 2 */
	column-gap: 8px;
	row-gap: 0;
	margin-left: 16px !important;
	padding-left: 16px !important;
	border-left: 1px solid var(--nav-dd-line);
	align-content: center;
}
/* Four platform capabilities: items 1-2 -> column 1, items 3-4 -> column 2 */
.nav-dd__apps--4 { grid-template-rows: repeat(2, auto); }

/* Six capabilities: two labeled columns of three (flex avoids legacy .nav-dd__apps column flow) */
.nav-dd__apps.nav-dd__apps--grouped {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	margin-left: 16px !important;
	padding-left: 16px !important;
	border-left: 1px solid var(--nav-dd-line);
	grid-template-columns: unset;
	grid-template-rows: unset;
	grid-auto-flow: unset;
	min-width: 0;
	flex: 1 1 auto;
}
.nav-dd__apps--grouped > .nav-dd__app-col {
	flex: 1 1 0;
	min-width: 0;
}
.nav-dd__group-label {
	margin: 0;
	padding: 4px 16px 6px;
	font-size: 11px;
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--nav-dd-muted);
}
.nav-dd__app-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---------- Shared item (apps, Why Neuro, Industries) ---------- */
.nav-dd__item {
	display: block;
	height: 100%;
	padding: 12px 16px;
	border-radius: 10px;
	transition: background-color .18s ease;
}
.nav-dd__item:hover,
.nav-dd__item:focus-visible { background: var(--nav-dd-hover); }
.nav-dd__name {
	display: block;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 500;
	color: var(--nav-dd-ink);
	transition: color .18s ease;
}
.nav-dd__item:hover .nav-dd__name,
.nav-dd__item:focus-visible .nav-dd__name { color: var(--nav-dd-blue); }
.nav-dd__desc {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--nav-dd-muted);
}

@media (prefers-reduced-motion: reduce) {
	.dropdown-menu.nav-dd,
	.dropdown-menu.nav-dd.active,
	.nav-dd__link, .nav-dd__item, .nav-dd__arrow, .nav-dd__name { transition: none; }
}

/* ==========================================================================
   Industrial polish shared by all four dropdowns
   ========================================================================== */
.nav-dd-wrap--solutions,
.nav-dd-wrap--platform,
.nav-dd-wrap--columns,
.nav-dd-wrap--grid {
	--nav-dd-accent: #0876e4;        /* Neuro blue: rule + hover indicator */
	--nav-dd-cta: #0768d5;
	--nav-dd-cta-hover: #004aa3;
	--nav-dd-hover: #f1f6fc;
}
.dropdown-menu.nav-dd--solutions,
.dropdown-menu.nav-dd--platform,
.dropdown-menu.nav-dd--columns,
.dropdown-menu.nav-dd--grid {
	padding: 13px;
	border-color: #dce5ee;
	box-shadow: 0 22px 50px rgba(20, 43, 68, .13), 0 3px 9px rgba(20, 43, 68, .035);
}

/* Overview panel (shared by the two menus) */
.nav-dd__panel {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(135deg, #eaf2fc 0%, #f4f8fd 74%, #eef5fd 100%);
	border-radius: 15px;
}
/* Faint precision-grid detail, decorative only (pure CSS, no assets) */
.nav-dd__panel::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -12px;
	bottom: -25px;
	width: 180px;
	height: 125px;
	opacity: .23;
	pointer-events: none;
	background-image:
		linear-gradient(#82b4e7 1px, transparent 1px),
		linear-gradient(90deg, #82b4e7 1px, transparent 1px);
	background-size: 19px 19px;
	-webkit-mask-image: linear-gradient(135deg, transparent 15%, #000 100%);
	mask-image: linear-gradient(135deg, transparent 15%, #000 100%);
}
.nav-dd__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .125em;
	color: #465a72;
}
.nav-dd__rule {
	display: inline-block;
	flex: none;
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: var(--nav-dd-accent, #0876e4);
}
.nav-dd__headline { color: #151e2b; font-weight: 600; letter-spacing: -.02em; }
.nav-dd__panel-link { color: var(--nav-dd-cta, #0768d5); transition: color .17s ease; }
.nav-dd__panel-link:hover { color: var(--nav-dd-cta-hover, #004aa3); }
.nav-dd__panel-link:focus-visible { outline: 2px solid var(--nav-dd-accent, #0876e4); outline-offset: 2px; }

/* Row/item hover: very light wash + blue vertical indicator */
.nav-dd--solutions .nav-dd__link,
.nav-dd--platform .nav-dd__item { position: relative; transition: background-color .17s ease; }
.nav-dd--solutions .nav-dd__link::before,
.nav-dd--platform .nav-dd__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 11px;
	bottom: 11px;
	width: 3px;
	border-radius: 3px;
	background: var(--nav-dd-accent, #0876e4);
	opacity: 0;
	transform: scaleY(.6);
	transition: opacity .17s ease, transform .17s ease;
}
.nav-dd--solutions .nav-dd__link:hover::before,
.nav-dd--solutions .nav-dd__link:focus-visible::before,
.nav-dd--platform .nav-dd__item:hover::before,
.nav-dd--platform .nav-dd__item:focus-visible::before { opacity: 1; transform: scaleY(1); }
.nav-dd--solutions .nav-dd__link:hover,
.nav-dd--solutions .nav-dd__link:focus-visible,
.nav-dd--platform .nav-dd__item:hover,
.nav-dd--platform .nav-dd__item:focus-visible { background: var(--nav-dd-hover); }
.nav-dd--solutions a:focus-visible,
.nav-dd--platform a:focus-visible { outline: 2px solid var(--nav-dd-accent, #0876e4); outline-offset: 2px; }
.nav-dd--solutions .nav-dd__link-title,
.nav-dd--platform .nav-dd__name { color: #17212c; font-weight: 600; }
/* Hover title colour stays charcoal here; the blue indicator carries the emphasis */
.nav-dd--platform .nav-dd__item:hover .nav-dd__name,
.nav-dd--platform .nav-dd__item:focus-visible .nav-dd__name { color: #17212c; }
.nav-dd--solutions .nav-dd__link .nav-dd__arrow { transition: color .17s ease, transform .17s ease; }
.nav-dd--solutions .nav-dd__link:hover .nav-dd__arrow,
.nav-dd--solutions .nav-dd__link:focus-visible .nav-dd__arrow { color: var(--nav-dd-accent, #0876e4); transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
	.nav-dd__panel-link,
	.nav-dd--solutions .nav-dd__link::before,
	.nav-dd--platform .nav-dd__item::before { transition: none; }
}

/* ---------- Why Neuro + Industries: panel | divider | editorial rows ---------- */
.dropdown-menu.nav-dd--columns,
.dropdown-menu.nav-dd--grid { width: min(1200px, 100%, calc(100vw - 48px)); }
.nav-dd-wrap--columns .dropdown-menu-bridge.nav-dd-bridge,
.nav-dd-wrap--grid .dropdown-menu-bridge.nav-dd-bridge { width: min(1200px, 100%, calc(100vw - 48px)); }
/* About has two links, so it doesn't keep the three-column width */
.dropdown-menu.nav-dd--columns.nav-dd--about { width: min(860px, 100%, calc(100vw - 48px)); }
.nav-dd-wrap--about .dropdown-menu-bridge.nav-dd-bridge { width: min(860px, 100%, calc(100vw - 48px)); }
.nav-dd--columns,
.nav-dd--grid {
	display: grid;
	grid-template-columns: 30% minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
}
.nav-dd--columns .nav-dd__panel,
.nav-dd--grid .nav-dd__panel { min-height: 220px; padding: 28px; }
.nav-dd--columns .nav-dd__headline,
.nav-dd--grid .nav-dd__headline { font-size: 23px; line-height: 1.25; margin: 21px 0 24px; }
.nav-dd__editorial {
	display: grid;
	align-items: stretch;
	margin-left: 18px !important;
	padding: 12px 0 12px 20px !important;
	border-left: 1px solid #dce4ee;
}
.nav-dd__editorial--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav-dd__editorial--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-dd__editorial--3 > li + li,
.nav-dd__editorial--2 > li:nth-child(even) { border-left: 1px solid #e2e8ef; }
.nav-dd__editorial--2 > li:nth-child(n+3) { border-top: 1px solid #e2e8ef; }
.nav-dd__elink {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	height: 100%;
	padding: 21px 19px 18px;
	border-radius: 10px;
	transition: background-color .17s ease;
}
.nav-dd__elink::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 3px;
	background: var(--nav-dd-accent, #0876e4);
	opacity: 0;
	transition: opacity .17s ease;
}
.nav-dd__elink:hover,
.nav-dd__elink:focus-visible { background: #f0f6ff; }
.nav-dd__elink:hover::before,
.nav-dd__elink:focus-visible::before { opacity: 1; }
.nav-dd__ecopy { display: block; min-width: 0; }
.nav-dd__ename { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; color: #19212b; }
.nav-dd__edesc { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.55; color: #627184; }
.nav-dd__elink .nav-dd__arrow { flex: none; color: #657589; transition: color .17s ease, transform .17s ease; }
.nav-dd__elink:hover .nav-dd__arrow,
.nav-dd__elink:focus-visible .nav-dd__arrow { color: var(--nav-dd-accent, #0876e4); transform: translateX(4px); }
.nav-dd--columns a:focus-visible,
.nav-dd--grid a:focus-visible { outline: 2px solid var(--nav-dd-accent, #0876e4); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.nav-dd__elink, .nav-dd__elink::before, .nav-dd__elink .nav-dd__arrow { transition: none; }
}

/* ---------- Solutions: exact proportions from the approved prototype (900px) ---------- */
.nav-dd--solutions {
	grid-template-columns: 34% minmax(0, 1fr);
	gap: 22px;
}
.nav-dd--solutions .nav-dd__panel {
	min-height: 260px;
	padding: 32px 27px;
}
.nav-dd--solutions .nav-dd__headline {
	font-size: 24px;
	line-height: 1.28;
	letter-spacing: -.03em;
	margin: 18px 0 27px;
}
.nav-dd--solutions .nav-dd__panel-link { font-weight: 600; }
.nav-dd--solutions .nav-dd__links {
	margin-left: 0 !important;
	padding: 8px 12px 8px 23px !important;
	border-left: 1px solid #dce4ee;
	justify-content: center;
	align-self: stretch;
}
.nav-dd--solutions .nav-dd__links li + li { border-top: 0; }
.nav-dd--solutions .nav-dd__link {
	gap: 20px;
	padding: 21px 7px;
	border-radius: 11px;
}
.nav-dd--solutions .nav-dd__links li + li .nav-dd__link { border-top: 1px solid #e0e6ee; border-radius: 0 0 11px 11px; }
.nav-dd--solutions .nav-dd__link:hover { border-radius: 11px; }
.nav-dd--solutions .nav-dd__link-text { max-width: 440px; }
.nav-dd--solutions .nav-dd__link-title { font-size: 18px; letter-spacing: -.014em; font-weight: 600; margin-bottom: 7px; }
.nav-dd--solutions .nav-dd__link-desc { font-size: 13px; line-height: 1.65; color: #5c6b7d; }
.nav-dd--solutions .nav-dd__link .nav-dd__arrow { width: 24px; height: 24px; }
.nav-dd--columns .nav-dd__panel-link,
.nav-dd--grid .nav-dd__panel-link { font-weight: 600; }
