/* ===== Header + Footer (Modern) ===== */
:root {
	--l-green: #099F00;
	--l-green-dark: #067a00;
	--l-ink: #1f2933;
	--l-topbar-h: 40px;
}

/* Safari: overflow-x hidden ของธีมทำให้ sticky ไม่ทำงาน */
html.safari .body {
	overflow-x: clip;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: calc(-1 * var(--l-topbar-h));
	z-index: 1030;
	font-family: 'Maitree', serif;
}

.site-topbar {
	height: var(--l-topbar-h);
	background: linear-gradient(90deg, #067a00, #099F00);
	color: #e8f7e6;
	font-size: 14px;
}

.site-topbar .container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-topbar__info {
	display: flex;
	align-items: center;
	gap: 22px;
	white-space: nowrap;
	overflow: hidden;
}

.site-topbar__info i { margin-right: 4px; opacity: .85; }
.site-topbar a { color: #FFF; text-decoration: none; }
.site-topbar a:hover { text-decoration: underline; }

.site-topbar__social {
	display: flex;
	align-items: center;
	gap: 6px;
}

.site-topbar__social > a {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .15);
	transition: background .2s ease;
}

.site-topbar__social > a:hover { background: rgba(255, 255, 255, .3); text-decoration: none; }
.site-topbar__social .fb-like { margin-right: 6px; line-height: 0; }

.site-navbar {
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	transition: box-shadow .25s ease;
}

.site-navbar.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45); }

.site-navbar .container {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 92px;
	transition: min-height .25s ease;
}

.site-navbar.is-scrolled .container { min-height: 72px; }

.site-logo { flex: 0 0 auto; line-height: 0; }

.site-logo img {
	height: 68px;
	width: auto;
	transition: height .25s ease;
}

.site-navbar.is-scrolled .site-logo img { height: 52px; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.site-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	color: #374151;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease;
}

