/**
 * Stylesheet trang Dự án và khách hàng (template-du-an-khach-hang.php)
 *
 * @package nguyen-ha-bang
 */

.nhb-projects {
	background: #ffffff;
	color: #1e293b;
	font-family: var(--nhb-font);
	overflow-x: hidden;
}

/* ==========================================================================
   Section 1: Dự án và khách hàng (.nhb-proj-s1)
   ========================================================================== */

.nhb-proj-s1 {
	position: relative;
	background:
		radial-gradient(circle at 82% 18%, rgba(251, 237, 211, 0.65) 0%, rgba(253, 246, 233, 0.35) 36%, transparent 65%),
		linear-gradient(180deg, #ffffff 0%, #fcfbfe 58%, #f8f5fc 100%);
	padding: 36px 0 68px;
	overflow: hidden;
}

.nhb-proj-s1__halo {
	position: absolute;
	top: -36px;
	right: -20px;
	width: 620px;
	height: 540px;
	pointer-events: none;
	z-index: 1;
}

.nhb-proj-s1__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1366px;
	margin-inline: auto;
	padding-inline: 64px;
}

/* --- Khối trên: Tiêu đề trái + Trích dẫn & Chân dung phải ---------------- */
.nhb-proj-s1__top {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: start;
	gap: 24px;
	position: relative;
	margin-bottom: 18px;
}

.nhb-proj-s1__intro {
	padding-top: 8px;
	position: relative;
	z-index: 3;
}

.nhb-proj-s1__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #d68924;
}

