/* =====================================================================
   อาร์มงานป้ายโคราช — Theme CSS (Bootstrap 5.3)
   แทน Porto theme เดิม: header, เมนู, สไลด์, การ์ดผลงาน, แกลเลอรี่,
   lightbox, ปุ่มติดต่อลอย (FAB), แบนเนอร์คุกกี้ และหน้าแอดมิน
   ===================================================================== */

:root {
	--brand: #0474be;
	--brand-600: #035c97;
	--brand-300: #1ba4ff;
	--accent: #e9d062;
	--red: #d7000b;
	--ink: #1f2933;
	--muted: #66727f;
	--surface: #ffffff;
	--surface-2: #f3f6f9;
	--dark: #12161b;
	--dark-2: #1b2128;
	--line-green: #06c755;
	--radius: 16px;
	--shadow-sm: 0 2px 10px rgba(15, 23, 42, .08);
	--shadow: 0 12px 32px rgba(15, 23, 42, .14);
	--font-head: 'Prompt', system-ui, sans-serif;
	--font-body: 'Sarabun', 'Prompt', system-ui, sans-serif;
	--bs-primary: #0474be;
	--bs-primary-rgb: 4, 116, 190;
	--bs-link-color: #0474be;
	--bs-link-color-rgb: 4, 116, 190;
	--bs-link-hover-color: #035c97;
	--bs-link-hover-color-rgb: 3, 92, 151;
}

html { scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	font-size: 1.0625rem;
	color: var(--ink);
	background: var(--surface-2);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .btn, .navbar, .page-title { font-family: var(--font-head); font-weight: 500; }
a { text-decoration: none; }
img { max-width: 100%; }
.text-brand { color: var(--brand) !important; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 3000;
	background: var(--brand); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- ปุ่ม ---------- */
.btn { border-radius: 999px; }
.btn-brand {
	--bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
	--bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
	--bs-btn-active-bg: var(--brand-600); --bs-btn-active-color: #fff;
	box-shadow: 0 6px 16px rgba(4, 116, 190, .28);
}
.btn-brand:hover { transform: translateY(-1px); }
.btn-line { --bs-btn-color: #fff; --bs-btn-bg: var(--line-green); --bs-btn-hover-bg: #05b04b; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #05b04b; --bs-btn-active-color: #fff; }
.btn-messenger { color: #fff; background: linear-gradient(135deg, #00b2ff, #006aff 55%, #a033ff); border: 0; }
.btn-messenger:hover, .btn-messenger:focus { color: #fff; filter: brightness(1.08); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); }

/* ---------- Header ---------- */
.topbar {
	background: linear-gradient(90deg, #035c97, var(--brand) 45%, #169ef2);
	color: #fff; font-size: .92rem; padding: 6px 0;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--accent); }
.topbar__contact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .85); font-size: .85rem; transition: .2s;
}
.topbar__social a:hover { background: #fff; color: var(--brand); }

.brandbar { background: #fff; padding: 14px 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.brand img { height: 72px; width: auto; display: block; }
.brand-contact { gap: 14px; }
.brand-contact__item {
	display: flex; align-items: center; gap: 10px; color: var(--ink);
	padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface-2); transition: .2s;
}
.brand-contact__item:hover { background: #e7f2fb; color: var(--ink); }
.brand-contact__icon {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--brand); color: #fff;
}
.brand-contact__item--line .brand-contact__icon { background: var(--line-green); font-size: 1.25rem; }
.brand-contact__item small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.1; }
.brand-contact__item strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--red); line-height: 1.2; }
.brand-contact__item--line strong { color: #05a648; }

/* ---------- เมนูหลัก ---------- */
.mainnav {
	background: rgba(52, 58, 66, .97);
	backdrop-filter: saturate(140%) blur(8px);
	padding: 8px 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.mainnav .navbar-brand { font-size: 1.1rem; color: #fff; }
.mainnav .nav-link {
	color: #e8edf2; border-radius: 999px; padding: 8px 18px !important; font-size: 1.02rem; transition: background .2s, color .2s;
}
.mainnav .nav-link:hover, .mainnav .nav-link:focus { background: rgba(255, 255, 255, .1); color: #fff; }
.mainnav .nav-link.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(4, 116, 190, .45); }
.mainnav .nav-admin { color: #1d1d1d !important; background: var(--accent); font-weight: 600; }
.mainnav .nav-admin:hover { background: #f3df84 !important; }
.mainnav .dropdown-menu { border: 0; border-radius: 14px; padding: 8px; }
.mainnav .dropdown-item { border-radius: 10px; padding: 8px 12px; }
.mainnav .navbar-toggler { border: 2px solid rgba(255, 255, 255, .5); border-radius: 12px; }
@media (max-width: 991.98px) {
	.mainnav .navbar-collapse { padding: 10px 0 6px; }
	.mainnav .nav-link { padding: 10px 16px !important; }
}

/* ---------- สไลด์หน้าแรก ---------- */
.hero-slider { position: relative; background: #0b0f14; overflow: hidden; }
.hero-slider__viewport { position: relative; aspect-ratio: var(--slide-ratio, 16 / 6); max-height: 78vh; width: 100%; margin: 0 auto; }
.hero-slider__slide {
	position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
	transition: opacity .8s ease, visibility .8s;
	overflow: hidden;
}
.hero-slider__slide::before {
	content: ""; position: absolute; inset: -40px; background: var(--slide-bg) center / cover no-repeat;
	filter: blur(28px) brightness(.55); transform: scale(1.1);
}
.hero-slider__slide.is-active { opacity: 1; visibility: visible; }
/* รูปต้องพอดีกรอบเสมอ (กรอบถูกจำกัดความสูงด้วย max-height) — แสดงครบทั้งรูป ไม่ถูกตัด */
.hero-slider__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px);
	display: grid; place-items: center; transition: background .2s, transform .2s;
}
.hero-slider__nav:hover { background: rgba(255, 255, 255, .35); }
.hero-slider__nav--prev { left: 14px; }
.hero-slider__nav--next { right: 14px; }
.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-slider__dot {
	width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0;
	background: rgba(255, 255, 255, .5); transition: width .3s, background .3s;
}
.hero-slider__dot.is-active { width: 28px; background: #fff; }
@media (max-width: 575.98px) {
	.hero-slider__nav { width: 36px; height: 36px; }
}

/* ---------- แถบแนะนำ ---------- */
.intro-band {
	background: radial-gradient(ellipse at top, #1d2733 0%, #07090c 70%);
	color: #fff; padding: 44px 0 40px;
}
.intro-band__title { color: var(--accent); font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: .5rem; }
.intro-band__lead { color: #e9edf1; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 880px; margin: 0 auto 1.4rem; }
/* ---------- ปุ่มติดต่อแบบการ์ด (มีลูกเล่น) ---------- */
.contact-buttons {
	display: grid; gap: 12px; max-width: 1040px; margin: 0 auto;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cbtn {
	--c1: #1ba4ff; --c2: #0474be; --glow: rgba(27, 164, 255, .45);
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center; gap: 12px; text-align: left;
	padding: 10px 14px 10px 10px; border-radius: 18px; color: #fff;
	background: linear-gradient(135deg, var(--c1), var(--c2));
	box-shadow: 0 8px 20px -6px var(--glow), inset 0 0 0 1px rgba(255, 255, 255, .22);
	transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s ease, filter .25s;
	animation: cbtn-in .6s cubic-bezier(.2, .9, .3, 1.2) backwards;
	animation-delay: calc(var(--i, 0) * 90ms);
}
.cbtn:hover, .cbtn:focus-visible { color: #fff; transform: translateY(-4px); box-shadow: 0 16px 30px -8px var(--glow), inset 0 0 0 1px rgba(255, 255, 255, .35); filter: saturate(1.15); }
.cbtn:active { transform: translateY(-1px) scale(.98); }
.cbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* แสงวิ่งผ่านปุ่ม: วิ่งเองเป็นระยะ และวิ่งทันทีเมื่อชี้ */
.cbtn::before {
	content: ""; position: absolute; inset: -50% auto -50% -60%; width: 45%; z-index: -1;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg) translateX(0); animation: cbtn-shine 5s ease-in-out infinite;
	animation-delay: calc(1.2s + var(--i, 0) * .6s);
}
.cbtn:hover::before { animation: cbtn-shine-fast .7s ease-out; }
.cbtn__icon {
	position: relative; flex: none; display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem;
	background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
	transition: transform .3s ease, background .3s;
}
.cbtn:hover .cbtn__icon { transform: rotate(-8deg) scale(1.08); background: rgba(255, 255, 255, .3); }
/* วงคลื่นรอบไอคอนโทรศัพท์ */
.cbtn--phone .cbtn__icon::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .7);
	animation: cbtn-ring 2.2s ease-out infinite;
}
.cbtn--phone .cbtn__icon i { animation: fab-ring 2.6s ease-in-out infinite; }
.cbtn__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.cbtn__text small { font-size: .78rem; opacity: .9; letter-spacing: .2px; }
.cbtn__text strong { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbtn__arrow {
	margin-left: auto; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: rgba(255, 255, 255, .18); font-size: .8rem; opacity: .75; transition: transform .25s ease, opacity .25s, background .25s;
}
.cbtn:hover .cbtn__arrow { transform: translateX(4px); opacity: 1; background: rgba(255, 255, 255, .32); }
.cbtn--line { --c1: #2bd96f; --c2: #05a648; --glow: rgba(6, 199, 85, .45); }
.cbtn--line .cbtn__icon { font-size: 1.5rem; }
.cbtn--line:hover .cbtn__icon i { animation: cbtn-bounce .6s ease; }
.cbtn--messenger { --c1: #00b2ff; --c2: #7a3cff; --glow: rgba(122, 60, 255, .4); background: linear-gradient(135deg, #00b2ff, #006aff 50%, #a033ff); background-size: 160% 160%; }
.cbtn--messenger:hover { animation: cbtn-gradient 2.4s ease infinite; }
.cbtn--messenger:hover .cbtn__icon i { animation: cbtn-wiggle .6s ease; }
/* ripple ตอนกด (สร้างโดย js/site.js) */
.cbtn__ripple {
	position: absolute; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
	background: rgba(255, 255, 255, .55); pointer-events: none; animation: cbtn-ripple .6s ease-out forwards;
}
/* ในกล่องสีฟ้า (sidebar) ปุ่มโทรเป็นสีขาวให้ตัดกับพื้น */
.side-card--cta .cbtn--phone { --glow: rgba(0, 0, 0, .25); background: #fff; color: var(--brand-600); }
.side-card--cta .cbtn--phone .cbtn__icon { background: #e7f2fb; color: var(--brand); }
.side-card--cta .cbtn--phone .cbtn__icon::after { border-color: rgba(4, 116, 190, .5); }
.side-card--cta .cbtn--phone .cbtn__arrow { background: #e7f2fb; color: var(--brand); }
.side-card--cta .cbtn--phone::before { background: linear-gradient(90deg, transparent, rgba(4, 116, 190, .15), transparent); }
.side-card .contact-buttons, .content-card .contact-buttons { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: none; }
@keyframes cbtn-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes cbtn-shine { 0%, 82% { transform: skewX(-20deg) translateX(0); } 100% { transform: skewX(-20deg) translateX(420%); } }
@keyframes cbtn-shine-fast { from { transform: skewX(-20deg) translateX(0); } to { transform: skewX(-20deg) translateX(420%); } }
@keyframes cbtn-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes cbtn-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } 70% { transform: translateY(2px); } }
@keyframes cbtn-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
@keyframes cbtn-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes cbtn-ripple { to { transform: scale(40); opacity: 0; } }
@media (max-width: 575.98px) {
	.contact-buttons { grid-template-columns: 1fr 1fr; gap: 8px; }
	.cbtn { gap: 8px; padding: 8px 10px 8px 8px; border-radius: 14px; }
	.cbtn__icon { width: 38px; height: 38px; border-radius: 11px; font-size: 1.05rem; }
	.cbtn--line .cbtn__icon { font-size: 1.3rem; }
	.cbtn__text small { font-size: .7rem; }
	.cbtn__text strong { font-size: .92rem; }
	.cbtn__arrow { display: none; }
}

/* ---------- Section ---------- */
.section { padding: 56px 0; }
.section--pattern {
	background:
		url(../img/bg-loop-1.png) repeat-x top,
		url(../img/bg-loop-2.png) repeat-x bottom,
		url(../img/bg-loop.png) #15181c;
}
.section--light { background: var(--surface-2); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { color: var(--accent); font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 4px; }
.section-head p { color: rgba(255, 255, 255, .7); margin: 0; }
.section-intro { color: rgba(255, 255, 255, .85); text-align: center; max-width: 820px; margin: 0 auto 28px; }
.section-title-dark { font-size: 1.35rem; margin-bottom: 16px; color: var(--ink); }
.section-title-dark i { color: var(--brand); }

/* ---------- ส่วนหัวหน้า + breadcrumb ---------- */
.page-header { background: #fff; padding: 18px 0 20px; border-bottom: 4px solid #e8ebef; }
.page-header .breadcrumb { margin-bottom: 6px; font-size: .92rem; --bs-breadcrumb-divider: '›'; }
.page-header .breadcrumb a { color: var(--brand); }
.page-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #39434e; margin: 0; position: relative; padding-bottom: 10px; }
.page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: var(--brand); }

/* ---------- การ์ด ---------- */
.content-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
@media (max-width: 575.98px) { .content-card { padding: 18px; } }

.work-card {
	display: flex; flex-direction: column; height: 100%;
	background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--ink);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28); transition: transform .3s, box-shadow .3s;
}
.work-card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 16px 36px rgba(0, 0, 0, .36); }
.work-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9edf1; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__zoom {
	position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: #fff;
	background: rgba(4, 116, 190, .45); opacity: 0; transition: opacity .3s;
}
.work-card:hover .work-card__zoom { opacity: 1; }
.work-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.work-card__title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; }
.work-card__meta { display: flex; gap: 14px; color: var(--muted); font-size: .88rem; }

/* ---------- ส่วนข้อมูลร้าน + FAQ ---------- */
.section--info {
	position: relative;
	background:
		radial-gradient(circle at 8% 0%, rgba(27, 164, 255, .14), transparent 38%),
		radial-gradient(circle at 95% 100%, rgba(233, 208, 98, .22), transparent 42%),
		var(--surface-2);
}
.eyebrow {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
	font-family: var(--font-head); font-size: .78rem; font-weight: 500; letter-spacing: .4px;
	background: #e6f1fa; color: var(--brand-600);
}
.eyebrow--light { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

.facts-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.facts-card__head {
	position: relative; overflow: hidden; padding: 24px 24px 22px; color: #fff;
	background: linear-gradient(135deg, #1ba4ff 0%, #0474be 45%, #023e66 100%);
}
.facts-card__head::before, .facts-card__head::after {
	content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none;
}
.facts-card__head::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.facts-card__head::after { width: 120px; height: 120px; right: 60px; bottom: -70px; background: rgba(233, 208, 98, .18); }
.facts-card__title { position: relative; color: #fff; font-size: 1.45rem; margin: 10px 0 6px; }
.facts-card__summary { position: relative; margin: 0; color: rgba(255, 255, 255, .88); font-size: .95rem; line-height: 1.6; }
.facts-card__summary strong { color: var(--accent); font-weight: 600; }
.facts-list { margin: 0; padding: 10px 14px; flex: 1; }
.facts-row { display: flex; gap: 14px; align-items: flex-start; padding: 11px 10px; border-radius: 14px; transition: background .2s, transform .2s; }
.facts-row + .facts-row { border-top: 1px dashed #e6ebf1; }
.facts-row:hover { background: #f3f8fd; transform: translateX(3px); }
.facts-row__icon {
	flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
	background: #e8f3fc; color: var(--brand); font-size: 1rem; transition: transform .25s;
}
.facts-row:hover .facts-row__icon { transform: scale(1.08) rotate(-6deg); }
.facts-row--line .facts-row__icon { background: #e3f9ec; color: #05a648; font-size: 1.2rem; }
.facts-row--facebook .facts-row__icon { background: #e7effd; color: #1877f2; }
.facts-row--location .facts-row__icon { background: #fdecec; color: var(--red); }
.facts-row--email .facts-row__icon { background: #fff4dc; color: #c58a00; }
.facts-row--works .facts-row__icon { background: #f1e9fe; color: #7a3cff; }
.facts-row__body { min-width: 0; }
.facts-row dt { font-size: .78rem; font-weight: 400; color: var(--muted); margin-bottom: 2px; }
.facts-row dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.5; }
.facts-row dd address { font-weight: 600; }
.facts-row dd a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(4, 116, 190, .35); text-underline-offset: 3px; }
.facts-row dd a:hover { color: var(--brand); text-decoration-color: var(--brand); }
.facts-sep { color: #b6c0ca; margin: 0 2px; }
.facts-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.facts-tag { padding: 3px 10px; border-radius: 999px; background: #eef6fd; color: var(--brand-600); font-size: .82rem; font-weight: 500; }
.facts-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 24px 24px; }
.facts-card__actions .btn { padding: 10px 12px; font-size: .95rem; }
@media (max-width: 399.98px) { .facts-card__actions { grid-template-columns: 1fr; } }

.faq-block__head { margin-bottom: 18px; }
.faq-block__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 10px 0 4px; color: var(--ink); }
.faq-block__sub { margin: 0; color: var(--muted); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
	background: #fff; border-radius: 18px; border: 1px solid #e4e9ef; box-shadow: var(--shadow-sm);
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.faq-item:hover { transform: translateY(-2px); }
.faq-item:has([aria-expanded="true"]) { border-color: rgba(4, 116, 190, .4); box-shadow: 0 16px 34px -14px rgba(4, 116, 190, .4); }
.faq-item__q { margin: 0; font-size: 1rem; }
.faq-item__q button {
	width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 16px; text-align: left;
	background: none; border: 0; border-radius: 18px; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: 1.02rem;
}
.faq-item__q button:focus-visible { outline: 3px solid rgba(4, 116, 190, .35); outline-offset: 2px; }
.faq-item__num {
	flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
	background: #eef6fd; color: var(--brand); font-size: .9rem; font-weight: 600; transition: background .25s, color .25s, transform .25s;
}
.faq-item__text { flex: 1; }
.faq-item__toggle {
	flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: #f1f4f7; color: var(--muted); font-size: .8rem; transition: transform .3s ease, background .25s, color .25s;
}
.faq-item__q button[aria-expanded="true"] .faq-item__num { background: linear-gradient(135deg, #1ba4ff, #0474be); color: #fff; transform: rotate(-6deg); }
.faq-item__q button[aria-expanded="true"] .faq-item__toggle { transform: rotate(135deg); background: var(--brand); color: #fff; }
.faq-item__q button[aria-expanded="true"] .faq-item__text { color: var(--brand-600); }
.faq-item__a { padding: 0 18px 18px 68px; color: #3c4651; line-height: 1.75; }
.faq-item__a a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 575.98px) {
	.faq-item__q button { gap: 10px; padding: 13px 12px; font-size: .97rem; }
	.faq-item__num { width: 32px; height: 32px; border-radius: 10px; font-size: .8rem; }
	.faq-item__a { padding: 0 14px 16px 14px; }
}
.faq-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: 16px; padding: 16px 18px; border-radius: 18px; color: #fff;
	background: linear-gradient(135deg, #12161b, #2b3440);
	box-shadow: var(--shadow-sm);
}
.faq-cta__text { display: flex; flex-direction: column; line-height: 1.4; }
.faq-cta__text strong { font-family: var(--font-head); font-weight: 500; color: var(--accent); font-size: 1.05rem; }
.faq-cta__text span { font-size: .92rem; color: #c9d2db; }
.faq-cta__actions { display: flex; gap: 8px; }
.faq-cta__actions .btn { padding: 8px 18px; }

/* ---------- หน้ารายละเอียดผลงาน ---------- */
.meta-list { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; }
.lead-summary { background: #eef6fd; border-left: 4px solid var(--brand); padding: 12px 16px; border-radius: 0 12px 12px 0; color: #2f3b47; }
.post-content { margin-bottom: 1rem; }
.post-content img { height: auto; border-radius: 10px; }
.post-content .ql-align-center { text-align: center; }
.post-content .ql-align-right { text-align: right; }
.post-content .ql-align-justify { text-align: justify; }
.post-content li[data-list="bullet"] { list-style-type: disc; }
.post-content li[data-list="ordered"] { list-style-type: decimal; }
.post-content .ql-ui { display: none; }
.post-content .ql-indent-1 { padding-left: 2em; }
.post-content .ql-indent-2 { padding-left: 4em; }
.post-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.post-cover { margin: 0 0 8px; }
.post-cover img { width: 100%; height: auto; border-radius: 12px; }

.share-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.share-bar__label { color: var(--muted); font-size: .9rem; }
.share-btn {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0;
	color: #fff; transition: transform .2s;
}
.share-btn:hover { color: #fff; transform: translateY(-2px); }
.share-btn--fb { background: #1877f2; }
.share-btn--line { background: var(--line-green); font-size: 1.15rem; }
.share-btn--copy { background: #5b6672; }
.share-btn.is-copied { background: #16a34a; }

/* อัลบั้มภาพแบบตาราง 1:1 (เขียนเอง แทน Unite Gallery) */
.jgallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.jgallery__item {
	position: relative; display: block; overflow: hidden; border-radius: 10px; background: #e9edf1;
	aspect-ratio: 1 / 1;
}
.jgallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s; }
.jgallery__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: 1.4rem;
	background: rgba(60, 207, 219, .45); opacity: 0; transition: opacity .3s;
}
.jgallery__item:hover img { transform: scale(1.07); }
.jgallery__item:hover::after, .jgallery__item:focus-visible::after { opacity: 1; }
@media (max-width: 767.98px) { .jgallery { grid-template-columns: repeat(3, 1fr); gap: 4px; } .jgallery__item { border-radius: 6px; } }

.side-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.side-card__title { font-size: 1.15rem; margin: 4px 4px 12px; }
.side-card--cta { background: linear-gradient(135deg, #0474be, #035c97); color: #fff; }
.side-card--cta .side-card__title { color: var(--accent); }
.side-work { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: var(--ink); transition: background .2s; }
.side-work:hover { background: #fff8d9; color: var(--ink); }
.side-work img { width: 104px; height: 78px; object-fit: cover; border-radius: 10px; flex: none; }
.side-work strong { display: block; color: var(--brand); font-family: var(--font-head); font-weight: 500; }
.side-work small { color: var(--muted); }

/* ---------- ติดต่อ ---------- */
.contact-banner { width: 100%; height: auto; border-radius: 12px; }
.contact-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #e3e8ee; }
.contact-list li > i { color: var(--brand); margin-top: 4px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.embed-consent { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #eef2f6; }
.embed-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 16px; color: var(--muted); }
.embed-consent__placeholder > i { font-size: 2.6rem; color: var(--brand); }
.embed-consent.is-loaded .embed-consent__placeholder { display: none; }

.tag-pill {
	display: inline-block; margin: 0 4px 6px 0; padding: 3px 12px; border-radius: 999px;
	background: #e6f1fa; color: var(--brand-600); font-size: .85rem; transition: .2s;
}
.tag-pill:hover { background: var(--brand); color: #fff; }

.service-list, .step-list { padding-left: 1.2rem; }
.service-list li, .step-list li { margin-bottom: 4px; }

/* ---------- นโยบาย ---------- */
.policy-content { max-width: 900px; margin: 0 auto; }
.policy-content h2 { font-size: 1.25rem; margin-top: 1.8rem; color: var(--brand-600); }
.policy-content h3 { font-size: 1.05rem; margin-top: 1rem; }
.policy-meta { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #15191e; color: #c4ccd4; font-size: .98rem; }
.footer-title { color: var(--accent); font-size: 1.2rem; margin-bottom: 14px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; }
.footer-contact i { color: var(--brand-300); margin-top: 4px; }
.footer-services { columns: 2; column-gap: 16px; }
.footer-services li { margin-bottom: 6px; break-inside: avoid; }
.footer-services i { color: var(--brand-300); font-size: .8rem; }
.footer-tags .tag-pill { background: rgba(255, 255, 255, .08); color: #d8e1ea; }
.footer-tags .tag-pill:hover { background: var(--brand); color: #fff; }
.counter-table { width: 100%; }
.counter-table th { font-weight: 400; padding: 3px 0; color: #c4ccd4; }
.counter-table td { text-align: right; font-family: var(--font-head); color: #fff; }
.counter-table tr:last-child th, .counter-table tr:last-child td { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 6px; color: var(--accent); }
.footer-bottom { background: #0d1014; border-top: 3px solid var(--brand); padding: 16px 0; font-size: .9rem; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.footer-links a, .footer-cookie-btn { color: #c4ccd4 !important; font-size: .9rem; text-decoration: none; }
.footer-links a:hover, .footer-cookie-btn:hover { color: #fff !important; }

/* ---------- ปุ่มติดต่อลอย (FAB) — แสดงข้อมูลตลอด ไม่ต้องกด toggle ---------- */
.fab-dock {
	transition: transform .3s ease;
	position: fixed; right: 18px; bottom: 18px; z-index: 1040;
	display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab-item {
	display: flex; align-items: center; gap: 10px; color: #fff;
	padding: 6px 18px 6px 6px; border-radius: 999px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .18);
	transition: transform .25s ease, box-shadow .25s ease;
	animation: fab-in .6s cubic-bezier(.2, .9, .3, 1.2) both;
}
.fab-item:nth-child(2) { animation-delay: .08s; }
.fab-item:nth-child(3) { animation-delay: .16s; }
.fab-item:hover, .fab-item:focus-visible { color: #fff; transform: translateX(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .32); }
.fab-item__icon {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: rgba(255, 255, 255, .22); font-size: 1.15rem; flex: none;
}
.fab-item__text { display: flex; flex-direction: column; line-height: 1.15; }
.fab-item__text small { font-size: .72rem; opacity: .9; }
.fab-item__text strong { font-family: var(--font-head); font-weight: 500; font-size: 1rem; }
.fab-item--phone { background: linear-gradient(135deg, #1ba4ff, #0474be); }
.fab-item--phone .fab-item__icon i { animation: fab-ring 2.6s ease-in-out infinite; }
.fab-item--line { background: linear-gradient(135deg, #22d36b, #06b04c); }
.fab-item--line .fab-item__icon { font-size: 1.45rem; }
.fab-item--messenger { background: linear-gradient(135deg, #00b2ff, #006aff 55%, #a033ff); }
@keyframes fab-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes fab-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-18deg); } 80% { transform: rotate(16deg); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(8deg); } }

.back-to-top {
	position: fixed; left: 18px; bottom: 18px; z-index: 1039; width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: rgba(20, 26, 33, .85); color: #fff; box-shadow: var(--shadow-sm);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand); }

/* มือถือ: FAB กลายเป็นแถบล่าง 3 ปุ่ม แสดงข้อความชัดเจน */
@media (max-width: 767.98px) {
	body { padding-bottom: 66px; }
	.fab-dock {
		left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; align-items: stretch;
		background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .15);
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	}
	.fab-item {
		flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; margin: 0 3px;
		border-radius: 14px; box-shadow: none; text-align: center; animation-name: fab-up;
	}
	.fab-item:hover, .fab-item:focus-visible { transform: none; }
	.fab-item__icon { width: 26px; height: 26px; background: none; font-size: 1.1rem; }
	.fab-item--line .fab-item__icon { font-size: 1.3rem; }
	.fab-item__text small { display: none; }
	.fab-item__text strong { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
	.fab-item__text { width: 100%; align-items: center; }
	.back-to-top { left: auto; right: 12px; bottom: 78px; width: 40px; height: 40px; }
	@keyframes fab-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}

/* ---------- แบนเนอร์คุกกี้ (PDPA) ---------- */
.cookie-banner {
	position: fixed; left: 18px; bottom: 18px; z-index: 1060; width: min(720px, calc(100% - 290px));
	background: rgba(17, 22, 28, .96); color: #e8edf2; border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .35); backdrop-filter: blur(8px);
	animation: cookie-in .5s ease both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 20px; }
.cookie-banner__icon { font-size: 1.8rem; color: var(--accent); }
.cookie-banner__text strong { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.cookie-banner__text p { font-size: .9rem; margin: 4px 0 0; color: #c4ccd4; }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 767.98px) {
	.cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; border-radius: 16px; }
	.cookie-banner__actions .btn { flex: 1; }
	.has-cookie-banner .fab-dock { transform: translateY(110%); }
}
.consent-option { padding: 12px 0; border-bottom: 1px solid #edf0f3; }
.consent-option:last-child { border-bottom: 0; }
.consent-option p { margin: 4px 0 0 2.6em; font-size: .9rem; color: var(--muted); }
.consent-option .form-check-input { width: 2.4em; height: 1.25em; }

/* ---------- Lightbox (เขียนเอง) ---------- */
.lightbox {
	position: fixed; inset: 0; z-index: 2000; background: rgba(6, 9, 13, .95);
	display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .2s; }
.lightbox__img.is-loading { opacity: .25; }
.lightbox__caption { color: #dfe6ed; margin-top: 10px; font-size: .95rem; text-align: center; }
.lightbox__btn {
	position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff;
	width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 24px; left: 20px; color: #c4ccd4; font-family: var(--font-head); }
body.lightbox-open { overflow: hidden; }
@media (max-width: 575.98px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } }

/* ---------- เอฟเฟกต์ตอนเลื่อน ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- หน้าแอดมิน ---------- */
.admin-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%;
	padding: 22px 12px; border-radius: var(--radius); text-align: center; color: #fff;
	background: linear-gradient(135deg, #0474be, #034f82); box-shadow: var(--shadow-sm); transition: transform .2s;
}
.admin-tile i { font-size: 1.8rem; }
.admin-tile:hover { color: var(--accent); transform: translateY(-3px); }
.admin-form__title { font-size: 1.15rem; margin-bottom: 16px; }
.admin-form__title i { color: var(--brand); margin-right: 6px; }
.admin-savebar { position: sticky; bottom: 0; z-index: 5; padding: 14px; text-align: center; background: rgba(243, 246, 249, .92); backdrop-filter: blur(6px); }
.og-preview { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; border: 1px solid #dfe5eb; background: #eef2f6; }
.cover-preview { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 8px; }
.editor { background: #fff; }
.editor .ql-editor { min-height: 280px; font-family: var(--font-body); font-size: 1rem; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: #ced4da; }
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; }
.ql-container.ql-snow { border-radius: 0 0 10px 10px; }
.gallery-upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.gallery-upload__drop {
	flex: 1 1 320px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer;
	padding: 18px; border: 2px dashed #b8c4d0; border-radius: 14px; color: var(--muted); text-align: center; transition: .2s;
}
.gallery-upload__drop:hover, .gallery-upload__drop.is-dragover { border-color: var(--brand); background: #eef6fd; color: var(--brand-600); }
.gallery-upload__drop i { font-size: 1.8rem; color: var(--brand); }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.admin-gallery__item { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #eef2f6; cursor: pointer; }
.admin-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.admin-gallery__item span { display: block; font-size: .72rem; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.admin-gallery__item input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; z-index: 1; }
.admin-gallery__item:has(input:checked) { outline: 3px solid #dc3545; }

@media (max-width: 575.98px) {
	.brand img { height: 52px; }
	.section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* หน้าแอดมิน: ซ่อนปุ่มติดต่อลอยไม่ให้บังปุ่มจัดการ */
.admin-page .fab-dock { display: none; }
.admin-page { padding-bottom: 0; }

/* ---------- Carousel ผลงาน (หน้าแรก) ---------- */
.wcarousel { --gap: 18px; --pv: 4.25; position: relative; }
.wcarousel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.wcarousel__title { color: var(--accent); font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 2px; }
.wcarousel__sub { color: rgba(255, 255, 255, .75); margin: 0; }
.wcarousel__nav { display: flex; gap: 10px; flex: none; }
.wcarousel__btn {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: #fff; color: var(--ink); font-size: 1rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
	transition: background .25s, color .25s, transform .25s, opacity .25s;
}
.wcarousel__btn:hover:not(:disabled), .wcarousel__btn:focus-visible { background: var(--brand); color: #fff; transform: translateY(-2px); }
.wcarousel__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wcarousel__btn:disabled { opacity: .35; cursor: default; }
.wcarousel__track {
	position: relative; display: flex; gap: var(--gap);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding: 8px 2px 22px; margin: -8px -2px 0; cursor: grab;
}
.wcarousel__track::-webkit-scrollbar { display: none; }
.wcarousel__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.wcard { flex: 0 0 calc((100% - var(--gap) * (var(--pv) - 1)) / var(--pv)); min-width: 0; scroll-snap-align: start; }
.wcard__link {
	display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden;
	background: #fff; color: var(--ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
	transition: transform .3s ease, box-shadow .3s ease;
}
.wcard__link:hover, .wcard__link:focus-visible { color: var(--ink); transform: translateY(-5px); box-shadow: 0 18px 36px rgba(0, 0, 0, .38); }
.wcard__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wcard__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9edf1; }
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; -webkit-user-drag: none; }
.wcard__link:hover .wcard__media img { transform: scale(1.06); }
.wcard__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; background: #fff; }
.wcard__title {
	font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.35; color: var(--ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wcard__cat { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.wcard__cat i { color: var(--red); }
.wcarousel__dots { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 10px; }
.wcarousel__dot {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .35); transition: width .35s ease, background .35s ease;
}
.wcarousel__dot:hover { background: rgba(255, 255, 255, .6); }
.wcarousel__dot.is-active { width: 34px; background: var(--accent); }
.wcarousel__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 1199.98px) { .wcarousel { --pv: 3.25; } }
@media (max-width: 991.98px) { .wcarousel { --pv: 2.25; } }
@media (max-width: 767.98px) { .wcarousel { --pv: 1.6; --gap: 14px; } }
@media (max-width: 575.98px) {
	.wcarousel { --pv: 1.18; --gap: 12px; }
	.wcarousel__btn { width: 40px; height: 40px; font-size: .9rem; }
	.wcarousel__sub { font-size: .92rem; }
}
