/* KSS STUDIOS — หน้าเว็บฝั่งลูกค้า
   ฟีลงานแต่ง: ละมุน น่ารัก โค้งมน · เอิร์ธโทนครีม + ชมพูอมน้ำตาล (blush) จากภาพโทนสีที่ลูกค้าส่งมา
   ฟอนต์เดียวทั้งเว็บ Anuphan 400/600/700 · ไอคอนเส้น 1.5px · ลายประกายใช้ตกแต่งอย่างเดียว */

:root {
  --accent: #84604c;
  --accent-dk: #6b4c3b;
  --paper: #f8f3ed;
  --paper-2: #f2e8df;
  --card: #fffcf9;
  --blush: #efdcd1;
  --blush-2: #f6e9e1;
  --rose: #c49a86;
  --sand: #e3d5c1;
  --clay: #c9b2a0;
  --olive: #75705e;
  --ink: #33281f;
  --ink-2: #5a4a3f;
  --muted: #6e5f55;
  --line: rgba(132, 96, 76, .16);
  --dark: #3a2d26;
  --cream: #f8f3ed;
  --r: 28px;
  --r-md: 22px;
  --r-sm: 16px;
  --soft: 0 24px 48px -30px rgba(132, 96, 76, .45);
  --soft-sm: 0 12px 28px -20px rgba(132, 96, 76, .45);
  --font: 'Anuphan', 'Noto Sans Thai', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: 16px;
  --head-h: 58px;
  --head-gap: 10px;
}
@media (min-width: 768px) { :root { --gut: 28px; --head-h: 66px; --head-gap: 14px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 28px); }
body {
  margin: 0; color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.4; }
