/**
 * Nam Việt Media — trang chủ: hero (lưới, huy hiệu xoay), dải chữ chạy, giới thiệu công ty, giải pháp, dịch vụ nổi bật, gia công, ấn phẩm, hỏi đáp.
 * Chỉ tải trên trang chủ. Tiêu đề khối, dải cam kết, ô sản phẩm, quy trình, CTA: components.css.
 */

/* Hero ------------------------------------------------------------------ */
.nvm-hh {
	position: relative;
	padding: 40px 0 8px;
	background: linear-gradient(180deg, var(--nvm-ivory) 0%, #fff 100%);
	overflow: hidden;
	isolation: isolate;
}

.nvm-hh::before {
	content: "";
	position: absolute;
	left: -140px;
	bottom: 40px;
	z-index: -1;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: radial-gradient(circle at 70% 30%, #ffc48a 0%, var(--nvm-orange) 70%);
	opacity: .22;
}

/* Nền lưới kẻ ô như bàn thiết kế, mờ dần về hai phía */
.nvm-hh::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(rgba(39, 86, 63, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(39, 86, 63, .07) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}

.nvm-hh__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: 40px;
	align-items: center;
}

.nvm-hh__title {
	margin-bottom: 18px;
	color: var(--nvm-green);
	font-size: clamp(30px, 3.9vw, 50px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.01em;
	text-transform: uppercase;
}

.nvm-hh__title span {
	display: block;
}

.nvm-hh__lead {
	max-width: 540px;
	margin-bottom: 28px;
	color: var(--nvm-text);
	font-size: 18px;
	line-height: 1.7;
}

/* Cụm ảnh */
.nvm-hh__media {
	position: relative;
	height: 440px;
}

.nvm-hh .nvm-strip4 {
	margin-top: 24px;
}

.nvm-hh__shot {
	position: absolute;
	margin: 0;
	overflow: hidden;
	border: 6px solid #fff;
	border-radius: 16px;
	background: var(--nvm-green-50);
	box-shadow: var(--nvm-shadow-lg);
}

.nvm-hh__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nvm-hh__shot--a {
	top: 0;
	left: 0;
	width: 64%;
	height: 78%;
}

.nvm-hh__shot--b {
	right: 0;
	bottom: 0;
	z-index: 2;
	width: 46%;
	height: 52%;
}

/* Huy hiệu tròn xoay */
.nvm-spin {
	position: absolute;
	top: 66%;
	left: 47%;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--nvm-shadow-lg);
	transform: translate(-50%, -50%);
}

.nvm-spin__text {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	animation: nvm-spin 18s linear infinite;
}

.nvm-spin__text text {
	fill: var(--nvm-green);
	font-family: var(--nvm-font-head);
	font-size: 10.6px;
	font-weight: 800;
	letter-spacing: .18em;
}

.nvm-spin__core {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--nvm-orange);
	color: #fff;
}

@keyframes nvm-spin {
	to { transform: rotate(360deg); }
}

.nvm-hh__shot--c {
	top: 6%;
	right: 0;
	width: 32%;
	height: 36%;
}

/* Dải chữ chạy --------------------------------------------------------- */
.nvm-marquee {
	margin-top: 36px;
	padding: 14px 0;
	overflow: hidden;
	background: var(--nvm-green);
}

.nvm-marquee__track {
	display: flex;
	width: max-content;
	animation: nvm-marquee 45s linear infinite;
}

.nvm-marquee:hover .nvm-marquee__track {
	animation-play-state: paused;
}

.nvm-marquee__list {
	display: flex;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nvm-marquee__list li {
	display: flex;
	align-items: center;
	color: #fff;
	font-family: var(--nvm-font-head);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.nvm-marquee__list li:nth-child(even) {
	color: transparent;
	-webkit-text-stroke: 1.2px rgba(255, 255, 255, .85);
}

.nvm-marquee__list li::after {
	content: "✦";
	margin: 0 28px;
	color: var(--nvm-orange);
	font-size: 19px;
	-webkit-text-stroke: 0;
}

@keyframes nvm-marquee {
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.nvm-marquee__track,
	.nvm-partners__track,
	.nvm-spin__text {
		animation: none;
	}
}

/* Giới thiệu công ty ------------------------------------------------- */
.nvm-about {
	padding-top: 52px;
}

.nvm-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 64px;
	align-items: center;
}

.nvm-about__media {
	position: relative;
	height: 500px;
}

.nvm-about__img {
	position: absolute;
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	background: var(--nvm-green-50);
}

.nvm-about__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nvm-about__img--a {
	top: 0;
	left: 0;
	width: 78%;
	height: 82%;
	box-shadow: var(--nvm-shadow);
}

.nvm-about__img--b {
	right: 0;
	bottom: 0;
	width: 50%;
	height: 48%;
	border: 8px solid #fff;
	box-shadow: var(--nvm-shadow-lg);
}

.nvm-about__media::before {
	content: "";
	position: absolute;
	left: -18px;
	bottom: 36px;
	z-index: -1;
	width: 120px;
	height: 120px;
	background-image: radial-gradient(var(--nvm-orange) 2px, transparent 2.5px);
	background-size: 16px 16px;
	opacity: .45;
}

.nvm-about__badge {
	position: absolute;
	left: 24px;
	bottom: 24px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	max-width: 210px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--nvm-orange);
	color: rgba(255, 255, 255, .9);
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 14px 30px rgba(245, 130, 50, .35);
}

.nvm-about__badge strong {
	color: #fff;
	font-size: 26px;
	line-height: 1.1;
}

.nvm-about__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
	color: var(--nvm-orange-600);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.nvm-about__eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: var(--nvm-orange);
}

