/* LIKE VAN UBON — โทนครีม อบอุ่น หรูหรา (ตามบรีฟลูกค้า) */
:root {
  --bg: #f6efe3;
  --bg-alt: #eee3cf;
  --surface: #fcf8f1;
  --ink: #231c14;
  --ink-2: #5b4d3d;
  --gold: #c39a52;
  --gold-ink: #7a5a1f;
  --gold-light: #e3c27e;
  --dark: #2a2119;
  --dark-2: #3a2f24;
  --on-dark: #f5ecdb;
  --on-dark-2: #cdbd9f;
  --line: rgba(35, 28, 20, .12);
  --line-strong: rgba(35, 28, 20, .28);
  --line-green: #05893d; /* เขียวไลน์เข้มขึ้นให้ตัวหนังสือขาวอ่านออก (4.5:1) */
  --danger: #a3261b;
  --ok: #2f6b3a;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --gutter: 16px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .cta-band :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--dark); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 28px; }
.muted { color: var(--ink-2); }

/* ---------- ตัวอักษร ---------- */
.h1 { font-size: clamp(30px, 6.4vw, 56px); letter-spacing: -.01em; }
.h1-detail { font-size: clamp(28px, 4.6vw, 44px); }
.h2 { font-size: clamp(25px, 4.2vw, 38px); margin-bottom: 14px; }
.h3 { font-size: clamp(20px, 2.6vw, 24px); margin-bottom: 10px; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 68ch; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; }
.eyebrow-light { color: var(--gold-light); }

/* ---------- ปุ่ม ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 16px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--dark); color: var(--on-dark); }
.btn-primary:hover { background: var(--dark-2); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #047a36; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.hero .btn-primary, .cta-band .btn-primary { background: var(--gold-light); color: var(--dark); }
.hero .btn-primary:hover, .cta-band .btn-primary:hover { background: #ecd29a; }
.ic, .brand { flex: none; }

/* ---------- หัวเว็บ ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 239, 227, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-header .brand { display: flex; flex-direction: column; justify-content: center; text-decoration: none; line-height: 1.2; min-height: 48px; }
.brand-mark { font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.brand-sub { font-size: 13px; color: var(--ink-2); }
.logo-img { max-height: 48px; width: auto; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); border-radius: 12px; cursor: pointer; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; }
.nav a[aria-current="page"]:not(.btn) { color: var(--gold-ink); }
.nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 18px 30px -18px rgba(35, 28, 20, .35); }
.nav.is-open li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
.nav.is-open .nav-call { margin-top: 16px; width: 100%; }
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav ul { display: flex; gap: 26px; }
  .nav a:not(.btn) { font-size: 16px; padding: 6px 0; position: relative; }
  .nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s var(--ease); }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; height: min(70svh, 640px); min-height: 520px; overflow: hidden; background: var(--dark); color: var(--on-dark); isolation: isolate; }
@media (min-width: 768px) { .hero { height: clamp(520px, 80vh, 780px); } }
.hero-track { position: absolute; inset: 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
/* แก้ 1: ลูกค้าขอให้ตัวหนังสือเด่นขึ้น — เงาเข้มขึ้นตรงที่มีข้อความ (แบนเนอร์ใหม่มีพื้นขาว/ฟ้าสว่าง) */
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 22, 14, 0) 0%, rgba(30, 22, 14, .15) 22%, rgba(30, 22, 14, .78) 46%, rgba(30, 22, 14, .94) 100%); z-index: 1; }
@media (min-width: 768px) { .hero-shade { background: linear-gradient(90deg, rgba(30, 22, 14, .92) 0%, rgba(30, 22, 14, .78) 38%, rgba(30, 22, 14, .2) 62%, rgba(30, 22, 14, 0) 78%), linear-gradient(0deg, rgba(30, 22, 14, .5), transparent 35%); } }
.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 76px; }
@media (min-width: 768px) { .hero-copy { justify-content: center; padding-bottom: 0; } .hero-copy > * { max-width: 620px; } .hero-text { max-width: 560px; } }
.hero-copy .eyebrow-light { font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.hero .h1 { color: #fff; font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .4); }
.hero-text { font-size: clamp(17px, 2vw, 21px); font-weight: 500; color: #fff; margin-bottom: 18px; max-width: 54ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 22px; }
.hero-price strong { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; font-weight: 700; color: var(--gold-light); text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero-price span { font-size: clamp(16px, 1.8vw, 19px); font-weight: 600; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero-controls { position: absolute; z-index: 3; right: var(--gutter); bottom: 18px; display: flex; align-items: center; gap: 6px; }
.hero-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(245, 236, 219, .35); background: rgba(30, 22, 14, .45); color: #fff; cursor: pointer; }
.hero-btn:hover { background: rgba(30, 22, 14, .7); }
.hero-dots { display: flex; gap: 0; }
.hero-dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dot::before { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background .2s; }
.hero-dot.is-active::before { background: var(--gold-light); }
@media (max-width: 767px) { .hero .btn-lg { min-height: 50px; padding: 0 18px; font-size: 17px; } .hero-controls { left: var(--gutter); right: auto; bottom: 14px; } .hero-copy { padding-bottom: 72px; } .hero-copy .eyebrow-light { display: none; } .hero .h1 { font-size: clamp(30px, 8.4vw, 36px); margin-bottom: 8px; } .hero-text { margin-bottom: 12px; } .hero-price { margin-bottom: 16px; } }

/* ---------- ส่วนต่างๆ ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .h2 { color: #fff; }
.section-head { margin-bottom: 26px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.section-sub { color: var(--ink-2); margin: 0; max-width: 60ch; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-ink); text-decoration: none; min-height: 44px; }
.link-more:hover { text-decoration: underline; }

.intro .lead { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.facts .ic { color: var(--gold-ink); margin-top: 4px; }

.page-head { padding: 28px 0 40px; }
@media (min-width: 768px) { .page-head { padding: 40px 0 64px; } }
.page-head .h1 { margin-bottom: 14px; }
.crumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 15px; color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- กริด ---------- */
.grid { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .grid { gap: 24px; } }
.grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .page-home .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-cats { grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .grid-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.grid-hl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 480px) { .grid-hl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid-hl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-posters { grid-template-columns: 1fr; gap: 16px; max-width: 980px; margin: 0 auto; }
@media (min-width: 640px) { .grid-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.grid-reviews { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- การ์ด (รูปไม่มีกรอบ ไม่มีเงา) ---------- */
.card-link { display: block; text-decoration: none; height: 100%; transition: transform .2s var(--ease); }
.card-media img { width: 100%; border-radius: var(--radius-sm); background: var(--bg-alt); }
.card-body { padding: 12px 2px 4px; }
.card-title { font-size: 17px; line-height: 1.4; margin-bottom: 4px; }
.card-text { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.card-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--gold-ink); }
@media (min-width: 768px) { .card-title { font-size: 20px; } .card-text { font-size: 16px; } .card-body { padding-top: 16px; } }
@media (hover: hover) and (pointer: fine) {
  .card-link:hover { transform: translateY(-3px); }
  .card-link:hover .card-title { color: var(--gold-ink); }
}
@media (max-width: 767px) {
  .cat-card .card-link { display: grid; grid-template-columns: 42% 1fr; gap: 14px; align-items: start; }
  .cat-card .card-body { padding: 0; }
  .cat-card .card-text { -webkit-line-clamp: 3; }
}

/* ---------- จุดเด่น ---------- */
.hl { background: var(--dark-2); border-radius: var(--radius); padding: 18px 16px; transition: transform .2s var(--ease), box-shadow .2s; }
.hl p { color: var(--on-dark-2); font-size: 15px; line-height: 1.6; margin: 6px 0 0; }
.hl-ic { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(227, 194, 126, .12); color: var(--gold-light); margin-bottom: 12px; }
.hl-title { font-size: 17px; color: #fff; }
@media (min-width: 768px) { .hl { padding: 24px 22px; } .hl-title { font-size: 19px; } }
@media (hover: hover) and (pointer: fine) { .hl:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .6); } }

/* ---------- แกลเลอรี masonry (ห้ามครอป ใช้สัดส่วนจริงของไฟล์) ---------- */
.masonry { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .masonry { columns: 3; } }
@media (min-width: 768px) { .masonry { column-gap: 16px; } }
@media (min-width: 1024px) { .masonry { columns: 4; } }
.m-item { margin: 0 0 10px; break-inside: avoid; }
@media (min-width: 768px) { .m-item { margin-bottom: 16px; } }
.m-item img { width: 100%; border-radius: 6px; }
.poster { margin: 0; }
.poster img { width: 100%; border-radius: var(--radius-sm); }

/* ---------- รีวิว ---------- */
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(35, 28, 20, .06); transition: transform .2s var(--ease), box-shadow .2s; }
.review blockquote { margin: 10px 0 14px; }
.review figcaption { display: flex; flex-direction: column; font-size: 15px; color: var(--ink-2); }
.review figcaption strong { color: var(--ink); font-size: 16px; }
.stars { display: flex; gap: 2px; color: var(--line-strong); }
.stars .on { color: var(--gold); }
.stars .on .ic { fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .review:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -16px rgba(35, 28, 20, .35); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 18px; cursor: pointer; min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform .2s var(--ease); color: var(--gold-ink); }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-a { color: var(--ink-2); padding: 0 0 12px; }

/* ---------- แถบติดต่อ ---------- */
.cta-band { background: var(--dark); color: var(--on-dark); padding: 56px 0; text-align: center; }
@media (min-width: 768px) { .cta-band { padding: 80px 0; } }
.cta-band .h2 { color: #fff; }
.cta-band p { color: var(--on-dark-2); max-width: 60ch; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- หน้ารายละเอียด ---------- */
.detail { display: grid; gap: 24px; }
@media (min-width: 1024px) { .detail { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; } }
.detail-media img { width: 100%; border-radius: var(--radius); }
.detail-info .lead { margin-top: 12px; }
.spec { margin: 0 0 22px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.spec dt .ic { color: var(--gold-ink); }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
.detail-body { display: grid; gap: 32px; }
@media (min-width: 1024px) { .detail-body { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.prose { max-width: 68ch; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--gold-ink); margin-top: 5px; }
.features { background: var(--surface); border-radius: var(--radius); padding: 24px; align-self: start; }

.split { display: grid; gap: 28px; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.split-media { margin: 0; }
.split-media img { width: 100%; border-radius: var(--radius); }
.team { margin: 0; }
.team img { width: 100%; border-radius: var(--radius); }
.team figcaption { margin-top: 10px; color: var(--ink-2); font-size: 15px; text-align: center; }

.video { width: 100%; border-radius: var(--radius); background: #000; }

/* ---------- ติดต่อ ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; } }
.channels { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border-radius: var(--radius); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.channel strong { display: block; font-size: 17px; }
.channel small { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.channel-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-alt); color: var(--gold-ink); }
.channel-line { background: var(--line-green); color: #fff; }
.channel-fb { background: #0866ff; color: #fff; }
@media (hover: hover) and (pointer: fine) { .channel:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(35, 28, 20, .4); } }

.form-card { background: var(--surface); border-radius: var(--radius); padding: 22px 18px; }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.form-grid { display: grid; gap: 16px; margin: 18px 0 8px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--ink-2); font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 11px 14px; min-height: 50px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(195, 154, 82, .25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 15px; color: var(--ink-2); margin: 6px 0 0; }
.field-error { color: var(--danger); font-size: 15px; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 8px 0 12px; font-weight: 600; }
.form-status.is-error { color: var(--danger); }
.form-done { text-align: center; padding: 24px 0; }
.form-done:focus { outline: none; }
.done-ic { color: var(--ok); display: inline-flex; margin-bottom: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- ท้ายเว็บ ---------- */
.site-footer { background: #1f1912; color: var(--on-dark-2); padding: 48px 0 0; font-size: 16px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; } }
.footer-brand { color: #fff; font-weight: 700; letter-spacing: .08em; font-size: 20px; margin-bottom: 8px; }
.footer-h { color: #fff; font-size: 17px; margin-bottom: 10px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .ic { margin-top: 12px; color: var(--gold-light); }
.footer-list a { text-decoration: none; display: inline-flex; align-items: center; padding: 8px 0; min-height: 44px; min-width: 44px; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-list span { padding: 10px 0; }
.footer-bottom { border-top: 1px solid rgba(245, 236, 219, .12); margin-top: 36px; padding-top: 18px; padding-bottom: 20px; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ---------- ปุ่มลอยล่างจอ (มือถือ: ไลน์กับโทรเท่านั้น) ---------- */
.dock { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: rgba(246, 239, 227, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dock-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; }
.dock-call { background: var(--dark); color: var(--on-dark); }
.dock-line { background: var(--line-green); color: #fff; }
body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .dock { display: none; } body { padding-bottom: 0; } }

.page-404 { padding: 80px 0; }

/* ---------- อนิเมชัน: ปรากฏตอนเลื่อนถึง (เล่นครั้งเดียว) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* หัวหน้าเพจที่ตามด้วยเนื้อหาพื้นเดียวกัน ไม่ต้องเว้นซ้อนสองชั้น */
.page-head + .section:not(.section-alt) { padding-top: 8px; }
@media (max-width: 767px) { .detail-info .btn-row .btn { flex: 1 1 100%; } }