h3 { font-size: clamp(19px, 1.6vw, 22px); }
h4 { font-size: 18px; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
svg.brand-mark { stroke: none; }
::selection { background: var(--blush); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { min-height: 44px; position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ลายประกาย: เส้น · ประกาย · เส้น */
.orn { display: inline-flex; align-items: center; gap: 10px; color: var(--rose); margin-bottom: 14px; }
.orn::before, .orn::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.orn svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.orn-light { color: rgba(248, 243, 237, .85); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; line-height: 1.4;
  box-shadow: 0 10px 22px -14px rgba(107, 76, 59, .8);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn .brand-mark { width: 22px; height: 22px; }
@media (hover: hover) { .btn:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(107, 76, 59, .9); } }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--card); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
@media (hover: hover) { .btn-light:hover { background: #fff; color: var(--ink); } }
.btn-ghost { background: rgba(255, 252, 249, .6); color: var(--ink); border-color: rgba(132, 96, 76, .35); box-shadow: none; }
@media (hover: hover) { .btn-ghost:hover { background: var(--accent); color: #fff; border-color: var(--accent); } }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- หัวเว็บ: แคปซูลลอย ---------- */
.site-head {
  position: sticky; top: var(--head-gap); z-index: 40;
  height: var(--head-h); margin: var(--head-gap) 0 calc(-1 * (var(--head-h) + var(--head-gap)));
  padding: 0 var(--gut); pointer-events: none;
}
/* หน้าไม่มีแบนเนอร์ (เช่นบทความ) เว้นที่ให้หัวเว็บ */
main:not(:has(> .hero:first-child)) { padding-top: calc(var(--head-h) + var(--head-gap) * 2); }
.head-row {
  position: relative; pointer-events: auto;
  height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 8px 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px;
}
/* กระจกฝ้าอยู่ที่ชั้นล่าง ไม่ใส่ที่ตัวกล่องเอง ไม่งั้นเมนูมือถือ (position: fixed) จะถูกขังไว้ในกล่อง */
.head-row::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255, 252, 249, .8); border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 10px 30px -18px rgba(90, 60, 45, .45); transition: background .3s; }
.site-head.scrolled .head-row::before { background: rgba(255, 252, 249, .92); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.logo img { width: 40px; height: 40px; border-radius: 50%; }
@media (min-width: 768px) { .logo img { width: 46px; height: 46px; } .logo { font-size: 17px; } }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 15.5px; color: var(--ink-2); border-radius: 999px; transition: color .2s, background .2s; }
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--blush-2); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--blush); }
.nav-cta { margin-left: 8px; min-height: 46px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--blush-2); border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle svg + svg { display: none; }

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: -2;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: calc(var(--head-h) + var(--head-gap) + 28px) calc(var(--gut) + 8px) 40px;
    background: radial-gradient(80% 50% at 100% 0%, var(--blush) 0%, transparent 70%), var(--paper);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .site-nav a:not(.btn) { padding: 0 20px; min-height: 54px; font-size: 19px; background: var(--card); border: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { background: var(--blush); border-color: transparent; }
  .nav-cta { margin: 16px 0 0; min-height: 54px; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav-open .nav-toggle svg { display: none; }
  .nav-open .nav-toggle svg + svg { display: block; }
  .nav-open { overflow: hidden; }
}

/* ---------- แบนเนอร์: ขอบล่างโค้ง ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--cream); }
.hero-full, .hero-compact { clip-path: ellipse(150% 100% at 50% 0%); }
.hero-full { height: clamp(460px, 68svh, 70vh); }
@media (min-width: 720px) { .hero-full { height: clamp(580px, 90svh, 900px); } }
.hero-compact { height: clamp(380px, 56svh, 580px); }
.hero-track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.hero-slide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.1s var(--ease); }
.hero-media { position: absolute; inset: -4% 0; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-media picture, .hero-img { width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(58, 38, 30, .78) 0%, rgba(74, 48, 38, .42) 36%, rgba(74, 48, 38, .08) 64%, rgba(74, 48, 38, .22) 100%); }
.hero-slide > .wrap { position: relative; height: 100%; }
.hero-body {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 104px;
  max-width: 820px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title { margin: 0 0 14px; font-size: clamp(30px, 5vw, 60px); font-weight: 600; line-height: 1.4; color: var(--cream); text-wrap: balance; text-shadow: 0 2px 30px rgba(40, 20, 12, .35); }
.hero-sub { margin: 0 0 28px; max-width: 600px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(248, 243, 237, .92); text-wrap: balance; }
.hero-compact .hero-body { bottom: 72px; }
.hero-compact .hero-title { font-size: clamp(28px, 4.2vw, 50px); }
.hero-compact .hero-sub { margin-bottom: 22px; }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 4px; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(248, 243, 237, .4); background: rgba(255, 252, 249, .12); color: var(--cream);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.hero-arrow:hover { background: rgba(255, 252, 249, .28); }
.hero-dots { display: flex; align-items: center; }
.hero-dots button { width: 44px; height: 44px; margin: 0 -6px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dots button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(248, 243, 237, .5); transition: width .35s var(--ease), background .3s; }
.hero-dots button[aria-current="true"]::after { width: 24px; background: var(--cream); }
@media (max-width: 719px) { .hero-body { bottom: 96px; } .hero-ctrl { bottom: 26px; } }

/* แบนเนอร์แบบครึ่งจอ */
.hero.hero-split { height: auto; background: radial-gradient(70% 80% at 0% 0%, var(--blush) 0%, transparent 60%), var(--paper-2); color: var(--ink); }
.hero-split .hero-track { position: relative; display: grid; }
.hero-split .hero-slide { position: relative; grid-area: 1 / 1; }
.hero-split .hero-split-in { display: grid; gap: 28px; padding-top: calc(var(--head-h) + 48px); padding-bottom: 88px; align-items: center; }
@media (min-width: 900px) { .hero-split .hero-split-in { grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 104px; } }
.hero-split .hero-body { position: static; text-align: left; align-items: flex-start; margin: 0; }
.hero-split .hero-title, .hero-split .hero-sub { color: var(--ink); text-shadow: none; }
.hero-split .hero-pic img { width: 100%; border-radius: 999px 999px var(--r) var(--r); }
.hero-split .hero-arrow { color: var(--ink); border-color: var(--line); }
.hero-split .hero-dots button::after { background: rgba(51, 40, 31, .25); }
.hero-split .hero-dots button[aria-current="true"]::after { background: var(--ink); }

/* ---------- ส่วนทั่วไป ---------- */
.sec { position: relative; padding: clamp(60px, 8vw, 116px) 0; }
/* ส่วนพื้นสีเป็นแผ่นมุมโค้งลอย ไล่สีชมพูอ่อนนุ่มๆ */
.sec-alt {
  margin: 0 8px; border-radius: 36px;
  background:
    radial-gradient(45% 55% at 0% 0%, rgba(239, 220, 209, .95) 0%, rgba(239, 220, 209, 0) 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(227, 213, 193, .9) 0%, rgba(227, 213, 193, 0) 70%),
    var(--paper-2);
}
@media (min-width: 768px) { .sec-alt { margin: 0 16px; border-radius: 56px; } }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto clamp(32px, 4.5vw, 56px); max-width: 760px; }
.sec-head p { margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }
.link-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 0 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--accent); white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.link-more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-more:hover { background: var(--blush-2); }
.link-more:hover svg { transform: translateX(4px); }

