/* =========================================================
   site-extra.css
   - ปุ่มติดต่อลอย (Contact FAB) แบบแสดงข้อมูลตลอด
   - Cookie consent (PDPA)
   - แกลเลอรีภาพ + lightbox (แทน unitegallery)
   - ส่วนสรุปบริการ / FAQ (AEO)
   - เมนูแอดมิน / หน้าแอดมิน / หน้านโยบาย
   ========================================================= */
:root{
	--brand: #157734;
	--brand-2: #119d3d;
	--brand-ink: #0e5a26;
	--line: #06c755;
	--call: #f97316;
	--msg: #0a7cff;
	--ink: #1f2933;
	--muted: #5f6b76;
	--card: #ffffff;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .08);
	--cc-h: 0px;
}

/* ---------------- Contact FAB ---------------- */
.contact-fab{
	position: fixed; right: 18px; bottom: 18px; z-index: 1040;
	display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
	transition: bottom .3s ease;
}
.cc-visible .contact-fab{ bottom: calc(var(--cc-h) + 28px); }
.contact-fab-item{
	display: flex; align-items: center; gap: 10px;
	padding: 6px 16px 6px 6px; min-width: 190px;
	background: rgba(255,255,255,.96); color: var(--ink) !important;
	border: 1px solid rgba(16,24,40,.06); border-radius: 999px;
	box-shadow: var(--shadow); text-decoration: none !important;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transition: transform .18s ease, box-shadow .18s ease;
}
.contact-fab-item:hover, .contact-fab-item:focus-visible{
	transform: translateY(-2px);
	box-shadow: 0 16px 36px rgba(16,24,40,.2), 0 3px 8px rgba(16,24,40,.1);
}
.contact-fab-item:focus-visible{ outline: 3px solid rgba(21,119,52,.45); outline-offset: 2px; }
.contact-fab-icon{
	flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; color: #fff; font-size: 20px;
	position: relative;
}
.contact-fab-line .contact-fab-icon{ background: var(--line); font-size: 24px; }
.contact-fab-tel .contact-fab-icon{ background: linear-gradient(135deg, #fb923c, var(--call)); }
.contact-fab-msg .contact-fab-icon{ background: linear-gradient(135deg, #00b2ff, var(--msg)); }
.contact-fab-tel .contact-fab-icon::after{
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(249,115,22,.55);
	animation: fab-ring 2.4s ease-out infinite;
}
@keyframes fab-ring{
	0%{ box-shadow: 0 0 0 0 rgba(249,115,22,.5); }
	70%{ box-shadow: 0 0 0 12px rgba(249,115,22,0); }
	100%{ box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}
.contact-fab-text{ display: flex; flex-direction: column; line-height: 1.2; font-family: 'Noto Sans Thai', sans-serif; }
.contact-fab-text small{ font-size: 12px; color: var(--muted); }
.contact-fab-text strong{ font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ย้ายปุ่มเลื่อนขึ้นบนสุดของธีมไปฝั่งซ้าย ไม่ให้ทับปุ่มติดต่อ */
html .scroll-to-top{ right: auto !important; left: 15px; }

@media (max-width: 767px){
	body{ padding-bottom: 74px; }
	html .scroll-to-top{ bottom: 84px; }
	.contact-fab{
		left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; align-items: stretch;
		background: rgba(255,255,255,.97); box-shadow: 0 -6px 20px rgba(16,24,40,.12);
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	}
	.cc-visible .contact-fab{ bottom: 0; }
	.contact-fab-item{
		flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; justify-content: center;
		padding: 4px 2px; border: 0; border-radius: 12px; box-shadow: none; background: transparent;
	}
	.contact-fab-item + .contact-fab-item{ border-left: 1px solid #eef0f2; border-radius: 0; }
	.contact-fab-item:hover{ transform: none; box-shadow: none; }
	.contact-fab-icon{ width: 34px; height: 34px; font-size: 16px; }
	.contact-fab-line .contact-fab-icon{ font-size: 19px; }
	.contact-fab-text{ align-items: center; text-align: center; max-width: 100%; }
	.contact-fab-text small{ display: none; }
	.contact-fab-text strong{ font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce){
	.contact-fab-tel .contact-fab-icon::after{ animation: none; }
	.contact-fab-item, .contact-fab{ transition: none; }
}
@media print{ .contact-fab, .cc-banner, .cc-modal{ display: none !important; } }

/* ---------------- Cookie consent ---------------- */
.cc-banner[hidden], .cc-modal[hidden], .sg-lightbox[hidden]{ display: none !important; }
.cc-banner{
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1050;
	max-width: 1080px; margin: 0 auto;
	display: flex; align-items: center; gap: 20px;
	padding: 18px 20px; background: var(--card); color: var(--ink);
	border-radius: var(--radius); box-shadow: 0 20px 50px rgba(16,24,40,.25);
	border-top: 4px solid var(--brand);
	font-family: 'Noto Sans Thai', sans-serif;
	animation: cc-up .35s ease;
}
@keyframes cc-up{ from{ transform: translateY(20px); opacity: 0; } to{ transform: none; opacity: 1; } }
.cc-banner-text{ flex: 1 1 auto; font-size: 14.5px; line-height: 1.6; }
.cc-banner-text strong{ font-size: 16px; color: var(--brand-ink); }
.cc-banner-text p{ margin: 4px 0 0; color: var(--muted); }
.cc-banner a, .cc-modal a{ color: var(--brand); text-decoration: underline; }
.cc-banner-actions{ flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cc-btn{
	appearance: none; border: 2px solid var(--brand); border-radius: 999px;
	padding: 9px 18px; font-size: 14.5px; font-weight: 600; line-height: 1.2; cursor: pointer;
	font-family: inherit; transition: background .15s, color .15s, box-shadow .15s;
}
.cc-btn:focus-visible{ outline: 3px solid rgba(21,119,52,.4); outline-offset: 2px; }
.cc-btn-primary{ background: var(--brand); color: #fff; }
.cc-btn-primary:hover{ background: var(--brand-ink); border-color: var(--brand-ink); }
.cc-btn-outline{ background: #fff; color: var(--brand); }
.cc-btn-outline:hover{ background: #eef7f1; }
.cc-btn-ghost{ background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.cc-btn-ghost:hover{ color: var(--brand); }
@media (max-width: 767px){
	.cc-banner{ flex-direction: column; align-items: stretch; gap: 12px; left: 8px; right: 8px; bottom: 82px; padding: 16px; }
	.cc-banner-actions{ justify-content: stretch; }
	.cc-banner-actions .cc-btn{ flex: 1 1 auto; }
}

.cc-modal{
	position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center;
	padding: 16px; background: rgba(15, 23, 32, .55);
	font-family: 'Noto Sans Thai', sans-serif;
}
.cc-modal-box{
	position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px;
	box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.cc-modal-box h3{ margin: 0 0 4px; font-size: 22px; color: var(--brand-ink); font-weight: 700; }
.cc-muted{ color: var(--muted); font-size: 14px; }
.cc-close{ position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.cc-cat{ border: 1px solid #e6e9ec; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.cc-cat p{ margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.cc-cat-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-head label{ margin: 0; cursor: pointer; }
.cc-always{ font-size: 12.5px; color: var(--brand); font-weight: 600; }
.cc-switch{ position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.cc-switch input{ position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch span{ position: absolute; inset: 0; background: #c9d0d6; border-radius: 999px; transition: background .2s; }
.cc-switch span::after{ content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.cc-switch input:checked + span{ background: var(--brand); }
.cc-switch input:checked + span::after{ transform: translateX(20px); }
.cc-switch input:focus-visible + span{ outline: 3px solid rgba(21,119,52,.4); outline-offset: 2px; }
.cc-modal-actions{ display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* ---------------- Gallery (แทน unitegallery) ---------------- */
.site-gallery{ display: flex; flex-wrap: wrap; gap: 8px; }
.site-gallery::after{ content: ""; flex-grow: 999999; }
.sg-item{
	position: relative; display: block; overflow: hidden; border-radius: 12px;
	background: rgba(240,240,240,.4); box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.sg-item i{ display: block; }
.sg-item img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sg-item::after{
	content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
	position: absolute; inset: 0; display: grid; place-items: center;
	color: #fff; font-size: 22px; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .25s;
}
.sg-item:hover img, .sg-item:focus-visible img{ transform: scale(1.06); }
.sg-item:hover::after, .sg-item:focus-visible::after{ opacity: 1; }
.sg-item:focus-visible{ outline: 3px solid #fff; outline-offset: 2px; }

.sg-lightbox{
	position: fixed; inset: 0; z-index: 1070; background: rgba(8, 12, 16, .94);
	display: flex; align-items: center; justify-content: center; touch-action: pan-y;
}
.sg-lightbox figure{ margin: 0; text-align: center; max-width: 94vw; }
.sg-lightbox img{ max-width: 94vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); user-select: none; }
.sg-lightbox figcaption{ color: #e8ecef; margin-top: 10px; font-size: 14px; font-family: 'Noto Sans Thai', sans-serif; }
.sg-btn{
	position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%;
	background: rgba(255,255,255,.14); color: #fff; font-size: 20px; cursor: pointer;
	display: grid; place-items: center; transition: background .15s;
}
.sg-btn:hover, .sg-btn:focus-visible{ background: rgba(255,255,255,.28); outline: none; }
.sg-prev{ left: 16px; top: 50%; transform: translateY(-50%); }
.sg-next{ right: 16px; top: 50%; transform: translateY(-50%); }
.sg-close{ top: 16px; right: 16px; }
.sg-count{ position: absolute; top: 26px; left: 20px; color: #cfd6dc; font-size: 14px; font-family: 'Noto Sans Thai', sans-serif; }
@media (max-width: 575px){
	.sg-prev, .sg-next{ top: auto; bottom: 18px; transform: none; }
	.sg-prev{ left: calc(50% - 60px); } .sg-next{ right: calc(50% - 60px); }
	.sg-lightbox img{ max-height: 72vh; }
}
body.sg-lock, body.cc-lock{ overflow: hidden; }

/* ---------------- AEO : สรุปบริการ + FAQ ---------------- */
.aeo-section{ background: #fff; padding: 56px 0 40px; }
.aeo-facts{ margin: 0; background: #f4faf6; border: 1px solid #d9eee0; border-radius: var(--radius); padding: 18px 20px; }
.aeo-facts dt{ color: var(--brand-ink); font-weight: 700; margin-top: 10px; }
.aeo-facts dt:first-child{ margin-top: 0; }
.aeo-facts dd{ margin: 2px 0 0; color: var(--ink); line-height: 1.6; }
.faq-list{ display: flex; flex-direction: column; gap: 10px; }
.faq-item{ border: 1px solid #e3e8ec; border-radius: 12px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq-item[open]{ border-color: #bfe3cb; box-shadow: 0 6px 18px rgba(21,119,52,.08); }
.faq-item summary{ list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; }
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
	content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px;
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--brand); transition: transform .2s;
}
.faq-item[open] summary::after{ transform: translateY(-50%) rotate(180deg); }
.faq-item summary h3{ margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--ink); letter-spacing: 0; text-transform: none; }
.faq-item p{ margin: 0; padding: 0 16px 16px; color: var(--muted); line-height: 1.7; }

/* ---------------- Admin ---------------- */
.admin-nav > .dropdown-item i{ margin-right: 4px; }
.admin-nav .dropdown-menu .dropdown-item i{ width: 1.4em; color: var(--brand); }
.admin-nav .dropdown-menu .dropdown-item.text-danger i{ color: inherit; }
.admin-card{ background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 5px 20px #e1e1e1; }
.og-preview{ border: 1px solid #dfe3e7; border-radius: 10px; overflow: hidden; background: #f2f3f5; }
.og-preview img{ display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #ddd; }
.og-preview-text{ padding: 10px 12px; display: flex; flex-direction: column; }
.og-preview-text small{ text-transform: uppercase; color: #65676b; font-size: 12px; }
.og-preview-text strong{ color: #050505; font-size: 15px; line-height: 1.3; }

/* ---------------- Footer / Policy pages ---------------- */
.footer-policy-links{ display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.footer-policy-links a{ color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 991px){ .footer-policy-links{ justify-content: flex-start; margin-top: 8px; } }
.policy-content{ max-width: 860px; margin: 0 auto; font-size: 16px; line-height: 1.85; color: var(--ink); }
.policy-content h2{ font-size: 22px; color: var(--brand-ink); margin: 32px 0 10px; font-weight: 700; letter-spacing: 0; }
.policy-content h3{ font-size: 18px; margin: 20px 0 8px; font-weight: 700; letter-spacing: 0; }
.policy-content ul{ padding-left: 1.3em; }
.policy-content li{ margin-bottom: 4px; }
.policy-content table{ width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 14.5px; }
.policy-content th, .policy-content td{ border: 1px solid #e3e8ec; padding: 8px 10px; vertical-align: top; text-align: left; }
.policy-content th{ background: #f4faf6; }
.policy-meta{ background: #f4faf6; border: 1px solid #d9eee0; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }
.policy-table-wrap{ overflow-x: auto; }

/* =========================================================
   หน้า "ติดต่อเรา" (ct-*)
   ========================================================= */
.ct-hero{
	position: relative; overflow: hidden; color: #fff; padding: 56px 0;
	background:
		repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 14px, transparent 14px 28px),
		linear-gradient(120deg, #0e5a26 0%, var(--brand) 55%, #1f9a46 100%);
}
.ct-hero-grid{ display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: center; }
.ct-eyebrow{
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: rgba(255,255,255,.14); font-size: 14px; letter-spacing: .02em;
}
.ct-hero-title{ color: #fff; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.2; font-weight: 700; margin: 16px 0 10px; letter-spacing: 0; }
.ct-hero-sub{ color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.7; max-width: 560px; margin: 0 0 26px; }
.ct-hero-actions{ display: flex; flex-wrap: wrap; gap: 12px; }
.ct-btn{
	display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 12px;
	border-radius: 999px; border: 0; color: #fff !important; text-decoration: none !important;
	font-weight: 700; font-size: 18px; line-height: 1.15; cursor: pointer;
	box-shadow: 0 10px 24px rgba(0,0,0,.18); transition: transform .18s ease, box-shadow .18s ease;
}
.ct-btn > i{ width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 19px; }
.ct-btn small{ display: block; font-size: 12.5px; font-weight: 500; opacity: .9; }
.ct-btn:hover, .ct-btn:focus-visible{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.24); }
.ct-btn:focus-visible{ outline: 3px solid #fff; outline-offset: 3px; }
.ct-btn-call{ background: linear-gradient(135deg, #fb923c, var(--call)); }
.ct-btn-line{ background: var(--line); }
.ct-qr{
	display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px;
	background: #fff; border-radius: 20px; color: var(--brand-ink) !important; text-decoration: none !important;
	box-shadow: 0 18px 40px rgba(0,0,0,.25); transform: rotate(2deg); transition: transform .2s ease;
}
.ct-qr:hover{ transform: rotate(0deg) scale(1.02); }
.ct-qr img{ width: 180px; height: 180px; border-radius: 10px; }
.ct-qr span{ font-weight: 700; font-size: 15px; }
.ct-qr span i{ color: var(--line); }

.ct-section{ padding: 56px 0; background: #fff; }
.ct-section + .ct-section{ border-top: 1px solid #edf1ee; }
.ct-section-cards{ background: #f5f8f6; padding: 0 0 48px; border-top: 0 !important; }
.ct-cards{
	display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px;
	margin-top: -28px; position: relative;
}
.ct-card{
	background: #fff; border: 1px solid #e3e9e5; border-radius: var(--radius); padding: 22px;
	box-shadow: 0 8px 24px rgba(16,24,40,.06); display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.ct-card h3{ font-size: 18px; font-weight: 700; color: var(--ink); margin: 8px 0 0; letter-spacing: 0; text-transform: none; }
.ct-card-icon{ width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 21px; }
.ct-ic-call{ background: linear-gradient(135deg, #fb923c, var(--call)); }
.ct-ic-line{ background: var(--line); font-size: 25px; }
.ct-ic-map{ background: linear-gradient(135deg, #34d399, var(--brand)); }
.ct-ic-more{ background: linear-gradient(135deg, #60a5fa, var(--msg)); }
.ct-list{ list-style: none; margin: 0; padding: 0; }
.ct-list a{ font-size: 20px; font-weight: 700; color: var(--brand) !important; text-decoration: none; word-break: break-word; }
.ct-list a:hover{ text-decoration: underline; }
.ct-note, .ct-muted{ color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }
.ct-address{ font-style: normal; color: var(--ink); line-height: 1.65; margin: 0; }
.ct-link{ color: var(--brand) !important; font-weight: 600; margin-top: auto; }

.ct-split{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 48px; }
.ct-h2{ font-size: 26px; font-weight: 700; color: var(--brand-ink); margin: 0 0 18px; letter-spacing: 0; text-transform: none; }
.ct-h3{ font-size: 18px; font-weight: 700; color: var(--ink); margin: 24px 0 10px; letter-spacing: 0; text-transform: none; }
.ct-steps{ list-style: none; margin: 0; padding: 0; counter-reset: ct; display: flex; flex-direction: column; gap: 4px; }
.ct-steps li{ counter-increment: ct; position: relative; padding: 0 0 22px 60px; display: flex; flex-direction: column; gap: 2px; }
.ct-steps li::before{
	content: counter(ct); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
	background: var(--brand); color: #fff; font-weight: 700; font-size: 18px; display: grid; place-items: center;
}
.ct-steps li::after{ content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: #d6e8dc; }
.ct-steps li:last-child::after{ display: none; }
.ct-steps strong{ font-size: 17px; color: var(--ink); padding-top: 8px; }
.ct-steps span{ color: var(--muted); line-height: 1.65; }
.ct-chips{ list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips li{ background: #eef7f1; color: var(--brand-ink); border: 1px solid #d3eadb; border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.ct-chips i{ color: var(--brand); }
.ct-services{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ct-services li{ display: flex; gap: 10px; align-items: baseline; color: var(--ink); }
.ct-services i{ color: var(--brand); }

.ct-section-map{ background: #f5f8f6; }
.ct-map{ border-radius: var(--radius); overflow: hidden; border: 1px solid #dde6e0; background: #e9efeb; aspect-ratio: 16 / 7; max-width: 100%; }
.ct-map iframe{ width: 100%; height: 100%; border: 0; display: block; }
.ct-map-placeholder{
	height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 24px; text-align: center; color: var(--muted);
	background: repeating-linear-gradient(45deg, #edf3ef 0 12px, #e6eee9 12px 24px);
}
.ct-map-placeholder > i{ font-size: 40px; color: var(--brand); }
.ct-map-placeholder p{ margin: 0; color: var(--ink); max-width: 520px; }
.ct-map-placeholder small{ max-width: 460px; font-size: 12.5px; }
.ct-btn-map{ background: var(--brand); font-size: 16px; padding: 10px 20px; }
.ct-btn-map > i{ width: auto; height: auto; background: none; font-size: 16px; }
.ct-section-gallery{ background: #fff; }

@media (max-width: 991px){
	.ct-split{ grid-template-columns: minmax(0,1fr); gap: 32px; }
}
@media (max-width: 767px){
	.ct-hero{ padding: 40px 0 56px; }
	.ct-hero-grid{ grid-template-columns: minmax(0,1fr); gap: 28px; }
	.ct-qr{ transform: none; flex-direction: row; justify-self: start; padding: 12px 18px 12px 12px; }
	.ct-qr img{ width: 96px; height: 96px; }
	.ct-btn{ flex: 1 1 100%; font-size: 17px; }
	.ct-section{ padding: 40px 0; }
	.ct-map{ aspect-ratio: 4 / 3; }
}

/* =========================================================
   หน้าแรก: บริการของเรา (svc-*) + พื้นที่ให้บริการ (area-*)
   ========================================================= */
.svc-section{ background: #f5f8f6; padding: 64px 0; }
.area-section{ background: #fff; padding: 64px 0; }
.svc-head{ text-align: center; max-width: 680px; margin: 0 auto 36px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.svc-head-sub{ margin-top: 56px; }
.svc-eyebrow{
	display: inline-block; padding: 5px 14px; border-radius: 999px; background: #e3f2e8;
	color: var(--brand-ink); font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.svc-title{ font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.svc-lead{ color: var(--muted); font-size: 16.5px; line-height: 1.7; margin: 0; }
.svc-grid{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.svc-card{
	background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
	box-shadow: 0 6px 22px rgba(16,24,40,.08); border: 1px solid #e6ece8;
	transition: transform .22s ease, box-shadow .22s ease;
}
.svc-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16,24,40,.14); }
.svc-media{ position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe7e2; }
.svc-media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.svc-card:hover .svc-media img{ transform: scale(1.06); }
.svc-icon{
	position: absolute; left: 16px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px;
	background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px;
	box-shadow: 0 8px 18px rgba(21,119,52,.35); border: 3px solid #fff;
}
.svc-body{ padding: 32px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-body h3{ font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.svc-body p{ color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.svc-link{ margin-top: auto; padding-top: 6px; color: var(--brand) !important; font-weight: 700; text-decoration: none !important; }
.svc-link i{ transition: transform .18s; }
.svc-link:hover i{ transform: translateX(4px); }

.area-grid{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.area-card{ background: #f7faf8; border: 1px solid #e1ebe5; border-radius: 18px; padding: 22px; min-width: 0; }
.area-card:first-child{ grid-column: 1 / -1; }
.area-card-head{ display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.area-card-head h3{ font-size: 20px; font-weight: 700; margin: 0; color: var(--ink); letter-spacing: 0; text-transform: none; }
.area-pin{ width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.area-count{ margin-left: auto; font-size: 13.5px; color: var(--muted); background: #fff; border: 1px solid #e1ebe5; border-radius: 999px; padding: 3px 12px; }
.area-chips{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips a{
	display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #d3e6da;
	color: var(--brand-ink) !important; font-size: 14.5px; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s;
}
.area-chips a:hover, .area-chips a:focus-visible{ background: var(--brand); border-color: var(--brand); color: #fff !important; }

@media (max-width: 991px){ .svc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575px){
	.svc-section, .area-section{ padding: 44px 0; }
	.svc-grid{ gap: 12px; }
	.svc-body{ padding: 28px 12px 14px; }
	.svc-body h3{ font-size: 15.5px; }
	.svc-body p{ font-size: 13.5px; }
	.svc-icon{ width: 40px; height: 40px; font-size: 17px; left: 12px; bottom: -18px; }
	.area-grid{ grid-template-columns: minmax(0,1fr); }
	.area-chips a{ font-size: 13.5px; padding: 5px 12px; }
}

/* =========================================================
   Footer (ft-*)
   ========================================================= */
#footer.ft{ background: #0f1d15; color: #b9c8bf; margin-top: 0; padding: 0; border-top: 0; box-shadow: none; font-size: 15px; }
#footer.ft a{ color: #dfe9e3; }
#footer.ft a:hover{ color: #fff; }
.ft-cta{ background: linear-gradient(120deg, #0e5a26 0%, var(--brand) 60%, #1f9a46 100%); }
.ft-cta-inner{ display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.ft-cta-text{ display: flex; flex-direction: column; gap: 2px; color: #fff; }
.ft-cta-text strong{ font-size: 22px; }
.ft-cta-text span{ color: rgba(255,255,255,.85); }
.ft-cta-actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.ft-btn{
	display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
	font-weight: 700; font-size: 16px; text-decoration: none !important; color: #fff !important;
	transition: transform .18s ease, box-shadow .18s ease;
}
.ft-btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.2); }
.ft-btn-call{ background: linear-gradient(135deg, #fb923c, var(--call)); }
.ft-btn-line{ background: #fff; color: #058c3b !important; }
.ft-btn-line i{ color: var(--line); font-size: 19px; }

.ft-main{ display: grid; grid-template-columns: 1.5fr .8fr 1.4fr auto; gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.ft-col{ min-width: 0; }
.ft-name{ color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.ft-brand p{ line-height: 1.7; margin: 0 0 18px; color: #a9bab0; }
.ft-heading{ color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; position: relative; }
.ft-heading::after{ content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: #2fbf5d; }
.ft-contact{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-contact li{ display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; align-items: baseline; line-height: 1.6; }
.ft-contact i{ color: #2fbf5d; text-align: center; }
.ft-contact a{ font-weight: 600; word-break: break-word; }
.ft-links ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ft-links a{ text-decoration: none; }
.ft-links a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.ft-tag-list{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip{
	display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; line-height: 1.4;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); text-decoration: none !important;
	transition: background .15s, border-color .15s;
}
#footer.ft .tag-chip{ color: #cfdcd4; }
#footer.ft .tag-chip:hover{ background: rgba(47,191,93,.18); border-color: rgba(47,191,93,.5); color: #fff; }
.ft-qr-card{ display: inline-flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 10px 10px 12px; text-decoration: none !important; }
.ft-qr-card img{ width: 150px; height: 150px; border-radius: 8px; }
#footer.ft .ft-qr-card span{ color: #0e5a26; font-weight: 700; font-size: 13.5px; }

.ft-stats-wrap{ border-top: 1px solid rgba(255,255,255,.08); }
.ft-stats{ display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding: 16px 0; font-size: 13.5px; }
.ft-stats-label{ color: #fff; font-weight: 700; }
.ft-stats-label i{ color: #2fbf5d; }
.ft-stats dl{ display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.ft-stats dl > div{ display: flex; gap: 6px; }
.ft-stats dt{ font-weight: 400; color: #8fa398; }
.ft-stats dd{ margin: 0; color: #e3ece6; font-weight: 700; font-variant-numeric: tabular-nums; }

.ft-bottom{ background: #0a140e; }
.ft-bottom-inner{ display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-size: 13.5px; color: #8fa398; }
.ft-policy{ display: flex; flex-wrap: wrap; gap: 6px 18px; }
#footer.ft .ft-policy a{ color: #b9c8bf; text-decoration: none; }
#footer.ft .ft-policy a:hover{ color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 991px){
	.ft-main{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
}
@media (max-width: 575px){
	.ft-main{ grid-template-columns: minmax(0,1fr); padding-top: 40px; }
	.ft-cta-actions, .ft-btn{ width: 100%; }
	.ft-btn{ justify-content: center; }
	.ft-qr{ display: none; }
}

/* custom.css ของธีมตั้ง p{ margin:0 !important; line-height:23px !important } จึงต้องใช้ !important เฉพาะจุด */
.ct-hero p.ct-hero-sub{ margin: 0 0 26px !important; line-height: 1.7 !important; }
#footer.ft .ft-brand p{ margin: 0 0 16px !important; line-height: 1.7 !important; }
.svc-head p.svc-lead, .ct-card p.ct-note, .svc-body p, .ct-map-placeholder p{ line-height: 1.65 !important; }

/* =========================================================
   แกลเลอรีแบบ bento (แทนแบบ justified เดิม)
   ========================================================= */
.sg-wrap{ --sg-row: 190px; --sg-gap: 12px; position: relative; }
.site-gallery{
	display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
	grid-auto-rows: var(--sg-row); grid-auto-flow: dense; gap: var(--sg-gap);
}
.site-gallery::after{ content: none; }
.sg-item{ border-radius: 14px; box-shadow: 0 4px 14px rgba(16,24,40,.12); }
.sg-item.sg-w{ grid-column: span 2; }
.sg-item.sg-t{ grid-row: span 2; }
.sg-wrap.is-collapsed .site-gallery{
	max-height: calc(var(--sg-rows) * var(--sg-row) + (var(--sg-rows) - 1) * var(--sg-gap));
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 65%, transparent);
	mask-image: linear-gradient(#000 65%, transparent);
}
.sg-more, .area-more{
	display: flex; align-items: center; gap: 8px; margin: 16px auto 0; padding: 10px 22px;
	border-radius: 999px; border: 1px solid #cfe3d6; background: #fff; color: var(--brand-ink);
	font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 4px 12px rgba(16,24,40,.08);
	transition: background .15s, color .15s;
}
.sg-more:hover, .area-more:hover{ background: var(--brand); border-color: var(--brand); color: #fff; }
.sg-more:focus-visible, .area-more:focus-visible{ outline: 3px solid rgba(21,119,52,.4); outline-offset: 2px; }
.sg-more[hidden], .area-more[hidden]{ display: none; }
@media (max-width: 767px){
	.sg-wrap{ --sg-row: 128px; --sg-gap: 8px; }
	.site-gallery{ grid-template-columns: repeat(2, minmax(0,1fr)); }
	.sg-item{ border-radius: 10px; }
}

/* =========================================================
   พื้นที่ให้บริการ: แท็บจังหวัด + ค้นหา
   ========================================================= */
.area-layout{ display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: start; }
.area-intro{ position: sticky; top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.area-intro .svc-title{ text-align: left; }
.area-intro p.area-lead{ color: var(--muted); font-size: 16px; line-height: 1.7 !important; margin: 0 !important; }
.area-stats{ display: flex; gap: 12px; }
.area-stats > div{ background: #f2f8f4; border: 1px solid #dcece2; border-radius: 14px; padding: 10px 18px; display: flex; flex-direction: column; line-height: 1.2; }
.area-stats strong{ font-size: 30px; color: var(--brand); font-variant-numeric: tabular-nums; }
.area-stats span{ color: var(--muted); font-size: 14px; }
.area-search{
	display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 0 16px;
	background: #fff; border: 1.5px solid #d3e3d9; border-radius: 999px; transition: border-color .15s, box-shadow .15s;
}
.area-search:focus-within{ border-color: var(--brand); box-shadow: 0 0 0 4px rgba(21,119,52,.12); }
.area-search i{ color: var(--muted); }
.area-search input{ flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font-size: 16px; color: var(--ink); font-family: inherit; }
.area-intro p.area-help{ margin: 0 !important; color: var(--muted); font-size: 14.5px; }
.area-help a{ color: #058c3b !important; font-weight: 700; }
.area-help a i{ color: var(--line); }

.area-box{ background: #fff; border: 1px solid #e1ebe5; border-radius: 20px; padding: 8px 8px 18px; box-shadow: 0 10px 30px rgba(16,24,40,.06); min-width: 0; }
.area-tabs{ display: flex; gap: 6px; padding: 6px; background: #f2f6f3; border-radius: 14px; margin-bottom: 14px; overflow-x: auto; }
.area-tabs button{
	flex: 1 0 auto; border: 0; background: transparent; border-radius: 10px; padding: 10px 14px; cursor: pointer;
	font-weight: 700; font-size: 16px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s;
}
.area-tabs button span{ display: inline-block; min-width: 26px; padding: 1px 8px; margin-left: 4px; border-radius: 999px; background: #e1ece5; color: var(--brand-ink); font-size: 12.5px; font-weight: 700; }
.area-tabs button[aria-selected="true"]{ background: #fff; color: var(--brand-ink); box-shadow: 0 2px 8px rgba(16,24,40,.1); }
.area-tabs button[aria-selected="true"] span{ background: var(--brand); color: #fff; }
.area-tabs button:focus-visible{ outline: 3px solid rgba(21,119,52,.4); outline-offset: 1px; }
.area-box.is-searching .area-tabs{ opacity: .45; pointer-events: none; }
.area-panel{ padding: 0 10px; }
.area-panel[hidden]{ display: none; }
.area-box.is-searching .area-panel::before{ content: attr(data-province); display: block; font-weight: 700; color: var(--brand-ink); margin: 8px 0 4px 10px; font-size: 14px; }
.area-list{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 10px; }
.area-list li[hidden]{ display: none; }
.area-list a{
	display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px;
	color: var(--ink) !important; text-decoration: none !important; font-size: 15px; line-height: 1.35; transition: background .15s, color .15s;
}
.area-list a i{ color: var(--brand); font-size: 13px; flex: 0 0 auto; }
.area-list a:hover, .area-list a:focus-visible{ background: #eef7f1; color: var(--brand-ink) !important; outline: none; }
.area-box.is-collapsed .area-panel:not([hidden]){
	max-height: 300px; overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.area-box p.area-empty{ margin: 12px 12px 0 !important; padding: 14px 16px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 15px; }
.area-empty[hidden]{ display: none; }

@media (max-width: 991px){
	.area-layout{ grid-template-columns: minmax(0,1fr); gap: 24px; }
	.area-intro{ position: static; }
}
@media (max-width: 575px){
	.area-list{ grid-template-columns: repeat(2, minmax(0,1fr)); }
	.area-list a{ font-size: 14px; padding: 7px 6px; }
	.area-tabs button{ font-size: 15px; padding: 9px 10px; }
}

/* =========================================================
   หน้าแรก: คำถามที่พบบ่อย + สรุปบริการ (faq-*)
   ========================================================= */
.faq-section{ background: #fff; padding: 64px 0; }
.faq-layout{ display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: start; }
.faq-facts{
	position: sticky; top: 20px; color: #e6f2ea; border-radius: 22px; padding: 26px 24px;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.12) 0%, transparent 55%),
		linear-gradient(150deg, #0e5a26 0%, var(--brand) 70%, #1f9a46 100%);
	box-shadow: 0 18px 40px rgba(14,90,38,.25);
}
.faq-facts h3{ color: #fff; font-size: 20px; font-weight: 700; margin: 0 0 16px; letter-spacing: 0; text-transform: none; }
.faq-facts h3 i{ margin-right: 6px; opacity: .85; }
.faq-facts dl{ margin: 0; display: flex; flex-direction: column; gap: 14px; }
.faq-facts dl > div{ padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.faq-facts dl > div:last-child{ border-bottom: 0; padding-bottom: 0; }
.faq-facts dt{ font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 4px; letter-spacing: .02em; }
.faq-facts dt i{ width: 18px; text-align: center; margin-right: 4px; }
.faq-facts dd{ margin: 0; color: #fff; font-size: 15.5px; line-height: 1.65; }
.faq-facts dd a{ color: #fff !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-facts-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.faq-facts-actions .ft-btn{ flex: 1 1 auto; justify-content: center; }

.faq-list{ display: flex; flex-direction: column; gap: 12px; }
.faq-section .faq-item{
	border: 1px solid #e3e9e5; border-radius: 16px; background: #fff;
	box-shadow: 0 2px 8px rgba(16,24,40,.04); transition: border-color .2s, box-shadow .2s;
}
.faq-section .faq-item:hover{ border-color: #c7e0cf; }
.faq-section .faq-item[open]{ border-color: #bfe3cb; box-shadow: 0 10px 26px rgba(21,119,52,.10); }
.faq-section .faq-item summary{ display: flex; align-items: center; gap: 14px; padding: 16px 18px; list-style: none; cursor: pointer; }
.faq-section .faq-item summary::after{ content: none; }
.faq-section .faq-item summary:focus-visible{ outline: 3px solid rgba(21,119,52,.35); outline-offset: 2px; border-radius: 16px; }
.faq-q-icon{
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
	background: #e8f4ec; color: var(--brand); font-weight: 800; font-size: 15px; font-family: 'Noto Sans Thai', sans-serif;
	transition: background .2s, color .2s;
}
.faq-item[open] .faq-q-icon{ background: var(--brand); color: #fff; }
.faq-section .faq-item summary h3{ flex: 1; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ink); letter-spacing: 0; text-transform: none; }
.faq-toggle{ flex: 0 0 auto; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #cfe0d5; transition: transform .25s ease, background .2s, border-color .2s; }
.faq-toggle::before, .faq-toggle::after{ content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--brand); border-radius: 2px; transform: translate(-50%, -50%); }
.faq-toggle::after{ transform: translate(-50%, -50%) rotate(90deg); transition: opacity .2s; }
.faq-item[open] .faq-toggle{ transform: rotate(180deg); background: #e8f4ec; border-color: #bfe3cb; }
.faq-item[open] .faq-toggle::after{ opacity: 0; }
.faq-answer{ padding: 0 18px 18px 66px; animation: faq-in .25s ease; }
.faq-section .faq-answer p{ margin: 0 !important; color: var(--muted); font-size: 15.5px; line-height: 1.75 !important; }
@keyframes faq-in{ from{ opacity: 0; transform: translateY(-4px); } to{ opacity: 1; transform: none; } }
.faq-more{
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: #f5f8f6; border: 1px dashed #cfe0d5;
}
.faq-more span{ color: var(--ink); font-weight: 600; }
.faq-more span i{ color: var(--brand); margin-right: 4px; }
.faq-more a{ color: #058c3b !important; font-weight: 700; text-decoration: none !important; }
.faq-more a i{ transition: transform .18s; }
.faq-more a:hover i{ transform: translateX(4px); }

@media (max-width: 991px){
	.faq-layout{ grid-template-columns: minmax(0, 1fr); }
	.faq-facts{ position: static; order: 2; }
}
@media (max-width: 575px){
	.faq-section{ padding: 44px 0; }
	.faq-section .faq-item summary{ padding: 14px; gap: 10px; }
	.faq-section .faq-item summary h3{ font-size: 15.5px; }
	.faq-q-icon{ width: 30px; height: 30px; font-size: 13px; }
	.faq-answer{ padding: 0 14px 16px 54px; }
}
@media (prefers-reduced-motion: reduce){ .faq-answer{ animation: none; } .faq-toggle{ transition: none; } }
.faq-section .faq-answer p{ padding: 0 !important; }

/* =========================================================
   Header ใหม่ (hd-*)
   ========================================================= */
.skip-link{ position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #fff; color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus{ left: 12px; }
#main-content:focus{ outline: none; }
#services, #service-area, #faq{ scroll-margin-top: 90px; }

.hd-top{ background: #0e5a26; color: rgba(255,255,255,.9); font-size: 14px; }
.hd-top-inner{ display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.hd-tagline i{ color: #6fd394; margin-right: 6px; }
.hd-top-contact{ display: flex; gap: 18px; }
.hd-top-contact a{ color: #fff !important; text-decoration: none !important; font-weight: 600; }
.hd-top-contact a:hover{ text-decoration: underline !important; text-underline-offset: 3px; }
.hd-top-contact i{ color: #6fd394; margin-right: 4px; }

.hd{
	position: sticky; top: 0; z-index: 1030;
	background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid #e8eee9; transition: box-shadow .25s ease;
}
.hd.is-scrolled{ box-shadow: 0 8px 24px rgba(16,24,40,.10); }
.hd-inner{ display: flex; align-items: center; gap: 24px; min-height: 76px; }
.hd-logo{ flex: 0 0 auto; display: block; line-height: 0; }

.hd-nav{ flex: 1 1 auto; display: flex; justify-content: center; }
.hd-menu{ list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.hd-menu > li > a, .hd-admin-btn{
	position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
	color: var(--ink) !important; font-size: 16px; font-weight: 600; text-decoration: none !important; background: transparent; border: 0; cursor: pointer;
	transition: color .15s, background .15s; font-family: inherit; white-space: nowrap;
}
.hd-menu > li > a::after{
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
	background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.hd-menu > li > a:hover, .hd-admin-btn:hover{ color: var(--brand) !important; background: #f1f7f3; }
.hd-menu > li > a:hover::after, .hd-menu > li > a.is-active::after{ transform: scaleX(1); }
.hd-menu > li > a.is-active, .hd-admin-btn.is-active{ color: var(--brand) !important; }
.hd-menu a:focus-visible, .hd-admin-btn:focus-visible, .hd-burger:focus-visible, .hd-call:focus-visible{ outline: 3px solid rgba(21,119,52,.35); outline-offset: 2px; }

.hd-admin{ position: relative; }
.hd-admin-btn{ background: #f1f7f3; color: var(--brand-ink) !important; }
.hd-caret{ font-size: 11px; transition: transform .2s; }
.hd-admin.is-open .hd-caret{ transform: rotate(180deg); }
.hd-dropdown{
	list-style: none; margin: 0; padding: 8px; position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px;
	background: #fff; border: 1px solid #e3e9e5; border-radius: 14px; box-shadow: 0 18px 40px rgba(16,24,40,.16);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.hd-admin.is-open .hd-dropdown{ opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 992px){
	.hd-admin:hover .hd-dropdown{ opacity: 1; visibility: visible; transform: none; }
}
.hd-dropdown a{ display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink) !important; font-size: 15px; text-decoration: none !important; }
.hd-dropdown a i{ color: var(--brand); }
.hd-dropdown a:hover, .hd-dropdown a.is-active{ background: #f1f7f3; color: var(--brand-ink) !important; }
.hd-dropdown-sep{ border-top: 1px solid #eef2ef; margin-top: 6px; padding-top: 6px; }
.hd-dropdown a.is-danger, .hd-dropdown a.is-danger i{ color: #b42318 !important; }
.hd-dropdown a.is-danger:hover{ background: #fdecea; }

.hd-call{
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
	background: linear-gradient(135deg, #fb923c, var(--call)); color: #fff !important; text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(249,115,22,.3); transition: transform .18s, box-shadow .18s;
}
.hd-call:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(249,115,22,.38); }
.hd-call-icon{ width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.hd-call small{ display: block; font-size: 12px; opacity: .9; line-height: 1.1; }
.hd-call strong{ display: block; font-size: 17px; line-height: 1.2; }
.hd-nav-cta{ display: none; }

.hd-burger{
	display: none; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid #dce7e0; background: #fff;
	cursor: pointer; position: relative; padding: 0;
}
.hd-burger span{ position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--brand-ink); transition: transform .22s, opacity .22s, top .22s; }
.hd-burger span:nth-child(1){ top: 15px; }
.hd-burger span:nth-child(2){ top: 22px; }
.hd-burger span:nth-child(3){ top: 29px; }
.hd.is-open .hd-burger span:nth-child(1){ top: 22px; transform: rotate(45deg); }
.hd.is-open .hd-burger span:nth-child(2){ opacity: 0; }
.hd.is-open .hd-burger span:nth-child(3){ top: 22px; transform: rotate(-45deg); }

@media (max-width: 1199px){
	.hd-menu > li > a, .hd-admin-btn{ padding: 10px 10px; font-size: 15px; }
	.hd-menu > li > a::after{ left: 10px; right: 10px; }
	.hd-call small{ display: none; }
}
@media (max-width: 991px){
	.hd-inner{ min-height: 66px; gap: 12px; }
	.hd-logo{ flex: 1 1 auto; }
	.hd-call{ padding: 0; width: 46px; height: 46px; justify-content: center; box-shadow: none; }
	.hd-call > span:last-child{ display: none; }
	.hd-call-icon{ background: transparent; }
	.hd-burger{ display: block; }
	.hd-nav{
		position: absolute; left: 0; right: 0; top: 100%; display: block; background: #fff;
		border-bottom: 1px solid #e3e9e5; box-shadow: 0 18px 30px rgba(16,24,40,.12);
		padding: 10px 16px 18px; max-height: calc(100vh - 110px); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.hd.is-open .hd-nav{ opacity: 1; visibility: visible; transform: none; }
	.hd-menu{ flex-direction: column; align-items: stretch; gap: 2px; }
	.hd-menu > li > a, .hd-admin-btn{ width: 100%; justify-content: flex-start; padding: 13px 12px; font-size: 17px; }
	.hd-menu > li > a::after{ display: none; }
	.hd-menu > li > a.is-active{ background: #f1f7f3; }
	.hd-dropdown{ position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; opacity: 1; visibility: visible; transform: none; }
	.hd-admin.is-open .hd-dropdown{ display: block; }
	.hd-admin-btn .hd-caret{ margin-left: auto; }
	.hd-nav-cta{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
	.hd-cta{ display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; font-weight: 700; color: #fff !important; text-decoration: none !important; }
	.hd-cta-call{ background: linear-gradient(135deg, #fb923c, var(--call)); }
	.hd-cta-line{ background: var(--line); }
	body.hd-lock{ overflow: hidden; }
	#services, #service-area, #faq{ scroll-margin-top: 76px; }
}
@media (max-width: 575px){
	.hd-tagline{ display: none; }
	.hd-top-inner{ justify-content: center; }
	.hd-top{ font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce){
	.hd, .hd-nav, .hd-dropdown, .hd-burger span, .hd-logo img{ transition: none; }
}
@media (max-width: 991px){
	.hd-cta{ white-space: nowrap; font-size: 16px; }
	.hd-nav{ padding-bottom: 24px; }
}
@media (max-width: 767px){
	/* เผื่อที่ให้แถบปุ่มติดต่อด้านล่างจอ */
	.hd-nav{ max-height: calc(100vh - 190px); }
}

/* =========================================================
   ปุ่มติดต่อขนาดใหญ่บนหน้าแรก (cta-*) : มีลูกเล่น
   - แสงวิ่งผ่านปุ่ม (shimmer) ทุก ๆ 4 วินาที
   - ไอคอนโทรศัพท์สั่นเป็นจังหวะ / ไอคอน LINE เด้งเบา ๆ
   - วงคลื่นกระจายรอบไอคอน, ชี้แล้วปุ่มลอยขึ้น + ลูกศรเลื่อน, กดแล้วยุบ
   ========================================================= */
.cta-duo{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cta-btn{
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px;
	color: #fff !important; text-decoration: none !important;
	box-shadow: 0 10px 26px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.25);
	transition: transform .2s ease, box-shadow .2s ease;
}
.cta-call{ background: linear-gradient(135deg, #fb923c 0%, #f97316 55%, #ea580c 100%); }
.cta-line{ background: linear-gradient(135deg, #22d36b 0%, #06c755 55%, #04a947 100%); }
.cta-btn::before{
	content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
	transform: skewX(-20deg); animation: cta-shine 4s ease-in-out infinite;
}
.cta-line::before{ animation-delay: 2s; }
@keyframes cta-shine{ 0%, 60%{ left: -60%; } 85%, 100%{ left: 130%; } }
.cta-btn:hover, .cta-btn:focus-visible{ transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.25); }
.cta-btn:active{ transform: translateY(0) scale(.98); }
.cta-btn:focus-visible{ outline: 3px solid #fff; outline-offset: 3px; }

.cta-icon{
	position: relative; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
	display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.22);
}
.cta-line .cta-icon{ font-size: 28px; }
.cta-icon::after{
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.7); animation: cta-wave 2s ease-out infinite;
}
@keyframes cta-wave{ 0%{ transform: scale(1); opacity: .8; } 100%{ transform: scale(1.6); opacity: 0; } }
.cta-call .cta-icon i{ animation: cta-ring 2.4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes cta-ring{
	0%, 55%, 100%{ transform: rotate(0); }
	60%{ transform: rotate(-18deg); } 65%{ transform: rotate(16deg); } 70%{ transform: rotate(-14deg); }
	75%{ transform: rotate(10deg); } 80%{ transform: rotate(-6deg); } 85%{ transform: rotate(0); }
}
.cta-line .cta-icon i{ animation: cta-bounce 2.4s ease-in-out infinite 1.2s; }
@keyframes cta-bounce{ 0%, 70%, 100%{ transform: translateY(0); } 78%{ transform: translateY(-5px); } 86%{ transform: translateY(0); } 92%{ transform: translateY(-2px); } }

.cta-text{ display: flex; flex-direction: column; min-width: 0; line-height: 1.25; text-align: left; }
.cta-text small{ font-size: 13.5px; opacity: .92; }
.cta-text strong{ font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.cta-arrow{
	margin-left: auto; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255,255,255,.18); transition: transform .2s ease, background .2s;
}
.cta-btn:hover .cta-arrow{ transform: translateX(4px); background: rgba(255,255,255,.3); }

@media (max-width: 767px){
	.cta-duo{ grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.cta-icon{ width: 48px; height: 48px; font-size: 20px; }
	.cta-line .cta-icon{ font-size: 25px; }
}
@media (prefers-reduced-motion: reduce){
	.cta-btn::before, .cta-icon::after, .cta-call .cta-icon i, .cta-line .cta-icon i{ animation: none; }
	.cta-btn, .cta-arrow{ transition: none; }
}

/* ไอคอนบริการ: อยู่ใน .svc-body แล้วยกขึ้นทับขอบรูป (ไม่ถูกกรอบรูปตัด) */
.svc-body{ position: relative; }
.svc-body .svc-icon{ top: -24px; bottom: auto; left: 18px; z-index: 2; }
@media (max-width: 575px){ .svc-body .svc-icon{ top: -20px; left: 12px; bottom: auto; } }

/* =========================================================
   สไลด์แบนเนอร์หน้าแรก (hs-*) : แทน LayerSlider
   ========================================================= */
.hero-slider{ --hs-interval: 5s; position: relative; max-width: 1600px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #0e1a12; }
.hs-track{ position: absolute; inset: 0; }
.hs-slide{ position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hs-slide.is-active{ opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease, visibility 0s; }
.hs-slide img{ width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 7s ease-out; }
.hs-slide.is-active img{ transform: scale(1); }
.hs-nav, .hs-pause{
	position: absolute; z-index: 3; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center;
	background: rgba(10,20,14,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background .2s, opacity .2s, transform .2s;
}
.hs-nav{ top: 50%; width: 52px; height: 52px; border-radius: 50%; font-size: 18px; transform: translateY(-50%); opacity: 0; }
.hs-prev{ left: 18px; } .hs-next{ right: 18px; }
.hero-slider:hover .hs-nav, .hs-nav:focus-visible{ opacity: 1; }
.hs-nav:hover, .hs-pause:hover{ background: rgba(21,119,52,.85); }
.hs-nav:focus-visible, .hs-pause:focus-visible, .hs-dots button:focus-visible{ outline: 3px solid #fff; outline-offset: 2px; }
.hs-dots{ position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(10,20,14,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs-dots button{ width: 28px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; overflow: hidden; position: relative; transition: width .3s ease; }
.hs-dots button[aria-selected="true"]{ width: 48px; }
.hs-dots button span{ position: absolute; inset: 0; width: 0; background: #fff; border-radius: inherit; }
.hs-dots button[aria-selected="true"] span{ width: 100%; }
.hero-slider.is-playing .hs-dots button[aria-selected="true"] span{ animation: hs-progress var(--hs-interval) linear forwards; }
.hero-slider.is-paused .hs-dots button[aria-selected="true"] span{ animation-play-state: paused; }
@keyframes hs-progress{ from{ width: 0; } to{ width: 100%; } }
.hs-pause{ right: 16px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; font-size: 13px; }
@media (max-width: 767px){
	.hs-nav{ width: 40px; height: 40px; font-size: 14px; opacity: 1; background: rgba(10,20,14,.28); }
	.hs-prev{ left: 8px; } .hs-next{ right: 8px; }
	.hs-dots{ bottom: 10px; padding: 6px 10px; gap: 6px; }
	.hs-dots button{ width: 16px; height: 5px; } .hs-dots button[aria-selected="true"]{ width: 30px; }
	.hs-pause{ right: 8px; bottom: 8px; width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce){
	.hs-slide, .hs-slide img{ transition: none; }
	.hs-slide img{ transform: none; }
}

/* ปุ่มกลับขึ้นด้านบน (แทนของธีม Porto) */
.to-top{
	position: fixed; left: 16px; bottom: 16px; z-index: 1035; width: 44px; height: 44px; border-radius: 12px; border: 0;
	background: rgba(15,29,21,.82); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 16px;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s, background .2s;
}
.to-top.is-visible{ opacity: 1; visibility: visible; transform: none; }
.to-top:hover{ background: var(--brand); }
.to-top:focus-visible{ outline: 3px solid rgba(21,119,52,.45); outline-offset: 2px; }
@media (max-width: 767px){ .to-top{ bottom: 84px; left: 10px; width: 40px; height: 40px; } }
/* สไลด์: แสดงรูปเต็มไม่ครอป (แบนเนอร์มีตัวหนังสือ) + ซูมเบา ๆ จบที่ขนาดจริง */
.hs-slide img{ object-fit: contain; transform: scale(1.03); }
.hs-slide.is-active img{ transform: scale(1); }
/* สไลด์: ภาพเก่าค้างไว้ด้านล่างจนภาพใหม่จางเข้าเต็ม (ไม่มีจังหวะพื้นดำระหว่างเปลี่ยนภาพ) */
.hs-slide{ z-index: 0; transition: opacity 0s linear .95s, visibility 0s linear .95s; }
.hs-slide.is-active{ z-index: 2; transition: opacity .9s ease, visibility 0s; }

/* โลโก้ (แอดมินเปลี่ยนได้): ปรับขนาดที่นี่ที่เดียว
   max-width = ความกว้างสูงสุด / max-height = ความสูงสูงสุด (โลโก้ย่อตามสัดส่วนเอง ไม่ยืด) */
.hd-logo{ min-width: 0; }
.hd-logo img{ width: auto; height: auto; max-width: 230px; max-height: 70px; transition: max-width .25s ease, max-height .25s ease; }
.hd.is-scrolled .hd-logo img{ max-height: 70px; }
@media (max-width: 991px){ .hd-logo img, .hd.is-scrolled .hd-logo img{ max-width: min(240px, 100%); } }
/* แท็บเล็ต/มือถือ: กว้างสุด 240px (ไม่เกินพื้นที่ที่เหลือข้างปุ่มโทร/เมนู) / มือถือสูงสุด 80px */
@media (max-width: 575px){ .hd-logo img, .hd.is-scrolled .hd-logo img{ max-height: 80px; } }
.logo-preview{ display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 16px; margin-bottom: 6px; background: #fff; border: 1px solid #dfe3e7; border-radius: 10px; }
.logo-preview img{ width: auto; height: auto; max-width: 100%; max-height: 90px; }
.logo-reset{ display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
