/* นิวบิโตะ กรุ๊ป — หน้าเว็บฝั่งลูกค้า (บิล 691017-05)
   โทน: น้ำเงินกรมท่าจากโลโก้ = ความน่าเชื่อถือ · เขียวอมฟ้า = คลื่นในโลโก้ ใช้เป็นสีรอง · ส้มสามเหลี่ยม = ปุ่มหลักเท่านั้น
   ทางการ สบายตา ไม่มืดหรือสว่างจ้าเกินไป (บรีฟลูกค้า) · มือถือก่อน · ห้ามล้นจอที่ 360px */

:root {
  --accent: #23406e;            /* น้ำเงินกรมท่า (ตั้งจาก site.config.js → brand.color) */
  --navy-900: #0f2140;
  --navy-800: #172f55;
  --navy: var(--accent);
  --teal: #2f8a8c;
  --teal-soft: #e3f2f1;
  --orange: #b95d16;            /* ส้มเข้มขึ้นจากโลโก้ ให้ตัวหนังสือขาวบนปุ่มอ่านชัด (คอนทราสต์ 4.6:1) */
  --orange-hi: #e8964a;         /* ส้มโลโก้ ใช้กับเส้น/จุดเน้นบนพื้นเข้ม */
  --ink: #14213a;
  --muted: #55627a;
  --paper: #f5f7fa;
  --white: #ffffff;
  --line: #dfe5ee;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --gap: clamp(52px, 8vw, 104px);
  --pad: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --shadow: 0 1px 2px rgba(15, 33, 64, .06), 0 8px 24px -12px rgba(15, 33, 64, .18);
  --shadow-hi: 0 2px 4px rgba(15, 33, 64, .08), 0 18px 36px -16px rgba(15, 33, 64, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16.5px; line-height: 1.75; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); }
