/*
Theme Name: Nexum
Theme URI: https://nexummarketing.com/
Description: Child theme of Twenty Twenty-Five for Nexum Marketing, a UK marketing consultancy for construction product manufacturers.
Author: Nexum Marketing
Author URI: https://nexummarketing.com/
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexum
*/

/*
 * Design tokens come from theme.json (colours, fonts, sizes).
 * The variables below cover what theme.json cannot express.
 *
 * To swap in a proper white logo: replace the logo image in parts/header.html and
 * parts/footer.html, then set --nx-logo-filter to "none".
 */
:root {
	--nx-gutter: 28px;
	--nx-radius: 14px;
	--nx-logo-filter: brightness(0) invert(1);
	--nx-navy: var(--wp--preset--color--navy);
	--nx-navy-deep: var(--wp--preset--color--navy-deep);
	--nx-navy-soft: var(--wp--preset--color--navy-soft);
	--nx-sky: var(--wp--preset--color--sky);
	--nx-paper: var(--wp--preset--color--paper);
	--nx-ink: var(--wp--preset--color--ink);
	--nx-muted: var(--wp--preset--color--muted);
	--nx-line: rgba(14, 23, 38, 0.12);
	--nx-header-h: 90px;
	--nx-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E");
	--nx-arrow-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M14 8H3M7 4L3 8l4 4'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
	:root {
		--nx-gutter: 20px;
	}
}

html {
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

/* Vertical rhythm. Block gap is 0 in theme.json, so spacing is set here. */
.wp-site-blocks :is(h1, h2, h3, h4) {
	margin-block: 0 0.5em;
}

.wp-site-blocks :is(p, ul, ol) {
	margin-block: 0 1em;
}

.wp-site-blocks img {
	max-width: 100%;
	height: auto;
}

.wp-site-blocks main {
	margin-block: 0;
}

/* Visible keyboard focus on everything interactive */
.wp-site-blocks :is(a, button, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--nx-sky);
	outline-offset: 3px;
	border-radius: 4px;
}

.nx-on-light :is(a, button, summary, [tabindex]):focus-visible,
.nx-section:not(.nx-dark) :is(a, button, summary, [tabindex]):focus-visible {
	outline-color: var(--nx-navy-soft);
}

/* ---------- Eyebrow ---------- */
.nx-eyebrow {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nx-sky);
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.nx-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
	flex: none;
}

.nx-eyebrow--dark {
	color: var(--nx-navy-soft);
}

/* ---------- Buttons ---------- */
.nx-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.6;
	text-decoration: none;
	transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}

.nx-btn .wp-block-button__link:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.nx-btn--arrow .wp-block-button__link::after {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--nx-arrow) center / contain no-repeat;
	mask: var(--nx-arrow) center / contain no-repeat;
}

.nx-btn--solid .wp-block-button__link {
	background: #fff;
	color: var(--nx-navy);
}

.nx-btn--solid .wp-block-button__link:hover {
	background: var(--nx-sky);
}

