/* NEXA Applications page — matches the site's industrial design: Sora type,
   paper/ink palette, terracotta accent, hairline borders. Content column is
   capped at the same 1440px container the homepage uses, full-bleed paper. */

.nexa-apps {
	--nx-ink: #0d1315;
	--nx-paper: #f0f3f1;
	--nx-panel: #dfe6e4;
	--nx-muted: #5d6869;
	--nx-accent: #a8613e;
	--nx-line: rgba(13, 19, 21, 0.16);
	box-sizing: border-box;
	width: 100%;
	padding-inline: 32px;
	background: var(--nx-paper);
	color: var(--nx-ink);
}

.nexa-apps,
.nexa-apps * {
	box-sizing: border-box;
}

.nexa-apps > * {
	max-width: 1440px;
	margin-inline: auto;
}

.nexa-apps .nexa-apps__inner {
	padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px);
}

.nexa-section-index {
	margin: 0 0 18px;
	color: var(--nx-muted);
	font: 700 11px/1.2 "Sora", sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nexa-apps__title {
	margin: 0 0 18px;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.01em;
}

.nexa-apps__lede {
	max-width: 600px;
	margin: 0;
	color: var(--nx-muted);
	font-size: clamp(16px, 2vw, 19px);
	font-weight: 300;
	line-height: 1.6;
}

/* Scenario grid */
.nexa-apps__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(20px, 2.5vw, 28px);
	margin-top: clamp(36px, 5vw, 56px);
}

.nexa-app-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin-block: 0;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
	overflow: hidden;
	gap: 0;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nexa-app-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(13, 19, 21, 0.12);
	border-color: rgba(13, 19, 21, 0.28);
}

.nexa-app-card__media {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nx-panel);
	margin: 0;
}

.nexa-app-card__media a {
	display: block;
	text-decoration: none;
}

.nexa-app-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.nexa-app-card:hover .nexa-app-card__media img {
	transform: scale(1.04);
}

.nexa-app-card__title {
	margin: 0;
	padding: 22px 24px 0;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}

.nexa-app-card__title a {
	color: inherit;
	text-decoration: none;
}

.nexa-app-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nexa-app-card__text {
	margin: 0;
	padding: 12px 24px 0;
	color: var(--nx-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.55;
}

.nexa-app-card__link {
	margin: auto 24px 0;
	padding: 20px 0 24px;
}

.nexa-app-card__link a {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	font: 700 11px/1 "Sora", sans-serif;
	letter-spacing: 0.08em;
	border-bottom: 1px solid currentColor;
	color: var(--nx-ink);
	text-decoration: none;
	transition: opacity 180ms ease;
}

.nexa-app-card__link a:hover {
	opacity: 0.62;
}

.nexa-app-card__link a > span[aria-hidden="true"] {
	width: 17px;
	height: 17px;
	font-size: 0;
	line-height: 1;
}

.nexa-app-card__link a > span[aria-hidden="true"]::before {
	display: block;
	font: 400 17px/1 dashicons;
	content: "\f504";
}

/* CTA */
.nexa-apps__cta {
	margin-top: clamp(34px, 4vw, 48px);
}

.nexa-apps__cta-btn .wp-block-button__link {
	padding: 16px 36px;
	border-radius: 6px;
	background: var(--nx-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 180ms ease;
}

.nexa-apps__cta-btn .wp-block-button__link:hover {
	background: #8d5230;
}

@media (max-width: 820px) {
	.nexa-apps {
		padding-inline: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nexa-app-card {
		transition: none;
	}
	.nexa-app-card:hover {
		transform: none;
		box-shadow: none;
	}
	.nexa-apps__cta-btn .wp-block-button__link {
		transition: none;
	}
}
