/* TM Hero */
.tm-hero {
	--tm-hero-bg: var(--tm-carbon);
	--tm-hero-overlay: .78;

	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 75vh;
	overflow: hidden;
	background: var(--tm-hero-bg);
	isolation: isolate;
}

.tm-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.tm-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(16, 24, 32, calc(var(--tm-hero-overlay) - .1)) 0%, rgba(16, 24, 32, var(--tm-hero-overlay)) 55%, rgba(16, 24, 32, calc(var(--tm-hero-overlay) + .12)) 100%);
}

.tm-hero--left .tm-hero__bg::after {
	background: linear-gradient(90deg, rgba(16, 24, 32, calc(var(--tm-hero-overlay) + .12)) 0%, rgba(16, 24, 32, var(--tm-hero-overlay)) 50%, rgba(16, 24, 32, calc(var(--tm-hero-overlay) - .25)) 100%);
}

.tm-hero__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 96px 24px;
}

.tm-hero__content {
	max-width: 760px;
}

.tm-hero--center .tm-hero__content {
	max-width: 960px;
	margin: 0 auto;
	text-align: center;
}

.tm-hero__eyebrow {
	margin-bottom: 20px;
	color: var(--tm-brass);
	letter-spacing: .28em;
}

.tm-hero__eyebrow.tm-eyebrow--pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #E4B5B5;
	letter-spacing: .16em;
}

.tm-hero__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tm-red-bright);
	box-shadow: 0 0 0 3px rgba(227, 27, 35, .25);
}

