/* LINTEC (THAILAND) — stylesheet หลักของเว็บ */

:root {
	--brand: #1a4fa0;
	--brand-dark: #0f2f66;
	--brand-light: #e8f0fb;
	--text: #1f2733;
	--text-muted: #5b6676;
	--border: #e2e7ef;
	--bg: #ffffff;
	--bg-soft: #f5f8fc;
	--radius: 12px;
	--shadow: 0 4px 20px rgba(15, 47, 102, .08);
	--container: 1140px;
	--font-body: "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
	--font-head: "Prompt", "Noto Sans Thai", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.35;
	color: var(--brand-dark);
	margin: 0 0 .6em;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.muted { color: var(--text-muted); }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 16px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }
.brand img { width: 150px; }
.brand-name {
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 500;
	color: var(--text-muted);
	padding-left: 14px;
	border-left: 1px solid var(--border);
	white-space: nowrap;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.site-nav a {
	display: block;
	padding: 8px 14px;
	border-radius: 8px;
	color: var(--text);
	font-weight: 500;
	white-space: nowrap;
}

.site-nav a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.site-nav a.active { background: var(--brand); color: #fff; }

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	margin: 5px 0;
	background: var(--brand-dark);
	transition: transform .2s, opacity .2s;
}

/* ---------- Hero / page banner ---------- */

.hero {
	position: relative;
	min-height: 460px;
	display: flex;
	align-items: flex-end;
	color: #fff;
	background: var(--brand-dark) url("../img/picture1.jpg") center / cover no-repeat;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 33, 74, .88) 0%, rgba(10, 33, 74, .55) 45%, rgba(10, 33, 74, .05) 100%);
}

.hero .container { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 46px); margin-bottom: .3em; }
.hero p { max-width: 560px; font-size: 18px; margin: 0 0 28px; color: rgba(255, 255, 255, .92); }
.hero .eyebrow { color: #9cc2ff; }

.eyebrow {
	display: inline-block;
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: 8px;
}

.page-banner {
	background: linear-gradient(120deg, var(--brand-dark), var(--brand));
	color: #fff;
	padding: 48px 0 44px;
}

.page-banner h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.page-banner p { margin: 6px 0 0; color: rgba(255, 255, 255, .85); }
.page-banner .eyebrow { color: #9cc2ff; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-weight: 600;
	border: 2px solid var(--brand);
	transition: background .2s, color .2s;
}

.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }
.btn-light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-light:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.prose p { margin: 0 0 1em; }

.figure {
	margin: 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.figure img { margin: 0 auto; }

.card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.card-body { padding: 24px; }

.grid {
	display: grid;
	gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ลิงก์ไปหน้าอื่นบนหน้าแรก */
.link-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	color: var(--text);
	transition: transform .2s, box-shadow .2s;
}

.link-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15, 47, 102, .14); text-decoration: none; }
.link-card h3 { margin: 0; font-size: 19px; }
.link-card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.link-card .more { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 600; font-size: 15px; }

.icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: var(--brand-light);
	color: var(--brand);
	margin-bottom: 8px;
}

.icon svg { width: 22px; height: 22px; }

/* ---------- Lintec Global ---------- */

.office h3 { font-size: 18px; margin-bottom: 4px; }
.office .country {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--brand);
	background: var(--brand-light);
	border-radius: 999px;
	padding: 2px 12px;
	margin-bottom: 12px;
}

.info-list { margin: 0; }
.info-list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.info-list dt { color: var(--text-muted); font-size: 14px; }
.info-list dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Products ---------- */

.product-cat .cat-banner { aspect-ratio: 380 / 100; width: 100%; object-fit: cover; }
.product-cat h2 { font-size: 20px; margin-bottom: 16px; }

.product-item {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 16px;
	align-items: start;
	padding: 16px 0;
	border-top: 1px solid var(--border);
}

.product-item img { width: 96px; border-radius: 8px; border: 1px solid var(--border); }
.product-item h3 { font-size: 16px; margin: 0 0 4px; color: var(--text); }
.product-item p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ---------- Recruit ---------- */

.job { margin-bottom: 24px; }
.job-body { overflow-wrap: anywhere; }
.job-body table { max-width: 100%; }
.job-dates {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	font-size: 14px;
	color: var(--text-muted);
}

.empty-state {
	text-align: center;
	padding: 48px 24px;
	color: var(--text-muted);
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 10px 0; border-top: 1px solid var(--border); }
.contact-list li:first-child { border-top: 0; }
.contact-list strong { display: block; font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ---------- Map ---------- */

.map-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}

.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */

.site-footer {
	background: var(--brand-dark);
	color: rgba(255, 255, 255, .82);
	font-size: 15px;
}

.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer .muted { color: rgba(255, 255, 255, .6); }

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 40px;
}

.footer-logo {
	background: #fff;
	padding: 8px 12px;
	border-radius: 8px;
	margin-bottom: 16px;
	width: 160px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 18px 0;
	font-size: 14px;
	color: rgba(255, 255, 255, .6);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.brand-name { display: none; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
	}

	.nav-open .site-nav { display: block; }
	.site-nav ul { flex-direction: column; padding: 12px 20px 20px; }
	.site-nav a { padding: 12px 14px; }

	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.split, .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 32px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
	.section { padding: 52px 0; }
	.hero { min-height: 380px; }
}

@media (max-width: 560px) {
	.container { padding: 0 16px; }
	.brand img { width: 128px; }
	.grid-4 { grid-template-columns: 1fr; }
	.hero p { font-size: 16px; }
	.hero::before { background: linear-gradient(0deg, rgba(10, 33, 74, .92) 0%, rgba(10, 33, 74, .55) 70%, rgba(10, 33, 74, .3) 100%); }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.info-list div { grid-template-columns: 1fr; gap: 0; }
	.product-item { grid-template-columns: 72px 1fr; }
	.product-item img { width: 72px; }
}