.nx-btn--ghost .wp-block-button__link {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.nx-btn--ghost .wp-block-button__link:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.nx-btn--navy .wp-block-button__link {
	background: var(--nx-navy);
	color: #fff;
}

.nx-btn--navy .wp-block-button__link:hover {
	background: var(--nx-navy-soft);
}

.nx-btn--sm .wp-block-button__link {
	padding: 11px 20px;
}

.wp-block-buttons.nx-centre {
	margin-top: 48px;
	justify-content: center;
}

/* ---------- Header ---------- */
.nx-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 22px var(--nx-gutter);
	background: rgba(6, 20, 42, 0.94);
	background: color-mix(in srgb, var(--nx-navy-deep) 94%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.admin-bar .nx-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Front page: transparent over the hero until the page is scrolled */
.nx-front .nx-header:not(.is-solid) {
	background: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.nx-front .nx-header.is-solid,
body:not(.nx-front) .nx-header {
	padding-block: 12px;
}

body:not(.nx-front) .wp-site-blocks {
	padding-top: 70px;
}

.nx-header__inner {
	max-width: 1184px;
	margin-inline: auto;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.nx-logo,
.nx-logo a {
	display: block;
	margin: 0;
}

.nx-logo img {
	height: 46px;
	width: auto;
	filter: var(--nx-logo-filter);
	transition: height 0.3s;
}

.nx-header__right {
	display: flex;
	align-items: center;
	gap: 34px;
}

.nx-nav {
	font-size: 15px;
	font-weight: 500;
}

.nx-nav .wp-block-navigation__container {
	gap: 34px;
}

/* The links inherit colour: the navigation block's own stylesheet sets color: inherit on them. */
.nx-nav {
	color: rgba(255, 255, 255, 0.85);
}

.nx-nav .wp-block-navigation-item:hover {
	color: #fff;
}

.nx-nav .wp-block-navigation-item__content {
	text-decoration: none;
}

.nx-nav .wp-block-navigation-item__content:hover {
	text-decoration: none;
}

.nx-header :is(a, button):focus-visible {
	outline-color: #fff;
}

.nx-header .wp-block-buttons {
	margin: 0;
}

@media (max-width: 900px) {
	.nx-nav {
		display: none;
	}
}

@media (max-width: 640px) {
	.nx-logo img {
		height: 36px;
	}
	.nx-header .nx-btn .wp-block-button__link {
		padding: 10px 14px;
		font-size: 14px;
	}
}

/* ---------- Sections ---------- */
.nx-section {
	padding: 120px var(--nx-gutter);
}

@media (max-width: 900px) {
	.nx-section {
		padding-block: 84px;
	}
}

.nx-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 56px;
	flex-wrap: wrap;
}

.nx-head > * {
	margin-block: 0;
}

.nx-head h2 {
	font-size: var(--wp--preset--font-size--h-section);
	font-weight: 600;
	color: var(--nx-navy);
	margin: 0;
	max-width: 16ch;
}

.nx-head > p {
	max-width: 440px;
	color: var(--nx-muted);
	margin: 0;
}

.nx-dark .nx-head h2 {
	color: #fff;
}

.nx-dark .nx-head > p {
	color: rgba(255, 255, 255, 0.7);
}

/* ---------- Hero ---------- */
.nx-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	padding: 0 var(--nx-gutter);
	background: var(--nx-navy-deep) url("https://nexummarketing.com/wp-content/uploads/2026/10/nexum-home-hero-poster.jpg") center / cover no-repeat;
	overflow: hidden;
	color: #fff;
}

.nx-hero .wp-block-cover__inner-container {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 160px 0 110px;
}

.nx-hero .wp-block-cover__inner-container {
	max-width: 1184px;
	margin-inline: auto;
	width: 100%;
}

.nx-hero h1 {
	font-size: var(--wp--preset--font-size--h-hero);
	font-weight: 700;
	max-width: 13ch;
	margin-bottom: 24px;
	margin-left: 0;
}

.nx-hero .nx-lead {
	font-size: var(--wp--preset--font-size--lead);
	max-width: 560px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 36px;
	margin-left: 0;
}

.nx-hero .wp-block-buttons {
	gap: 14px;
	margin-left: 0;
}

.nx-scroll {
	position: absolute;
	right: 0;
	bottom: 40px;
	width: auto !important;
	margin: 0 !important;
	z-index: 2;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nx-scroll a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.nx-scroll a::after {
	content: "";
	width: 1px;
	height: 46px;
	background: linear-gradient(180deg, #fff 0, #fff 40%, rgba(255, 255, 255, 0.35) 40%);
	background-size: 1px 200%;
	animation: nx-drop 2.2s infinite;
}

@keyframes nx-drop {
	from {
		background-position: 0 -100%;
	}
	to {
		background-position: 0 100%;
	}
}

@media (max-width: 900px) {
	.nx-scroll {
		display: none;
	}
}

/* ---------- Intro ---------- */
.nx-intro-cols {
	gap: 80px !important;
	align-items: center !important;
}

.nx-intro-cols h2 {
	font-size: var(--wp--preset--font-size--h-section);
	font-weight: 600;
	color: var(--nx-navy);
}

.nx-intro-cols p:not(.nx-eyebrow) {
	color: var(--nx-muted);
	font-size: 18px;
}

.nx-intro-cols .wp-block-buttons {
	margin-top: 14px;
}

.nx-intro-img {
	margin: 0;
	border-radius: var(--nx-radius);
	overflow: hidden;
	aspect-ratio: 4 / 5;
}

.nx-intro-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 900px) {
	.nx-intro-cols {
		gap: 44px !important;
	}
}

/* ---------- Stats ---------- */
.nx-stats {
	padding: 80px var(--nx-gutter);
	color: #fff;
}

.wp-block-group.nx-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.nx-stat {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	padding-left: 28px;
}

.nx-stat .nx-stat__num {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: var(--wp--preset--font-size--stat);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 12px;
}

.nx-stat .nx-stat__label {
	color: rgba(255, 255, 255, 0.75);
	font-size: 16px;
	margin: 0;
}

/* ---------- Why Nexum (steps) ---------- */
.nx-thread-cols {
	gap: 60px !important;
	align-items: stretch !important;
}

.nx-thread-imgs {
	position: relative;
	border-radius: var(--nx-radius);
	overflow: hidden;
	min-height: 460px;
	background: var(--nx-navy);
}

.nx-thread-imgs figure {
	margin: 0;
}

.nx-thread-imgs .wp-block-image,
.nx-thread-imgs .wp-block-image img {
	display: block;
}

.nx-thread-imgs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Without JS only the first image shows, the rest are hidden. With JS they stack and fade. */
.nx-thread-imgs figure:not(:first-child) {
	display: none;
}

html.nx-js .nx-thread-imgs figure {
	display: block;
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.6s, transform 1.2s;
}

html.nx-js .nx-thread-imgs figure.is-on {
	opacity: 1;
	transform: scale(1);
}

.nx-steps {
	display: flex;
	flex-direction: column;
}

.nx-step {
	border-top: 1px solid var(--nx-line);
	padding: 28px 0;
	cursor: pointer;
}

.nx-step:last-child {
	border-bottom: 1px solid var(--nx-line);
}

.nx-step__top {
	display: flex;
	align-items: baseline;
	gap: 20px;
}

.nx-step__top > * {
	margin: 0;
}

.nx-step__num {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-weight: 600;
	color: var(--nx-navy-soft);
	font-size: 15px;
	min-width: 28px;
}

.nx-step h3 {
	font-size: 26px;
	font-weight: 600;
	color: var(--nx-muted);
	margin: 0;
	transition: color 0.3s;
}

.nx-step__text {
	margin: 14px 0 0 48px;
	color: var(--nx-muted);
}

html.nx-js .nx-step__text {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin-top: 0;
	transition: max-height 0.5s, opacity 0.4s, margin 0.4s;
}

.nx-step.is-on h3 {
	color: var(--nx-navy);
}

html.nx-js .nx-step.is-on .nx-step__text {
	max-height: 240px;
	opacity: 1;
	margin-top: 14px;
}

@media (max-width: 900px) {
	.nx-thread-cols {
		gap: 44px !important;
	}
	.nx-thread-imgs {
		min-height: 320px;
	}
}

/* ---------- Services cards ---------- */
.wp-block-group.nx-services-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.nx-card {
	position: relative;
	border-radius: var(--nx-radius);
	overflow: hidden;
	min-height: 440px;
	padding: 0 !important;
	color: #fff;
	background: var(--nx-navy);
	align-items: flex-end;
}

.nx-card .wp-block-cover__image-background {
	transition: transform 0.8s;
}

.nx-card:hover .wp-block-cover__image-background {
	transform: scale(1.06);
}

.nx-card .wp-block-cover__inner-container {
	padding: 28px 28px 70px;
	width: 100%;
}

.nx-card h3 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 10px;
}

.nx-card h3 a {
	color: #fff;
	text-decoration: none;
}

/* Whole card is clickable through the heading link */
.nx-card h3 a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.nx-card h3 a:focus-visible {
	outline: none;
}

.nx-card:focus-within {
	outline: 3px solid var(--nx-sky);
	outline-offset: 3px;
}

.nx-card p {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 18px;
}

.nx-card .wp-block-cover__inner-container {
	position: relative;
	padding-bottom: 70px;
}

/* Decorative arrow circle, drawn in CSS so the block content stays plain */
.nx-card .wp-block-cover__inner-container::before,
.nx-card .wp-block-cover__inner-container::after {
	content: "";
	position: absolute;
	left: 28px;
	bottom: 28px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.nx-card .wp-block-cover__inner-container::before {
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	transition: background 0.3s, border-color 0.3s;
}

.nx-card .wp-block-cover__inner-container::after {
	background: #fff;
	-webkit-mask: var(--nx-arrow) center / 16px 16px no-repeat;
	mask: var(--nx-arrow) center / 16px 16px no-repeat;
	transition: background 0.3s;
}

.nx-card:hover .wp-block-cover__inner-container::before {
	background: #fff;
	border-color: #fff;
}

.nx-card:hover .wp-block-cover__inner-container::after {
	background: var(--nx-navy);
}

@media (max-width: 1080px) {
	.wp-block-group.nx-services-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wp-block-group.nx-stats-grid,
	.wp-block-group.nx-services-grid {
		grid-template-columns: 1fr;
	}
	.nx-card {
		min-height: 360px;
	}
}

/* Columns stack at 900px rather than WordPress's default 781px */
@media (max-width: 900px) {
	.wp-block-columns.nx-stack-900 {
		flex-wrap: wrap !important;
	}
	.wp-block-columns.nx-stack-900 > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ---------- Marquee ---------- */
.nx-marquee {
	border-top: 1px solid var(--nx-line);
	border-bottom: 1px solid var(--nx-line);
	padding: 34px 0;
	overflow: hidden;
	background: #fff;
}

.nx-marquee__track {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 64px;
	padding: 0 var(--nx-gutter);
}

.nx-marquee__track > p,
.nx-marquee__track > .nx-marquee__item {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 22px;
	font-weight: 600;
	color: var(--nx-navy);
	opacity: 0.55;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 64px;
	margin: 0;
}

.nx-marquee__track > p::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--nx-sky);
}

/* Scrolling only when JS has duplicated the items */
html.nx-js .nx-marquee__track.is-running {
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: max-content;
	padding: 0;
	gap: 64px;
	animation: nx-scroll 40s linear infinite;
}

@keyframes nx-scroll {
	to {
		transform: translateX(-50%);
	}
}

/* ---------- Case studies ---------- */
.nx-cases {
	color: #fff;
}

.nx-slider-nav {
	display: flex;
	gap: 10px;
}

.nx-slider-nav:empty {
	display: none;
}

.nx-slider-nav button {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.25s;
}

.nx-slider-nav button:hover {
	background: rgba(255, 255, 255, 0.1);
}

.nx-slider-nav button::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--nx-arrow) center / contain no-repeat;
	mask: var(--nx-arrow) center / contain no-repeat;
}