.sec-soft { background: var(--white); }
.sec-head { max-width: 66ch; margin-bottom: clamp(28px, 4vw, 48px); }
.nw { white-space: nowrap; }
.sec-head h1, .about-text h1 { font-size: clamp(28px, 4vw, 44px); color: var(--navy-900); }
.sec-head h1 { position: relative; padding-left: 18px; }
.sec-head h1::before {
  content: ''; position: absolute; left: 0; top: .28em; bottom: .28em; width: 5px; border-radius: 3px; background: var(--orange-hi);
}
.about-text h1 { margin-bottom: 18px; }
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 40px); color: var(--navy-900);
  position: relative; padding-left: 18px;
}
.sec-head h2::before {
  content: ''; position: absolute; left: 0; top: .28em; bottom: .28em; width: 5px;
  border-radius: 3px; background: var(--orange-hi);
}
.sec-intro { color: var(--muted); margin-top: 12px; font-size: 17px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; min-height: 48px; border-radius: 10px;
  font: 600 16px/1.3 var(--font); text-decoration: none; cursor: pointer;
  background: var(--navy); color: var(--white); border: 1.5px solid var(--navy);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn-accent:hover { background: #a3500f; border-color: #a3500f; }
.btn-line { background: transparent; color: var(--navy); border-color: color-mix(in srgb, var(--navy) 35%, transparent); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
.btn-block { width: 100%; }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { background: var(--navy-900); color: #d5deeb; font-size: 14px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.tb-items { display: flex; flex-wrap: wrap; gap: 0 22px; }
.tb-items > * { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; min-height: 44px; }
.tb-items svg { width: 15px; height: 15px; color: var(--orange-hi); }
.tb-items a:hover { color: var(--white); }
@media (max-width: 767px) { .topbar .tb-items > :first-child, .tb-mail { display: none; } }

.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; overflow: hidden; flex: none; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: 14px; font-weight: 600; }
.topbar .lang { border-color: transparent; border-radius: 0; }
.topbar .lang a[aria-current] { background: rgba(255, 255, 255, .14); color: var(--white); box-shadow: inset 0 -2px 0 var(--orange-hi); }
.lang a[aria-current] { background: var(--white); color: var(--navy-900); }

/* หัวเว็บติดบนสุด — ห้ามใส่ backdrop-filter/transform/filter ที่ .nav (เมนูมือถือ position:fixed ต้องเต็มจอ) */
.nav { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
/* สั่งแก้ครั้งที่ 1 (10/11): ลูกค้าขอโลโก้+ชื่อบริษัทใหญ่ขึ้นอีก — โลโก้ 104→144px ชื่อ 18→30px */
.nav-in { display: flex; align-items: center; gap: 20px; min-height: 160px; }
.logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; margin-right: auto; }
.logo img { width: 144px; height: 144px; border-radius: 50%; object-fit: cover; flex: none; }
.logo.logo-foot img { width: 64px; height: 64px; }
.logo-txt { display: grid; line-height: 1.3; min-width: 0; }
.logo-txt b { font-size: 30px; line-height: 1.25; color: var(--navy-900); white-space: nowrap; }
.logo-txt small { font-size: 16px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-foot .logo-txt b { font-size: 20px; }
.logo-foot .logo-txt small { font-size: 13px; }
@media (max-width: 1240px) {
  .nav-in { min-height: 140px; gap: 14px; }
  .logo img { width: 124px; height: 124px; }
  .logo-txt b { font-size: 25px; }
  .logo-txt small { font-size: 14.5px; }
  .menu > a { padding: 10px 11px; }
}
.menu { display: flex; align-items: center; gap: 4px; }
.menu > a {
  padding: 10px 14px; min-width: 48px; text-align: center; text-decoration: none; font-weight: 500; color: var(--ink); border-radius: 8px;
  position: relative; white-space: nowrap;
}
.menu > a:hover { color: var(--navy); background: var(--paper); }
.menu > a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.menu > a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--orange-hi); border-radius: 2px;
}
.menu-extra { display: none; }
.nav-cta { flex: none; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-in { min-height: 112px; gap: 10px; }
  .logo { gap: 12px; }
  .logo img { width: 100px; height: 100px; }
  .logo-txt b { font-size: 23px; }
  .logo-txt small { font-size: 13px; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; width: 48px; height: 48px; flex: none;
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* เมนูมือถือเต็มจอ ใต้หัวเว็บ */
  .menu {
    position: fixed; inset: 0; top: 0; z-index: -1; flex-direction: column; align-items: stretch; gap: 0;
    padding: 172px var(--pad) 32px; background: var(--white); overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility 0s .25s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu { visibility: visible; opacity: 1; transition: opacity .25s var(--ease); }
  .menu > a { text-align: left; font-size: 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu > a[aria-current="page"]::after { left: 4px; right: auto; width: 32px; bottom: 8px; }
  .menu-extra { display: grid; gap: 14px; margin-top: 24px; justify-items: start; }
  .menu-extra .btn { width: 100%; }
  .menu-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; text-decoration: none; color: var(--navy); font-size: 18px; }
  .menu-extra .lang { border-color: var(--line); }
  .menu-extra .lang a[aria-current] { background: var(--navy); color: var(--white); }
}
@media (max-width: 400px) { .logo-txt small { font-size: 11.5px; } }
@media (max-width: 340px) { .logo-txt small { display: none; } }

/* ---------- แบนเนอร์ (ข้อความซ้าย พื้นน้ำเงิน · รูปชนขอบขวา) ---------- */
.hero { position: relative; background: var(--navy-800); color: var(--white); overflow: hidden; }
.hero-track { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
  opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s;
}
.hero-slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }
.hero-pic { order: -1; aspect-ratio: 3 / 2; max-height: 40vh; width: 100%; }
.hero-pic picture, .hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero-pic.fit { position: relative; isolation: isolate; overflow: hidden; }
.hero-pic.fit::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--pic) center / cover; filter: blur(18px) brightness(.7); }
.hero-pic.fit picture { position: absolute; inset: 0; }
.hero-pic.fit img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: min(100%, calc(var(--w) / 1.8)); max-height: 100%; object-fit: contain; }
.hero-copy { display: flex; align-items: center; }
.hero-copy-in { padding: 28px var(--pad) 72px; max-width: 640px; }
.hero-title { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.42; font-weight: 700; }
.hero-sub { margin-top: 14px; font-size: clamp(16.5px, 1.6vw, 19px); color: #d3ddeb; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hero-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; font-weight: 600; color: var(--white); }
.hero-phone svg { color: var(--orange-hi); }
.hero-nav {
  position: absolute; left: var(--pad); bottom: 18px; display: flex; align-items: center; gap: 10px; z-index: 2;
}
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: var(--white); border: 1px solid rgba(255, 255, 255, .3);
}
.hero-arrow:hover { background: rgba(255, 255, 255, .18); }
.hero-dots { display: flex; gap: 0; }
.hero-dots button { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::after { content: ''; position: absolute; left: 8px; right: 8px; top: 21px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.hero-dots button[aria-current="true"]::after { background: var(--orange-hi); }
@media (min-width: 900px) {
  .hero-slide { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: min(620px, 76vh); }
  .hero-pic { order: 0; aspect-ratio: auto; max-height: none; height: 100%; position: relative; }
  .hero-pic picture { position: absolute; inset: 0; }
  .hero-copy { justify-content: flex-end; }
  .hero-copy-in { padding: 64px 56px 96px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); max-width: none; width: 100%; }
  .hero-copy-in::before {
    content: ''; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--orange-hi); margin-bottom: 22px;
  }
  .hero-nav { left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); bottom: 32px; }
}

