/* CHISEN Battery — front page styling (loaded on the static front page only) */

.csf-hero,
.csf-section,
.csf-cta {
	--csf-ink: #0b1b2b;
	--csf-muted: #5b6b7c;
	--csf-line: #e5e9ef;
	--csf-accent: #f0a11a;
}

/* ---------- hero ---------- */
.csf-hero {
	background:
		radial-gradient(1100px 460px at 18% -12%, #1d4e78 0%, transparent 62%),
		linear-gradient(135deg, #07131f 0%, #0d2237 55%, #0a1a2b 100%);
	color: #ffffff;
	padding: clamp(64px, 9vw, 118px) 0 clamp(56px, 7vw, 92px);
}

.csf-hero p,
.csf-hero h1,
.csf-hero li {
	color: #ffffff;
}

.csf-eyebrow {
	letter-spacing: 0.18em;
	font-size: 0.72rem;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--csf-accent) !important;
	margin-bottom: 18px;
}

.csf-h1 {
	font-size: clamp(2.1rem, 5vw, 3.5rem) !important;
	line-height: 1.06 !important;
	letter-spacing: -0.02em;
	max-width: 17ch;
	margin-bottom: 20px;
}

.csf-lead {
	font-size: clamp(1rem, 1.3vw, 1.16rem);
	line-height: 1.65;
	max-width: 62ch;
	color: #c9d6e4 !important;
}

.csf-hero-actions {
	margin-top: 34px;
	gap: 14px;
}

.csf-hero .wp-block-button__link {
	background: var(--csf-accent);
	color: #0b1b2b !important;
	border: 1px solid var(--csf-accent);
	border-radius: 10px;
	padding: 15px 28px;
	font-weight: 700;
	box-shadow: 0 12px 28px rgba(240, 161, 26, 0.22);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.csf-hero .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(240, 161, 26, 0.3);
}

.csf-hero .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.45);
	box-shadow: none;
}

.csf-badges {
	gap: 12px;
	margin-top: 44px;
}

.csf-badges p {
	margin: 0;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: #9fb3c8 !important;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	padding: 8px 15px;
	background: rgba(255, 255, 255, 0.04);
}

/* ---------- layout containers ---------- */
.csf-hero > .wp-block-group.is-layout-constrained,
.csf-section > .wp-block-group.is-layout-constrained,
.csf-cta > .wp-block-group.is-layout-constrained {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---------- generic section ---------- */
.csf-section {
	padding: clamp(52px, 7vw, 92px) 0;
}

.csf-h2 {
	font-size: clamp(1.6rem, 3vw, 2.35rem) !important;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin-bottom: 12px;
}

.csf-sub {
	color: var(--csf-muted);
	max-width: 60ch;
	margin-bottom: 40px;
}

/* ---------- product cards ---------- */
.csf-cards {
	gap: 22px !important;
}

.csf-card {
	background: #ffffff;
	border: 1px solid var(--csf-line);
	border-radius: 16px;
	padding: 28px 24px !important;
	box-shadow: 0 10px 30px rgba(11, 27, 43, 0.05);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.csf-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(11, 27, 43, 0.09);
}

.csf-card-kicker {
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 800;
	color: var(--csf-accent);
	margin-bottom: 6px;
}

.csf-card-title {
	font-size: 1.28rem !important;
	margin: 0 0 12px;
}

.csf-card p {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #41546a;
}

.csf-card-link a {
	font-weight: 600;
}

/* ---------- applications (dark band) ---------- */
.csf-apps {
	background: #0b1b2b;
}

.csf-apps .csf-h2,
.csf-apps .csf-h2 a {
	color: #ffffff !important;
}

.csf-app-list {
	list-style: none;
	padding: 0;
	max-width: none !important;
}

.csf-app-list li {
	padding: 0 0 16px 26px;
	position: relative;
	color: #c5d3e0;
	line-height: 1.65;
}

.csf-app-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--csf-accent);
}

.csf-app-list strong {
	color: #ffffff;
}

/* ---------- why / numbers ---------- */
.csf-why {
	background: #f6f8fb;
}

.csf-why-grid {
	margin-bottom: 34px;
}

.csf-num {
	font-size: clamp(2rem, 3.4vw, 2.9rem);
	font-weight: 800;
	color: #0b1b2b;
	margin: 0;
	line-height: 1;
	letter-spacing: -0.02em;
}

.csf-num-label {
	font-size: 0.9rem;
	color: var(--csf-muted);
	margin-top: 8px;
}