.nx-slider-nav button[data-dir="-1"]::before {
	-webkit-mask-image: var(--nx-arrow-back);
	mask-image: var(--nx-arrow-back);
}

.nx-slider {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: max(340px, 44%);
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 6px;
}

.nx-slider::-webkit-scrollbar {
	display: none;
}

.nx-slider:focus-visible {
	outline: 3px solid var(--nx-sky);
	outline-offset: 4px;
}

.nx-case {
	scroll-snap-align: start;
	background: var(--nx-navy);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--nx-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.nx-case .wp-block-image {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.nx-case .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-case__body {
	padding: 30px;
}

.nx-tag {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nx-sky);
	margin-bottom: 12px;
	font-weight: 600;
}

.nx-case h3 {
	font-size: 24px;
	font-weight: 600;
}

.nx-case p:not(.nx-tag) {
	color: rgba(255, 255, 255, 0.75);
	font-size: 16px;
}

.nx-case ul {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
}

.nx-case li {
	padding: 10px 0 10px 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	font-size: 15px;
}

.nx-case li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18px;
	width: 12px;
	height: 2px;
	background: var(--nx-sky);
}

@media (max-width: 1080px) {
	.nx-slider {
		grid-auto-columns: max(300px, 70%);
	}
}

@media (max-width: 640px) {
	.nx-slider {
		grid-auto-columns: 88%;
	}
}

