/*
Theme Name: Shengdong Cable
Theme URI: https://www.shengdongcables.com/
Author: Shengdong Cable Co., Ltd
Description: WordPress theme refactored from the static Shengdong Cables site clone. Markup and assets are preserved for visual parity.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: shengdong-cable
*/

/* Visual styles load from the original CDN and static clone assets (see inc/assets.php). */

/* Keep homepage accents consistent with the blue used by inner pages. */
body.home {
	--color: #006cff;
	--hovercolor: #006cff;
}

/* Keep the contact bar and primary navigation visually separate at page top. */
.head-top,
.head-top .head-left,
.head-top .head-left a,
.head-top .head-left em,
.head-top .head-right a,
.head-top .head-right i,
.head-top .head-right em {
	color: #fff !important;
}

@media (min-width: 1025px) {
	body:not(.wp-admin) > main {
		padding-top: 120px;
	}

	header:not(.is-active) .head-top {
		background: rgba(18, 18, 18, .96);
		border-bottom: 1px solid rgba(255, 255, 255, .14);
	}

	header:not(.is-active) .head-info {
		background: #fff;
		box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
	}

	header:not(.is-active) .head-info .head-nav .nav-ul > li > a {
		color: var(--fontcolor);
	}

	header:not(.is-active) .himg {
		display: none;
	}

	header:not(.is-active) .fimg {
		display: block;
	}
}

/* Shared WordPress pagination for article, news and product lists. */
.page-main .navigation.pagination {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 42px 0 0;
	clear: both;
}

.page-main .navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.page-main .navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #dedede;
	border-radius: 4px;
	background: #fff;
	color: var(--fontcolor, #222);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.page-main .navigation.pagination a.page-numbers:hover,
.page-main .navigation.pagination .page-numbers.current {
	border-color: var(--color, #aa875c);
	background: var(--color, #aa875c);
	color: #fff;
}

.page-main .navigation.pagination .page-numbers.current {
	cursor: default;
}

.page-main .navigation.pagination .page-numbers.dots {
	min-width: 28px;
	padding: 0 4px;
	border-color: transparent;
	background: transparent;
}

.page-main .navigation.pagination .prev,
.page-main .navigation.pagination .next {
	padding-right: 16px;
	padding-left: 16px;
}

@media (max-width: 640px) {
	.page-main .navigation.pagination {
		margin-top: 28px;
	}

	.page-main .navigation.pagination .nav-links {
		gap: 6px;
	}

	.page-main .navigation.pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 9px;
		font-size: 14px;
	}
}

/* Images receive a native src fallback; do not leave the CDN lazy-load spinner above them. */
.lazy-wrap img[src] ~ .lazy-load {
	display: none;
}

.shengdong-inquiry-form {
	display: grid;
	gap: 20px;
	width: 100%;
	max-width: 760px;
	margin-top: 28px;
}

.shengdong-inquiry-form .inquiry-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.shengdong-inquiry-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	color: #202536;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.shengdong-inquiry-form input,
.shengdong-inquiry-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 15px;
	border: 1px solid #d9deea;
	border-radius: 8px;
	background: #fff;
	color: #202536;
	font: inherit;
	line-height: 1.4;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.shengdong-inquiry-form textarea {
	min-height: 140px;
	resize: vertical;
}

.shengdong-inquiry-form input:focus,
.shengdong-inquiry-form textarea:focus {
	border-color: #2d5bff;
	box-shadow: 0 0 0 3px rgba(45, 91, 255, .12);
}

.shengdong-inquiry-form button {
	justify-self: start;
	min-width: 150px;
	min-height: 46px;
	padding: 12px 30px;
	border: 0;
	border-radius: 24px;
	background: #2d5bff;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(45, 91, 255, .22);
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.shengdong-inquiry-form button:hover {
	background: #1748e8;
	box-shadow: 0 10px 24px rgba(45, 91, 255, .3);
	transform: translateY(-1px);
}

.shengdong-inquiry-form button:disabled {
	opacity: .65;
	cursor: wait;
}

.shengdong-inquiry-form .inquiry-status {
	min-height: 24px;
	margin: -4px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.shengdong-inquiry-form .is-success { color: #16833b; }
.shengdong-inquiry-form .is-error { color: #c62828; }

@media (max-width: 640px) {
	.shengdong-inquiry-form {
		gap: 16px;
		margin-top: 22px;
	}

	.shengdong-inquiry-form .inquiry-row { grid-template-columns: 1fr; }
	.shengdong-inquiry-form button { width: 100%; }
}