/* ---------- แถบจุดเด่น (ส่วนจุดเด่นที่ไม่มีหัวข้อ) ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust .sec-head { margin: 28px 0 0; }
.trust-list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.trust-list b { display: block; color: var(--navy-900); font-size: 15.5px; line-height: 1.45; }
.trust-list span:not(.ico) { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 2px; }
.ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--teal-soft); color: var(--teal);
}
.ico svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 28px 0; }
  .trust-list li + li { border-left: 1px solid var(--line); padding-left: 18px; }
}

/* ---------- การ์ดสินค้า/บริการ ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.card-pic { aspect-ratio: 4 / 3; background: #e9eef5; overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-pic.fit { position: relative; isolation: isolate; }
.card-pic.fit::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--pic) center / cover; filter: blur(18px) brightness(.8); }
.card-pic.fit img { object-fit: contain; }
.card-pic.no-pic { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy)); color: var(--orange-hi); }
.card-pic.no-pic svg { width: 56px; height: 56px; stroke-width: 1.25; }
.card-body { padding: 14px 14px 18px; display: grid; gap: 6px; align-content: start; }
.card-cat { font-size: 14px; font-weight: 600; color: var(--teal); line-height: 1.5; }
.card h3, .card h4 { font-size: 16.5px; color: var(--navy-900); line-height: 1.45; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (min-width: 768px) { .card-body { padding: 18px 20px 22px; } .card h3 { font-size: 18.5px; } }
@media (max-width: 479px) { .card p { font-size: 14px; } }
.card-price { font-weight: 700; color: var(--navy); }
.card-price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.card-sold { color: #a33; font-weight: 600; }
.card[hidden], .row-item[hidden] { display: none; }
.cat-card { text-decoration: none; color: inherit; }
.cat-card h3 { font-size: 17px; }
.cat-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: 14.5px; color: var(--navy); }
.cat-more svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.cat-card:hover .cat-more svg { transform: translateX(3px); }
@media (min-width: 768px) { .cat-card h3 { font-size: 19.5px; } }

.rows { display: grid; gap: 12px; }
.row-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.row-item .card-pic { border-radius: var(--radius-sm); }
.row-cta { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: flex-end; }

/* ตัวกรองหมวด + ค้นหา */
.pf { display: grid; gap: 14px; margin-bottom: 26px; }
.pf-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font: 500 15px/1.3 var(--font); cursor: pointer; white-space: nowrap;
}
.chip small { font-size: 12.5px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip[aria-pressed="true"] small { color: #c9d5e8; }
.pf-search { position: relative; display: block; max-width: 420px; }
.pf-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.pf-search input {
  width: 100%; min-height: 48px; padding: 10px 14px 10px 44px; border-radius: 10px; border: 1px solid var(--line);
  font: 16px var(--font); background: var(--white); color: var(--ink);
}
.pf-empty { padding: 24px; text-align: center; color: var(--muted); background: var(--white); border-radius: var(--radius); margin-bottom: 16px; }
@media (min-width: 900px) { .pf { grid-template-columns: 1fr 320px; align-items: center; } .pf-search { justify-self: end; width: 100%; } .pf-chips { flex-wrap: wrap; } }

/* ---------- เกี่ยวกับ / บริการเด่น (รูปคู่ข้อความ) ---------- */
.about { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-pic { margin: 0 auto; width: 100%; max-width: var(--w, 100%); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-pic.tall { max-width: min(var(--w, 100%), 420px); }
/* จอแคบ: ไม่ขยายรูปเกินครึ่งหนึ่งของไฟล์จริง ให้ยังคมบนจอความละเอียดสูง */
@media (max-width: 899px) { .about-pic { max-width: min(calc(var(--w, 1200px) / 2), 600px); } .about-pic.tall { max-width: min(var(--w, 100%), 420px); } }
.about-pic img { width: 100%; }
.about-text h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy-900); margin-bottom: 18px; }
.prose { display: grid; gap: 14px; color: #33405a; }
.prose.narrow { max-width: 70ch; margin-inline: auto; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy-900); }
.about-text .btn { margin-top: 26px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; color: var(--ink); font-weight: 500; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1.05fr 1fr; }
  .about.pic-right .about-pic { order: 2; }
  .about.no-pic { grid-template-columns: minmax(0, 1fr); max-width: 72ch; }
}

/* ---------- ขั้นตอนการทำงาน (จุดเด่น 4 คอลัมน์) ---------- */
.steps-sec { background: var(--white); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.step {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 18px 16px 20px;
  display: grid; gap: 10px; align-content: start;
}
.step-no { font-size: 15px; font-weight: 700; color: var(--teal); letter-spacing: .04em; }
.step .ico { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; background: var(--white); }
.step h3 { font-size: 17px; color: var(--navy-900); padding-right: 36px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.6; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .step { padding: 24px 22px 26px; }
  .step:not(:last-child)::after {
    content: ''; position: absolute; top: 34px; right: -18px; width: 14px; height: 2px; background: var(--orange-hi);
  }
}

/* ---------- การ์ดไอคอน (จุดเด่น 2-3 คอลัมน์) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feat { display: grid; gap: 12px; align-content: start; background: var(--white); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); }
.feat h3 { font-size: 17px; color: var(--navy-900); }
.feat p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (min-width: 768px) { .feat-grid { grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr)); gap: 20px; } .feat { padding: 24px; } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }

/* แถบโลโก้ลูกค้า — โลโก้ทุกอันอยู่ในกรอบสูงเท่ากัน แสดงเต็มรูป ไม่ครอป
   แก้ด่วน-639 ข้อ 7: ลูกค้าขอโลโก้ใหญ่ชัดขึ้น → กรอบสูงขึ้น และขยายโลโก้ให้เต็มกรอบ (contain ไม่ยืด ไม่ครอป) */
.logo-wall { --logo-h: 124px; list-style: none; margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.logo-wall li { display: grid; grid-template-rows: var(--logo-h) auto; gap: 12px; justify-items: center; align-content: start; background: var(--white); border-radius: var(--radius); padding: 16px 10px 14px; box-shadow: var(--shadow); text-align: center; }
.logo-pic { display: grid; place-items: center; width: 100%; height: var(--logo-h); }
.logo-pic img { width: 100%; height: 100%; max-width: 100%; max-height: var(--logo-h); object-fit: contain; }
.logo-name { font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (min-width: 640px) { .logo-wall { --logo-h: 150px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .logo-wall { --logo-h: 170px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .logo-wall li { padding: 22px 16px 16px; } }

/* ---------- ผลงาน (พื้นน้ำเงินเข้ม · ไม่ครอป คงสัดส่วนจริง) ---------- */
.sec-dark { background: var(--navy-900); color: var(--white); }
.sec-head.on-dark h2, .sec-head.on-dark h1 { color: var(--white); }
.sec-head.on-dark .sec-intro { color: #c3cfe0; }
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: 4; column-gap: 18px; } }
.gal-item { break-inside: avoid; margin: 0 0 10px; position: relative; }
@media (min-width: 1024px) { .gal-item { margin-bottom: 18px; } }
.gal-item a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gal-item img { width: 100%; transition: transform .5s var(--ease); }
.gal-item a:hover img { transform: scale(1.03); }
.gal-item figcaption { font-size: 14px; color: #c9d4e4; margin-top: 8px; line-height: 1.5; }
.gal-desc { font-size: 13.5px; color: #9fb0c8; margin-top: 2px; }
.gal-item video { margin-top: 8px; border-radius: var(--radius-sm); }

dialog.light { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
dialog.light::backdrop { background: rgba(8, 16, 32, .88); }
dialog.light img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 8px; }
dialog.light p { color: #dfe6f0; text-align: center; margin-top: 10px; }
dialog.light button {
  position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--navy-900); font-size: 28px; line-height: 1;
}
dialog.light .light-nav { top: 50%; transform: translateY(-50%); display: grid; place-items: center; background: rgba(255, 255, 255, .92); }
dialog.light .light-nav.prev { left: 12px; right: auto; }
dialog.light .light-nav.next { right: 12px; }
dialog.light .light-nav[hidden] { display: none; }
dialog.light .light-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 599px) { dialog.light .light-nav { top: auto; bottom: 14px; transform: none; } }

/* ---------- รูปเพิ่มเติมในการ์ด (รูปปก + แถบรูปย่อ กดเปิดดูทีละรูป) ---------- */
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px 4px 0; position: relative; z-index: 2; }
.thumbs a { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #e9eef5; }
.thumbs a[hidden] { display: none; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.thumbs a:hover img { transform: scale(1.06); }
.thumbs a:focus-visible { outline: 3px solid var(--orange-hi, #f5a623); outline-offset: -3px; }
.thumbs a[data-more]::after {
  content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14, 26, 48, .62); color: #fff; font-weight: 700; font-size: 17px;
}
@media (min-width: 768px) { .thumbs { gap: 6px; padding: 6px 6px 0; } }
@media (max-width: 599px) {
  .card .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card .thumbs a:nth-child(n+4) { display: none; }
  .card .thumbs a[data-more-sm]::after {
    content: attr(data-more-sm); position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(14, 26, 48, .62); color: #fff; font-weight: 700; font-size: 16px;
  }
}
.about-pic .thumbs { padding: 6px; background: var(--white); }
.pic-open { display: block; cursor: zoom-in; }
/* การ์ดหมวดหน้าแรก: ลิงก์ที่ชื่อหมวดคลุมทั้งการ์ด แถบรูปย่ออยู่ชั้นบนกดดูรูปได้ */
.cat-card { position: relative; }
.cat-link { color: inherit; text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.cat-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cat-link:focus-visible { outline: none; }
.cat-card:has(.cat-link:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }

/* หน้าผลงาน แยกหมวด */
.gal-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 26px; }
.gal-jump .chip { text-decoration: none; }
.gal-group + .gal-group { margin-top: clamp(36px, 5vw, 60px); }
.gal-title { color: var(--white); font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 16px; padding-left: 14px; border-left: 4px solid var(--orange-hi, #f5a623); scroll-margin-top: 96px; }
.gal-group { scroll-margin-top: 96px; }

/* ---------- เสียงจากลูกค้า ---------- */
.quotes { display: grid; gap: 16px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.quote figcaption { display: flex; gap: 10px; align-items: center; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: grid; font-size: 14px; color: var(--muted); }
.quote b { color: var(--ink); }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px; min-height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; font-weight: 600; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .25s var(--ease); color: var(--teal); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; color: #3c4963; }

/* ---------- แถบชวนติดต่อ (พื้นพิมพ์เขียว) ---------- */
.cta-band {
  padding-block: clamp(56px, 8vw, 96px); color: var(--white);
  background: linear-gradient(120deg, var(--navy-900), var(--navy));
}
.cta-soft { background: var(--teal-soft); color: var(--navy-900); }
.cta-in { display: grid; gap: 24px; justify-items: start; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 38px); max-width: 26ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-soft .btn-ghost-light { color: var(--navy); border-color: var(--navy); }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- ติดต่อ + ฟอร์ม ---------- */
.contact-sec { background: var(--white); }
.contact { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; } }
.contact-note { color: var(--muted); margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > svg { width: 22px; height: 22px; color: var(--teal); margin-top: 4px; }
.contact-list small { display: block; color: var(--muted); font-size: 13.5px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--navy-900); overflow-wrap: anywhere; }
.contact-list small { margin-bottom: -6px; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .sep { color: var(--muted); }
.map-link { display: flex !important; width: fit-content; margin-top: -4px; font-size: 15px; color: var(--teal) !important; }
.hours-box { margin-top: 26px; background: var(--paper); border-radius: var(--radius); padding: 18px 20px; }
.hours-box h3 { display: flex; gap: 8px; align-items: center; font-size: 16.5px; color: var(--navy-900); margin-bottom: 8px; }
.hours-box h3 svg { color: var(--teal); }
.hours { list-style: none; margin: 0; padding: 0; display: grid; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.hours li:last-child { border: 0; }
.closed { color: #a33; }

.lead {
  display: grid; gap: 14px; background: var(--navy-800); color: var(--white); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}
.lead h3 { font-size: 22px; }
.lead-note { color: #c6d2e3; font-size: 15px; margin-top: -8px; }
.lead label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 6px; color: #dbe3ef; }
.lead input, .lead textarea, .lead select {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid transparent;
  font: 16px var(--font); color: var(--ink); background: var(--white);
}
.lead textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.lead.tried :invalid { border-color: #ffb27a; box-shadow: 0 0 0 2px rgba(255, 178, 122, .45); }
.f2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .f2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { min-height: 1.6em; font-size: 15px; }
.msg.ok { color: #9be2c8; }
.msg.bad { color: #ffc4a3; }
.map-wrap { margin-top: 32px; }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); display: block; background: #e9eef5; }
.map-two { display: grid; gap: 20px; }
/* ไฟล์แผนที่มีมุมมนสีดำติดมาจาก PDF — ตัดมุมตามสัดส่วนรูปเพื่อซ่อนมุมดำทุกขนาดจอ */
.map-pic { display: block; align-self: start; border-radius: 3.4% / 4.5%; overflow: hidden; }
.map-pic img { width: 100%; }
@media (min-width: 900px) { .map-two { grid-template-columns: 1fr 1fr; align-items: stretch; } .map-two .map { height: 100%; min-height: 360px; } }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy-900); color: #c3cee0; padding: 56px 0 24px; font-size: 15px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 28px; } }
.foot h2 { font-size: 16px; color: var(--white); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot a { text-decoration: none; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.foot-contact li { min-height: 44px; align-items: center !important; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.logo-foot { margin: 0 0 14px; }
.logo-foot .logo-txt b { color: var(--white); }
.logo-foot .logo-txt small { color: #9fb0c8; }
.foot-brand p { line-height: 1.7; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .sep { margin: 0 6px; opacity: .6; }
.foot-contact svg { width: 17px; height: 17px; color: var(--orange-hi); margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.foot-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}
.foot-policy { margin-top: 28px; }
.foot-policy + .foot-bottom { margin-top: 12px; }
.foot .foot-legal { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.foot .foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- หน้านโยบายคุ้มครองข้อมูลส่วนบุคคล / คุกกี้ ---------- */
.policy { max-width: 820px; }
.policy-body { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); line-height: 1.8; }
.policy-body h2 { font-size: clamp(19px, 2.2vw, 23px); color: var(--navy-900); margin: 36px 0 10px; scroll-margin-top: 170px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { margin: 0 0 12px; }
.policy-body ul { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 6px; }
.policy-updated { color: var(--muted); font-size: 14.5px; margin-top: 12px; }

/* ปุ่มลอยมือถือ: โทร + ขอใบเสนอราคา · เว้นท้ายหน้าไว้ไม่ให้ทับเนื้อหา */
.float-contact { display: none; }
@media (max-width: 767px) {
  .float-contact {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px -10px rgba(15, 33, 64, .3);
  }
  .float-contact .btn { min-height: 44px; padding: 8px 10px; font-size: 15px; white-space: nowrap; }
  .float-contact .btn-light { border-color: var(--line); }
  body { padding-bottom: 68px; }
  body.nav-open .float-contact { display: none; }
}

/* ---------- บทความ ---------- */
.a-wrap { max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.a-meta { color: var(--muted); font-size: 14px; }
.a-cover, .a-fig { margin: 20px 0; }
.a-cover img, .a-fig img { border-radius: var(--radius); }
.a-lead { font-size: 18px; color: #33405a; }
.a-toc { background: var(--white); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.a-body { display: grid; gap: 14px; }
.a-embed { margin-top: 28px; }
.a-cta { margin-top: 24px; padding: 22px; background: var(--teal-soft); border-radius: var(--radius); display: grid; gap: 12px; justify-items: start; }

/* ---------- เนื้อหาปรากฏตอนเลื่อนถึง (เฉพาะที่อยู่ใต้จอ ตอนโหลด) ---------- */
.rv { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.rv-wait { opacity: 0; transform: translateY(20px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv-wait { opacity: 1; transform: none; }
}