/* ---------- Testimonials ---------- */
.wp-block-group.nx-quotes-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.nx-quote {
	background: var(--nx-paper);
	border-radius: var(--nx-radius);
	padding: 36px !important;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	border: 0;
	height: 100%;
}

.nx-quote p {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--nx-ink);
}

.nx-quote p::before {
	content: "\201C";
	display: block;
	font-family: Georgia, serif;
	font-size: 64px;
	line-height: 0.6;
	color: var(--nx-navy-soft);
	margin-bottom: 16px;
}

.nx-quote cite {
	font-style: normal;
	font-size: 14px;
	color: var(--nx-muted);
	margin: 0;
}

.nx-quote cite strong {
	display: block;
	font-size: 17px;
	font-weight: 600;
	color: var(--nx-navy);
}

@media (max-width: 900px) {
	.wp-block-group.nx-quotes-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- FAQs ---------- */
.nx-faq-cols {
	gap: 80px !important;
}

.nx-faq-cols h2 {
	font-size: clamp(2rem, 1.4rem + 1.7vw, 3rem);
	font-weight: 600;
	color: var(--nx-navy);
}

.nx-faq {
	border-top: 1px solid var(--nx-line);
	margin: 0;
	padding: 0;
}

.nx-faq:last-child {
	border-bottom: 1px solid var(--nx-line);
}

.nx-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 24px 44px 24px 0;
	font-family: var(--wp--preset--font-family--inter-tight);
	font-weight: 600;
	font-size: 19px;
	color: var(--nx-navy);
	position: relative;
}

