/* หน้าแรก: ส่วนแนะนำบริษัท (section-1.php) */
.hx-intro {
	--hx-red: #BA0008;
	--hx-red-2: #e00000;
	--hx-ink: #1d1f24;
	--hx-muted: #5d6470;
	--hx-line: #eceef2;
	--hx-soft: #f7f7f9;
	padding: 56px 0 64px;
	background:
		radial-gradient(900px 400px at 100% 0%, rgba(186,0,8,.06), transparent 60%),
		#fff;
	font-family: 'Noto Sans Thai', sans-serif;
}
.hx-intro p { margin: 0 !important; line-height: 1.75 !important; }

/* ---------- hero ---------- */
.hx-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: .12em;
	color: var(--hx-red); text-transform: uppercase;
	background: rgba(186,0,8,.07); border-radius: 999px; padding: 6px 14px;
}
.hx-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-red); }
.hx-title {
	font-family: 'Noto Sans Thai', sans-serif;
	font-size: 30px; line-height: 1.4; font-weight: 700;
	color: var(--hx-ink); margin: 18px 0 12px; letter-spacing: 0;
}
.hx-brand { display: block; }
.hx-tagline { display: block; font-size: 18px; font-weight: 500; line-height: 1.6; color: var(--hx-muted); margin-top: 10px; }
.hx-intro .hx-sub {
	font-size: 19px; font-weight: 600; color: var(--hx-red) !important;
	border-left: 4px solid var(--hx-red); padding-left: 14px;
	margin: 0 0 16px !important;
}
.hx-lead { font-size: 16px; color: var(--hx-muted) !important; }

.hx-chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hx-chips li {
	font-size: 14px; font-weight: 600; color: var(--hx-ink);
	background: #fff; border: 1px solid var(--hx-line); border-radius: 999px;
	padding: 6px 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.hx-chips li i { color: var(--hx-red); margin-right: 6px; }

.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-size: 17px; font-weight: 700; border-radius: 12px; padding: 14px 24px;
	text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease;
}
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn-call { color: #fff !important; background: linear-gradient(120deg, var(--hx-red-2), var(--hx-red)); box-shadow: 0 10px 24px -10px rgba(186,0,8,.7); }
.hx-btn-line { color: #fff !important; background: #06C755; box-shadow: 0 10px 24px -10px rgba(6,199,85,.7); }
.hx-phones { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 15px; color: var(--hx-muted); }
.hx-phones a { color: var(--hx-ink) !important; font-weight: 600; }
.hx-phones i { color: var(--hx-red); margin-right: 6px; }

/* ---------- photo mosaic ---------- */
.hx-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.hx-shot {
	display: block; position: relative; overflow: hidden; border-radius: 16px;
	aspect-ratio: 1 / 1; background: var(--hx-soft); cursor: zoom-in;
	box-shadow: 0 12px 28px -18px rgba(16,24,40,.45);
}
.hx-mosaic > a.hx-shot:first-of-type { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.hx-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hx-shot:hover img { transform: scale(1.05); }
.hx-badge {
	position: absolute; left: 16px; top: 16px; z-index: 2;
	display: flex; align-items: center; gap: 10px;
	background: rgba(255,255,255,.94); border-radius: 12px; padding: 10px 14px;
	box-shadow: 0 8px 20px -10px rgba(16,24,40,.5);
	font-size: 14px; font-weight: 700; color: var(--hx-ink); line-height: 1.3;
}
.hx-badge i { font-size: 22px; color: var(--hx-red); }
.hx-badge small { display: block; font-weight: 500; color: var(--hx-muted); font-size: 12px; }

/* ---------- feature cards ---------- */
.hx-features { margin-top: 56px; }
.hx-card {
	display: flex; gap: 16px; height: 100%;
	background: #fff; border: 1px solid var(--hx-line); border-radius: 16px; padding: 22px;
	text-decoration: none !important; color: inherit !important;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hx-card:hover { border-color: rgba(186,0,8,.35); box-shadow: 0 16px 32px -20px rgba(186,0,8,.45); transform: translateY(-3px); }
.hx-icon {
	flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(186,0,8,.08); color: var(--hx-red); font-size: 20px;
}
.hx-card h3 { font-family: 'Noto Sans Thai', sans-serif; font-size: 18px; font-weight: 700; color: var(--hx-ink); margin: 2px 0 6px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.hx-card p { font-size: 15px; color: var(--hx-muted) !important; line-height: 1.65 !important; }

/* ---------- Chinese summary ---------- */
.hx-zh {
	margin-top: 32px; background: var(--hx-soft); border-radius: 16px; padding: 24px 28px;
	display: flex; gap: 20px; align-items: flex-start;
}
.hx-zh-tag { flex: 0 0 auto; font-weight: 700; color: #fff; background: var(--hx-ink); border-radius: 8px; padding: 4px 10px; font-size: 14px; }
.hx-zh p { color: var(--hx-ink) !important; font-size: 15px; }
.hx-intro .hx-zh p + p { margin-top: 6px !important; }
.hx-zh ul { margin: 10px 0 0; padding-left: 20px; color: var(--hx-muted); font-size: 15px; }

/* ---------- lightbox ---------- */
.hx-lightbox {
	position: fixed; inset: 0; z-index: 99999; display: none;
	align-items: center; justify-content: center; padding: 24px;
	background: rgba(10,10,12,.88); cursor: zoom-out;
}
.hx-lightbox.is-open { display: flex; }
.hx-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hx-lightbox button {
	position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; line-height: 44px; cursor: pointer;
}

/* ---------- responsive ---------- */
@media (min-width: 992px) {
	.hx-title { font-size: 34px; }
	.hx-tagline { font-size: 19px; }
	.hx-copy { padding-right: 24px; }
}
@media (max-width: 991px) {
	.hx-intro { padding: 36px 0 44px; }
	.hx-mosaic { margin-top: 36px; }
}
@media (max-width: 575px) {
	.hx-title { font-size: 25px; }
	.hx-tagline { font-size: 16px; }
	.hx-sub { font-size: 17px; }
	.hx-btn { width: 100%; }
	.hx-mosaic { gap: 8px; }
	.hx-shot { border-radius: 12px; }
	.hx-zh { flex-direction: column; gap: 12px; padding: 20px; }
	.hx-features { margin-top: 40px; }
}

/* ---------- แบนเนอร์หน้าแรก (data/banners.json) ---------- */
.hx-promo { padding: 8px 0 40px; background: #fff; }
.hx-promo-item {
	display: block; margin-bottom: 24px; border-radius: 16px; overflow: hidden;
	box-shadow: 0 16px 36px -22px rgba(16,24,40,.5); background: #f7f7f9;
}
.hx-promo-item img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
a.hx-promo-item:hover img { transform: scale(1.02); }
@media (max-width: 575px) { .hx-promo-item { border-radius: 12px; margin-bottom: 14px; } }