.tm-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.tm-hero__badge {
	padding: 7px 14px;
	border: 1px solid rgba(144, 16, 16, .6);
	border-radius: 2px;
	background: rgba(144, 16, 16, .2);
	color: #D7A35B;
	font-family: var(--tm-font-cond);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tm-hero__title {
	margin: 0;
	color: var(--tm-white);
	font-family: var(--tm-font-serif);
	font-size: clamp(36px, 4.6vw, 60px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.tm-hero__title .tm-hl {
	color: #C8262C;
}

.tm-hero__title .tm-it {
	font-weight: 700;
}

.tm-hero__text {
	max-width: 640px;
	margin: 24px 0 0;
	color: #C9D1D9;
	font-size: 16px;
	line-height: 1.7;
}

.tm-hero--center .tm-hero__text {
	margin-inline: auto;
}

.tm-hero__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.tm-hero__checks li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tm-brass);
	font-family: var(--tm-font-cond);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.tm-hero__checks .tm-icon {
	width: 18px;
	height: 18px;
	color: #C8262C;
}

.tm-hero__btns {
	margin-top: 36px;
}

.tm-hero--center .tm-hero__btns {
	justify-content: center;
}

.tm-hero__link {
	margin-top: 22px;
}

/* split: Trang chủ - theo bản mẫu: mobile xếp dọc (nội dung, rồi ảnh theo tỉ lệ gốc);
   từ 1024 hai cột 46% / 54%, nội dung căn giữa theo chiều dọc */
.tm-hero--split {
	--tm-hero-bg: var(--tm-navy-2);

	min-height: 90vh;
}

.tm-hero--split .tm-hero__inner {
	display: flex;
	flex-direction: column;
	min-height: inherit;
	max-width: none;
	padding: 0;
}

.tm-hero--split .tm-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	width: 100%;
	max-width: none;
	padding: 64px 24px;
	background: #0B1424;
}

.tm-hero--split .tm-hero__content > * {
	max-width: 672px;
	margin: 0;
}

.tm-hero--split .tm-hero__text {
	max-width: 576px;
}

.tm-hero--split .tm-hero__checks {
	padding-top: 4px;
}

.tm-hero--split .tm-hero__btns {
	padding-top: 8px;
}

/* Nút link nằm chung hàng wrap với 2 nút (gap 16) ở bản mẫu */
.tm-hero--split .tm-hero__link {
	margin-top: -8px;
}

.tm-hero--split .tm-hero__media {
	aspect-ratio: 682 / 707;
	min-height: 380px;
}

.tm-hero--split .tm-hero__media::before {
	display: none;
}

@media (min-width: 640px) {
	.tm-hero--split .tm-hero__content {
		padding-inline: 48px;
	}
}

@media (min-width: 768px) {
	.tm-hero--split .tm-hero__content {
		gap: 32px;
		padding-inline: 64px;
	}

	.tm-hero--split .tm-hero__link {
		margin-top: -16px;
	}
}

@media (min-width: 1024px) {
	.tm-hero--split {
		min-height: 85vh;
	}

	.tm-hero--split .tm-hero__inner {
		flex-direction: row;
	}

	.tm-hero--split .tm-hero__content {
		flex: none;
		width: 46%;
	}

	.tm-hero--split .tm-hero__media {
		flex: 1;
		aspect-ratio: auto;
		min-height: 0;
	}

	.tm-hero--split .tm-hero__media::before {
		display: block;
		width: 128px;
		background: linear-gradient(90deg, #0B1424, transparent);
	}
}

@media (min-width: 1280px) {
	.tm-hero--split .tm-hero__content {
		padding: 64px 64px 64px 96px;
	}
}

.tm-hero__media {
	position: relative;
	min-height: 100%;
}

.tm-hero__media::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 1;
	width: 18%;
	background: linear-gradient(90deg, var(--tm-hero-bg), transparent);
	pointer-events: none;
}

/* Chip tính năng (Faucet) */
.tm-hero__chips {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
	max-width: 1280px;
	margin: -40px auto 0;
	padding: 0 24px 56px;
}

.tm-hero__chip {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: var(--tm-radius);
	background: rgba(232, 238, 243, .92);
	color: var(--tm-carbon);
	font-family: var(--tm-font-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
	transition: transform .25s var(--tm-ease), background-color .25s;
}

a.tm-hero__chip:hover {
	background: var(--tm-white);
	transform: translateY(-2px);
}

.tm-hero__chip .tm-icon-box {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(144, 16, 16, .2);
	border-radius: 8px;
	background: rgba(144, 16, 16, .1);
	color: var(--tm-red);
}

.tm-hero__chip .tm-icon-box .tm-icon {
	width: 16px;
	height: 16px;
}

/* search: Resources */
.tm-hero--search {
	--tm-hero-bg: var(--tm-mist);

	min-height: 0;
	border-bottom: 1px solid var(--tm-line);
}

.tm-hero--search .tm-hero__inner {
	padding: 72px 24px 64px;
}

.tm-hero--search .tm-hero__content {
	margin: 0 auto;
	text-align: center;
}

.tm-hero--search .tm-hero__eyebrow {
	color: var(--tm-red);
}

.tm-hero--search .tm-hero__title {
	color: var(--tm-carbon);
	text-transform: uppercase;
	letter-spacing: 0;
	font-size: clamp(32px, 4vw, 48px);
}

.tm-hero--search .tm-hero__text {
	margin-inline: auto;
	color: var(--tm-steel);
	font-size: 15px;
}

.tm-hero__search {
	position: relative;
	display: flex;
	gap: 8px;
	max-width: 600px;
	margin: 32px auto 0;
	padding: 6px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow-sm);
}

.tm-hero__search:focus-within {
	border-color: var(--tm-red);
	box-shadow: 0 0 0 3px rgba(144, 16, 16, .12);
}

.tm-hero__search-icon {
	position: absolute;
	top: 50%;
	left: 20px;
	width: 18px;
	height: 18px;
	color: var(--tm-steel);
	transform: translateY(-50%);
}

.tm-hero__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 12px 0 42px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tm-carbon);
	font-family: var(--tm-font);
	font-size: 15px;
	outline: none;
}

.tm-hero__search .tm-btn {
	min-height: 44px;
	padding: 10px 22px;
}

@media (max-width: 1024px) {
	.tm-hero__media {
		min-height: 360px;
	}

	.tm-hero__media::before {
		inset: 0 0 auto;
		width: auto;
		height: 20%;
		background: linear-gradient(180deg, var(--tm-hero-bg), transparent);
	}

	.tm-hero__chips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	/* Bản mẫu giữ min-height và nút rộng theo nội dung trên mobile */
	.tm-hero__inner {
		padding: 72px 20px;
	}

	.tm-hero--center .tm-hero__btns {
		flex-direction: column;
		align-items: center;
	}

	.tm-hero__chips {
		grid-template-columns: 1fr;
		margin-top: -24px;
		padding: 0 20px 40px;
	}

	.tm-hero__media {
		min-height: 260px;
	}
}