.nx-faq summary::-webkit-details-marker {
	display: none;
}

.nx-faq summary::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 18px;
	font-size: 28px;
	font-weight: 400;
	color: var(--nx-navy-soft);
	transition: transform 0.3s;
}

.nx-faq[open] summary::after {
	transform: rotate(45deg);
}

.nx-faq p {
	color: var(--nx-muted);
	padding: 0 44px 18px 0;
	margin: 0;
}

@media (max-width: 900px) {
	.nx-faq-cols {
		gap: 44px !important;
	}
}

/* ---------- CTA band ---------- */
.nx-cta {
	position: relative;
	padding: 130px var(--nx-gutter);
	color: #fff;
	overflow: hidden;
	background: var(--nx-navy);
}

.nx-cta .wp-block-cover__inner-container {
	max-width: 1184px;
	margin-inline: auto;
	width: 100%;
}

.nx-cta-cols {
	gap: 60px !important;
	align-items: center !important;
}

.nx-cta h2 {
	font-size: var(--wp--preset--font-size--h-cta);
	font-weight: 600;
}

.nx-cta p:not(.nx-eyebrow) {
	color: rgba(255, 255, 255, 0.8);
	font-size: 18px;
	max-width: 560px;
}

.nx-cta-box {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--nx-radius);
	padding: 34px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.nx-cta-box h3 {
	font-size: 22px;
	font-weight: 600;
}

.nx-cta-box p:not(.nx-eyebrow) {
	font-size: 15px;
}

@media (max-width: 900px) {
	.nx-cta-cols {
		gap: 44px !important;
	}
}

/* ---------- Footer ---------- */
.nx-footer {
	padding: 80px var(--nx-gutter) 34px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
}

.nx-footer__inner {
	max-width: 1184px;
	margin-inline: auto;
}

.nx-footer-cols {
	gap: 60px !important;
	padding-bottom: 56px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin: 0;
}

.nx-footer .nx-logo img {
	height: 54px;
	margin-bottom: 22px;
}

.nx-footer h4 {
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nx-sky);
	margin-bottom: 18px;
	font-weight: 600;
}

.nx-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.nx-footer li {
	margin-bottom: 10px;
}

.nx-footer a {
	color: inherit;
	text-decoration: none;
}

.nx-footer a:hover {
	color: #fff;
	text-decoration: none;
}

.nx-footer :is(a, button):focus-visible {
	outline-color: #fff;
}

.nx-footer-base {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 28px;
	font-size: 13px;
	flex-wrap: wrap;
}

.nx-footer-base > * {
	margin: 0;
}

@media (max-width: 900px) {
	.nx-footer-cols {
		gap: 44px !important;
	}
}

/* ---------- Inner pages: page hero ---------- */
.nx-page-hero {
	position: relative;
	padding: 0 var(--nx-gutter);
	background: var(--nx-navy-deep);
	color: #fff;
	overflow: hidden;
}

.nx-page-hero .wp-block-cover__inner-container {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 96px 0 64px;
	max-width: 1184px;
	margin-inline: auto;
	width: 100%;
}

.nx-page-hero h1 {
	font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);
	font-weight: 700;
	max-width: 18ch;
	margin-bottom: 20px;
}

.nx-page-hero .nx-lead {
	font-size: var(--wp--preset--font-size--lead);
	max-width: 600px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 28px;
}

.nx-page-hero .wp-block-buttons {
	gap: 14px;
}

.nx-page-hero .wp-block-buttons:last-child .wp-block-button:last-child,
.nx-page-hero .nx-lead:last-child {
	margin-bottom: 0;
}

/* ---------- Inner pages: text and image split ---------- */
.nx-split-cols {
	gap: 80px !important;
	align-items: center !important;
}

.nx-split-cols h2 {
	font-size: var(--wp--preset--font-size--h-section);
	font-weight: 600;
	color: var(--nx-navy);
}

