/* ==========================================================================
   Yiwu Luomu — main stylesheet
   ========================================================================== */

:root {
	--green: #008448;
	--green-dark: #006b3a;
	--green-bright: #3fd07f;
	--ink: #101a14;
	--body: #4c5852;
	--muted: #6c7a73;
	--line: #e3e8e5;
	--bg: #ffffff;
	--soft: #f5f8f6;
	--container: 1296px;
	--header-h: 90px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--body);
	font-family: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--green);
	text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
	margin: 0;
	color: var(--ink);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

.icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	display: inline-block;
	vertical-align: middle;
	flex: none;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	background: var(--green);
	color: #fff;
	padding: 12px 18px;
	z-index: 9999;
	top: 8px;
	left: 8px;
	border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #fff;
	box-shadow: 0 1px 0 rgba(16, 26, 20, 0.06), 0 10px 30px rgba(16, 26, 20, 0.05);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--header-h);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.brand-mark {
	display: block;
	line-height: 0;
}

.brand-text {
	display: block;
}

.brand-name {
	display: block;
	color: var(--ink);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.05;
}

.brand-sub {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.24em;
}

.custom-logo-link img {
	max-height: 60px;
	width: auto;
}

/* Navigation */
.primary-nav {
	margin-left: auto;
}

.nav-list {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list > li {
	position: relative;
}

.nav-list > li > a {
	display: block;
	padding: 12px 15px;
	color: #26312b;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.nav-list > li > a::after {
	content: "";
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 6px;
	height: 2px;
	background: var(--green);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.28s ease;
}

.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current_page_item > a {
	color: var(--green);
}

.nav-list > li > a:hover::after,
.nav-list > li.current-menu-item > a::after {
	transform: scaleX(1);
}

/* Dropdown */
.nav-list .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 268px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: #fff;
	box-shadow: 0 18px 40px rgba(16, 26, 20, 0.14);
	border-top: 3px solid var(--green);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
	z-index: 5;
}

.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav-list .sub-menu li a {
	display: block;
	padding: 9px 22px;
	color: #2b3530;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease;
}

.nav-list .sub-menu li a:hover {
	background: var(--soft);
	color: var(--green);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.nav-toggle-bars {
	display: block;
	position: relative;
	width: 22px;
	height: 2px;
	background: var(--ink);
}

.nav-toggle-bars span {
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	background: var(--ink);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-bars span:nth-child(1) { top: -7px; }
.nav-toggle-bars span:nth-child(2) { top: 0; }
.nav-toggle-bars span:nth-child(3) { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header tools */
.header-tools {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
	padding-left: 18px;
	position: relative;
}

.search-toggle {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: var(--ink);
	cursor: pointer;
	transition: color 0.2s ease;
}

.search-toggle:hover {
	color: var(--green);
}

.search-toggle .icon {
	width: 20px;
	height: 20px;
}

.header-search {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	display: none;
	align-items: center;
	width: 340px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 4px;
	box-shadow: 0 16px 36px rgba(16, 26, 20, 0.14);
	overflow: hidden;
	z-index: 30;
}

.header-search.is-open {
	display: flex;
}

.header-search input[type="search"] {
	flex: 1;
	height: 48px;
	padding: 0 16px;
	border: 0;
	outline: none;
	font-size: 15px;
	font-family: inherit;
	color: var(--ink);
	background: transparent;
}

.header-search button {
	width: 52px;
	height: 48px;
	border: 0;
	background: var(--green);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.header-search button:hover {
	background: var(--green-dark);
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 2px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
	border-color: var(--green);
	color: var(--green);
}

/* --------------------------------------------------------------------------
   Hero grid
   -------------------------------------------------------------------------- */

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.hero-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(340px, 34vw, 500px);
	padding: 0 48px 52px;
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}

.hero-card-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.01);
	transition: transform 0.9s cubic-bezier(0.16, 0.68, 0.28, 1);
	z-index: -2;
}

.hero-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 16, 10, 0.02) 20%, rgba(6, 16, 10, 0.18) 52%, rgba(6, 16, 10, 0.78) 100%);
	z-index: -1;
}

.hero-card:hover .hero-card-bg {
	transform: scale(1.07);
}

.hero-card-content {
	position: relative;
	display: block;
}