.ico { position: relative; width: 58px; height: 58px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blush); color: var(--accent); }
.ico::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(196, 154, 134, .6); }
.ico svg { width: 24px; height: 24px; }

/* ---------- บริการ (การ์ด) ---------- */
.svc-group + .svc-group { margin-top: clamp(44px, 5vw, 72px); }
.svc-group-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 24px; text-align: left; max-width: 760px; }
.svc-group-head h3 { font-size: clamp(20px, 2vw, 26px); }
.svc-group-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.svc-group-pic { flex: none; padding: 3px; border-radius: 50%; border: 1.5px solid var(--rose); }
.svc-group-pic img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
@media (max-width: 599px) { .svc-group-head { justify-content: flex-start; } }
/* แถวสุดท้ายที่ไม่เต็มแถว จัดไว้กลาง (เข้ากับหัวข้อที่อยู่กลางหน้า) */
.svc-grid { --c: 2; --g: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); }
.svc-grid > * { width: calc((100% - (var(--c) - 1) * var(--g)) / var(--c)); }
@media (min-width: 768px) { .svc-grid { --c: 3; --g: 22px; } }
@media (min-width: 1100px) { .svc-grid { --c: 4; } }
@media (min-width: 768px) { .svc-grid.svc-2 { --c: 2; max-width: 900px; margin: 0 auto; } }
.svc { display: flex; flex-direction: column; padding: 8px; background: var(--card); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--soft-sm); transition: transform .3s var(--ease), box-shadow .3s; }
@media (hover: hover) {
  .svc:hover { transform: translateY(-4px); box-shadow: var(--soft); }
  .svc:hover .svc-pic img { transform: scale(1.04); }
}
.svc-pic { aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--r) - 8px); background: var(--sand); }
.svc-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-blank { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--accent);
  background: radial-gradient(90% 80% at 30% 20%, #fbefe8 0%, var(--blush) 55%, #e6cfc2 100%); }
.svc-blank svg { width: 48px; height: 48px; stroke-width: 1.25; }
.svc-body { padding: 14px 8px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (min-width: 768px) { .svc-body { padding: 18px 14px 16px; gap: 8px; } }
.svc-cat { align-self: flex-start; font-size: 14px; line-height: 1.5; color: var(--accent); background: var(--blush-2); padding: 2px 12px; border-radius: 999px; }
.svc h3, .svc h4 { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.45; }
.svc p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.svc p a, .prose a, .about-text p a, .faq-a a, .contact-note a { padding: 10px 0; margin: -10px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.svc .btn { margin-top: auto; align-self: flex-start; }
.card-price { font-weight: 700; color: var(--accent); }
.card-price s { margin-left: 8px; color: var(--muted); font-weight: 400; }
.card-sold { color: #9a3b2a; font-weight: 600; }
@media (max-width: 479px) {
  .svc { padding: 6px; border-radius: 22px; }
  .svc-pic { border-radius: 17px; }
  .svc-body { padding: 12px 6px 10px; }
  .svc h3, .svc h4 { font-size: 16px; }
  .svc p { font-size: 14px; }
}

.rows { display: grid; gap: 14px; }
.row-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--soft-sm); }
.row-item p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.row-cta { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
@media (min-width: 768px) { .row-item { grid-template-columns: 180px 1fr auto; } .row-cta { grid-column: auto; } }

/* ---------- จุดเด่น: การ์ดโค้งกลางหน้า ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 16px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; box-shadow: var(--soft-sm); transition: transform .3s var(--ease), box-shadow .3s; }
@media (hover: hover) { .feature:hover { transform: translateY(-4px); box-shadow: var(--soft); } }
@media (min-width: 768px) { .feature { padding: 36px 26px 32px; } }
.feature h3 { margin: 22px 0 8px; font-size: clamp(16px, 1.5vw, 20px); }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (min-width: 768px) { .feature p { font-size: 15.5px; } }

/* ตารางราคา */
.prices { display: grid; gap: 14px; }
@media (min-width: 600px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .prices { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 22px; } }
.price-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px 28px;
  display: flex; flex-direction: column; box-shadow: var(--soft-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.price-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--blush-2); z-index: 0; }
.price-card > * { position: relative; z-index: 1; }
@media (hover: hover) { .price-card:hover { transform: translateY(-4px); box-shadow: var(--soft); } }
.price-card .ico { width: 48px; height: 48px; }
.price-card .ico::after { inset: -5px; }
.price-card .ico svg { width: 20px; height: 20px; }
.price-card h3 { margin: 20px 0 6px; font-size: 19px; }
.price-amt { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; color: var(--accent); line-height: 1.4; }
.price-note { margin: 0; padding-top: 14px; border-top: 1px dashed rgba(196, 154, 134, .55); color: var(--muted); font-size: 15px; }

/* ---------- เกี่ยวกับ: รูปแนวตั้งเป็นทรงซุ้มโค้ง มีเส้นซุ้มซ้อนด้านหลัง ---------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 104px); }
  .about.pic-right .about-pic { order: 2; }
}
.about.no-pic { grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; }
.about-pic { position: relative; margin: 0 auto; width: 100%; max-width: 560px; isolation: isolate; }
.about-pic img { position: relative; width: 100%; border-radius: var(--r); box-shadow: var(--soft); }
.about-pic::before { content: ''; position: absolute; inset: 18px -14px -14px 18px; z-index: -1; border-radius: var(--r); border: 1.5px solid rgba(196, 154, 134, .55); }
.about-pic::after { content: ''; position: absolute; width: 46%; aspect-ratio: 1; left: -10%; bottom: -8%; z-index: -2; border-radius: 50%; background: var(--blush); }
.about-pic.is-tall { width: fit-content; max-width: 420px; }
.about-pic.is-tall img { border-radius: 999px 999px var(--r) var(--r); max-height: min(80vh, 640px); width: auto; margin: 0 auto; }
.about-pic.is-tall::before { border-radius: 999px 999px var(--r) var(--r); }
@media (max-width: 599px) { .about-pic { max-width: calc(100% - 20px); } .about-pic.is-tall img { max-height: 420px; } }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--ink-2); }
.about-text .btn { margin-top: 14px; }

/* ---------- ผลงาน (ห้ามครอป ใช้สัดส่วนจริง เรียงแบบ masonry) ---------- */
.gal { column-count: 2; column-gap: 10px; }
.gal-item { break-inside: avoid; margin: 0 0 10px; position: relative; }
@media (min-width: 480px) { .gal-c3, .gal-c4 { column-count: 3; } }
@media (min-width: 768px) { .gal { column-gap: 16px; } .gal-item { margin-bottom: 16px; } }
@media (min-width: 1024px) { .gal-c4 { column-count: 4; } }
.gal.is-masonry { column-count: auto; display: flex; align-items: flex-start; gap: 10px; }
.gal-col { flex: 1 1 0; min-width: 0; }
@media (min-width: 768px) { .gal.is-masonry { gap: 16px; } }
.gal-item a { display: block; position: relative; overflow: hidden; border-radius: 20px; background: var(--sand); transition: transform .35s var(--ease), box-shadow .35s; }
@media (min-width: 768px) { .gal-item a { border-radius: 24px; } }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gal-item figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 252, 249, .9); color: var(--ink); font-size: 14px; line-height: 1.5; pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
@media (hover: hover) {
  .gal-item:hover a { transform: translateY(-3px); box-shadow: var(--soft); }
  .gal-item:hover img { transform: scale(1.04); }
  .gal-item:hover figcaption, .gal-item:focus-within figcaption { opacity: 1; transform: none; }
}
@media (hover: none) { .gal-item figcaption { clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; padding: 0; } }
.gal-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 252, 249, .92); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.gal-play svg { fill: currentColor; width: 22px; height: 22px; margin-left: 3px; }