.nvm-about__title {
	margin-bottom: 18px;
	color: var(--nvm-green);
	font-size: clamp(24px, 2.7vw, 34px);
	line-height: 1.25;
	text-transform: uppercase;
}

.nvm-about__lead {
	color: var(--nvm-ink);
	font-size: 18px;
}

.nvm-about__text > p {
	color: var(--nvm-text);
}

.nvm-about__values {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
	margin: 26px 0 30px;
	padding: 22px 0 0;
	border-top: 1px solid var(--nvm-line);
	list-style: none;
}

.nvm-about__values li {
	display: flex;
	gap: 12px;
	color: var(--nvm-muted);
	font-size: 15px;
	line-height: 1.5;
}

.nvm-about__values strong {
	display: block;
	margin-bottom: 2px;
	color: var(--nvm-green);
	font-size: 16.5px;
}

.nvm-about__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--nvm-orange-50);
	color: var(--nvm-orange-600);
}

.nvm-about .nvm-actions {
	align-items: center;
	gap: 24px;
}

.nvm-about__call {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--nvm-ink);
}

.nvm-about__call-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 2px solid var(--nvm-orange);
	border-radius: 50%;
	color: var(--nvm-orange);
	transition: background var(--nvm-ease), color var(--nvm-ease);
}

.nvm-about__call:hover .nvm-about__call-icon {
	background: var(--nvm-orange);
	color: #fff;
}

.nvm-about__call small {
	display: block;
	color: var(--nvm-muted);
	font-size: 13.5px;
}

.nvm-about__call strong {
	color: var(--nvm-green);
	font-size: 19px;
}

/* Khách hàng theo lĩnh vực */
.nvm-clients {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 20px 32px;
	align-items: center;
	margin-top: 40px;
	padding: 18px 22px;
	border: 1px solid var(--nvm-line);
	border-radius: 14px;
	background: var(--nvm-ivory);
}

.nvm-clients__label {
	max-width: 170px;
	margin: 0;
	color: var(--nvm-green);
	font-family: var(--nvm-font-head);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
}

.nvm-clients__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nvm-clients__list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 14px 8px;
	border-radius: 10px;
	background: #fff;
	color: var(--nvm-ink);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	box-shadow: 0 1px 0 var(--nvm-line);
	transition: transform var(--nvm-ease), box-shadow var(--nvm-ease), color var(--nvm-ease);
}

.nvm-clients__list a:hover {
	color: var(--nvm-green);
	box-shadow: var(--nvm-shadow);
	transform: translateY(-3px);
}

.nvm-clients__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--nvm-orange-50);
	color: var(--nvm-orange-600);
	transition: background var(--nvm-ease), color var(--nvm-ease);
}

.nvm-clients__list a:hover .nvm-clients__icon {
	background: var(--nvm-green);
	color: #fff;
}

/* Logo đối tác: 2 hàng chạy ngược chiều ------------------------------ */
.nvm-partners {
	padding: 8px 0 24px;
	overflow: hidden;
}

.nvm-partners__title {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 22px;
	color: var(--nvm-muted);
	font-family: var(--nvm-font-head);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.nvm-partners__title::before,
.nvm-partners__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--nvm-line);
}