.nx-split-cols p:not(.nx-eyebrow) {
	color: var(--nx-muted);
	font-size: 18px;
}

.nx-split-cols .wp-block-buttons {
	margin-top: 14px;
}

.nx-split-img {
	margin: 0;
	border-radius: var(--nx-radius);
	overflow: hidden;
}

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

@media (min-width: 901px) {
	.nx-split-cols--reverse {
		flex-direction: row-reverse;
	}
}

@media (max-width: 900px) {
	.nx-split-cols {
		gap: 44px !important;
	}
}

/* ---------- Inner pages: benefits grid ---------- */
.wp-block-group.nx-benefits-grid {
	display: grid;
	gap: 22px;
}

.wp-block-group.nx-benefits-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wp-block-group.nx-benefits-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nx-benefit {
	background: var(--nx-paper);
	border-radius: var(--nx-radius);
	border-top: 3px solid var(--nx-sky);
	padding: 32px 28px 36px;
}

.nx-benefit .nx-benefit__num {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-weight: 600;
	font-size: 15px;
	color: var(--nx-navy-soft);
	margin-bottom: 18px;
}

.nx-benefit h3 {
	font-size: 22px;
	font-weight: 600;
	color: var(--nx-navy);
	margin-bottom: 10px;
}

.nx-benefit p:last-child {
	color: var(--nx-muted);
	font-size: 16px;
	margin: 0;
}

@media (max-width: 1080px) {
	.wp-block-group.nx-benefits-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.wp-block-group.nx-benefits-grid--3 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.wp-block-group.nx-benefits-grid--4 {
		grid-template-columns: 1fr;
	}
}

/* ---------- Inner pages: process steps ---------- */
.wp-block-group.nx-process-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 28px;
}

.nx-process__step {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 28px;
}

.nx-process__step .nx-process__num {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--nx-sky);
	margin-bottom: 18px;
}

.nx-process__step h3 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 10px;
}

.nx-process__step p:last-child {
	color: rgba(255, 255, 255, 0.75);
	font-size: 16px;
	margin: 0;
}

@media (max-width: 1080px) {
	.wp-block-group.nx-process-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wp-block-group.nx-process-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Inner pages: contact ---------- */
.nx-contact-cols {
	gap: 80px !important;
}

.nx-contact-cols h2 {
	font-size: var(--wp--preset--font-size--h-section);
	font-weight: 600;
	color: var(--nx-navy);
}

.nx-contact-cols p:not(.nx-eyebrow):not(.nx-contact__label):not(.nx-contact__value) {
	color: var(--nx-muted);
	font-size: 18px;
}

.nx-contact__item {
	border-top: 1px solid var(--nx-line);
	padding: 18px 0;
}

.nx-contact__item:last-child {
	border-bottom: 1px solid var(--nx-line);
}

.nx-contact .nx-contact__label,
.nx-contact__item .nx-contact__label {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nx-navy-soft);
	margin: 0 0 4px;
}

.nx-contact__item .nx-contact__value {
	font-size: 18px;
	font-weight: 500;
	color: var(--nx-navy);
	margin: 0;
}

.nx-contact__item .nx-contact__value a {
	text-decoration: none;
}

.nx-contact__item .nx-contact__value a:hover {
	text-decoration: underline;
}

.nx-contact-form {
	background: var(--nx-paper);
	border-radius: var(--nx-radius);
	padding: 40px;
	min-height: 320px;
}

@media (max-width: 900px) {
	.nx-contact-cols {
		gap: 44px !important;
	}
	.nx-contact-form {
		padding: 28px 20px;
	}
}

/* ---------- Inner pages: long-form legal text ---------- */
.nx-legal {
	padding-top: 80px;
}

.nx-legal__inner {
	max-width: 760px;
	margin-inline: auto;
}

.nx-legal__inner h1 {
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
	font-weight: 700;
	color: var(--nx-navy);
	margin-bottom: 12px;
}

.nx-legal__inner .nx-legal__meta {
	color: var(--nx-muted);
	font-size: 15px;
	margin-bottom: 40px;
}

.nx-legal__inner h2 {
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	font-weight: 600;
	color: var(--nx-navy);
	margin: 2.25em 0 0.6em;
}

.nx-legal__inner p,
.nx-legal__inner li {
	color: var(--nx-ink);
	font-size: 17px;
	line-height: 1.7;
}