.hero-card-title {
	display: block;
	color: #fff;
	font-size: clamp(21px, 2.1vw, 28px);
	font-weight: 700;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-card-line {
	display: block;
	width: 62px;
	height: 5px;
	margin-top: 18px;
	background: var(--green);
	transition: width 0.35s ease;
}

.hero-card:hover .hero-card-line {
	width: 102px;
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.band {
	position: relative;
	padding: 108px 0 100px;
	color: #fff;
	background-image: url("../images/band-utility.jpg");
	background-size: cover;
	background-position: center;
}

.band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 18, 11, 0.68), rgba(6, 18, 11, 0.72));
}

.band-inner {
	position: relative;
	text-align: center;
}

.band-title {
	max-width: 1000px;
	margin: 0 auto 66px;
	color: #fff;
	font-size: clamp(27px, 3.5vw, 46px);
	font-weight: 700;
	line-height: 1.24;
	letter-spacing: -0.015em;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	max-width: 1080px;
	margin: 0 auto;
}

.stat-value {
	display: flex;
	align-items: baseline;
	justify-content: center;
	line-height: 1;
}

.stat-number {
	color: #fff;
	font-size: clamp(36px, 4.3vw, 54px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.stat-plus {
	color: var(--green-bright);
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 800;
	margin-left: 3px;
}

.stat-label {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Shared section elements
   -------------------------------------------------------------------------- */

.section {
	padding: 112px 0;
}

.eyebrow {
	margin: 0 0 16px;
	color: var(--green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.eyebrow--light {
	color: var(--green-bright);
}

.section-title {
	margin: 0 0 24px;
	color: var(--ink);
	font-size: clamp(30px, 3.5vw, 44px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.lede {
	margin: 0 0 16px;
	color: #1d2a23;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.6;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding: 15px 28px;
	border: 0;
	background: var(--green);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.btn .icon {
	width: 15px;
	height: 15px;
	transition: transform 0.25s ease;
}

.btn:hover {
	background: var(--green-dark);
	color: #fff;
}

.btn:hover .icon {
	transform: translateX(4px);
}

.btn--light {
	background: #fff;
	color: var(--ink);
}

.btn--light:hover {
	background: var(--green);
	color: #fff;
}

.btn--ghost {
	margin-top: 8px;
	padding: 12px 22px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff;
	font-size: 11.5px;
}

.btn--ghost:hover {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

/* --------------------------------------------------------------------------
   All-in-one split
   -------------------------------------------------------------------------- */

.split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: 72px;
}

.split-media {
	margin: 0;
	padding: 18px;
	background: linear-gradient(180deg, #f4f7f5, #eef2f0);
}

.split-media img {
	display: block;
	width: 100%;
	box-shadow: 0 30px 70px rgba(12, 46, 28, 0.18);
}

.split-copy p:not(.eyebrow):not(.lede) {
	color: var(--body);
	font-size: 16px;
	line-height: 1.78;
}

/* --------------------------------------------------------------------------
   Manufacturing cards
   -------------------------------------------------------------------------- */

.section--manufacturing {
	background: var(--soft);
	padding-top: 104px;
}

.section-heading {
	max-width: 760px;
	margin: 0 auto 58px;
	text-align: center;
}

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

.card {
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: 0 2px 6px rgba(16, 40, 28, 0.05), 0 22px 46px rgba(16, 40, 28, 0.09);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.card:hover {
	transform: translateY(-7px);
	box-shadow: 0 4px 10px rgba(16, 40, 28, 0.06), 0 34px 60px rgba(16, 40, 28, 0.14);
}

.card-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 422 / 307;
	background: #dfe6e2;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s cubic-bezier(0.16, 0.68, 0.28, 1);
}

.card:hover .card-media img {
	transform: scale(1.06);
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 30px 30px 32px;
}

.card-title {
	margin: 0 0 14px;
	color: var(--green);
	font-size: 16.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
}

.card-text {
	margin: 0 0 28px;
	color: #57635d;
	font-size: 15px;
	line-height: 1.72;
}

.card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: color 0.22s ease;
}

.card-link .icon {
	width: 14px;
	height: 14px;
	transition: transform 0.22s ease;
}

.card-link:hover {
	color: var(--green);
}

.card-link:hover .icon {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
	position: relative;
	padding: 84px 0;
	background: #0d1f16;
	color: #fff;
	overflow: hidden;
}

.cta::before {
	content: "";
	position: absolute;
	right: -10%;
	top: -40%;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle at center, rgba(0, 132, 72, 0.35), rgba(0, 132, 72, 0) 68%);
}

.cta-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

.cta-copy {
	max-width: 680px;
}

.cta-title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 800;
}

.cta-copy p:last-child {
	margin: 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	background: #0a1811;
	color: #b6c6bd;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 0.8fr 1.2fr;
	gap: 48px;
	padding-top: 76px;
	padding-bottom: 64px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.footer-brand .brand-name {
	color: #fff;
	font-size: 20px;
}

.footer-brand .brand-sub {
	color: rgba(255, 255, 255, 0.55);
}

.footer-intro {
	max-width: 330px;
	margin: 0 0 22px;
	color: rgba(255, 255, 255, 0.66);
	font-size: 14.5px;
	line-height: 1.7;
}

.footer-follow {
	margin: 0 0 14px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.social-links {
	display: flex;
	gap: 10px;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background 0.22s ease, transform 0.22s ease;
}

.social-link:hover {
	background: var(--green);
	transform: translateY(-2px);
}

.social-link .icon {
	width: 17px;
	height: 17px;
}

.footer-heading {
	margin: 4px 0 22px;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

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

.footer-list li {
	margin-bottom: 11px;
}

.footer-list a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 14.5px;
	transition: color 0.2s ease;
}

.footer-list a:hover {
	color: var(--green-bright);
}

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

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14.5px;
	line-height: 1.55;
}

.footer-contact .icon {
	width: 16px;
	height: 16px;
	margin-top: 4px;
	color: var(--green-bright);
}

.footer-contact a {
	color: rgba(255, 255, 255, 0.75);
}

.footer-contact a:hover {
	color: var(--green-bright);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 24px 0;
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.footer-bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
}

/* --------------------------------------------------------------------------
   Fallback page template
   -------------------------------------------------------------------------- */

.page-wrap {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: 90px;
	padding-bottom: 90px;
	min-height: 50vh;
}

.entry-title {
	font-size: 32px;
}

.entry-title a {
	color: var(--ink);
}

.entry-content {
	color: var(--body);
}

/* --------------------------------------------------------------------------
   Reveal animation (only when JS is available)
   -------------------------------------------------------------------------- */

.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.16, 0.68, 0.28, 1);
	will-change: opacity, transform;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.nav-list > li > a {
		padding: 12px 11px;
		font-size: 14px;
	}

	.header-inner {
		gap: 16px;
	}

	.split {
		gap: 48px;
	}
}

@media (max-width: 1024px) {
	:root {
		--header-h: 76px;
	}

	.nav-toggle {
		display: flex;
	}

	.primary-nav {
		order: 3;
		margin-left: 0;
	}

	.nav-list {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		display: block;
		background: #fff;
		padding: 12px 20px 24px;
		box-shadow: 0 24px 40px rgba(16, 26, 20, 0.16);
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		transform: translateY(-10px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
		z-index: 20;
	}

	.nav-list.is-open {
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	.nav-list > li > a {
		padding: 14px 4px;
		border-bottom: 1px solid var(--line);
		font-size: 15.5px;
	}

	.nav-list > li > a::after {
		display: none;
	}

	.nav-list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-top: 0;
		padding: 4px 0 8px 12px;
		min-width: 0;
		display: none;
	}

	.nav-list > li.is-expanded > .sub-menu {
		display: block;
	}

	.nav-list .sub-menu li a {
		padding: 9px 10px;
		font-size: 14px;
	}

	.brand {
		margin-right: auto;
	}

	.header-tools {
		order: 2;
		padding-left: 0;
	}

	.header-search {
		width: min(320px, calc(100vw - 32px));
		right: 0;
	}

	.stats {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 44px;
	}

	.split {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.cards {
		grid-template-columns: 1fr 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		row-gap: 44px;
	}

	.section {
		padding: 82px 0;
	}

	.band {
		padding: 80px 0 76px;
	}
}

@media (max-width: 720px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-card {
		min-height: 300px;
		padding: 0 28px 34px;
	}

	.band-title {
		margin-bottom: 44px;
	}

	.stats {
		gap: 30px 12px;
	}

	.cards {
		grid-template-columns: 1fr;
	}

	.cta-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 26px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 36px;
		padding-top: 56px;
	}

	.section {
		padding: 64px 0;
	}

	.brand-name {
		font-size: 18px;
	}

	.brand-sub {
		font-size: 8.5px;
	}

	.brand-mark svg {
		width: 38px;
		height: 38px;
	}

	.footer-bottom-inner {
		justify-content: flex-start;
		flex-direction: column;
		gap: 6px;
	}
}

@media (max-width: 420px) {
	.header-inner {
		gap: 6px;
	}

	.search-toggle,
	.lang-switch {
		min-width: 38px;
	}

	.brand-text {
		max-width: 150px;
	}
}