/* Blocksy style button[type=submit] trên trang archive: giữ kiểu nút của theme */
.tm-hero .tm-hero__search button.tm-btn {
	font-family: var(--tm-font-cond);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   Hero trang con căn giữa - theo bản mẫu: pt 96 rồi căn giữa phần còn lại, khoảng cách 24
   (About 32), tiêu đề max 896, mô tả max 768 (Plating: bản mẫu dùng class không tồn tại
   "max-w-2.5xl" nên mô tả rộng hết khung), hàng nút cách thêm pt-4 (Engineering pt-6)
   ------------------------------------------------------------------------ */
.tm-hero--center .tm-hero__inner {
	padding: 96px 24px 0;
}

.tm-hero--center .tm-hero__content {
	max-width: none;
}

.tm-hero--center .tm-hero__eyebrow {
	margin-bottom: 24px;
}

.tm-hero--center .tm-hero__title {
	max-width: 896px;
	margin-inline: auto;
}

.tm-hero--center .tm-hero__text {
	max-width: 768px;
	margin-top: 24px;
}

.tm-hero--center .tm-hero__btns {
	gap: 16px;
	margin-top: 40px;
}

.tm-page-plating-services .tm-hero--center .tm-hero__text {
	max-width: none;
}

.tm-page-engineering .tm-hero--center .tm-hero__btns {
	margin-top: 48px;
}

.tm-page-about-us .tm-hero--center .tm-hero__inner {
	padding-bottom: 64px;
}

.tm-page-about-us .tm-hero--center .tm-hero__eyebrow {
	margin-bottom: 32px;
}

.tm-page-about-us .tm-hero--center .tm-hero__text {
	margin-top: 32px;
}

.tm-page-about-us .tm-hero--center .tm-hero__btns {
	margin-top: 48px;
}

/* Bản mẫu: khối nội dung không căn giữa thật (khung chứa cao hơn nội dung) -> nhãn nhỏ bắt đầu
   ở vị trí cố định tính từ đỉnh hero (đo ở 1440). Chiều cao hero vẫn theo min-height. */
@media (min-width: 0) {
	.tm-hero--center {
		justify-content: flex-start;
	}

	.tm-hero--center .tm-hero__inner {
		padding-top: var(--tm-hero-top, 152px);
	}

	.tm-page-engineering .tm-hero--center {
		--tm-hero-top: 144px;
	}

	.tm-page-quality-assurance .tm-hero--center {
		--tm-hero-top: 158px;
	}

	/* About: bản mẫu căn giữa thật (khung chứa có pb-16) */
	.tm-page-about-us .tm-hero--center {
		justify-content: center;
	}

	.tm-page-about-us .tm-hero--center .tm-hero__inner {
		padding-top: 96px;
		padding-bottom: 64px;
	}
}

/* Hero căn trái (Faucet) - theo bản mẫu: khối chính space-y-5, tiêu đề max 896, mô tả 768,
   badge px-5 py-2.5 góc vuông; hàng chip cách hàng nút 64 (space-y-10 + pt-6), gap 16 */
.tm-hero--left .tm-hero__content {
	max-width: none;
}

.tm-hero--left .tm-hero__badges {
	gap: 12px;
	margin-bottom: 20px;
}

.tm-hero--left .tm-hero__badge {
	padding: 10px 20px;
	border-color: rgba(144, 16, 16, .5);
	border-radius: 0;
	background: rgba(144, 16, 16, .3);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.tm-hero--left .tm-hero__title {
	max-width: 896px;
}

.tm-hero--left .tm-hero__text {
	max-width: 768px;
	margin-top: 20px;
}

.tm-hero--left .tm-hero__btns {
	gap: 16px;
	margin-top: 28px;
}

.tm-hero__chips {
	gap: 16px;
	margin-top: 64px;
	padding-bottom: 0;
}

.tm-hero__chip {
	border-radius: 12px;
}

@media (min-width: 1024px) {
	.tm-hero--left:has(.tm-hero__chips) {
		justify-content: flex-start;
		padding-bottom: 48px;
	}

	.tm-hero--left:has(.tm-hero__chips) .tm-hero__inner {
		padding: 160px 24px 0;
	}

	.tm-hero--left:has(.tm-hero__chips) .tm-hero__chips {
		margin-top: 64px;
		padding-bottom: 32px;
	}
}

/* Hero tìm kiếm (Resources) - theo bản mẫu: py-16, khoảng cách 16, tiêu đề max 896, mô tả 672,
   ô tìm kiếm 576 x 50, bo 12, icon trái; nút Search ẩn khỏi mắt (Enter vẫn tìm, vẫn đọc được) */
.tm-hero--search .tm-hero__inner {
	padding: 48px 24px;
}

.tm-hero--search .tm-hero__content {
	max-width: none;
}

.tm-hero--search .tm-hero__eyebrow {
	margin-bottom: 16px;
}

.tm-hero--search .tm-hero__title {
	max-width: 896px;
	margin-inline: auto;
}

.tm-hero--search .tm-hero__text {
	max-width: 672px;
	margin-top: 16px;
}

.tm-hero__search {
	max-width: 576px;
	margin-top: 32px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.tm-hero__search:focus-within {
	box-shadow: none;
}

.tm-hero__search-icon {
	left: 16px;
	width: 16px;
	height: 16px;
	color: #94A3B8;
}

.tm-hero__search input[type="search"] {
	height: 50px;
	padding: 14px 64px 14px 44px;
	border: 1px solid #CBD5E1;
	border-radius: 12px;
	background: var(--tm-white);
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
	font-size: 14px;
	transition: border-color .2s, box-shadow .2s;
}

.tm-hero__search input[type="search"]:focus {
	border-color: var(--tm-red);
	box-shadow: 0 0 0 2px rgba(144, 16, 16, .3);
}

.tm-hero .tm-hero__search button.tm-btn {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.tm-hero--search .tm-hero__inner {
		padding-block: 64px;
	}
}

/* Hero Contact - bản mẫu: py-24 px-6 ở section, khung max-w-7xl không padding trong (x 80),
   tiêu đề max 768, mô tả 672, khoảng cách 24, hàng nút pt-2 */
.tm-page-contact .tm-hero--left {
	min-height: 0;
	padding: 96px 24px;
}

.tm-page-contact .tm-hero--left .tm-hero__inner {
	padding: 0;
}

.tm-page-contact .tm-hero--left .tm-hero__eyebrow {
	margin-bottom: 24px;
}

.tm-page-contact .tm-hero--left .tm-hero__title {
	max-width: 768px;
}

.tm-page-contact .tm-hero--left .tm-hero__text {
	max-width: 672px;
	margin-top: 24px;
}

.tm-page-contact .tm-hero--left .tm-hero__btns {
	margin-top: 32px;
}

/* ---------------------------------------------------------------------------
   Feedback khách 2026-11-06
   ------------------------------------------------------------------------ */

/* (6) Màn hình thấp (laptop 125-150%): nội dung cao hơn min-height -> nút chạm đáy ảnh.
   Luôn chừa khoảng dưới; hero tự cao thêm khi cần */
.tm-hero--center .tm-hero__inner {
	padding-bottom: 56px;
}

.tm-page-about-us .tm-hero--center .tm-hero__inner {
	padding-bottom: 64px;
}

.tm-hero--left:not(:has(.tm-hero__chips)):not(.tm-page-contact *) .tm-hero__inner {
	padding-bottom: 56px;
}

/* (7) Dòng chữ đỏ trong tiêu đề hero cùng font với dòng trắng (Playfair, nghiêng).
   Bản mẫu dùng Barlow Condensed 900 nhưng font này không tải được nên máy khách thấy Arial Black */
html body .elementor .tm-hero__title .tm-it {
	font-family: var(--tm-font-serif);
	font-weight: 700;
	letter-spacing: -.01em;
}