.nhb-proj-s1__eyebrow-line {
	display: inline-block;
	width: 42px;
	height: 1.5px;
	background: linear-gradient(90deg, rgba(214, 137, 36, 0.25) 0%, #d68924 100%);
	border-radius: 2px;
}

.nhb-proj-s1__title {
	margin: 0 0 18px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(32px, 3.55vw, 48px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.01em;
}

.nhb-proj-s1__title-violet {
	display: block;
	color: #290975;
}

.nhb-proj-s1__title-gold {
	display: block;
	color: #d58c24;
	margin-top: 2px;
}

.nhb-proj-s1__desc {
	margin: 0;
	max-width: 650px;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.65;
	color: #33416b;
}

/* Cột phải: Trích dẫn + Chân dung */
.nhb-proj-s1__right {
	position: relative;
	min-height: 250px;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}

.nhb-proj-s1__quote {
	position: relative;
	z-index: 3;
	margin: 38px 0 0 -18px;
	padding: 0;
	border: 0;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 310px;
}

.nhb-proj-s1__quote-mark {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 64px;
	font-weight: 700;
	line-height: 0.72;
	color: #df962e;
	user-select: none;
	flex-shrink: 0;
}

.nhb-proj-s1__quote-body {
	min-width: 0;
}

.nhb-proj-s1__quote-text {
	margin: 0 0 14px;
	font-size: 15px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.56;
	color: #31236b;
}

.nhb-proj-s1__quote-line {
	display: block;
	width: 38px;
	height: 1.5px;
	background: #df962e;
	margin-bottom: 10px;
}

.nhb-proj-s1__quote-author {
	display: block;
	font-style: normal;
	font-size: 14px;
	font-weight: 700;
	color: #321b7a;
}

.nhb-proj-s1__portrait-wrap {
	position: absolute;
	right: -26px;
	top: -28px;
	width: 330px;
	height: 298px;
	overflow: hidden;
	pointer-events: none;
	z-index: 2;
	-webkit-mask-image: linear-gradient(to bottom, #000 56%, rgba(0, 0, 0, 0.48) 80%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 56%, rgba(0, 0, 0, 0.48) 80%, transparent 100%);
}

.nhb-proj-s1__portrait {
	display: block;
	width: 470px;
	max-width: none;
	height: auto;
	margin-left: -70px;
	margin-top: -2px;
}

/* --- Thanh lọc lĩnh vực (.nhb-proj-s1__tabs) ---------------------------- */
.nhb-proj-s1__tabs {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 6px 0 22px;
}

.nhb-proj-s1__tab {
	position: relative;
	appearance: none;
	border: 0;
	background: transparent;
	padding: 9px 22px;
	border-radius: 999px;
	font-family: var(--nhb-font);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.25;
	color: #36436e;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nhb-proj-s1__tab + .nhb-proj-s1__tab::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 14px;
	background: #e2dfec;
	pointer-events: none;
}

.nhb-proj-s1__tab:hover {
	color: #2c107a;
}

.nhb-proj-s1__tab.is-active {
	background: linear-gradient(90deg, #3e0ca8 0%, #2a0775 100%);
	color: #ffffff;
	font-weight: 700;
	padding-inline: 28px;
	box-shadow: 0 6px 16px rgba(46, 10, 130, 0.22);
}

.nhb-proj-s1__tab.is-active::before,
.nhb-proj-s1__tab.is-active + .nhb-proj-s1__tab::before {
	display: none;
}

/* --- Lưới 24 Logo đối tác (.nhb-proj-s1__logos) ------------------------- */
.nhb-proj-s1__logos {
	position: relative;
	z-index: 4;
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 28px;
}

.nhb-proj-s1__logo-card {
	background: #ffffff;
	border: 1px solid #f1eef8;
	border-radius: 10px;
	height: 76px;
	padding: 8px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(45, 16, 122, 0.035);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nhb-proj-s1__logo-card[hidden] {
	display: none !important;
}

.nhb-proj-s1__logo-card:hover {
	transform: translateY(-3px);
	border-color: #dfd3f8;
	box-shadow: 0 12px 26px rgba(45, 16, 122, 0.085);
}

.nhb-proj-s1__logo-card img {
	width: 100%;
	height: 100%;
	max-width: 126px;
	max-height: 60px;
	object-fit: contain;
	display: block;
}

/* --- Banner thống kê 4 chỉ số (.nhb-proj-s1__stats) --------------------- */
.nhb-proj-s1__stats {
	position: relative;
	z-index: 4;
	border-radius: 24px;
	padding: 36px 42px;
	background-image:
		linear-gradient(90deg, rgba(40, 10, 110, 0.92) 0%, rgba(56, 18, 138, 0.85) 50%, rgba(34, 8, 96, 0.94) 100%),
		var(--nhb-proj-stats-bg);
	background-size: cover;
	background-position: center;
	box-shadow: 0 20px 46px rgba(38, 10, 106, 0.22);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: center;
}

.nhb-proj-s1__stat {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding-inline: 28px;
}

.nhb-proj-s1__stat:first-child {
	padding-left: 10px;
}

.nhb-proj-s1__stat:last-child {
	padding-right: 10px;
}

.nhb-proj-s1__stat + .nhb-proj-s1__stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 76px;
	background: rgba(255, 255, 255, 0.24);
}

.nhb-proj-s1__stat-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(92, 48, 184, 0.55) 0%, rgba(42, 12, 112, 0.65) 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #f3ba69;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.nhb-proj-s1__stat-icon svg {
	width: 38px;
	height: 38px;
}

.nhb-proj-s1__stat-body {
	min-width: 0;
}

.nhb-proj-s1__stat-num {
	display: block;
	font-family: var(--nhb-font);
	font-size: clamp(28px, 2.6vw, 36px);
	font-weight: 700;
	line-height: 1.12;
	color: #f7c06d;
	margin-bottom: 6px;
}

.nhb-proj-s1__stat-label {
	margin: 0;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.42;
	color: rgba(255, 255, 255, 0.92);
}

/* --- Responsive Section 1 ----------------------------------------------- */
@media (max-width: 1240px) {
	.nhb-proj-s1__inner {
		padding-inline: 32px;
	}

	.nhb-proj-s1__logos {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.nhb-proj-s1__stat {
		padding-inline: 18px;
	}
}

@media (max-width: 991px) {
	.nhb-proj-s1__top {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.nhb-proj-s1__right {
		min-height: 220px;
		justify-content: space-between;
	}

	.nhb-proj-s1__quote {
		margin: 16px 0 0;
	}

	.nhb-proj-s1__portrait-wrap {
		right: 0;
		top: -10px;
	}

	.nhb-proj-s1__logos {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.nhb-proj-s1__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
		padding: 28px 24px;
	}

	.nhb-proj-s1__stat:nth-child(3)::before {
		display: none;
	}
}

@media (max-width: 640px) {
	.nhb-proj-s1__inner {
		padding-inline: 20px;
	}

	.nhb-proj-s1__right {
		flex-direction: column;
		align-items: center;
	}

	.nhb-proj-s1__portrait-wrap {
		position: relative;
		right: auto;
		top: auto;
		margin-top: 8px;
	}

	.nhb-proj-s1__logos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nhb-proj-s1__stats {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.nhb-proj-s1__stat {
		padding-inline: 0;
	}

	.nhb-proj-s1__stat + .nhb-proj-s1__stat::before {
		display: none;
	}
}