.site-nav a i { font-size: 14px; color: #9ca3af; transition: color .2s ease; }
.site-nav a:hover { background: #f1faf0; color: var(--l-green-dark); }
.site-nav a:hover i { color: var(--l-green); }
.site-nav a.is-active { background: var(--l-green); color: #FFF; }
.site-nav a.is-active i { color: #FFF; }

.site-cta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-cta__tel {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 5px 18px 5px 5px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffa31a, #ff6a00);
	color: #FFF !important;
	text-decoration: none !important;
	box-shadow: 0 10px 22px -12px #ff6a00;
	transition: transform .2s ease, filter .2s ease;
}

.site-cta__icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-cta__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-cta__text small { font-size: 12px; opacity: .9; }
.site-cta__text strong { font-size: 16px; white-space: nowrap; }

.site-cta__line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, #22d34a, #06b329);
	color: #FFF !important;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 10px 22px -12px #06b329;
	transition: transform .2s ease, filter .2s ease;
}

.site-cta__line i { font-size: 18px; }
.site-cta__tel:hover, .site-cta__line:hover { transform: translateY(-2px); filter: brightness(1.05); }

@media (max-width: 1199px) {
	.site-cta__line { display: none; }
	.site-nav a { padding: 10px 12px; }
}

/* mobile / tablet: ซ่อนแถบบนและปุ่มโทร (มีแถบติดต่อด้านล่างจอแล้ว) เมนูเป็นแถบเลื่อนแนวนอน */
@media (max-width: 991px) {
	:root { --l-topbar-h: 0px; }
	.site-topbar { display: none; }

	.site-navbar .container {
		flex-wrap: wrap;
		gap: 0;
		min-height: 0;
		padding-top: 10px;
	}

	.site-navbar.is-scrolled .container { min-height: 0; }
	.site-logo { margin: 0 auto 8px; }
	.site-logo img { height: 52px; }
	.site-navbar.is-scrolled .site-logo img { height: 40px; }
	.site-cta { display: none; }

	.site-nav {
		width: 100%;
		margin: 0 -15px;
		padding: 0 15px 10px;
		justify-content: center;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.site-nav::-webkit-scrollbar { display: none; }
	.site-nav a { flex: 0 0 auto; padding: 8px 14px; font-size: 15px; background: #f3f4f6; }
	.site-nav a.is-active { background: var(--l-green); }
}

@media (max-width: 400px) {
	.site-nav { gap: 6px; }
	.site-nav a { padding: 8px 12px; font-size: 14px; }
	.site-nav a i { display: none; }
}

/* ---------- Footer ---------- */
#footer.site-footer {
	position: relative;
	margin-top: 0;
	padding: 48px 0 0;
	border-top: 0;
	background:
		radial-gradient(900px 300px at 0% 0%, rgba(9, 159, 0, .18), transparent 60%),
		radial-gradient(700px 300px at 100% 100%, rgba(255, 136, 0, .10), transparent 60%),
		#0f1712;
	box-shadow: none;
	color: #c9d3cc;
	font-family: 'Maitree', serif;
	font-size: 15px;
}

#footer.site-footer a { color: #e5ece7; text-decoration: none; transition: color .2s ease; }
#footer.site-footer a:hover { color: #6fe36a; }

.footer-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	margin: 0 0 44px;
	border-radius: 22px;
	background: linear-gradient(120deg, #099F00, #0bbf3a);
	box-shadow: 0 24px 50px -24px rgba(9, 159, 0, .9);
}

.footer-cta__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #eaffea;
	background: rgba(255, 255, 255, .16);
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.footer-cta h2 {
	margin: 0 0 4px;
	font-size: 24px;
	line-height: 1.4;
	font-weight: 700;
	color: #FFF;
}

.footer-cta p { color: #eaffea !important; font-size: 15px; }

.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
#footer .footer-cta .contact-btn { color: #FFF; }
#footer .footer-cta .contact-btn--line { background: #FFF; color: #06a325 !important; box-shadow: none; }

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1.2fr .9fr 1fr;
	gap: 36px;
	padding-bottom: 36px;
}

.footer-title {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #FFF;
}

.footer-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 3px;
	border-radius: 3px;
	background: var(--l-green);
}

.footer-logo img { height: 60px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: #a9b5ad !important; line-height: 26px !important; margin-bottom: 18px !important; }

.footer-social { display: flex; gap: 8px; }

#footer .footer-social a {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .08);
	font-size: 18px;
	transition: background .2s ease, transform .2s ease;
}

#footer .footer-social a:hover { background: var(--l-green); color: #FFF; transform: translateY(-2px); }

.footer-contact, .footer-links, .footer-stats { list-style: none; margin: 0; padding: 0; }

.footer-contact li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 12px;
	line-height: 1.5;
}

.footer-contact i {
	flex: 0 0 30px;
	height: 30px;
	border-radius: 9px;
	background: rgba(9, 159, 0, .18);
	color: #6fe36a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	margin-top: -3px;
}

.footer-links li { margin-bottom: 10px; }

#footer .footer-links a { display: inline-flex; align-items: center; gap: 8px; }
#footer .footer-links a::before { content: "\203A"; color: var(--l-green); font-size: 18px; line-height: 1; transition: transform .2s ease; }
#footer .footer-links a:hover::before { transform: translateX(3px); }

.footer-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.footer-stats li {
	display: flex;
	flex-direction: column;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .06);
}

.footer-stats span { font-size: 12px; color: #93a198; }
.footer-stats strong { font-size: 17px; color: #FFF; }
.footer-stats li.is-total { grid-column: 1 / -1; background: rgba(9, 159, 0, .2); border-color: rgba(9, 159, 0, .35); }
.footer-stats li.is-total strong { font-size: 20px; color: #8ef08a; }

.footer-tags {
	padding: 26px 0 30px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-tags__list { display: flex; flex-wrap: wrap; gap: 8px; }

#footer .footer-tags .badge {
	margin: 0 !important;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06) !important;
	border: 1px solid rgba(255, 255, 255, .1);
	color: #cfd8d2 !important;
	font-family: 'Maitree', serif;
	font-size: 13px;
	font-weight: 400;
	transition: background .2s ease, color .2s ease;
}

#footer .footer-tags .badge:hover { background: var(--l-green) !important; color: #FFF !important; }

.footer-bottom {
	background: rgba(0, 0, 0, .3);
	border-top: 1px solid rgba(255, 255, 255, .06);
	padding: 18px 0;
	font-size: 14px;
}

.footer-bottom .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
}

/* desktop: ชิดซ้ายทั้งหมด เพื่อไม่ให้ปุ่มติดต่อลอยมุมขวาบังลิงก์ */
@media (min-width: 992px) {
	.footer-bottom .container { justify-content: flex-start; }
	.footer-bottom__links::before { content: "|"; color: #4b5a50; margin-right: 6px; }
}

.footer-bottom__copy { color: #93a198 !important; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#footer .footer-bottom__links a { color: #b8c4bc; }

/* footer: tablet */
@media (max-width: 991px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
	.footer-cta { flex-direction: column; align-items: flex-start; }
}

/* footer: mobile */
@media (max-width: 767px) {
	#footer.site-footer { padding-top: 28px; }
	.footer-cta { padding: 22px; margin-bottom: 32px; }
	.footer-cta h2 { font-size: 20px; }
	.footer-cta__actions { width: 100%; }
	.footer-cta__actions .contact-btn { flex: 1 1 auto; justify-content: center; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.footer-bottom .container { flex-direction: column; text-align: center; }
	.footer-bottom__links { justify-content: center; }
}