.nx-legal__inner ul,
.nx-legal__inner ol {
	padding-left: 1.4em;
	margin: 0 0 1em;
}

.nx-legal__inner li {
	margin-bottom: 0.5em;
}

.nx-legal__inner a {
	color: var(--nx-navy-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 900px) {
	.nx-legal {
		padding-top: 56px;
	}
}

/* ---------- Blog: post cards and grid ---------- */
.nx-posts {
	margin: 0;
}

.wp-site-blocks .nx-posts__list {
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 24px;
}

.wp-site-blocks .nx-posts__list > li {
	margin: 0;
	display: flex;
}

.nx-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid var(--nx-line);
	border-radius: var(--nx-radius);
	overflow: hidden;
	transition: box-shadow 0.3s, transform 0.3s;
}

.nx-post-card:hover {
	box-shadow: 0 14px 40px rgba(6, 20, 42, 0.12);
	transform: translateY(-3px);
}

.nx-post-card:focus-within {
	outline: 3px solid var(--nx-navy-soft);
	outline-offset: 3px;
}

.nx-post-card__img {
	margin: 0;
	overflow: hidden;
	background: var(--nx-navy);
}

.nx-post-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s;
}

.nx-post-card:hover .nx-post-card__img img {
	transform: scale(1.05);
}

.nx-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 28px;
}

.nx-post-card__cat {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nx-navy-soft);
	margin: 0 0 12px;
	position: relative;
	z-index: 4;
}

.nx-post-card__cat a {
	text-decoration: none;
}

.nx-post-card__cat a:hover {
	text-decoration: underline;
}

.wp-site-blocks .nx-post-card__title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--nx-navy);
	margin: 0 0 12px;
}

.nx-post-card__title a {
	text-decoration: none;
}

.nx-post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.nx-post-card__title a:focus-visible {
	outline: none;
}

.nx-post-card__excerpt {
	color: var(--nx-muted);
	font-size: 16px;
	flex: 1;
}

.wp-site-blocks .nx-post-card__excerpt p {
	margin: 0 0 18px;
}

.nx-post-card__date {
	font-size: 14px;
	color: var(--nx-muted);
	margin: 0;
}

/* First page of the Insights index: the latest post is shown larger */
@media (min-width: 901px) {
	body:not(.paged) .nx-posts--featured .nx-posts__list > li:first-child {
		grid-column: 1 / -1;
	}
	body:not(.paged) .nx-posts--featured .nx-posts__list > li:first-child .nx-post-card {
		display: grid;
		grid-template-columns: 1.15fr 1fr;
	}
	body:not(.paged) .nx-posts--featured .nx-posts__list > li:first-child .nx-post-card__img {
		aspect-ratio: auto;
		height: 100%;
		min-height: 360px;
	}
	body:not(.paged) .nx-posts--featured .nx-posts__list > li:first-child .nx-post-card__img img {
		aspect-ratio: auto !important;
	}
	body:not(.paged) .nx-posts--featured .nx-posts__list > li:first-child .nx-post-card__body {
		justify-content: center;
		padding: 48px;
	}
	body:not(.paged) .nx-posts--featured .nx-posts__list > li:first-child .nx-post-card__title {
		font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
	}
	body:not(.paged) .nx-posts--featured .nx-posts__list > li:first-child .nx-post-card__excerpt {
		flex: none;
		font-size: 18px;
	}
}

@media (max-width: 1080px) {
	.wp-site-blocks .nx-posts__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wp-site-blocks .nx-posts__list {
		grid-template-columns: 1fr;
	}
	.nx-post-card__body {
		padding: 24px 20px;
	}
}

/* ---------- Blog: pagination ---------- */
.nx-pagination {
	margin-top: 56px;
	gap: 8px;
	align-items: center;
}

.nx-pagination .page-numbers,
.nx-pagination .wp-block-query-pagination-previous,
.nx-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border: 1.5px solid var(--nx-line);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	color: var(--nx-navy);
	text-decoration: none;
	margin: 0;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.nx-pagination a:hover {
	background: var(--nx-navy);
	border-color: var(--nx-navy);
	color: #fff;
	text-decoration: none;
}

.nx-pagination .page-numbers.current {
	background: var(--nx-navy);
	border-color: var(--nx-navy);
	color: #fff;
}

.nx-pagination .page-numbers.dots {
	border-color: transparent;
}

.nx-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

/* ---------- Blog: single post ---------- */
.nx-post-hero {
	padding: 72px var(--nx-gutter);
}

