:root {
	--nexa-navy: #07111f;
	--nexa-navy-soft: #102033;
	--nexa-gold: #d8a23e;
	--nexa-white: #ffffff;
	--nexa-surface: #f4f7fa;
	--nexa-steel: #667789;
	--nexa-line: #d8e0e8;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--nexa-white);
	color: var(--nexa-navy);
	overflow-wrap: anywhere;
}

a {
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	border-radius: 2px;
	outline: 3px solid var(--nexa-navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--nexa-gold);
}

.screen-reader-text.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	left: 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--nexa-gold);
	color: var(--nexa-navy);
	font-weight: 700;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid var(--nexa-line);
	background: rgb(255 255 255 / 96%);
	transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
	box-shadow: 0 8px 24px rgb(7 17 31 / 10%);
}

.site-header__inner {
	min-height: 76px;
	width: 100%;
	gap: 0.75rem 1rem;
}

.site-header__brand,
.site-header__actions {
	gap: 1rem;
}

.site-header__brand {
	min-width: 0;
}

.site-header__actions {
	margin-left: auto;
	justify-content: flex-end;
}

.site-header .custom-logo-link,
.site-header .wp-block-site-logo,
.site-header .wp-block-site-title {
	margin: 0;
	line-height: 1;
}

.site-header .custom-logo {
	max-height: 44px;
	width: auto;
}

.site-header .wp-block-navigation a,
.site-footer .wp-block-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.site-header__cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	white-space: nowrap;
}

.site-header__cta {
	flex: 0 0 auto;
}

.site-main {
	padding-top: clamp(2rem, 4vw, 4rem);
	padding-bottom: clamp(3rem, 6vw, 6rem);
}

.site-main--home {
	padding-top: 0;
	padding-bottom: 0;
}

.nexa-hero,
.nexa-section {
	padding-top: clamp(3.5rem, 8vw, 7rem);
	padding-bottom: clamp(3.5rem, 8vw, 7rem);
}

.nexa-hero__grid,
.nexa-product-hero {
	gap: clamp(2rem, 5vw, 5rem);
}

.nexa-hero__copy,
.nexa-product-hero__copy {
	flex: 1 1 28rem;
	max-width: 38rem;
}

.nexa-hero__visual,
.nexa-product-hero__media {
	flex: 1 1 26rem;
	min-width: 0;
}

.nexa-hero__machine,
.nexa-product-hero__media .wp-block-post-featured-image {
	margin: 0;
}

.nexa-hero__machine img,
.nexa-product-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 36rem;
	object-fit: contain;
}

.nexa-hero .is-style-outline .wp-block-button__link,
.nexa-404 .is-style-outline .wp-block-button__link {
	border-color: currentColor;
	color: var(--nexa-white);
}

.nexa-section__heading,
.nexa-resources-strip {
	gap: 1rem 2rem;
	margin-bottom: 2.5rem;
}

.nexa-machine-query .wp-block-post-template {
	gap: 1.25rem;
}

.nexa-machine-card {
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--nexa-line);
	background: var(--nexa-white);
}

.nexa-machine-card .wp-block-post-featured-image,
.nexa-machine-card .wp-block-post-featured-image a,
.nexa-machine-card .wp-block-post-featured-image img {
	width: 100%;
}

.nexa-machine-card .wp-block-post-featured-image img {
	object-fit: contain;
}

.nexa-machine-card .wp-block-post-title {
	margin-top: 0;
}

.nexa-machine-card .wp-block-post-excerpt {
	color: var(--nexa-steel);
}

.nexa-pillars,
.nexa-application-grid {
	gap: 1.25rem;
}

.nexa-pillars > .wp-block-column,
.nexa-application-grid > .wp-block-column {
	border-top: 3px solid var(--nexa-gold);
	padding-top: 1rem;
}

.nexa-application-card,
.nexa-quality__panel {
	height: 100%;
	box-sizing: border-box;
	padding: 1.5rem;
}

.nexa-application-card {
	border: 1px solid var(--nexa-line);
}

.nexa-section--process {
	color: var(--nexa-white);
}

.nexa-process-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
	padding-left: 1.5rem;
}

.nexa-process-list li {
	padding: 1rem;
	border-left: 1px solid rgb(255 255 255 / 30%);
}

.nexa-quality__panel {
	border-left: 4px solid var(--nexa-gold);
}

.nexa-rfq-cta {
	margin-top: clamp(3rem, 6vw, 6rem);
	margin-bottom: clamp(3rem, 6vw, 6rem);
	padding: clamp(1.5rem, 4vw, 3rem);
	color: var(--nexa-navy);
}