.nvm-partners__row {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.nvm-partners__row + .nvm-partners__row {
	margin-top: 14px;
}

.nvm-partners__track {
	display: flex;
	width: max-content;
	animation: nvm-partners-rtl 50s linear infinite;
}

/* Hàng 1: trái → phải; hàng 2: phải → trái */
.nvm-partners__row--ltr .nvm-partners__track {
	animation-name: nvm-partners-ltr;
}

.nvm-partners__row:hover .nvm-partners__track {
	animation-play-state: paused;
}

.nvm-partners__list {
	display: flex;
	flex-shrink: 0;
	gap: 14px;
	margin: 0;
	padding: 0 7px;
	list-style: none;
}

.nvm-partners__list li {
	display: grid;
	place-items: center;
	width: 180px;
	height: 88px;
	padding: 16px 24px;
	border: 1px solid var(--nvm-line);
	border-radius: 12px;
	background: #fff;
	transition: border-color var(--nvm-ease), box-shadow var(--nvm-ease);
}

.nvm-partners__list img {
	max-width: 100%;
	max-height: 52px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .65;
	transition: filter var(--nvm-ease), opacity var(--nvm-ease);
}

.nvm-partners__list li:hover {
	border-color: var(--nvm-orange);
	box-shadow: var(--nvm-shadow);
}

.nvm-partners__list li:hover img {
	filter: none;
	opacity: 1;
}

@keyframes nvm-partners-rtl {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@keyframes nvm-partners-ltr {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

/* Chưa có logo: khung mẫu (chỉ quản trị viên thấy) */
.nvm-partners--empty .nvm-container {
	padding-top: 20px;
	padding-bottom: 20px;
	border: 2px dashed var(--nvm-line);
	border-radius: 14px;
	text-align: center;
}

.nvm-partners__hint {
	margin: 0;
	color: var(--nvm-muted);
	font-size: 15.5px;
}

.nvm-partners__hint a {
	font-weight: 700;
}

/* Giải pháp (6 thẻ) ---------------------------------------------------- */
.nvm-sol {
	--per: 5;
	--gap: 14px;
	gap: var(--gap);
}

.nvm-sol__card {
	flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
}

.nvm-sol__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--nvm-line);
	border-radius: var(--nvm-radius-sm);
	background: #fff;
	color: inherit;
	transition: box-shadow var(--nvm-ease), transform var(--nvm-ease);
}

.nvm-sol__card:hover {
	transform: translateY(-3px);
	box-shadow: var(--nvm-shadow-lg);
	color: inherit;
}

.nvm-sol__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--nvm-green-50);
}

.nvm-sol__media img,
.nvm-fin__item img,
.nvm-gal__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.nvm-sol__card:hover img,
.nvm-fin__item:hover img {
	transform: scale(1.06);
}

.nvm-sol__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 12px 14px 14px;
}

.nvm-sol__title {
	margin-bottom: 4px;
	color: var(--nvm-green);
	font-size: 16px;
	line-height: 1.35;
}

.nvm-sol__text {
	color: var(--nvm-muted);
	font-size: 14px;
	line-height: 1.5;
}

.nvm-sol__body .nvm-go {
	align-self: flex-end;
	margin-top: auto;
}

.nvm-sol__text {
	margin-bottom: 10px;
}

/* Dịch vụ nổi bật (dải xanh) ------------------------------------------ */
.nvm-feat {
	position: relative;
	padding: 44px 0;
	background: var(--nvm-green);
	color: rgba(255, 255, 255, .82);
	overflow: hidden;
	isolation: isolate;
}

.nvm-feat__media {
	position: absolute;
	inset: 0 auto 0 0;
	z-index: -1;
	width: 48%;
	margin: 0;
}

.nvm-feat__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(39, 86, 63, 0) 40%, var(--nvm-green) 100%);
}

.nvm-feat__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nvm-feat__inner {
	display: flex;
	justify-content: flex-end;
}

.nvm-feat__text {
	width: 50%;
	max-width: 560px;
}

.nvm-feat__eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--nvm-orange);
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.nvm-feat__title {
	margin-bottom: 12px;
	color: #fff;
	font-size: clamp(24px, 2.8vw, 34px);
	text-transform: uppercase;
}

.nvm-feat__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 20px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.nvm-feat__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

