:root {
  --cream: #fbf6ec;
  --ink: #33264a;
  --ink-soft: #5d5170;
  --purple: #5a3489;
  --purple-deep: #452669;
  --lilac: #ebe1f7;
  --green: #dcefd0;
  --green-deep: #3a7036;
  --white: #fff;
  --radius: 20px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.7 'Anuphan', 'Noto Sans Thai', sans-serif;
  padding-bottom: 76px;
}
body.nav-open { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { color: var(--green-deep); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.title { font-size: clamp(28px, 4.2vw, 44px); color: var(--purple-deep); margin-bottom: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 26px; border-radius: 999px;
  background: var(--green-deep); color: var(--white); font-weight: 600; text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn:hover { background: #2d5a2a; transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 6px 20px; font-size: 16px; }
.btn--ghost { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.btn--ghost:hover { background: var(--lilac); }
.btn--light { background: var(--white); color: var(--purple-deep); }
.btn--light:hover { background: var(--green); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 2px; }

/* แถบบน + หัวเว็บ */
.topbar { background: var(--purple-deep); color: var(--white); font-size: 15px; }
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 44px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.topbar__item .ic { width: 18px; height: 18px; }
.topbar__soc { display: none; margin-left: auto; gap: 4px; }
.topbar__soc a { display: grid; place-items: center; width: 44px; height: 44px; }
.topbar__soc .ic { width: 18px; height: 18px; }
.head { position: sticky; top: 0; z-index: 20; background: var(--cream); box-shadow: 0 1px 0 rgba(69, 38, 105, .12); }
.head__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.brand__t { display: flex; flex-direction: column; line-height: 1.4; }
.brand__t strong { font-size: 19px; color: var(--purple-deep); }
.brand__t small { font-size: 14px; color: var(--ink-soft); }
.nav { display: none; gap: 4px; }
.nav a { padding: 10px 12px; text-decoration: none; font-weight: 600; border-radius: 10px; }
.nav a:hover { background: var(--lilac); }
.head__cta { display: none; }
.burger {
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: var(--lilac); color: var(--purple-deep); cursor: pointer;
}

/* เมนูมือถือเต็มจอ */
.mnav {
  position: fixed; inset: 0; z-index: 50; background: var(--cream);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 84px 24px 32px;
}
.mnav a:not(.btn) { display: block; width: 100%; padding: 12px 0; font-size: 24px; font-weight: 700; color: var(--purple-deep); text-decoration: none; }
.mnav .btn { margin-top: 16px; width: 100%; }
.mnav__close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: var(--lilac); color: var(--purple-deep); cursor: pointer;
}

/* แบนเนอร์ */
.hero { background: var(--lilac); }
.hero__pics img { display: block; width: 100%; height: 52vh; object-fit: cover; }
.hero__p1 { object-position: 50% 40%; }
.hero__p2 { object-position: 28% 50%; }
.hero__p3 { object-position: 50% 45%; }
.hero__pics .hero__p2, .hero__pics .hero__p3 { display: none; }
.hero__panel { padding: 24px 16px 32px; }
.hero h1 { font-size: clamp(30px, 8.6vw, 62px); color: var(--purple-deep); margin-bottom: 12px; }
.hero__lead { max-width: 30em; margin-bottom: 12px; text-wrap: pretty; }
.hero__free {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--green); color: #274f25; font-weight: 600; margin-bottom: 20px;
}
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.link-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--purple-deep); }

/* จุดเด่น */
.trust { background: var(--green); padding: 28px 0; }
.trust__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
.trust li .ic { color: var(--purple); width: 28px; height: 28px; margin-bottom: 6px; }
.trust h2 { font-size: 17px; color: var(--purple-deep); }
.trust p { font-size: 15px; line-height: 1.6; color: var(--ink); }

/* ส่วนทั่วไป */
.sec { padding: 64px 0; }
.sec--tight { padding-top: 56px; }

/* บริการ */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc__card { background: var(--white); border-radius: var(--radius); padding: 0 0 18px; overflow: hidden; transition: transform .2s; }
.svc__card:hover { transform: translateY(-3px); }
.svc__card:last-child { grid-column: 1 / -1; }
.svc__card:last-child img { max-width: 240px; margin-inline: auto; }
.svc__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; }
.svc__card h3 { font-size: 19px; color: var(--purple-deep); padding-inline: 14px; }
.svc__card p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); padding: 4px 14px 0; }

/* บริการเด่น */
.feat { background: var(--lilac); padding: 56px 0; }
.feat__in { display: grid; gap: 24px; align-items: center; }
.feat img { width: 100%; max-width: 480px; border-radius: var(--radius); }
.feat .title { margin-bottom: 12px; }
.feat p:not(.eyebrow) { margin-bottom: 20px; }