/* กล่องดูรูปเต็ม */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(40, 28, 22, .94); color: var(--cream); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb::backdrop { background: transparent; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 16px 24px; }
.lb-media img, .lb-media video { max-width: min(92vw, 1400px); max-height: 80dvh; width: auto; height: auto; border-radius: 18px; }
.lb figcaption { text-align: center; max-width: 640px; font-size: 15px; }
.lb figcaption b { display: block; font-size: 17px; }
.lb figcaption span { color: rgba(248, 243, 237, .75); }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(248, 243, 237, .3); background: rgba(248, 243, 237, .1); color: var(--cream); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb button:hover { background: rgba(248, 243, 237, .2); }
.lb-x { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 719px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- เสียงจากลูกค้า ---------- */
.quotes { display: grid; gap: 16px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1024px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; box-shadow: var(--soft-sm); }
.quote blockquote { margin: 0; color: var(--ink-2); }
.quote blockquote::before { content: '\201C'; display: block; font-size: 52px; line-height: .8; color: var(--rose); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img, .quote-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-av { display: inline-flex; align-items: center; justify-content: center; background: var(--blush); font-weight: 600; }
.quote small { display: block; color: var(--muted); font-size: 14px; }

/* ---------- คำถามที่พบบ่อย: การ์ดโค้งทีละข้อ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow .3s, background .3s; }
.faq details[open] { box-shadow: var(--soft-sm); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 24px; cursor: pointer; font-size: clamp(16px, 1.5vw, 18px); font-weight: 600; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--blush-2); transition: transform .3s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; border-radius: 2px; background: var(--accent); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--blush); }
.faq-a { padding: 0 24px 22px; color: var(--muted); }

/* ---------- แถบชวนติดต่อ: แผ่นโค้งใหญ่ ---------- */
.cta-band { padding: clamp(20px, 3vw, 40px) 0; }
.cta-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: 40px; padding: clamp(48px, 7vw, 88px) 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px; }
@media (min-width: 768px) { .cta-panel { border-radius: 64px; } }
.cta-panel .orn { margin-bottom: -6px; }
.cta-panel h2 { max-width: 820px; font-size: clamp(24px, 3vw, 38px); }
.cta-panel::before, .cta-panel::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; }
.cta-panel::before { width: 360px; height: 360px; left: -120px; top: -160px; }
.cta-panel::after { width: 300px; height: 300px; right: -100px; bottom: -150px; }
.cta-dark .cta-panel { background: radial-gradient(80% 120% at 50% 0%, #5a4236 0%, var(--dark) 70%); color: var(--cream); }
.cta-dark .cta-panel::before { background: rgba(196, 154, 134, .22); }
.cta-dark .cta-panel::after { background: rgba(239, 220, 209, .12); }
.cta-dark h2 { color: var(--cream); }
.cta-soft .cta-panel { background: linear-gradient(135deg, var(--blush) 0%, var(--sand) 100%); }
.cta-soft .cta-panel::before { background: rgba(255, 252, 249, .55); }
.cta-soft .cta-panel::after { background: rgba(196, 154, 134, .25); }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.contact-note { color: var(--ink-2); margin-bottom: 22px; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 14px; align-items: center; background: rgba(255, 252, 249, .7); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; }
.contact-list li > svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--blush); color: var(--accent); }
.contact-list small { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.contact-list a { font-weight: 600; display: inline-block; padding: 10px 0; margin: -10px 0; }
.contact-list a:hover { color: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hours { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--soft-sm); }
.hours h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 10px; }
.hours h3 svg { color: var(--accent); width: 20px; height: 20px; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours .closed { color: #9a3b2a; }

.lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; box-shadow: var(--soft); }
.lead h3 { font-size: 21px; margin-bottom: 2px; }
.lead label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.lead input, .lead select, .lead textarea { width: 100%; font-size: 16px; padding: 12px 18px; border: 1px solid rgba(132, 96, 76, .22); border-radius: var(--r-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.lead input, .lead select { border-radius: 999px; min-height: 50px; }
.lead select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2384604c' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px; padding-right: 44px; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(239, 220, 209, .9); }
.lead textarea { min-height: 120px; resize: vertical; border-radius: 22px; }
.lead .btn { justify-self: start; }
.f2 { display: grid; gap: 16px; }
@media (min-width: 600px) { .f2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { margin: 0; min-height: 1.5em; font-size: 15px; }
.msg.ok { color: #3f6b3a; font-weight: 600; }
.msg.bad { color: #9a3b2a; font-weight: 600; }
.map-wrap { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 14px; justify-items: center; }
.contact.no-form .map-wrap { margin-top: 0; }
.map { width: 100%; height: clamp(300px, 36vw, 420px); border: 0; border-radius: var(--r); background: var(--sand); box-shadow: var(--soft-sm); }

/* ---------- ข้อความอิสระ ---------- */
.prose { text-align: center; }
.prose h2 { margin-bottom: 22px; }
.prose p { color: var(--ink-2); }
.wrap:not(.narrow) .prose { text-align: left; }

/* ---------- ท้ายเว็บ: ขอบบนโค้ง ---------- */
.site-foot { position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 72px); border-radius: 40px 40px 0 0; background: radial-gradient(60% 80% at 100% 0%, #5a4236 0%, var(--dark) 60%); color: #ecdfd3; padding: clamp(52px, 6vw, 84px) 0 28px; }
@media (min-width: 768px) { .site-foot { border-radius: 72px 72px 0 0; } }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1.4fr; gap: 56px; } }
.site-foot .logo { color: var(--cream); margin-bottom: 16px; }
.foot-brand p { color: #d2c4b6; font-size: 15px; max-width: 420px; }
.site-foot h2 { font-size: 15px; font-weight: 600; color: var(--rose); margin-bottom: 14px; letter-spacing: .02em; }
.foot-nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot-nav a { padding: 10px 0; min-height: 44px; color: #ecdfd3; }
.foot-nav a:hover, .foot-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-contact p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 15px; }
.foot-contact a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.foot-contact svg { width: 18px; height: 18px; margin-top: 4px; color: var(--rose); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-flex; padding: 4px; margin: -4px; border-radius: 50%; transition: transform .2s var(--ease); }
.social a:hover { transform: translateY(-2px); }
.social .brand-mark { width: 36px; height: 36px; }
.foot-copy { display: block; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(248, 243, 237, .12); color: #bcae9f; font-size: 14px; }

/* ---------- ปุ่มลอยมือถือ (ไลน์ + โทร) แคปซูลลอย ---------- */
.float-contact { display: none; }
@media (max-width: 899px) {
  .site-foot { padding-bottom: calc(28px + 84px + env(safe-area-inset-bottom)); }
  .float-contact { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    padding: 6px; border-radius: 999px; background: rgba(255, 252, 249, .88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 14px 34px -16px rgba(58, 38, 30, .55); }
  .float-contact a { height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 16px; }
  .fl-line { background: #06C755; color: #fff; }
  .fl-line .brand-mark { width: 22px; height: 22px; }
  .fl-line .brand-mark rect { fill: #fff; }
  .fl-line .brand-mark path:first-of-type { fill: #06C755; }
  .fl-line .brand-mark path:last-of-type { fill: #fff; }
  .fl-call { background: var(--accent); color: #fff; }
  .fl-call svg { width: 20px; height: 20px; }
  .nav-open .float-contact { display: none; }
}

/* ---------- บทความ (เผื่อเปิดของขายเสริมบทความ) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 22px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: 8px; }
.card .card-pic { display: block; aspect-ratio: 4 / 3; background: var(--sand); border-radius: 20px; overflow: hidden; }
.card .card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 10px 12px; }
.card-body h2 { font-size: 19px; }
.card-body p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.a-wrap { max-width: 780px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--accent); }
.a-wrap h1 { font-size: clamp(30px, 4vw, 46px); }
.a-meta { color: var(--muted); font-size: 15px; margin-top: 10px; }
.a-cover, .a-fig { margin: 28px 0; }
.a-cover img, .a-fig img { border-radius: var(--r); width: 100%; }
.a-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.a-lead { font-size: 19px; color: var(--ink-2); }
.a-toc { background: var(--paper-2); border-radius: var(--r-md); padding: 18px 22px; margin: 24px 0; }
.a-toc ol { margin: 8px 0 0; padding-left: 20px; }
.a-toc a, .a-body a, .a-related a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.a-body h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 36px 0 14px; }
.a-body h3 { margin: 26px 0 10px; }
.a-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--rose); color: var(--ink-2); }
.a-embed { margin: 40px 0; }
.a-embed h3 { margin-bottom: 14px; }
.a-cta { margin: 36px 0; padding: 28px; border-radius: var(--r); background: var(--blush-2); text-align: center; }
.a-cta p { margin-bottom: 14px; }

/* ---------- เคลื่อนไหว: ปรากฏตอนเลื่อนถึง (เล่นครั้งเดียว) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 20px; transition: opacity .6s var(--ease), translate .6s var(--ease), transform .3s var(--ease), box-shadow .3s;
  transition-delay: calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms), 0s, 0s; }
.js [data-reveal].in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .hero-media { transform: none; }
}