.nvm-feat__list .nvm-icon {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	padding: 3px;
	border-radius: 50%;
	background: var(--nvm-orange);
	color: #fff;
}

/* Gia công (4 thẻ) ------------------------------------------------------ */
.nvm-fin {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.nvm-fin__item {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--nvm-line);
	border-radius: var(--nvm-radius-sm);
	background: #fff;
	color: inherit;
	transition: box-shadow var(--nvm-ease);
}

.nvm-fin__item:hover {
	box-shadow: var(--nvm-shadow-lg);
	color: inherit;
}

.nvm-fin__item img {
	aspect-ratio: 16 / 9;
	height: auto;
}

/* Ấn phẩm (dải ảnh) ------------------------------------------------------ */
.nvm-gal {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 10px;
}

.nvm-gal__item {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--nvm-radius-sm);
	background: var(--nvm-green-50);
}

.nvm-gal__item a {
	position: relative;
	display: block;
	height: 100%;
	cursor: zoom-in;
}

.nvm-gal__item:hover img {
	transform: scale(1.06);
}

.nvm-gal__zoom {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(20, 52, 36, .45);
	color: #fff;
	opacity: 0;
	transition: opacity var(--nvm-ease);
}

.nvm-gal__zoom .nvm-icon {
	box-sizing: content-box;
	padding: 12px;
	border-radius: 50%;
	background: var(--nvm-orange);
}

.nvm-gal__item a:hover .nvm-gal__zoom,
.nvm-gal__item a:focus-visible .nvm-gal__zoom {
	opacity: 1;
}

/* Hỏi đáp ---------------------------------------------------------------- */
.nvm-hfaq {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
	gap: 48px;
	align-items: start;
}

.nvm-hfaq__side p {
	color: var(--nvm-muted);
}

.nvm-hfaq__media {
	margin: 24px 0 0;
	overflow: hidden;
	border-radius: var(--nvm-radius);
}

.nvm-hfaq__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1199px) {
	.nvm-clients {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.nvm-clients__label {
		max-width: none;
	}

	.nvm-about__grid {
		gap: 40px;
	}




	.nvm-sol {
		--per: 4;
	}
}

@media (max-width: 849px) {
	.nvm-hh {
		padding-top: 32px;
	}

	.nvm-spin {
		width: 96px;
		height: 96px;
	}

	.nvm-spin__core {
		width: 42px;
		height: 42px;
	}

	.nvm-marquee {
		margin-top: 32px;
		padding: 14px 0;
	}

	.nvm-marquee__list li {
		font-size: 18px;
	}

	.nvm-marquee__list li::after {
		margin: 0 18px;
	}

	.nvm-about {
		padding-top: 44px;
	}

	.nvm-clients {
		margin-top: 36px;
	}

	.nvm-clients__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nvm-about__media {
		height: 360px;
	}


	.nvm-hh__inner,
	.nvm-about__grid,
	.nvm-hfaq {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.nvm-hh__media {
		height: 320px;
	}

	.nvm-fin {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.nvm-sol {
		--per: 2.4;
		--gap: 12px;
	}

	.nvm-feat {
		padding: 0 0 40px;
	}

	.nvm-feat__media {
		position: relative;
		width: 100%;
		height: 220px;
		margin-bottom: 28px;
	}

	.nvm-feat__media::after {
		background: linear-gradient(180deg, rgba(39, 86, 63, 0) 50%, var(--nvm-green) 100%);
	}

	.nvm-feat__text {
		width: 100%;
	}

	.nvm-gal {
		grid-template-columns: repeat(7, 42%);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.nvm-gal__item {
		scroll-snap-align: start;
	}
}

@media (max-width: 549px) {
	.nvm-hh__media {
		height: 260px;
	}

	.nvm-about__media {
		height: 280px;
	}

	.nvm-clients {
		padding: 18px 16px;
	}

	.nvm-partners__list li {
		width: 140px;
		height: 72px;
		padding: 12px 16px;
	}

	.nvm-partners__list img {
		max-height: 42px;
	}

	.nvm-clients__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nvm-about__badge {
		left: 12px;
		bottom: 12px;
		padding: 12px 14px;
	}

	.nvm-about__badge strong {
		font-size: 20px;
	}

	.nvm-about__values {
		grid-template-columns: minmax(0, 1fr);
	}



	.nvm-sol {
		--per: 1.45;
	}

	.nvm-feat__list {
		grid-template-columns: minmax(0, 1fr);
	}
}