/* ขั้นตอน */
.steps { display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; }
.steps b {
  grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--lilac); color: var(--purple-deep); font-size: 20px;
}
.steps h3 { font-size: 19px; color: var(--purple-deep); }
.steps p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ผลงาน */
.works { background: var(--purple-deep); color: var(--white); padding: 64px 0; }
.works .eyebrow { color: var(--green); }
.works .title { color: var(--white); margin-bottom: 6px; }
.works__lead { margin-bottom: 24px; opacity: .9; }
.masonry { columns: 2; column-gap: 10px; }
.ph { display: block; width: 100%; padding: 0; margin: 0 0 10px; border: 0; background: none; cursor: zoom-in; break-inside: avoid; }
.ph img { width: 100%; border-radius: 10px; transition: transform .2s; }
.ph:hover img { transform: translateY(-3px); }
.clips__t { font-size: 24px; margin: 44px 0 16px; }
.clips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.clips figure { margin: 0; }
.clips figure:last-child { grid-column: 1 / -1; }
.clips video { width: 100%; height: auto; border-radius: 10px; background: #000; }
.clips figcaption { font-size: 15px; line-height: 1.5; margin-top: 8px; opacity: .92; }
.tt {
  width: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--lilac); color: var(--purple-deep);
}
.ic--big { width: 36px; height: 36px; }
.tt__frame { width: 100%; height: 740px; border: 0; border-radius: 10px; background: var(--white); }

/* เกี่ยวกับ */
.about { display: grid; gap: 24px; align-items: center; }
.about img { width: 100%; border-radius: var(--radius); }
.about .title { margin-bottom: 14px; }
.about p + p { margin-top: 12px; }

/* รีวิว */
.reviews { background: var(--lilac); padding: 64px 0; }
.rv { display: grid; gap: 12px; margin-bottom: 24px; }
.rv blockquote { margin: 0; padding: 20px; background: var(--white); border-radius: var(--radius); }
.rv footer { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--purple); }

/* คำถาม */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid rgba(69, 38, 105, .18); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 10px 0; font-weight: 600; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--purple); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding-bottom: 16px; color: var(--ink-soft); }

/* ติดต่อ */
.contact { background: var(--purple); color: var(--white); padding: 64px 0; }
.contact .eyebrow { color: var(--green); }
.contact .title { color: var(--white); }
.contact__in { display: grid; gap: 28px; align-items: center; }
.contact__list { display: grid; gap: 12px; margin-bottom: 24px; }
.contact__list li { display: flex; gap: 12px; }
.contact__list .ic { margin-top: 4px; }
.contact__list a { display: inline-block; min-height: 44px; }
.social { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 18px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); background: var(--lilac); }

/* ท้ายเว็บ */
.foot { background: var(--purple-deep); color: var(--white); padding: 28px 0; font-size: 15px; }
.foot__in { display: grid; gap: 14px; }
.foot__brand { display: flex; gap: 12px; align-items: center; }
.foot__brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; }
.foot strong { font-size: 18px; }
.foot p { line-height: 1.6; }

/* ปุ่มลอยมือถือ */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: grid; grid-template-columns: 2fr 1fr;
  height: 60px; background: var(--white); box-shadow: 0 -2px 12px rgba(51, 38, 74, .14);
}
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; }
.dock__line { background: var(--green-deep); color: var(--white); }
.dock__tel { color: var(--purple-deep); }

/* ดูรูปเต็มจอ */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(28, 18, 42, .94); display: flex; align-items: center; justify-content: center; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lb button { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--white); color: var(--purple-deep); cursor: pointer; }
.lb__x { top: 12px; right: 12px; }
.lb__prev { left: 8px; top: 50%; margin-top: -24px; }
.lb__next { right: 8px; top: 50%; margin-top: -24px; }

/* อนิเมชันตอนเลื่อนถึง */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 60ms; }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .svc__card, .ph img { transition: none; }
}

@media (min-width: 480px) {
  .masonry { columns: 3; }
  .trust__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 600px) {
  /* จอกว้างใช้รูปเรียงกัน 3 ช่อง รูปต้นฉบับกว้าง 800px ถ้าขยายเต็มจอจะแตก */
  .hero__pics { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero__pics img { height: 340px; }
  .hero__pics .hero__p2, .hero__pics .hero__p3 { display: block; }
}
@media (min-width: 768px) {
  .topbar__soc { display: flex; }
  .svc { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .svc__card:last-child { grid-column: auto; }
  .svc__card:last-child img { max-width: none; }
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .about, .contact__in { grid-template-columns: 1fr 1fr; gap: 48px; }
  .feat__in { grid-template-columns: 5fr 8fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .clips { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .clips figure:last-child { grid-column: auto; }
  .tt { aspect-ratio: 9 / 16; }
  .rv { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .map { height: 400px; }
  .foot__in { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .burger { display: none; }
  .nav { display: flex; }
  .head__cta { display: inline-flex; }
  .masonry { columns: 4; column-gap: 14px; }
  .ph { margin-bottom: 14px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { display: block; }
  .steps b { margin-bottom: 12px; }
  .sec { padding: 88px 0; }
  .works, .reviews, .contact { padding: 88px 0; }

  /* แบนเนอร์เดสก์ท็อป: ข้อความซ้าย รูปชนขอบขวา */
  .hero { display: grid; grid-template-columns: 1fr min(50vw, 720px); height: 600px; }
  .hero__panel { order: -1; align-self: center; padding: 32px 40px 32px max(32px, calc((100vw - 1120px) / 2)); }
  .hero__pics { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 600px; }
  .hero__pics img { height: 100%; min-height: 0; }
  .hero__p1 { grid-row: 1 / 3; }
}