.csf-check {
	list-style: none;
	padding: 0;
	max-width: 72ch !important;
}

.csf-check li {
	padding-left: 28px;
	position: relative;
	margin-bottom: 12px;
	color: #33465a;
}

.csf-check li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: #1f9d6b;
	font-weight: 800;
}

/* ---------- latest guides ---------- */
.csf-latest {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	max-width: none !important;
}

.csf-latest li {
	background: #ffffff;
	border: 1px solid var(--csf-line);
	border-radius: 14px;
	padding: 20px;
	margin: 0;
}

.csf-latest li a {
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
	display: block;
}

.csf-latest .wp-block-latest-posts__post-date {
	display: block;
	font-size: 0.78rem;
	color: #7b8a99;
	margin-top: 10px;
}

.csf-more {
	margin-top: 28px;
}

/* ---------- CTA ---------- */
.csf-cta {
	background: linear-gradient(120deg, #0d2237 0%, #16324a 100%);
	color: #ffffff;
	padding: clamp(48px, 6vw, 76px) 0;
}

.csf-cta-title {
	color: #ffffff !important;
	font-size: clamp(1.35rem, 2.6vw, 1.95rem) !important;
	line-height: 1.3;
	max-width: 34ch;
}

.csf-cta p {
	color: #c9d6e4;
}

.csf-cta .wp-block-button__link {
	background: var(--csf-accent);
	color: #0b1b2b !important;
	border-radius: 10px;
	padding: 14px 26px;
	font-weight: 700;
}

/* ---------- responsive ---------- */
@media (max-width: 781px) {
	.csf-h1 {
		max-width: none;
	}

	.csf-latest {
		grid-template-columns: 1fr;
	}

	.csf-why-grid {
		gap: 20px;
	}
}

/* ---------- final polish: wider rhythm, left-aligned headings, equal cards ---------- */
.csf-section > .wp-block-group,
.csf-hero > .wp-block-group,
.csf-cta > .wp-block-group {
	width: 100%;
	max-width: 1240px !important;
}

.csf-h2,
.csf-sub {
	text-align: left;
}

.csf-h2 {
	margin-top: 0;
}

.csf-cards {
	align-items: stretch;
}

.csf-card {
	display: flex;
	flex-direction: column;
	min-height: 260px;
}

.csf-card-link {
	margin-top: auto !important;
	padding-top: 10px;
}

.csf-card-link a {
	color: #0b5fa5;
	text-decoration: none;
	border-bottom: 1px solid rgba(11, 95, 165, 0.25);
}

.csf-apps .csf-app-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 40px;
}

@media (max-width: 781px) {
	.csf-apps .csf-app-list {
		grid-template-columns: 1fr;
	}

	.csf-card {
		min-height: 0;
	}
}
/* ---------- hero: factory photo + tighter page shell ---------- */
.csf-hero {
	background-image:
		linear-gradient(100deg, rgba(7, 19, 31, 0.97) 0%, rgba(8, 24, 39, 0.9) 46%, rgba(13, 34, 55, 0.55) 100%),
		url("https://leadacidbattery.cn/wp-content/uploads/2026/06/lead-acid-battery-manufacturing-factory-line.jpg");
	background-size: cover, cover;
	background-position: center center, center right;
	background-repeat: no-repeat, no-repeat;
}

.home main#wp--skip-link--target,
.home .wp-site-blocks > main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.csf-hero > .wp-block-group {
	padding-top: 8px;
}
/* ---------- kill the empty band above the hero ---------- */
body.home main,
body.home main.wp-block-group,
body.home #wp--skip-link--target {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.home .csf-hero,
body.home .csf-hero.wp-block-group {
	margin-top: 0 !important;
}

/* let the factory photo read through on the right */
body.home .csf-hero {
	background-image:
		linear-gradient(100deg, rgba(7, 19, 31, 0.96) 0%, rgba(8, 24, 39, 0.82) 45%, rgba(10, 28, 46, 0.35) 100%),
		url("https://leadacidbattery.cn/wp-content/uploads/2026/06/lead-acid-battery-manufacturing-factory-line.jpg");
	background-position: center center, 72% center;
}
/* ---------- remove the theme block-gap above the hero ---------- */
body.home main.wp-block-group > .csf-hero.wp-block-group,
body.home .wp-site-blocks > main > .wp-block-group.alignfull:first-child {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

body.home .wp-site-blocks > main {
	margin-block-start: 0 !important;
	padding-block-start: 0 !important;
}

body.home .wp-site-blocks > header + main {
	margin-block-start: 0 !important;
}