/*
 * Shunxin Corporate - Global Styles & Design System
 * Transcribed directly from Codex static production styles.css & home.css Card systems
 */

:root {
	--ink: #10221b;
	--forest: #123d2c;
	--deep: #08291f;
	--lime: #a9dc35;
	--lime2: #d8f36a;
	--cream: #f4f2ea;
	--paper: #fff;
	--muted: #65736b;
	--line: #dce3dc;
	--amber: #f5a623;
	--shadow: 0 18px 45px rgba(8, 41, 31, 0.1);
	--hx-muted: #596c61;
	--hx-border: #dce5dc;
	--hx-soft: #f2f6ef;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	color: var(--ink);
	background: #fff;
	overflow-x: visible;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

main {
	min-height: 60vh;
}

/* =========================================================
   HX CORE LAYOUT SYSTEM (GLOBAL IN BASE.CSS)
   ========================================================= */
.hx {
	background: #fff;
	overflow: clip;
}

.hx section {
	max-width: none;
	margin: 0;
	padding: 0;
	scroll-margin-top: 100px;
}

.hx .hx-wrap {
	width: min(1280px, calc(100% - 96px));
	margin-inline: auto;
}

.hx .hx-section {
	padding: 88px 0;
}

.hx .hx-tint {
	background: var(--hx-soft);
}

.hx h1 {
	font-size: clamp(32px, 3.8vw, 54px);
	line-height: 1.1;
	letter-spacing: -0.045em;
	margin: 0 0 18px;
	color: var(--ink);
}

.hx h2 {
	font-size: clamp(28px, 3.2vw, 44px);
	line-height: 1.15;
	letter-spacing: -0.04em;
	margin: 0 0 16px;
	color: var(--ink);
}

.hx h3 {
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.hx p {
	line-height: 1.7;
}

.hx .hx-kicker {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	font-size: 11px;
	font-weight: 850;
	color: #486a18;
	margin-bottom: 17px;
}

.hx .hx-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 34px;
}

.hx .hx-heading > div {
	max-width: 760px;
}

.hx .hx-heading p {
	color: var(--hx-muted);
	max-width: 700px;
	margin: 0;
	font-size: 16px;
}

/* HX Grids */
.hx .hx-grid {
	display: grid;
	gap: 22px;
}

.hx .hx-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.hx .hx-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

/* HX Tabs */
.hx .hx-tabs {
	display: flex;
	gap: 7px;
	border-bottom: 1px solid #ccd9c8;
	padding-bottom: 14px;
	margin: 0 0 30px;
	flex-wrap: wrap;
}

.hx .hx-tabs a {
	display: block;
	border: 1px solid #c8d6c5;
	border-radius: 7px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 750;
	background: #fff;
	color: var(--ink);
	text-decoration: none;
	cursor: pointer;
	transition: 0.15s ease;
}

.hx .hx-tabs a.active,
.hx .hx-tabs a[aria-selected="true"] {
	background: var(--forest);
	border-color: var(--forest);
	color: #fff;
}

/* =========================================================
   SITE HEADER & MEGA MENU
   ========================================================= */
.site-header {
	height: 78px;
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 0 clamp(20px, 5vw, 72px);
	border-bottom: 1px solid rgba(16, 34, 27, 0.09);
	background: rgba(255, 255, 255, 0.96);
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(12px);
	overflow: visible;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1;
}

.brand small {
	display: block;
	font-size: 9px;
	letter-spacing: 0.16em;
	margin-top: 5px;
	color: var(--muted);
}

.brand-mark {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	background: var(--forest);
	color: var(--lime2);
	border-radius: 11px;
	font-size: 13px;
	font-weight: 900;
}

.brand.light .brand-mark {
	background: #fff;
	color: var(--forest);
}

.site-header nav {
	display: flex;
	align-items: center;
	gap: 25px;
	margin-left: auto;
	height: 100%;
}

.site-header .primary-menu {
	display: flex;
	align-items: center;
	gap: 25px;
	list-style: none;
	margin: 0;
	padding: 0;
	height: 100%;
}

.site-header .primary-menu > li {
	height: 100%;
	display: flex;
	align-items: center;
	position: relative;
}

.site-header .primary-menu > li > a,
.nav-item > a {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	font-weight: 700;
}

.submenu-toggle {
	border: 0;
	background: transparent;
	color: #678078;
	cursor: pointer;
	padding: 8px 4px;
}

.dropdown .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header nav a:hover,
.text-link:hover {
	color: #4e7c00;
}

.nav-item {
	height: 100%;
	display: flex;
	align-items: center;
	position: relative;
}

.chev {
	font-size: 12px;
	color: #678078;
}

/* Dropdowns */
.dropdown {
	position: absolute;
	top: 70px;
	left: -18px;
	width: 330px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 20px 55px rgba(8, 41, 31, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: 0.2s ease;
	display: grid;
	gap: 3px;
	z-index: 120;
}

.dropdown.mega {
	position: fixed;
	left: 50%;
	width: min(920px, calc(100vw - 32px));
	grid-template-columns: repeat(2, minmax(0, 1fr));
	transform: translate(-50%, 8px);
}

.dropdown a {
	padding: 11px 12px;
	border-radius: 8px;
	display: block;
}

.dropdown a:hover {
	background: #edf5e8;
	color: var(--forest);
}

.dropdown strong,
.dropdown small {
	display: block;
}

.dropdown strong {
	font-size: 13px;
	color: var(--ink);
}

.dropdown small {
	font-size: 11px;
	color: var(--muted);
	margin-top: 3px;
}

.overview-link {
	grid-column: 1 / -1;
	background: #f7faf5;
	border-bottom: 1px solid var(--line);
	margin-bottom: 4px;
}

.has-menu:hover > .dropdown,
.has-menu:focus-within > .dropdown,
.has-menu.open > .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.has-menu:hover > .dropdown.mega,
.has-menu:focus-within > .dropdown.mega,
.has-menu.open > .dropdown.mega {
	transform: translate(-50%, 0);
}

.menu-btn {
	display: none;
	background: none;
	border: 1px solid var(--line);
	border-radius: 7px;
	padding: 8px 12px;
	font-weight: 700;
	cursor: pointer;
}

/* =========================================================
   GLOBAL BUTTONS & LINKS
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: var(--forest);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none;
	transition: 0.15s ease;
}

.btn:hover {
	opacity: 0.92;
}

.btn.compact {
	min-height: 42px;
	padding: 0 17px;
	font-size: 13px;
}

.btn.lime {
	background: var(--lime);
	color: var(--deep);
}

.btn.ghost {
	background: transparent;
	border-color: currentColor;
}

.hx-link {
	display: inline-flex;
	gap: 12px;
	align-items: center;
	font-size: 13px;
	font-weight: 800;
	color: var(--forest);
	line-height: 1.5;
	text-decoration: none;
}

.hx-link > span {
	font-size: 19px;
}

.hx-link:hover {
	color: #4b710c;
}

/* =========================================================
   CARD COMPONENTS (STATIC CODEX STANDARD)
   ========================================================= */
.hx-equipment,
.hx-solution,
.hx-case,
.hx-guide {
	background: #fff;
	border: 1px solid var(--hx-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.hx-equipment:hover,
.hx-solution:hover,
.hx-case:hover,
.hx-guide:hover {
	border-color: #99b888;
	box-shadow: 0 10px 25px rgba(25, 61, 41, 0.08);
}

/* Machine Card Image Container */
.hx-equipment-image {
	position: relative;
	background: #f7f8f4;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 210px;
	padding: 19px;
}

.hx-equipment-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.hx-equipment-image > span {
	position: absolute;
	top: 16px;
	left: 18px;
	font-size: 11px;
	color: #65785e;
	font-weight: 800;
}

/* Solution, Case, Guide Card Image Container */
.hx-solution-image {
	display: block;
	position: relative;
	height: 215px;
	overflow: hidden;
	background: #edf2e8;
}

.hx-solution-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hx-solution-image > span {
	position: absolute;
	bottom: 10px;
	left: 12px;
	font-size: 9px;
	color: #fff;
	background: rgba(18, 61, 44, 0.88);
	border-radius: 4px;
	padding: 4px 8px;
	font-weight: 700;
}

/* Card Body Copy */
.hx-card-copy {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.hx-card-copy > small {
	font-size: 10px;
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #517321;
	margin-bottom: 12px;
	display: block;
}

.hx-card-copy h3 {
	margin: 0 0 12px;
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.hx-card-copy h3 a {
	color: var(--ink);
}

.hx-card-copy h3 a:hover {
	color: #4b710c;
}

.hx-card-copy p {
	font-size: 14px;
	color: var(--hx-muted);
	margin: 0 0 21px;
	line-height: 1.6;
}

.hx-card-copy > .hx-link {
	margin-top: auto;
}

/* Case Card Specifics */
.hx-case dl {
	font-size: 12px;
	margin: 0 0 24px;
	padding: 0;
}

.hx-case dl > div {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 8px;
	border-bottom: 1px solid var(--hx-border);
	padding: 9px 0;
}

.hx-case dt {
	color: #667761;
}

.hx-case dd {
	margin: 0;
	text-align: right;
	font-weight: 650;
	color: var(--ink);
}

/* =========================================================
   FOOTER GRID
   ========================================================= */
footer {
	background: var(--forest);
	color: #fff;
	padding: 70px clamp(20px, 5vw, 72px) 30px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 40px;
}

footer a {
	color: #d1ded7;
}

footer a:hover {
	color: #fff;
}

footer h2,
footer h3 {
	margin: 0 0 18px;
	font-size: 15px;
	letter-spacing: 0.05em;
	color: #fff;
}

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

footer .menu li + li { margin-top: 12px; }

footer > div {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

footer p {
	color: #b0c4b9;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.footer-contact {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	padding: 24px;
}

.footer-contact h2,
.footer-contact h3 {
	color: var(--lime2);
	margin-bottom: 12px;
}

.footer-contact .btn {
	margin-top: 8px;
}

.legal-links {
	margin-top: 15px;
	font-size: 13px;
}

.copyright {
	grid-column: 1 / -1;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 24px;
	margin-top: 20px;
	font-size: 13px;
	color: #8fa69b;
}

/* =========================================================
   RESPONSIVE (GLOBAL & GRIDS)
   ========================================================= */
@media (max-width: 1050px) {
	.hx .hx-wrap {
		width: calc(100% - 56px);
	}
	.hx .hx-section {
		padding: 66px 0;
	}
	.hx .hx-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.site-header nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 78px;
		background: #fff;
		padding: 20px 28px;
		flex-direction: column;
		align-items: flex-start;
		box-shadow: var(--shadow);
		height: auto;
	}

	.site-header .primary-menu {
		width: 100%;
		height: auto;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-header .primary-menu > li {
		height: auto;
		width: 100%;
		flex-wrap: wrap;
	}

	.site-header .primary-menu > li > a { flex: 1; min-height: 44px; }
	.submenu-toggle { min-width: 44px; min-height: 44px; }

	.site-header nav.open {
		display: flex;
	}

	.menu-btn {
		display: block;
		margin-left: auto;
	}

	.site-header > .btn {
		display: none;
	}

	.nav-item {
		height: auto;
		width: 100%;
		display: block;
	}

	.nav-item > a {
		height: auto;
		padding: 10px 0;
	}

	.dropdown,
	.dropdown.mega {
		position: static;
		width: 100%;
		grid-template-columns: 1fr;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		margin: 7px 0;
		border-radius: 8px;
		flex-basis: 100%;
	}

	.has-menu.open > .dropdown,
	.has-menu.open > .dropdown.mega {
		display: grid;
	}

	footer {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 760px) {
	.hx .hx-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.site-header {
		padding: 0 18px;
	}

	footer {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.hx .hx-wrap {
		width: calc(100% - 36px);
	}
	.hx .hx-section {
		padding: 52px 0;
	}
	.hx .hx-grid-3,
	.hx .hx-grid-4 {
		grid-template-columns: 1fr;
	}
	.hx .hx-tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.hx .hx-tabs a {
		padding: 10px;
		font-size: 12px;
		text-align: center;
	}
}

/* Global Form Field Classes */
.sx-inquiry-section {
	background: #fbfdfa;
	border-top: 1px solid var(--line);
	padding: 70px clamp(20px, 4vw, 40px);
}

.sx-inquiry-section__header {
	text-align: center;
	margin-bottom: 35px;
}

.sx-inquiry-section__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #557d22;
	margin-bottom: 8px;
}

.sx-inquiry-section__title {
	font-size: clamp(26px, 3vw, 36px);
	margin: 0 0 10px;
	color: var(--ink);
	line-height: 1.2;
}

.sx-inquiry-section__desc {
	color: var(--muted);
	font-size: 15px;
	margin: 0;
	max-width: 650px;
	margin-inline: auto;
}

.sx-inquiry-form {
	max-width: 900px;
	margin: 0 auto;
}

.sx-input,
.sx-textarea {
	width: 100%;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 12px 14px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sx-input:focus,
.sx-textarea:focus {
	border-color: #62951b;
	outline: none;
	box-shadow: 0 0 0 3px rgba(103, 150, 38, 0.15);
}


/* =========================================================
   CALL TO ACTION BANNER (Global .cta Standard)
   ========================================================= */
section.cta {
	background: var(--forest);
	color: #fff;
	max-width: 1256px;
	border-radius: 20px;
	padding: 54px 60px;
	margin: 80px auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	box-sizing: border-box;
}

section.cta > div {
	max-width: 760px;
}

section.cta .eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lime2);
	margin-bottom: 8px;
}

section.cta h2 {
	font-size: 38px;
	line-height: 1.15;
	margin: 0 0 10px;
	color: #fff;
}

section.cta p {
	color: #d3dfd8;
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

section.cta .btn.lime {
	flex-shrink: 0;
	font-size: 15px;
	padding: 0 28px;
	min-height: 52px;
}

@media (max-width: 1050px) {
	section.cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 42px 36px;
	}
}

@media (max-width: 620px) {
	section.cta {
		margin: 50px 16px;
		padding: 32px 24px;
	}
	section.cta h2 {
		font-size: 28px;
	}
}


/* Global Utility Grid System */
.grid {
	display: grid;
	gap: 24px;
}

.grid.three {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.grid.four {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 1050px) {
	.grid.three,
	.grid.four {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.grid.three,
	.grid.four {
		grid-template-columns: 1fr;
	}
}


/* =========================================================
   BREADCRUMB STYLING (100% Aligned with Codex Static styles.css)
   ========================================================= */
.crumb {
	max-width: 1400px;
	margin: 0 auto;
	padding: 18px clamp(20px, 5vw, 72px);
	font-size: 12px;
	color: var(--muted);
	box-sizing: border-box;
	line-height: 1.5;
}

.crumb a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

.crumb a:hover {
	color: #52780c;
}

.crumb span {
	color: var(--ink);
}

/* Fallback / Support for <nav class="sx-breadcrumbs"> */
.sx-breadcrumbs {
	max-width: 1400px;
	margin: 0 auto;
	padding: 18px clamp(20px, 5vw, 72px);
	font-size: 12px;
	color: var(--muted);
	box-sizing: border-box;
	line-height: 1.5;
}

.sx-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.sx-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
}

.sx-breadcrumbs__item:not(:last-child)::after {
	content: '/';
	margin-left: 6px;
	color: var(--muted);
}

.sx-breadcrumbs__item a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

.sx-breadcrumbs__item a:hover {
	color: #52780c;
}

.sx-breadcrumbs__item[aria-current="page"] {
	color: var(--ink);
	font-weight: normal;
}


/* =========================================================
   TWO-STEP FLUENT FORMS MODAL & STYLING (100% Match Design)
   ========================================================= */
.sx-two-step-form-wrapper {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	box-sizing: border-box;
}

.sx-form-step-container {
	background: #fff;
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	position: relative;
}

.sx-form-header {
	margin-bottom: 25px;
	position: relative;
}

.sx-form-title {
	font-size: 26px;
	font-weight: 700;
	color: #222;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.sx-form-line-accent {
	width: 60px;
	height: 3px;
	background: #ff5500;
	border-radius: 2px;
}

/* Fluent Form Customization */
.fluentform .ff-el-input--label {
	font-size: 14px;
	font-weight: 500;
	color: #444;
	margin-bottom: 6px;
}

.fluentform .ff-el-input--label.ff-el-is-required label:after {
	content: " *";
	color: #ff3333;
}

.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform select,
.fluentform textarea {
	background: #f8f9fa !important;
	border: 1px solid #edf0f2 !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	font-size: 14px !important;
	color: #333 !important;
	transition: all 0.2s ease !important;
}

.fluentform input[type="text"]:focus,
.fluentform input[type="email"]:focus,
.fluentform select:focus,
.fluentform textarea:focus {
	background: #fff !important;
	border-color: #ff5500 !important;
	box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.1) !important;
	outline: none !important;
}

/* Custom 2-Column Row in Fluent Forms */
.fluentform .ff-t-cell.ff-col-2 {
	flex: 0 0 50%;
	max-width: 50%;
}

.fluentform .ff-t-cell.ff-col-1 {
	flex: 0 0 100%;
	max-width: 100%;
}

.fluentform .ff-el-group {
	margin-bottom: 18px;
}

/* Big Orange Rounded Button (Image 1 & 3) */
.fluentform .ff-btn-submit {
	width: 100% !important;
	background: #ff5500 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 30px !important;
	padding: 14px 28px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: capitalize !important;
	cursor: pointer !important;
	box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3) !important;
	transition: all 0.2s ease !important;
}

.fluentform .ff-btn-submit:hover {
	background: #e64d00 !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4) !important;
}

/* POPUP MODAL (Image 2) */
.sx-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.sx-modal-dialog {
	background: #fff;
	width: 100%;
	max-width: 520px;
	border-radius: 20px;
	padding: 36px 32px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	position: relative;
	text-align: center;
	animation: sxPopIn 0.25s ease-out;
}

.sx-modal-dialog--wide {
	max-width: 960px;
	text-align: left;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px;
}

@keyframes sxPopIn {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.sx-modal-close {
	position: absolute;
	top: 16px;
	right: 18px;
	font-size: 26px;
	color: #999;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color 0.15s;
}

.sx-modal-close:hover {
	color: #222;
}

.sx-modal-title {
	font-size: 22px;
	font-weight: 700;
	color: #222;
	margin: 0 0 12px;
	line-height: 1.35;
}

.sx-modal-subtitle {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 26px;
}

.sx-modal-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
}

.sx-btn {
	padding: 12px 28px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
}

.sx-btn-orange {
	background: #ff5500;
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 85, 0, 0.25);
}

.sx-btn-orange:hover {
	background: #e64d00;
}

.sx-btn-grey {
	background: #f1f3f5;
	color: #495057;
}

.sx-btn-grey:hover {
	background: #e9ecef;
}

@media (max-width: 600px) {
	.sx-modal-actions {
		flex-direction: column;
	}
	.sx-btn {
		width: 100%;
	}
	.sx-form-step-container {
		padding: 24px 18px;
	}
}


/* =========================================================
   PAGE HERO FOR EDITORIAL & CASE ARCHIVE
   ========================================================= */
.page-hero {
	text-align: center;
	background: var(--cream);
	max-width: none;
	padding: 90px clamp(20px, 5vw, 72px) 60px;
	box-sizing: border-box;
	width: 100%;
}

.page-hero.compact-hero {
	padding-top: 62px;
	padding-bottom: 62px;
}

.page-hero .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 12px;
	font-weight: 900;
	color: #52780c;
	display: block;
	margin: 0 auto 12px;
}

.page-hero h1 {
	font-size: clamp(42px, 6vw, 70px);
	letter-spacing: -0.045em;
	line-height: 1.1;
	margin: 0 auto 20px;
	color: var(--ink);
	max-width: 900px;
}

.page-hero .lead {
	font-size: clamp(17px, 1.8vw, 21px);
	line-height: 1.55;
	color: #405047;
	max-width: 760px;
	margin: 0 auto;
}


/* =========================================================
   SINGLE-ROW FLEX FILTER TOOLBAR FOR SOLUTIONS
   ========================================================= */
.solution-filter-box {
	background: #f8faf7;
	border: 1px solid var(--hx-border);
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 35px;
	box-sizing: border-box;
}

.solution-filter-form {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.solution-filter-form .filter-field {
	flex: 1 1 200px;
	min-width: 180px;
}

.solution-filter-form .filter-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
	margin-left: auto;
}

@media (max-width: 760px) {
	.solution-filter-form {
		flex-direction: column;
		align-items: stretch;
	}
	.solution-filter-form .filter-field {
		width: 100%;
		flex: none;
	}
	.solution-filter-form .filter-actions {
		margin-left: 0;
		width: 100%;
		justify-content: flex-start;
	}
}


/* =========================================================
   CAROUSEL VIEWER (4:3 Media Box with Floating Arrows)
   ========================================================= */
.sx-carousel-viewer {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
}

.sx-carousel-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	background: #f7faf7;
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sx-carousel-media {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sx-carousel-media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	padding: 12px;
	box-sizing: border-box;
	transition: opacity 0.25s ease;
	display: block;
}

.sx-carousel-media .main-video-iframe-wrap {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: #000;
	display: none;
	z-index: 2;
}

.sx-carousel-media .main-video-iframe-wrap iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Floating Navigation Arrows */
.sx-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #6aa80b; /* Fresh bright green matching user attachment */
	border: 2px solid #fff;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 5;
	padding: 0;
}

.sx-carousel-btn:hover {
	background: #7ec410;
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 6px 18px rgba(106, 168, 11, 0.45);
}

.sx-carousel-btn:active {
	transform: translateY(-50%) scale(0.95);
}

.sx-carousel-btn.prev {
	left: 14px;
}

.sx-carousel-btn.next {
	right: 14px;
}

.sx-carousel-btn svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Thumbnails Track Below Stage */
.sx-carousel-thumbs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
}

.sx-carousel-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	border: 2px solid #e1e9e2;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
	padding: 2px;
	box-sizing: border-box;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sx-carousel-thumb:hover {
	border-color: #6aa80b;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sx-carousel-thumb.active {
	border-color: #6aa80b;
	box-shadow: 0 0 0 2px rgba(106, 168, 11, 0.35);
}

.sx-carousel-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	display: block !important;
}

/* Video Thumb Styling */
.sx-carousel-thumb.video-thumb {
	background: #0f2c20;
}

.sx-carousel-thumb.video-thumb:hover,
.sx-carousel-thumb.video-thumb.active {
	border-color: #cc181e;
	box-shadow: 0 0 0 2px rgba(204, 24, 30, 0.35);
}

.sx-carousel-thumb.video-thumb .play-icon {
	width: 22px;
	height: 22px;
	position: absolute;
	z-index: 3;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.sx-carousel-thumb.video-thumb img {
	opacity: 0.35;
	position: absolute;
	object-fit: cover !important;
}

/* Override Product Hero Card for Machine */
.product-hero .product-visual {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	min-height: auto !important;
}

/* Override Hero Right Media for Solution */
.of-hero-media-card {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.of-hero-media-card .sx-carousel-stage {
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(8, 41, 31, 0.6);
	backdrop-filter: blur(10px);
}

.of-hero-media-card .sx-carousel-thumb {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.12);
}

.of-hero-media-card .sx-carousel-thumb.active {
	border-color: var(--lime);
	box-shadow: 0 0 0 2px rgba(169, 220, 53, 0.4);
}


/* Global Center Alignment for Standard Page/Archive Headers */
.sx-page__header,
.sx-archive__header,
.sx-single__header,
.sx-404 {
	text-align: center;
	padding: 50px 20px 30px;
	max-width: 900px;
	margin: 0 auto;
}

.sx-page__title,
.sx-archive__title,
.sx-single__title,
.sx-404__title {
	text-align: center;
	margin: 0 auto 16px;
}

.sx-archive__description,
.sx-404__text {
	text-align: center;
	margin: 0 auto;
	max-width: 700px;
	color: var(--muted);
}

/* Phase 4 shared template components */
.sx-inquiry-cta {
	max-width: 1256px;
	margin: 72px auto;
	padding: clamp(32px, 5vw, 56px);
	border-radius: 20px;
	background: linear-gradient(135deg, #08291f, #18563b);
	color: #fff;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
	gap: 40px;
	align-items: center;
	box-sizing: border-box;
}

.sx-inquiry-cta .eyebrow,
.sx-related .eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lime2);
	margin-bottom: 8px;
}

.sx-inquiry-cta h2 {
	color: #fff;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.12;
	margin: 0 0 12px;
}

.sx-inquiry-cta p {
	color: #d3dfd8;
	line-height: 1.65;
	margin: 0;
}

.sx-inquiry-cta__action {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 14px;
	padding: 24px;
}

.sx-inquiry-cta__action .btn { margin-bottom: 14px; }
.sx-inquiry-cta__action p { font-size: 13px; }
.sx-inquiry-cta__admin-note {
	margin-top: 14px !important;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,.18);
	color: #ffe4a3 !important;
}

.sx-related__header { margin-bottom: 26px; }
.sx-related__header .eyebrow { color: #557d22; }
.sx-related__header h2 {
	font-size: clamp(28px, 3.2vw, 42px);
	margin: 0;
	color: var(--ink);
}

.sx-related-link-card a { color: var(--ink); text-decoration: none; }
.sx-related-link-card p { color: var(--muted); line-height: 1.6; }

.sx-term-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: 20px;
}
.sx-term-chips span {
	background: #eaf3ec;
	border: 1px solid #d2e1d4;
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 12px;
	font-weight: 750;
	color: #315a40;
}

.sx-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 28px 0;
}
.sx-category-card {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	padding: 20px;
	text-decoration: none;
	color: var(--ink);
}
.sx-category-card strong { display: block; margin-bottom: 5px; }
.sx-category-card span { color: var(--muted); font-size: 13px; }

.sx-media-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.sx-media-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sx-media-gallery img { display: block; width: 100%; height: auto; }

@media (max-width: 760px) {
	.sx-inquiry-cta {
		width: calc(100% - 32px);
		margin: 48px 16px;
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.sx-media-gallery { grid-template-columns: 1fr; }
}