.nexa-rfq-cta .wp-block-columns > .wp-block-column:first-child {
	min-width: 0;
	flex: 1 1 0;
}

.nexa-rfq-cta .wp-block-columns > .wp-block-column:last-child {
	min-width: 0;
	flex: 0 1 16rem;
}

.nexa-rfq-cta .wp-block-button__link {
	white-space: nowrap;
}

.nexa-breadcrumbs {
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin: 1rem auto 0;
	padding: 0 1.25rem;
	color: var(--nexa-steel);
	font-size: 0.875rem;
}

.nexa-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexa-breadcrumbs li:not(:last-child)::after {
	content: '/';
	margin-left: 0.45rem;
	color: var(--nexa-gold);
}

.nexa-breadcrumbs a {
	color: var(--nexa-navy);
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.15em;
}

.nexa-product-content {
	max-width: 760px;
}

.nexa-machine-catalog {
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin: 2rem auto 0;
	padding: 0 1.25rem;
}

.nexa-machine-catalog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.nexa-machine-catalog .nexa-machine-card {
	padding: 1rem;
	background: var(--nexa-surface);
	border: 1px solid var(--nexa-steel);
}

.nexa-machine-catalog .nexa-machine-card img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 1rem;
}

.nexa-machine-catalog .nexa-machine-card a {
	font-weight: 700;
}

@media (max-width: 760px) {
	.nexa-machine-catalog__grid {
		grid-template-columns: 1fr;
	}
}

.nexa-related-machines {
	margin-top: clamp(3rem, 6vw, 5rem);
}

.nexa-404 {
	max-width: 48rem;
	padding: clamp(1rem, 4vw, 3rem) 0;
}

.nexa-404 .wp-block-search {
	max-width: 34rem;
	margin: 2rem 0;
}

.post-card {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--nexa-line);
}

.post-card:first-child {
	padding-top: 0;
}

.site-footer {
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: 1.5rem;
}

.site-footer__grid {
	gap: 2rem 4rem;
}

.site-footer__brand {
	max-width: 21rem;
}

.site-footer__links {
	gap: 2rem 4rem;
}

.site-footer .wp-block-navigation a {
	color: var(--nexa-white);
}

.site-footer .wp-block-navigation a:hover,
.site-footer .wp-block-navigation a:focus-visible {
	color: var(--nexa-gold);
}

.site-footer :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-color: var(--nexa-white);
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	min-width: 34rem;
	border-collapse: collapse;
}

.wp-block-table :is(th, td) {
	border: 1px solid var(--nexa-line);
	padding: 0.75rem 1rem;
	text-align: left;
}

@media (max-width: 1100px) {
	.site-header__inner {
		min-height: 68px;
	}

	.site-header__actions {
		gap: 0.5rem;
	}

	.site-header .wp-block-navigation__responsive-container-open {
		display: inline-flex !important;
		min-height: 44px;
		min-width: 44px;
		align-items: center;
		justify-content: center;
	}

	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
	}
}

@media (max-width: 640px) {
	.site-header__inner {
		gap: 0.5rem;
	}

	.site-header__brand .wp-block-site-title {
		display: none;
	}

	.site-header .custom-logo {
		max-width: 112px;
	}

	.site-header__cta .wp-block-button__link {
		padding-right: 0.75rem;
		padding-left: 0.75rem;
		font-size: 0.75rem;
	}

	.site-footer__links {
		width: 100%;
		justify-content: space-between;
	}

	.wp-block-table table {
		min-width: 30rem;
	}

	.nexa-hero,
	.nexa-section {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.nexa-hero__copy,
	.nexa-product-hero__copy,
	.nexa-hero__visual,
	.nexa-product-hero__media {
		flex-basis: 100%;
	}

	.nexa-process-list {
		grid-template-columns: 1fr;
	}

	.nexa-process-list li {
		padding: 0.75rem;
	}

	.nexa-rfq-cta .wp-block-buttons,
	.nexa-rfq-cta .wp-block-button,
	.nexa-rfq-cta .wp-block-button__link {
		width: 100%;
	}

	.nexa-rfq-cta .wp-block-columns > .wp-block-column {
		flex-basis: 100%;
	}
}

@media (max-width: 380px) {
	.site-header .custom-logo {
		max-width: 96px;
	}

	.site-header__actions {
		gap: 0.25rem;
	}

	.site-header__cta .wp-block-button__link {
		padding-right: 0.5rem;
		padding-left: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
