/*
 * Sparta Hero Section
 * Figma 节点: 684:481 / 178:168
 * 设计基准: 1280px
 *
 * 布局尺寸锁在此文件，不通过 Elementor 面板调整。
 * 颜色/遮罩透明度可在 Elementor 样式面板覆盖（通过 selectors）。
 */

/* ────────────────────────────────────────────────
   外层容器
──────────────────────────────────────────────── */
.sparta-hero {
	position: relative;
	width: 100%;
	min-height: 720px;
	display: flex;
	align-items: stretch;
	overflow: hidden;
}

/* ── 视频背景（全覆盖，object-fit cover） ── */
.sparta-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
}

/* 无视频时的 poster / 图片回退 */
.sparta-hero__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	pointer-events: none;
}

/* 半透明遮罩（默认透明，可在 Elementor 样式面板自定义） */
.sparta-hero__overlay {
	position: absolute;
	inset: 0;
	background: transparent;
	pointer-events: none;
	z-index: 0;
}

/* 居中限宽容器 */
.sparta-hero__container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 39px;
	display: flex;
	align-items: flex-start;
}

/* ────────────────────────────────────────────────
   文字内容区（Figma: left:39px, top:166px from hero top）
──────────────────────────────────────────────── */
.sparta-hero__content {
	padding-top: 166px;
	padding-bottom: 60px;
	max-width: 612px;
	width: 100%;
}

/* 小标题 "Quality PCBs. Seamless Assembly. Proven Results." */
.sparta-hero__pretitle {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: #ffffff;
	margin: 0;
	max-width: 418px;
}

/* 主标题 Figma: Anton Regular 60px line-height 70px */
.sparta-hero__heading {
	font-family: 'Anton', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 60px;
	line-height: 70px;
	color: #ffffff;
	margin: 36px 0 0;
	width: 100%;
}

/* 副标题 */
.sparta-hero__subtitle {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 30px;
	color: #ffffff;
	margin: 20px 0 0;
	max-width: 500px;
}

/* ────────────────────────────────────────────────
   CTA 按钮（Figma: bg #FFD739, 232×44px, rounded 5px）
──────────────────────────────────────────────── */
.sparta-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	background-color: #ffd739;
	padding: 7px 23px;
	border-radius: 5px;
	height: 44px;
	min-width: 232px;
	margin-top: 30px;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	border: none;
	transition: background-color 0.3s ease;
}

.sparta-hero__btn-text {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 20px;
	color: #054fbd;
	white-space: nowrap;
	transition: color 0.3s ease;
}

/* 右侧箭头图标区（Figma: 33×33px yellow badge with arrow） */
.sparta-hero__btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
}

.sparta-hero__btn-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.sparta-hero__btn-icon svg path {
	transition: stroke 0.3s ease;
}

/* hover：黄底蓝字 → 蓝底黄字 */
.sparta-hero__btn:hover {
	background-color: #054fbd;
}

.sparta-hero__btn:hover .sparta-hero__btn-text {
	color: #ffd739;
}

.sparta-hero__btn:hover .sparta-hero__btn-icon svg path {
	stroke: #ffd739;
}

/* ────────────────────────────────────────────────
   响应式
──────────────────────────────────────────────── */

/* 手机 ≤767px */
@media (max-width: 767px) {
	.sparta-hero {
		min-height: 480px;
	}

	.sparta-hero__container {
		padding: 0 20px;
	}

	.sparta-hero__content {
		padding-top: 60px;
		padding-bottom: 40px;
		max-width: 100%;
	}

	.sparta-hero__pretitle,
	.sparta-hero__subtitle {
		max-width: 100%;
		font-size: 14px;
	}

	.sparta-hero__heading {
		font-size: 36px;
		line-height: 44px;
		margin-top: 16px;
	}

	.sparta-hero__btn {
		min-width: auto;
		width: 100%;
		max-width: 280px;
	}
}

/* 平板 768px–1279px */
@media (min-width: 768px) and (max-width: 1279px) {
	.sparta-hero {
		min-height: 560px;
	}

	.sparta-hero__container {
		padding: 0 30px;
	}

	.sparta-hero__content {
		padding-top: 110px;
		max-width: 520px;
	}

	.sparta-hero__heading {
		font-size: 48px;
		line-height: 56px;
	}
}

/* 大屏 ≥1800px */
@media (min-width: 1800px) {
	.sparta-hero__container {
		max-width: 1600px;
	}
}
