/* =========================================================
   ส่วนประกอบที่เขียนเอง: image slider, gallery, lightbox
   + ส่วนปรับให้ธีม Porto (Bootstrap 4) แสดงผลเหมือนเดิมบน Bootstrap 5
   ========================================================= */

:root {
	--site-green: #7FBA32;
	--site-green-dark: #518E00;
}

/* ---------- Bootstrap 5 compatibility ---------- */
/* Bootstrap 5 ขีดเส้นใต้ลิงก์ทุกอัน ส่วน Bootstrap 4 (ที่ธีมออกแบบไว้) ไม่ขีด */
a { text-decoration: none; }
a:hover { text-decoration: underline; }
a.btn:hover, .nav a:hover, .header-nav a:hover, .site-gallery__item:hover { text-decoration: none; }

/* ---------- Image slider ---------- */
.site-slider {
	position: relative;
	overflow: hidden;
	background: #111;
	z-index: 0;
}
.site-slider__viewport {
	position: relative;
	aspect-ratio: 14 / 9;
}
.site-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s linear .9s;
}
.site-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .9s ease, visibility 0s;
}
.site-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.06);
	transition: transform 6s ease-out;
}
.site-slider__slide.is-active img { transform: scale(1); }

.site-slider__caption {
	position: absolute;
	left: 1.5%;
	right: 1.5%;
	bottom: 56px;
	padding: 22px 25px;
	border-radius: 10px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	text-align: center;
	font-weight: 400;
	line-height: 1.5;
	font-size: clamp(15px, 2.1vw, 30px);
}

.site-slider__arrow {
	position: absolute;
	top: 50%;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	opacity: .85;
	transition: background-color .2s, opacity .2s;
}
.site-slider__arrow:hover,
.site-slider__arrow:focus-visible { background: var(--site-green); opacity: 1; }
.site-slider__arrow--prev { left: 14px; }
.site-slider__arrow--next { right: 14px; }

.site-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.site-slider__dot {
	width: 28px;
	height: 10px;
	padding: 0;
	border: 2px solid var(--site-green);
	border-radius: 10px;
	background: rgba(255, 255, 255, .85);
	cursor: pointer;
	transition: background-color .2s, width .2s;
}
.site-slider__dot.is-active { background: var(--site-green); width: 40px; }

.site-slider button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 575px) {
	.site-slider__arrow { width: 36px; height: 36px; margin-top: -18px; font-size: 14px; }
	.site-slider__caption { bottom: 38px; padding: 10px 12px; }
	.site-slider__dots { bottom: 10px; }
}

/* ---------- Slick carousel (หน้าแรก) ---------- */
/* ลูกศรของ slick-theme อยู่นอกกรอบ (-25px) ทำให้มือถือเลื่อนซ้าย-ขวาได้ → ย้ายเข้ามาด้านใน */
.slide-center .slick-prev,
.slide-center .slick-next { z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .45); }
.slide-center .slick-prev { left: 10px; }
.slide-center .slick-next { right: 10px; }
.slide-center .slick-prev:hover,
.slide-center .slick-next:hover,
.slide-center .slick-prev:focus,
.slide-center .slick-next:focus { background: var(--site-green); }

