/*
 * Metcopaint homepage sections (Figma: node 1-2, "1. Trang chủ")
 * Loaded only on the static front page, on top of the Trusted theme's base styles.
 */

#hero-section,
#products-section,
#highlights-section,
#project-section,
#cta-section,
.products-section-title,
.hero-title,
.cta-title,
.project-title,
.project-section-title,
.highlight-title {
	font-family: 'Be Vietnam Pro', sans-serif;
}

/* Hero */
#hero-section.hero-section {
	background-color: #1c1c1c;
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 160px 0 120px;
}
#hero-section.hero-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 100%);
}
#hero-section .container {
	position: relative;
	z-index: 1;
}
.hero-title {
	color: #fff;
	font-weight: 700;
	font-size: 44px;
	line-height: 1.25;
	max-width: 620px;
	margin: 0;
}

/* Products (WooCommerce categories) */
#products-section.products-section {
	padding: 80px 0;
	text-align: center;
}
.products-section-title {
	font-weight: 700;
	font-size: 30px;
	color: #363636;
	margin: 0 0 40px;
}
.products-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	text-align: left;
}
.products-category-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 280px;
	background-color: #255a36;
	background-size: cover;
	background-position: center;
	padding: 24px;
	text-decoration: none;
}
.products-category-tile::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}
.products-category-name {
	position: relative;
	z-index: 1;
	color: #fff;
	font-weight: 700;
	font-size: 22px;
}
.products-section-tagline {
	max-width: 640px;
	margin: 40px auto 0;
	font-weight: 700;
	font-size: 24px;
	color: #363636;
}

/* Numbered Highlights */
#highlights-section.highlights-section {
	padding: 80px 0;
	background-color: #f7f7f7;
}
.highlights-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.highlight-item {
	border-top: 2px solid #255a36;
	padding-top: 20px;
}
.highlight-number {
	display: block;
	font-weight: 700;
	font-size: 32px;
	color: #255a36;
	margin-bottom: 8px;
}
.highlight-title {
	font-weight: 700;
	font-size: 18px;
	color: #363636;
	margin: 0 0 10px;
}
.highlight-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #6b6b6b;
	margin: 0;
}

/* Featured Project teaser */
#project-section.project-section {
	background-color: #1c1c1c;
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 100px 0;
	text-align: left;
}
#project-section.project-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 100%);
}
#project-section .container {
	position: relative;
	z-index: 1;
}
.project-section-title {
	color: #fff;
	font-weight: 700;
	font-size: 28px;
	margin: 0 0 12px;
}
.project-title {
	margin: 0 0 16px;
}
.project-title a {
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	text-decoration: none;
}
.project-explore-link,
.project-archive-link {
	display: inline-block;
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	margin-right: 24px;
}

/* CTA */
#cta-section.section {
	background-color: #255a36;
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 100px 0;
}
#cta-section.section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.35);
}
#cta-section .container {
	position: relative;
	z-index: 1;
}
.cta-title {
	color: #fff;
	font-weight: 700;
	font-size: 32px;
	max-width: 520px;
	margin: 0 0 16px;
}
.cta-subtitle {
	color: #fff;
	max-width: 520px;
	line-height: 1.6;
	margin: 0 0 24px;
}
#cta-section .cta-button a.button {
	display: inline-block;
	background: #fff;
	color: #255a36;
	font-weight: 700;
	padding: 14px 32px;
	border-radius: 3px;
	text-decoration: none;
}

@media (max-width: 900px) {
	.products-category-grid,
	.highlights-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.hero-title {
		font-size: 30px;
	}
	.products-category-grid,
	.highlights-grid {
		grid-template-columns: 1fr;
	}
}