.nx-post-hero:has(+ .nx-post-image img) {
	padding-bottom: 168px;
}

.nx-post-hero > * {
	max-width: 900px;
}

.nx-post-hero h1 {
	font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem);
	font-weight: 700;
	line-height: 1.08;
	color: #fff;
	margin-bottom: 20px;
}

.nx-post-hero .nx-eyebrow a {
	text-decoration: none;
}

.nx-post-hero .nx-post-hero__date {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.75);
	margin: 0;
}

.nx-post-image {
	padding: 0 var(--nx-gutter);
	position: relative;
	z-index: 2;
}

.nx-post-image:has(img) {
	margin-top: -112px;
}

.nx-post-image__img {
	margin: 0;
	border-radius: var(--nx-radius);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(6, 20, 42, 0.25);
}

.nx-post-image__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-article {
	padding: 64px var(--nx-gutter) 96px;
}

.nx-article .wp-block-post-content {
	font-size: 18px;
	line-height: 1.75;
	color: var(--nx-ink);
}

.nx-article .wp-block-post-content > * + * {
	margin-block-start: 1.25em;
}

.nx-article .wp-block-post-content :is(h2, h3, h4) {
	color: var(--nx-navy);
	line-height: 1.2;
	margin: 2em 0 0.6em;
}

.nx-article .wp-block-post-content h2 {
	font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
}

.nx-article .wp-block-post-content h3 {
	font-size: 1.375rem;
}

.nx-article .wp-block-post-content :is(p, ul, ol) {
	margin-block: 0 1.25em;
}

.nx-article .wp-block-post-content :is(ul, ol) {
	padding-left: 1.4em;
}

.nx-article .wp-block-post-content li {
	margin-bottom: 0.5em;
}

.nx-article .wp-block-post-content a {
	color: var(--nx-navy-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nx-article .wp-block-post-content a:hover {
	color: var(--nx-navy);
}

.nx-article .wp-block-post-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--nx-sky);
	color: var(--nx-navy);
	font-size: 1.25rem;
}

.nx-article .wp-block-post-content img {
	border-radius: var(--nx-radius);
}

.nx-article .nx-tags {
	max-width: 720px;
	margin: 48px auto 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nx-article .nx-tags a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--nx-paper);
	color: var(--nx-navy);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.nx-article .nx-tags a:hover {
	background: var(--nx-navy);
	color: #fff;
}

@media (max-width: 900px) {
	.nx-post-hero {
		padding-block: 56px;
	}
	.nx-post-hero:has(+ .nx-post-image img) {
		padding-bottom: 120px;
	}
	.nx-post-image:has(img) {
		margin-top: -72px;
	}
	.nx-article {
		padding-block: 48px 72px;
	}
}

/* ---------- Reveal (only when JS has run) ---------- */
html.nx-js .nx-rv {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s ease, transform 0.8s ease;
	/* Safety net: if the script never reveals the element, show it after 4 seconds. */
	animation: nx-reveal-fallback 0.01s 4s forwards;
}

html.nx-js .nx-rv.is-in {
	opacity: 1;
	transform: none;
}

@keyframes nx-reveal-fallback {
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.nx-hero video {
		display: none;
	}
	.nx-header,
	.nx-btn .wp-block-button__link,
	.nx-card .wp-block-cover__image-background {
		transition: none;
	}
	.nx-btn .wp-block-button__link:hover {
		transform: none;
	}
	.nx-scroll a::after,
	html.nx-js .nx-marquee__track.is-running {
		animation: none;
	}
	html.nx-js .nx-marquee__track.is-running {
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
		padding: 0 var(--nx-gutter);
	}
	html.nx-js .nx-rv {
		opacity: 1;
		transform: none;
		transition: none;
		animation: none;
	}
	html.nx-js .nx-thread-imgs figure,
	html.nx-js .nx-step__text,
	.nx-step h3,
	.nx-faq summary::after,
	.nx-slider-nav button {
		transition: none;
	}
	.nx-slider {
		scroll-behavior: auto;
	}
	.nx-post-card,
	.nx-post-card__img img,
	.nx-pagination .page-numbers,
	.nx-pagination .wp-block-query-pagination-previous,
	.nx-pagination .wp-block-query-pagination-next {
		transition: none;
	}
	.nx-post-card:hover,
	.nx-post-card:hover .nx-post-card__img img {
		transform: none;
	}
}