/* ---------- Gallery (justified rows) ---------- */
.site-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.site-gallery::after {
	content: "";
	flex-grow: 999999; /* แถวสุดท้ายไม่ถูกยืดจนภาพใหญ่เกินไป */
}
.site-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: #e9e9e9;
}
.site-gallery__item i { display: block; }
.site-gallery__item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.site-gallery__item::after {
	content: "\f00e"; /* fa-search-plus */
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .25s ease;
}
.site-gallery__item:hover img,
.site-gallery__item:focus-visible img { transform: scale(1.05); }
.site-gallery__item:hover::after,
.site-gallery__item:focus-visible::after { opacity: 1; }
.site-gallery__item:focus-visible { outline: 3px solid var(--site-green); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.site-lightbox-open { overflow: hidden; }
.site-lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}
.site-lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.site-lightbox__figure {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 56px 70px 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.site-lightbox__image {
	max-width: 100%;
	max-height: calc(100vh - 160px);
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.site-lightbox__caption { font-size: 15px; text-align: center; opacity: .85; }
.site-lightbox__counter { position: fixed; top: 18px; left: 20px; font-size: 14px; opacity: .8; }
.site-lightbox__btn {
	position: fixed;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: background-color .2s;
}
.site-lightbox__btn:hover,
.site-lightbox__btn:focus-visible { background: var(--site-green); outline: none; }
.site-lightbox__close { top: 10px; right: 12px; }
.site-lightbox__prev { top: 50%; left: 12px; margin-top: -24px; }
.site-lightbox__next { top: 50%; right: 12px; margin-top: -24px; }
.site-lightbox.is-single .site-lightbox__prev,
.site-lightbox.is-single .site-lightbox__next,
.site-lightbox.is-single .site-lightbox__counter { display: none; }

@media (max-width: 575px) {
	.site-lightbox__figure { padding: 56px 8px 64px; }
	.site-lightbox__prev, .site-lightbox__next { top: auto; bottom: 10px; margin-top: 0; }
	.site-lightbox__prev { left: calc(50% - 60px); }
	.site-lightbox__next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
	.site-slider__slide, .site-slider__slide img, .site-gallery__item img { transition: none; }
	.site-slider__slide img { transform: none; }
}

/* ---------- ปุ่มติดต่อลอย (แสดงตลอด ไม่ต้องกดเปิด) ---------- */
.site-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 1040;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.site-fab__item {
	--fab-color: var(--site-green);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 18px 6px 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, .06);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
	color: #222;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.site-fab__item:hover,
.site-fab__item:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
	color: #111;
	text-decoration: none;
}
.site-fab__item:focus-visible { outline: 3px solid var(--fab-color); outline-offset: 2px; }
.site-fab__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--fab-color);
	color: #fff;
	font-size: 19px;
}
.site-fab__item--phone { --fab-color: #ff8800; }
.site-fab__item--messenger { --fab-color: #0a7cff; }
.site-fab__item--line { --fab-color: #06c755; }
.site-fab__item--phone .site-fab__icon { animation: site-fab-ring 2.4s ease-in-out infinite; }
.site-fab__label-short { display: none; }

@keyframes site-fab-ring {
	0%, 60%, 100% { box-shadow: 0 0 0 0 rgba(255, 136, 0, .45); }
	30% { box-shadow: 0 0 0 10px rgba(255, 136, 0, 0); }
}

/* มือถือ: แถบติดต่อด้านล่างเต็มความกว้าง */
@media (max-width: 767px) {
	body { padding-bottom: 68px; }
	.site-fab {
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: row;
		align-items: stretch;
		gap: 0;
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
	}
	.site-fab__item {
		flex: 1;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		padding: 4px 2px;
		border: 0;
		border-radius: 12px;
		background: transparent;
		box-shadow: none;
		font-size: 12px;
	}
	.site-fab__item:hover, .site-fab__item:focus-visible { transform: none; box-shadow: none; background: rgba(0, 0, 0, .04); }
	.site-fab__icon { width: 34px; height: 34px; font-size: 16px; }
	.site-fab__label-full { display: none; }
	.site-fab__label-short { display: inline; }
}

/* ---------- แบนเนอร์คุกกี้ (PDPA) ---------- */
.cookie-consent {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 1050;
	max-width: 440px;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__box {
	padding: 18px 20px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
	border-top: 4px solid var(--site-green);
	font-size: 14px;
	line-height: 1.6;
}
.cookie-consent__title { font-size: 18px; margin: 0 0 6px; color: #222; }
.cookie-consent__title i { color: var(--site-green); }
.cookie-consent__text { margin: 0 0 12px; color: #444; }
.cookie-consent__prefs { margin-bottom: 12px; display: grid; gap: 8px; }
.cookie-consent__prefs[hidden] { display: none; }
.cookie-consent__pref {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f5f7f2;
	cursor: pointer;
}
.cookie-consent__pref input { margin-top: 5px; accent-color: var(--site-green); width: 16px; height: 16px; flex-shrink: 0; }
.cookie-consent__pref small { color: #666; }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-consent__actions [hidden] { display: none; }

@media (max-width: 767px) {
	.cookie-consent { left: 8px; right: 8px; bottom: 76px; max-width: none; }
	.cookie-consent__box { max-height: calc(100vh - 100px); overflow-y: auto; }
	.cookie-consent__actions .btn { flex: 1 1 auto; }
}

.consent-placeholder {
	padding: 28px 18px;
	border-radius: 12px;
	background: #f5f7f2;
	text-align: center;
	color: #555;
}
.consent-placeholder .fa-facebook { color: #1877f2; }

/* ---------- FAQ ---------- */
.site-faq { background: #f4f6f1; }
.site-faq__list { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.site-faq__item {
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
	overflow: hidden;
}
.site-faq__item summary {
	position: relative;
	padding: 16px 52px 16px 20px;
	cursor: pointer;
	list-style: none;
	font-size: 17px;
	font-weight: 600;
	color: #2f4f0a;
}
.site-faq__item summary::-webkit-details-marker { display: none; }
.site-faq__item summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 50%;
	background: var(--site-green);
	color: #fff;
	text-align: center;
	line-height: 26px;
	font-weight: 700;
}
.site-faq__item[open] summary::after { content: "−"; }
.site-faq__item summary:focus-visible { outline: 3px solid var(--site-green); outline-offset: -3px; }
.site-faq__item p { padding: 0 20px 18px; color: #444; }

/* ---------- หน้านโยบาย / footer ---------- */
.policy-page h2 { font-size: 22px; margin-top: 28px; }
.policy-page li { margin-bottom: 6px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-legal__links a,
.footer-legal__links button { color: inherit; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- ส่วนผู้ดูแลระบบ ---------- */
.nav-admin .dropdown-menu form { margin: 0; }
.nav-admin .dropdown-menu button.dropdown-item { width: 100%; text-align: left; background: none; border: 0; }
.nav-admin .dropdown-item i { width: 18px; text-align: center; margin-right: 4px; }
.og-preview { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.og-preview img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }
.admin-stat { padding: 14px; border-radius: 12px; background: #f4f6f1; }
.admin-stat strong { display: block; font-size: 26px; color: var(--site-green-dark); }
.admin-stat span { font-size: 13px; color: #666; }

/* ---------- Hero หน้าแรก ---------- */
.site-hero {
	padding: 28px 0 36px;
	background: linear-gradient(180deg, #f3f8ec 0%, #fff 100%);
}
.site-hero__media { height: 100%; }
.site-hero__media .site-slider {
	height: 100%;
	border-radius: 18px;
	box-shadow: 0 14px 40px rgba(40, 70, 0, .18);
}
@media (min-width: 992px) {
	.site-hero__media .site-slider__viewport { aspect-ratio: auto; height: 100%; min-height: 520px; }
}
.site-hero__card {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px 26px 24px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 34px rgba(0, 0, 0, .08);
	border: 1px solid rgba(127, 186, 50, .18);
}
.site-hero__eyebrow {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(127, 186, 50, .14);
	color: var(--site-green-dark);
	font-size: 14px;
	font-weight: 700;
}
.site-hero__title {
	margin: 0;
	color: #1f3a00;
	font-size: clamp(22px, 2.1vw, 30px);
	line-height: 1.45;
	font-weight: 700;
	letter-spacing: 0;
}
.site-hero__lead { margin: 0; color: #555; font-size: 15px; line-height: 1.75; }
.site-hero__points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
	font-size: 15px;
	color: #333;
}
.site-hero__points i { color: var(--site-green); width: 20px; }
.site-hero__gallery .site-gallery { gap: 6px; flex-wrap: nowrap; }
.site-hero__gallery .site-gallery::after { display: none; }
.site-hero__gallery .site-gallery__item { border-radius: 10px; }
.site-hero__actions { margin-top: auto; display: grid; gap: 10px; }
.site-hero__call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 12px;
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(127, 186, 50, .35);
}
.site-hero__chat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-hero__line,
.site-hero__messenger {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 12px;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
}
.site-hero__line { background: #06c755; border-color: #06c755; }
.site-hero__messenger { background: #0a7cff; border-color: #0a7cff; }
.site-hero__line:hover, .site-hero__messenger:hover { color: #fff; filter: brightness(.94); text-decoration: none; }

@media (max-width: 991px) {
	.site-hero { padding: 0 0 24px; }
	.site-hero > .container-xl { padding-left: 0; padding-right: 0; }
	.site-hero .row { --bs-gutter-x: 0; }
	.site-hero__media .site-slider { border-radius: 0; box-shadow: none; }
	.site-hero__card { margin: -24px 14px 0; position: relative; z-index: 1; padding: 22px 18px; }
}

/* ---------- ผลงานล่าสุด (carousel) ---------- */
.site-works { padding: 34px 0 28px; background: #fff; }
.site-works__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.site-works__more { font-weight: 600; white-space: nowrap; }
.slide-center img {
	width: 300px;
	height: 225px;
	object-fit: cover;
	margin: 10px;
	border-radius: 14px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
@media (max-width: 575px) {
	.slide-center img { width: 240px; height: 180px; }
}

/* สไลด์แสดงภาพเต็มไม่ถูกตัด (แบนเนอร์มีตัวหนังสือ) + พื้นหลังเบลอจากภาพเดียวกัน */
.site-slider__slide { overflow: hidden; }
.site-slider__slide::before {
	content: "";
	position: absolute;
	inset: -30px;
	background: var(--slide-bg) center / cover no-repeat;
	filter: blur(22px) brightness(.75);
}
.site-slider__slide img { position: relative; object-fit: contain; }

/* ---------- Footer ---------- */
#footer.site-footer {
	position: relative;
	margin-top: 80px !important;
	padding: 0;
	border: 0;
	background: linear-gradient(160deg, #18240a 0%, #10180a 60%, #0c1208 100%);
	box-shadow: none;
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
}
#footer.site-footer a { color: rgba(255, 255, 255, .85); }
#footer.site-footer a:hover { color: #b6e07a; text-decoration: none; }

.site-footer__cta {
	position: relative;
	top: -48px;
	margin-bottom: -16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 26px 30px;
	border-radius: 20px;
	background: linear-gradient(120deg, #8BC53F 0%, #518E00 100%);
	box-shadow: 0 16px 40px rgba(60, 110, 0, .35);
	color: rgba(255, 255, 255, .9);
}
.site-footer__cta-title { margin: 0 0 4px; color: #fff; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
.site-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.site-footer__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
#footer.site-footer .site-footer__btn--call { background: #fff; color: #3d6b00; }
#footer.site-footer .site-footer__btn--call:hover { color: #3d6b00; }
#footer.site-footer .site-footer__btn--line { background: #06c755; color: #fff; }
#footer.site-footer .site-footer__btn--line:hover { color: #fff; }

.site-footer__main { padding-bottom: 28px; }
.site-footer__logo { display: inline-block; padding: 8px 14px; border-radius: 12px; background: #fff; margin-bottom: 14px; }
.site-footer__logo img { display: block; width: 200px; height: auto; }
.site-footer__about { line-height: 1.75; margin-bottom: 16px; }
.site-footer__social { display: flex; gap: 10px; }
#footer.site-footer .site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 17px;
	transition: background-color .2s, transform .2s;
}
#footer.site-footer .site-footer__social a:hover { background: var(--site-green); color: #fff; transform: translateY(-2px); }

.site-footer__heading {
	position: relative;
	margin: 0 0 16px;
	padding-bottom: 10px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}
.site-footer__heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 3px;
	border-radius: 3px;
	background: var(--site-green);
}
.site-footer__links, .site-footer__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__links a::before { content: "›"; color: var(--site-green); font-weight: 700; }
#footer.site-footer .site-footer__links a[aria-current="page"] { color: #b6e07a; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.site-footer__contact i { width: 18px; margin-top: 3px; color: var(--site-green); text-align: center; }
.site-footer__qr {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	padding: 8px 14px 8px 8px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .1);
	font-size: 14px;
}
.site-footer__qr img { width: 72px; height: 72px; border-radius: 8px; background: #fff; }

.site-footer__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site-footer__stat {
	padding: 10px 6px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
	text-align: center;
}
.site-footer__stat strong { display: block; color: #fff; font-size: 18px; line-height: 1.3; }
.site-footer__stat span { font-size: 12px; color: rgba(255, 255, 255, .6); }

.site-footer__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 22px 0 28px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}
#footer.site-footer .site-footer__tags a {
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	font-size: 13px;
	color: rgba(255, 255, 255, .75);
}
#footer.site-footer .site-footer__tags a:hover { background: var(--site-green); color: #fff; }

.site-footer__bottom {
	padding: 16px 0;
	background: rgba(0, 0, 0, .3);
	font-size: 14px;
	color: rgba(255, 255, 255, .6);
}
#footer.site-footer .site-footer__bottom .footer-legal__links a,
#footer.site-footer .site-footer__bottom .footer-legal__links button { color: rgba(255, 255, 255, .75); text-decoration: none; }
#footer.site-footer .site-footer__bottom .footer-legal__links a:hover,
#footer.site-footer .site-footer__bottom .footer-legal__links button:hover { color: #b6e07a; }

@media (max-width: 767px) {
	#footer.site-footer { margin-top: 64px !important; }
	.site-footer__cta { padding: 22px 20px; text-align: center; justify-content: center; }
	.site-footer__cta-actions { width: 100%; }
	.site-footer__btn { flex: 1; justify-content: center; }
	.site-footer__bottom .footer-legal { flex-direction: column; text-align: center; align-items: center; }
}

/* ---------- ปุ่ม hero แบบมีลูกเล่น ---------- */
.hero-btn {
	--btn-a: #8BC53F;
	--btn-b: #4f8a00;
	--btn-glow: rgba(127, 186, 50, .45);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px 10px 10px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
	color: #fff;
	box-shadow: 0 8px 22px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
	transition: transform .25s cubic-bezier(.2, .8, .2, 1.2), box-shadow .25s ease;
	text-decoration: none;
}
.hero-btn:hover,
.hero-btn:focus-visible {
	color: #fff;
	text-decoration: none;
	transform: translateY(-3px) scale(1.015);
	box-shadow: 0 14px 30px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.hero-btn:active { transform: translateY(0) scale(.98); }
.hero-btn:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

/* แสงวิ่งผ่านปุ่ม */
.hero-btn::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: -60%;
	width: 45%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	transition: left .6s ease;
}
.hero-btn:hover::before { left: 120%; }

.hero-btn__icon {
	position: relative;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .22);
	font-size: 22px;
	transition: transform .3s ease;
}
.hero-btn:hover .hero-btn__icon { animation: hero-btn-bounce .6s ease; }
.hero-btn__text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.hero-btn__text small { font-size: 13px; opacity: .9; }
.hero-btn__text strong { font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.hero-btn__arrow { margin-left: auto; font-size: 16px; transition: transform .25s ease; }
.hero-btn:hover .hero-btn__arrow { transform: translateX(5px); }

/* ปุ่มโทร: ใหญ่สุด มีวงคลื่นและไอคอนสั่น ดึงดูดสายตา */
.hero-btn--call {
	--btn-a: #ff9a1f;
	--btn-b: #f15a00;
	--btn-glow: rgba(241, 90, 0, .4);
	padding: 12px 20px 12px 12px;
}
.hero-btn--call .hero-btn__icon { width: 52px; height: 52px; border-radius: 50%; font-size: 22px; }
.hero-btn--call .hero-btn__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .8);
	animation: hero-btn-pulse 1.8s ease-out infinite;
}
.hero-btn--call .hero-btn__icon i { animation: hero-btn-ring 2.2s ease-in-out infinite; }
.hero-btn--call .hero-btn__text strong { font-size: 22px; }
.hero-btn--call::before { animation: hero-btn-shine 4s ease-in-out infinite; }

.hero-btn--line { --btn-a: #20d86a; --btn-b: #04a746; --btn-glow: rgba(6, 199, 85, .35); }
.hero-btn--messenger { --btn-a: #3fa0ff; --btn-b: #6a36ff; --btn-glow: rgba(70, 100, 255, .35); }

@keyframes hero-btn-pulse {
	0% { transform: scale(1); opacity: .9; }
	100% { transform: scale(1.6); opacity: 0; }
}
@keyframes hero-btn-ring {
	0%, 50%, 100% { transform: rotate(0); }
	5%, 15%, 25% { transform: rotate(-14deg); }
	10%, 20%, 30% { transform: rotate(14deg); }
}
@keyframes hero-btn-bounce {
	0%, 100% { transform: translateY(0); }
	40% { transform: translateY(-5px) rotate(-6deg); }
	70% { transform: translateY(2px) rotate(3deg); }
}
@keyframes hero-btn-shine {
	0%, 70% { left: -60%; }
	100% { left: 120%; }
}

@media (max-width: 400px) {
	.site-hero__chat .hero-btn { padding: 8px 10px 8px 8px; gap: 8px; }
	.site-hero__chat .hero-btn__icon { width: 38px; height: 38px; font-size: 18px; }
	.site-hero__chat .hero-btn__text strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-btn, .hero-btn::before, .hero-btn__arrow { transition: none; }
	.hero-btn--call::before, .hero-btn--call .hero-btn__icon::after, .hero-btn--call .hero-btn__icon i, .hero-btn:hover .hero-btn__icon { animation: none; }
}

/* ---------- หัวหน้าเพจ (ผลงาน / ติดต่อ) ---------- */
.page-hero {
	position: relative;
	padding: 46px 0 52px;
	background: linear-gradient(120deg, rgba(60, 110, 0, .92), rgba(127, 186, 50, .82)), var(--page-hero-bg) center / cover;
	color: #fff;
	overflow: hidden;
}
.page-hero::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
}
.page-hero__crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; }
.page-hero__crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.page-hero__crumbs a { color: rgba(255, 255, 255, .85); }
.page-hero__crumbs a:hover { color: #fff; }
.page-hero__title { margin: 0 0 8px; color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
.page-hero__lead { margin: 0; max-width: 720px; font-size: 16px; opacity: .92; }

/* ---------- หน้าผลงาน + การ์ดผลงาน ---------- */
.works-page { padding: 34px 0 20px; background: #f6f8f3; }
.works-page__bar { margin-bottom: 18px; color: #555; }
.works-page__bar strong { color: var(--site-green-dark); font-size: 20px; }

.work-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
	color: #222;
	text-decoration: none;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.work-card:hover, .work-card:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(40, 70, 0, .18); color: #222; text-decoration: none; }
.work-card:focus-visible { outline: 3px solid var(--site-green); outline-offset: 2px; }
.work-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9ece4; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .work-card__media img { transform: scale(1.08); }
.work-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35));
}
.work-card__badge {
	position: absolute;
	z-index: 1;
	right: 10px;
	bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 12px;
}
.work-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.work-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 600;
}
.work-card__price { color: #d23; font-weight: 700; }
.work-card__more { margin-top: auto; color: var(--site-green-dark); font-size: 14px; font-weight: 700; }
.work-card__more i { transition: transform .25s ease; }
.work-card:hover .work-card__more i { transform: translateX(4px); }

.works-cta { padding: 20px 0 10px; background: #f6f8f3; }
.works-cta__box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 26px 28px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .07);
	border: 1px solid rgba(127, 186, 50, .2);
}
.works-cta__title { margin: 0 0 4px; color: #1f3a00; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
.works-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 575px) {
	.works-cta__actions, .works-cta__actions .hero-btn { width: 100%; }
	.work-card__body { padding: 10px 12px 12px; }
	.work-card__title { font-size: 14px; }
}

/* ---------- หน้าติดต่อเรา ---------- */
.contact-page { padding: 34px 0 10px; background: #f6f8f3; }
.contact-card {
	--c: var(--site-green);
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
	color: #222;
	text-decoration: none;
	overflow: hidden;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.contact-card::before {
	content: "";
	position: absolute;
	top: -40px;
	right: -40px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: var(--c);
	opacity: .08;
	transition: transform .4s ease;
}
.contact-card:hover, .contact-card:focus-visible { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0, 0, 0, .12); color: #222; text-decoration: none; }
.contact-card:hover::before { transform: scale(2.4); }
.contact-card:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.contact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 10px;
	border-radius: 16px;
	background: var(--c);
	color: #fff;
	font-size: 24px;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 40%, transparent);
}
.contact-card__label { color: #777; font-size: 14px; }
.contact-card__value { font-size: 20px; line-height: 1.35; word-break: break-word; }
.contact-card__action { margin-top: 10px; color: var(--c); font-weight: 700; font-size: 15px; }
.contact-card__action i { transition: transform .25s ease; }
.contact-card:hover .contact-card__action i { transform: translateX(5px); }
.contact-card--phone { --c: #f15a00; }
.contact-card--line { --c: #06c755; }
.contact-card--messenger { --c: #3b7bff; }
.contact-card--facebook { --c: #1877f2; }
.contact-card--email { --c: #6b7280; }

.contact-steps { margin-top: 24px; padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.contact-steps__title { margin: 0 0 16px; color: #1f3a00; font-size: 22px; font-weight: 700; }
.contact-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.contact-steps li { display: flex; gap: 14px; align-items: flex-start; }
.contact-steps li > span {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, #8BC53F, #518E00);
	color: #fff;
	font-weight: 700;
}
.contact-steps p { margin: 2px 0 0; color: #555; font-size: 15px; }

.contact-area {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-top: 16px;
	padding: 18px 22px;
	border-radius: 18px;
	background: linear-gradient(120deg, #8BC53F, #518E00);
	color: #fff;
}
.contact-area i { font-size: 30px; opacity: .9; }

.contact-qr {
	display: flex;
	gap: 18px;
	align-items: center;
	padding: 20px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
.contact-qr img { width: 130px; height: 130px; border-radius: 12px; border: 3px solid #06c755; }
.contact-qr strong { color: #06a748; font-size: 18px; }
.contact-qr p { color: #555; font-size: 14px; margin-top: 4px; }
.contact-fb { margin-top: 16px; border-radius: 18px; overflow: hidden; }
.contact-fb .consent-placeholder { border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }

/* ---------- หน้ารายละเอียดผลงาน ---------- */
.project-page { padding: 32px 0 24px; background: #f6f8f3; }
.project-media { display: grid; gap: 10px; }
.project-media .site-gallery__item { border-radius: 14px; }
.project-media__main { aspect-ratio: 4 / 3; border-radius: 18px !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.project-media__zoom {
	position: absolute;
	z-index: 2;
	left: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}
.project-media__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.project-media__thumb { aspect-ratio: 1 / 1; }
.project-media__more {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
}

.project-info {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
}
.project-info__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.project-info__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #f1f6ea;
	color: #3d6b00;
	font-size: 13px;
	font-weight: 600;
}
.project-info__content { color: #444; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.project-info__content img { max-width: 100%; height: auto; border-radius: 10px; }
.project-info__content p:last-child { margin-bottom: 0; }
.project-info__cta { display: grid; gap: 10px; padding-top: 16px; border-top: 1px dashed #dfe6d6; }
.project-info__cta-title { margin: 0; color: #1f3a00; font-weight: 700; font-size: 17px; }

.project-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #666; font-size: 14px; }
.project-share > span:first-child { margin-right: 4px; }
.project-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	transition: transform .2s ease, filter .2s ease;
}
.project-share__btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; text-decoration: none; }
.project-share__btn--fb { background: #1877f2; }
.project-share__btn--line { background: #06c755; }
.project-share__btn--copy { background: #6b7280; }
.project-share__copied { color: var(--site-green-dark); font-weight: 600; }

.project-related { padding: 30px 0 10px; background: #fff; }
.project-related .site-works__head { margin-bottom: 18px; }

@media (max-width: 991px) {
	.project-info { position: static; }
}
@media (max-width: 575px) {
	.project-media__thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
	.project-info { padding: 18px; }
}
.page-hero__crumbs li[aria-current] { max-width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .85; }
@media (max-width: 575px) { .page-hero__crumbs li[aria-current] { max-width: 60vw; } }

/* ---------- Hero แบบเต็มความกว้าง (col-md-12): สไลด์ด้านบน การ์ดข้อมูลด้านล่าง ---------- */
.site-hero__media { height: auto; }
.site-hero__media .site-slider { height: auto; }
.site-hero__media .site-slider__viewport,
.site-hero__media .site-slider__viewport[style] { aspect-ratio: 14 / 9; height: auto; min-height: 0; max-height: 80vh; width: 100%; }
@media (min-width: 992px) {
	.site-hero__media .site-slider__viewport { aspect-ratio: 16 / 9; }
	.site-hero__card {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 18px 36px;
		align-items: center;
		margin-top: -70px;
		position: relative;
		z-index: 2;
		margin-left: 28px;
		margin-right: 28px;
		padding: 28px 32px;
	}
}
.site-hero__info, .site-hero__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.site-hero__side .site-hero__actions { margin-top: 0; }

/* ---------- บริการของเรา ---------- */
.site-services {
	position: relative;
	padding: 64px 0 56px;
	background: linear-gradient(150deg, rgba(31, 58, 0, .94) 0%, rgba(66, 118, 0, .9) 60%, rgba(111, 170, 35, .88) 100%), var(--services-bg) center / cover;
	color: #fff;
	overflow: hidden;
}
.site-services::before {
	content: "";
	position: absolute;
	top: -140px;
	left: -120px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
}
.site-services__head { position: relative; text-align: center; margin-bottom: 34px; }
.site-services__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .25);
	font-size: 14px;
	font-weight: 700;
}
.site-services__title { margin: 14px 0 6px; color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
.site-services__lead { margin: 0; opacity: .85; }

.site-services__photos { position: relative; height: 100%; }
.site-services__photos .site-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 100%; }
.site-services__photos .site-gallery::after { display: none; }
.site-services__photos .site-gallery__item { border-radius: 16px; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); min-height: 150px; }
.site-services__photos .site-gallery__item i { display: none; }
.site-services__badge {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 16px;
	background: #fff;
	color: #1f3a00;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
	white-space: nowrap;
	pointer-events: none;
}
.site-services__badge i { font-size: 26px; color: var(--site-green); }
.site-services__badge span { display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; color: #555; }
.site-services__badge strong { color: #1f3a00; font-size: 17px; }

.service-card {
	height: 100%;
	padding: 22px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .17); box-shadow: 0 16px 34px rgba(0, 0, 0, .22); }
.service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 14px;
	border-radius: 16px;
	background: #fff;
	color: var(--site-green-dark);
	font-size: 24px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
	transition: transform .4s ease;
}
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.08); }
.service-card__title { margin: 0 0 8px; color: #fff; font-size: 19px; font-weight: 700; }
.service-card__text { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.7; }

.site-services__cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 34px;
	padding: 24px 28px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .22);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.site-services__quote { margin: 0; flex: 1 1 360px; font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; line-height: 1.6; }
.site-services__quote span { display: block; font-size: 15px; font-weight: 400; opacity: .8; margin-top: 4px; }
.site-services__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 991px) {
	.site-services { padding: 48px 0 40px; }
	.site-services__photos .site-gallery__item { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 575px) {
	.site-services__actions, .site-services__actions .hero-btn { width: 100%; }
	.site-services__cta { padding: 18px; }
}
/* การ์ดอยู่ใต้สไลด์แล้ว ให้สูงตามเนื้อหา (เดิม height:100% ทำให้พื้นหลังสั้นกว่าเนื้อหา) */
.site-hero__card { height: auto; }
.site-hero .row > .col-md-12 { height: auto; }
/* การ์ดข้อมูลไม่ซ้อนทับสไลด์ — วางต่อจากสไลด์ */
.site-hero__card { margin-top: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
/* สไลด์หน้าแรกใช้อัตราส่วน 16:9 ทุกขนาดจอ */
.site-hero__media .site-slider__viewport,
.site-hero__media .site-slider__viewport[style] { aspect-ratio: 16 / 9 !important; max-height: none !important; height: auto !important; min-height: 0 !important; }
/* สไลด์ไม่ต้อง pan / zoom ภาพ — เปลี่ยนภาพแบบจางเข้า-ออกอย่างเดียว */
.site-slider__slide img,
.site-slider__slide.is-active img { transform: none !important; transition: none !important; animation: none !important; }
