/* หน้าเว็บ บริษัท คัฟเวอร์ออล โซลูชั่น จำกัด
   โทน: น้ำเงินวิศวกรรม (จากโลโก้) + ขาวสะอาด + เหลืองเซฟตี้เป็นจุดเน้นปุ่มบนพื้นเข้ม
   ฟอนต์เดียวทั้งเว็บ IBM Plex Sans Thai 400/600/700 */

:root {
  --navy-950: #071631;
  --navy-900: #0b1f45;
  --navy-800: #102a5c;
  --navy-700: #163a7a;
  --blue-600: #1f4fa3;
  --blue-100: #dde7f7;
  --blue-50: #eef3fb;
  --amber: #f5b301;
  --amber-600: #d99a00;
  --ink: #13213b;
  --muted: #4f5d75;
  --line: #d9e1ee;
  --paper: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(11, 31, 69, .06), 0 2px 8px rgba(11, 31, 69, .05);
  --shadow: 0 2px 4px rgba(11, 31, 69, .05), 0 12px 32px -8px rgba(11, 31, 69, .16);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --gutter: 20px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink);
  background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; font-weight: 700; color: var(--navy-900); text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.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(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; flex: none; }
.line-logo { width: 24px; height: 24px; flex: none; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--navy-700); color: #fff; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.4;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--navy-900); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-amber { background: var(--amber); color: var(--navy-950); }
.btn-amber:hover { background: #ffc629; color: var(--navy-950); }
.btn-line { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn-line:hover { background: var(--navy-700); color: #fff; }
.btn-sm { min-height: 42px; padding: 6px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-700);
  text-decoration: none; margin-top: auto; padding-top: 12px; min-height: 44px;
}
.btn-link .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn-link:hover .ic { transform: translateX(3px); }

/* ---------- หัวเว็บ ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(11, 31, 69, .4); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; min-height: 48px; }
.logo-img { height: 46px; width: auto; }
.logo-name { font-weight: 700; color: var(--navy-900); font-size: 15px; line-height: 1.4; max-width: 190px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
}
.nav-links > a:hover { background: var(--blue-50); color: var(--navy-700); }
.nav-links > a[aria-current="page"] { color: var(--navy-700); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav-cta { display: flex; gap: 8px; margin-left: 12px; }
.nav-cta .line-logo { width: 20px; height: 20px; }
.nav-toggle { display: none; }

/* เมนูย่อยใต้ "บริการ" */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd > a { padding: 8px 4px 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-dd > a[aria-current="page"] { color: var(--navy-700); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.dd-btn { display: grid; place-items: center; width: 28px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.dd-btn .ic { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s var(--ease); }
.card, .row-item { scroll-margin-top: calc(var(--nav-h) + 24px); }
.card:target, .row-item:target { box-shadow: 0 0 0 3px var(--amber), var(--shadow); }
@media (min-width: 1024px) {
  .dd-panel {
    position: absolute; top: 100%; left: 0; z-index: 60; width: 380px; padding: 8px; margin-top: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    display: grid; opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  }
  .dd-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .nav-dd:hover .dd-panel, .nav-dd:focus-within .dd-panel, .nav-dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
  .nav-dd:hover .dd-btn .ic, .nav-dd.open .dd-btn .ic { transform: rotate(-90deg); }
  .dd-panel a {
    display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.45;
  }
  .dd-panel a:hover { background: var(--blue-50); color: var(--navy-700); }
}
@media (max-width: 1023px) {
  .nav-dd { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-dd > a { flex: 1; padding: 14px 8px; font-size: 18px; }
  .nav-dd > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--amber); padding-left: 16px; }
  .dd-btn { width: 52px; height: 52px; background: var(--blue-50); border-radius: 12px; color: var(--navy-900); }
  .dd-panel { display: none; width: 100%; padding: 0 0 10px 12px; }
  .nav-dd.open .dd-panel { display: grid; }
  .nav-dd.open .dd-btn .ic { transform: rotate(-90deg); }
  .dd-panel a { display: flex; align-items: center; min-height: 44px; padding: 6px 8px; color: var(--muted); text-decoration: none; font-size: 16px; line-height: 1.45; border-left: 2px solid var(--line); padding-left: 14px; }
}

@media (max-width: 1023px) {
  :root { --nav-h: 62px; }
  /* backdrop-filter ทำให้แผงเมนู position:fixed ถูกขังในกรอบหัวเว็บ (สูงแค่ 62px) — จอเล็กใช้พื้นขาวทึบแทน */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .logo-img { height: 40px; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px;
    background: var(--blue-50); color: var(--navy-900); cursor: pointer;
  }
  .nav-toggle .ic:last-child { display: none; }
  .nav.open .nav-toggle .ic:first-child { display: none; }
  .nav.open .nav-toggle .ic:last-child { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px var(--gutter) 32px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a { padding: 14px 8px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--amber); padding-left: 16px; }
  .nav-cta { margin: 20px 0 0; flex-direction: column; }
  .nav-cta .btn { min-height: 52px; }
}
@media (max-width: 379px) { .logo-name { display: none; } }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; isolation: isolate; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.hero-slide.is-on { opacity: 1; visibility: visible; }
.hero-full .hero-slide, .hero-compact .hero-slide { display: flex; align-items: flex-end; }
.hero-full .hero-slide { min-height: min(70vh, 640px); }
.hero-compact .hero-slide { min-height: 300px; }
.hero picture { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero picture img, .hero picture video { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 22, 49, .15) 0%, rgba(7, 22, 49, .55) 45%, rgba(7, 22, 49, .94) 100%);
}
.hero-body { position: relative; padding: 120px 0 40px; max-width: 640px; }
.hero-full .hero-body { padding-bottom: 72px; }
.hero-full:has(.hero-nav) .hero-body { padding-bottom: 116px; }
.hero-kicker {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(245, 179, 1, .16); color: #ffd25a; font-weight: 600; font-size: 14px; letter-spacing: .02em;
  border: 1px solid rgba(245, 179, 1, .4);
}
.hero-title { color: #fff; font-size: clamp(30px, 7.4vw, 60px); line-height: 1.4; letter-spacing: -.005em; }
.hero-compact .hero-title { font-size: clamp(28px, 6vw, 46px); }
.hero-sub { margin: 14px 0 0; font-size: clamp(16px, 2.2vw, 19px); color: rgba(255, 255, 255, .88); max-width: 560px; }
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-height: 52px; padding-inline: 26px; }
.crumbs { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.crumbs a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .ic { width: 14px; height: 14px; }
.hero-nav {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
}
.hero-full .hero-nav { bottom: 52px; }
@media (min-width: 720px) { .hero-full .hero-nav { bottom: 64px; } }
.hero-arrow, .hero-dots button { pointer-events: auto; }
.hero-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(7, 22, 49, .35); color: #fff;
  transition: background-color .2s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .18); }
.hero-dots { display: flex; gap: 2px; }
.hero-dots button {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.hero-dots button::after {
  content: ''; position: absolute; left: 8px; right: 8px; top: 20px; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .4); transition: background-color .3s;
}
.hero-dots button[aria-current="true"]::after { background: var(--amber); }
.hero-split .hero-slide { display: block; }
.hero-split { display: grid; gap: 24px; padding-block: 40px; align-items: center; }
.hero-split .hero-body { padding: 0; }
.hero-pic img { border-radius: var(--radius-lg); width: 100%; }
.hero-split picture { position: static; }

@media (min-width: 720px) {
  .hero picture img { object-position: center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7, 22, 49, .92) 0%, rgba(7, 22, 49, .72) 38%, rgba(7, 22, 49, .1) 72%), linear-gradient(0deg, rgba(7, 22, 49, .5), transparent 40%); }
  .hero-full .hero-slide { min-height: clamp(560px, 82vh, 780px); align-items: center; }
  .hero-full .hero-body, .hero-full:has(.hero-nav) .hero-body { padding: 96px 0 140px; }
  .hero-compact .hero-slide { min-height: 360px; align-items: center; }
  .hero-compact .hero-body { padding: 72px 0 64px; }
  .hero-split { grid-template-columns: 1fr 1fr; padding-block: 64px; }
}

/* แถบติดต่อด่วนใต้แบนเนอร์ */
.quick-wrap { position: relative; z-index: 4; margin-top: -40px; }
.quick {
  display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.quick-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; color: var(--ink); text-decoration: none;
}
a.quick-item:hover { background: var(--blue-50); }
.quick-item > .ic, .quick-item > .line-logo { width: 40px; height: 40px; }
.quick-item > .ic { padding: 9px; border-radius: 12px; background: var(--blue-50); color: var(--navy-700); }
.quick-item small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.quick-item b { display: block; font-size: 17px; color: var(--navy-900); line-height: 1.45; }
@media (min-width: 768px) { .quick { grid-template-columns: 1fr 1fr 1.4fr; } .quick-wrap { margin-top: -48px; } }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: 64px 0; }
.sec-tint { background: var(--blue-50); }
.quick-wrap + .sec { padding-top: 56px; }
@media (min-width: 1024px) { .sec { padding: 88px 0; } .sec + .sec:not(.sec-tint) { padding-top: 24px; } }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 4.4vw, 40px); }
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--blue-600);
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
}
.kicker::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--amber); }
.lead { margin-top: 12px; color: var(--muted); font-size: 18px; }
.prose { color: var(--muted); }
.prose p { margin-bottom: 1em; }
.prose.narrow { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-bottom: 14px; font-size: clamp(24px, 4vw, 34px); }

/* ---------- จุดเด่น ---------- */
.feat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; } }
.feat {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.sec-tint .feat { border-color: transparent; box-shadow: var(--shadow-sm); }
.feat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.feat-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy-700); color: #fff;
}
.feat-icon .ic { width: 26px; height: 26px; }
.feat-no { font-weight: 700; font-size: 15px; color: var(--blue-100); -webkit-text-stroke: 1px var(--navy-700); font-size: 30px; line-height: 1.4; letter-spacing: .02em; }
.feat h3 { font-size: 20px; }
.feat p { color: var(--muted); font-size: 16px; }
@media (hover: hover) and (pointer: fine) {
  .feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
}

/* ---------- เกี่ยวกับ ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about-pic { position: relative; }
.about-pic img, .about-pic video { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.about-pic::after {
  content: ''; position: absolute; z-index: -1; left: -12px; bottom: -12px; width: 45%; height: 50%;
  border-radius: var(--radius-lg); background: repeating-linear-gradient(-45deg, var(--amber) 0 10px, transparent 10px 20px); opacity: .55;
}
.about-pic { isolation: isolate; }
.about-text h2 { font-size: clamp(26px, 4.4vw, 40px); margin-bottom: 16px; }
.about-text .btn { margin-top: 12px; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about.pic-right .about-pic { order: 2; }
  .about.no-pic { grid-template-columns: 1fr; max-width: 760px; }
}

/* ---------- บริการ ---------- */
.filter { display: grid; gap: 14px; margin-bottom: 24px; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 52px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted);
}
.search:focus-within { border-color: var(--navy-700); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; height: 48px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s var(--ease);
}
.chip-btn span { font-size: 14px; color: var(--muted); font-weight: 400; }
.chip-btn:hover { border-color: var(--navy-700); }
.chip-btn[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chip-btn[aria-pressed="true"] span { color: var(--blue-100); }
.filter-desc { color: var(--muted); font-size: 15px; margin: 0; min-height: 0; }
.filter-desc:empty { display: none; }
@media (min-width: 900px) {
  .filter { grid-template-columns: 340px 1fr; align-items: center; }
  .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .filter-desc { grid-column: 1 / -1; }
}

.cards { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sec-tint .card { border-color: transparent; box-shadow: var(--shadow-sm); }
.card[hidden], .row-item[hidden] { display: none; }
.card-pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-50); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.card h3 { font-size: 17px; line-height: 1.45; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.chip {
  align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--blue-600); background: var(--blue-50);
  padding: 2px 10px; border-radius: 999px; line-height: 1.6;
}
@media (min-width: 768px) {
  .card-body { padding: 20px 22px 18px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 16px; }
}
@media (max-width: 479px) {
  .card-body { padding: 12px; }
  .card h3 { font-size: 16px; }
  .card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card .chip { font-size: 14px; padding: 1px 8px; }
  .card .btn-link { font-size: 14px; }
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .card:hover .card-pic img { transform: scale(1.03); }
}
/* บริการที่ยังไม่มีรูป — แผ่นลายพิมพ์เขียว + ไอคอนบริการ */
.svc-ph {
  height: 100%; display: grid; place-items: center; color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 80% 10%, var(--blue-600), var(--navy-900));
}
.svc-ph .ic { width: 30%; height: auto; max-width: 84px; stroke-width: 1.25; opacity: .95; }
.card-price { font-weight: 700; color: var(--navy-900); }
.card-price s { margin-left: 8px; color: var(--muted); font-weight: 400; }
.card-sold { color: #b42318; font-weight: 600; }
.rows { display: grid; gap: 12px; }
.row-item {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.row-pic { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }
.row-body { display: flex; flex-direction: column; gap: 4px; }
.row-body h3 { font-size: 18px; }
.row-body p { color: var(--muted); font-size: 15px; }
.row-cta { grid-column: 1 / -1; }
@media (min-width: 768px) { .row-item { grid-template-columns: 200px 1fr auto; padding: 16px; gap: 24px; } .row-cta { grid-column: auto; } }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.more { margin-top: 32px; text-align: center; }

/* ---------- ผลงาน (ไม่ครอป สัดส่วนตามไฟล์จริง) ---------- */
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols, 3); column-gap: 20px; } }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 1024px) { .gal-item { margin-bottom: 20px; } }
.gal-item a { display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gal-item img, .gal-item video { width: 100%; height: auto; border-radius: var(--radius); transition: transform .5s var(--ease); }
.gal-item figcaption { padding: 8px 2px 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.gal-item[hidden] { display: none; }
.gal-item figcaption .chip { display: inline-block; margin-bottom: 4px; }
.filter-gal { grid-template-columns: 1fr !important; }
.gal-item figcaption b { display: block; color: var(--navy-900); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .gal-item a:hover img { transform: scale(1.03); } }
dialog.light { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; }
dialog.light::backdrop { background: rgba(7, 22, 49, .9); }
dialog.light figure { margin: 0; }
dialog.light img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
dialog.light figcaption { color: #fff; text-align: center; padding-top: 10px; }
dialog.light figcaption:empty { display: none; }
dialog.light button {
  position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; color: var(--navy-900); font-size: 30px; line-height: 1.4; cursor: pointer;
}

/* ---------- เสียงจากลูกค้า ---------- */
.quotes { display: grid; gap: 16px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quote { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--navy-700); color: #fff; font-weight: 700; }
.quote small { display: block; color: var(--muted); font-size: 14px; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-wrap { display: grid; gap: 8px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .faq-wrap .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); } }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.sec-tint .faq details { border-color: transparent; }
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; min-height: 56px; cursor: pointer; font-weight: 600; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); }
.faq summary i::before, .faq summary i::after {
  content: ''; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--navy-700);
  transition: transform .25s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding: 56px 0; }
.cta-dark {
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(90% 140% at 100% 0%, var(--navy-700), var(--navy-950));
}
.cta-soft { background: linear-gradient(135deg, #fff6d9, #fdecb5); }
.cta-in { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cta-band h2 { font-size: clamp(24px, 4.2vw, 38px); }
.cta-dark h2 { color: #fff; }
.cta-band p { margin-top: 8px; font-size: 18px; }
.cta-dark p { color: rgba(255, 255, 255, .8); }
.cta-soft p { color: var(--ink); }
.cta-band .btn { min-height: 54px; padding-inline: 28px; }
@media (min-width: 900px) { .cta-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; } .cta-band { padding: 72px 0; } }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; gap: 24px; }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; } .contact.no-form { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.c-list { display: grid; gap: 10px; }
.c-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: #fff; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s;
}
a.c-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.c-item > .ic, .c-item > .line-logo { width: 40px; height: 40px; }
.c-item > .ic { padding: 9px; border-radius: 12px; background: var(--blue-50); color: var(--navy-700); }
.c-item small { display: block; font-size: 14px; color: var(--muted); }
.c-item b { display: block; color: var(--navy-900); font-size: 17px; word-break: break-word; }
.c-item b.addr { font-weight: 600; font-size: 16px; white-space: pre-line; line-height: 1.6; }
.hours { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.hours h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 8px; }
.hours h3 .ic { color: var(--navy-700); }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.hours li:last-child { border-bottom: 0; }
.hours .closed { color: var(--muted); }

.lead-form, form.lead {
  display: grid; gap: 14px; padding: 24px 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
}
@media (min-width: 600px) { form.lead { padding: 32px; } }
form.lead h3 { font-size: 22px; margin-bottom: 2px; }
.f2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .f2 { grid-template-columns: 1fr 1fr; } }
form.lead label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy-900); }
form.lead label em { color: #b42318; font-style: normal; }
form.lead input, form.lead select, form.lead textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
form.lead textarea { resize: vertical; min-height: 120px; }
form.lead input:focus, form.lead select:focus, form.lead textarea:focus {
  outline: 0; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(22, 58, 122, .12);
}
form.lead .btn { min-height: 54px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.msg { margin: 0; font-weight: 600; font-size: 15px; }
.msg:empty { display: none; }
.msg.ok { color: #067647; }
.msg.bad { color: #b42318; }
.map-box { margin-top: 24px; display: grid; gap: 12px; justify-items: start; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius-lg); background: var(--blue-100); }
.contact > .map-box { margin-top: 0; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy-950); color: rgba(255, 255, 255, .78); padding: 56px 0 120px; font-size: 16px; }
@media (min-width: 1024px) { .foot { padding-bottom: 32px; } }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1.2fr .8fr; gap: 48px; } }
.foot-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; }
.foot-logo img { height: 56px; width: auto; }
.foot b { display: block; color: #fff; font-size: 18px; margin-bottom: 6px; }
.foot-tag { color: var(--amber); font-weight: 600; }
.foot h2 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-list li { display: flex; gap: 10px; align-items: flex-start; }
.foot-list a { display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; margin-bottom: -10px; }
.foot-list li:has(a) .ic { margin-top: 0; align-self: center; }
.foot-list .ic { width: 20px; height: 20px; margin-top: 3px; color: var(--amber); }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-nav { display: grid; gap: 0; }
.foot-nav a { display: flex; align-items: center; min-height: 44px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.copy { display: block; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- ปุ่มลอยมือถือ: ไลน์ + โทร ---------- */
.float-contact {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
  box-shadow: 0 -6px 20px -10px rgba(11, 31, 69, .35); backdrop-filter: blur(8px);
}
.fl {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 16px;
}
.fl-line { background: #06c755; color: #fff; }
.fl-line .line-logo { width: 26px; height: 26px; }
.fl-line .line-logo rect { fill: #fff; }
.fl-line .line-logo path:first-of-type { fill: #06c755; }
.fl-line .line-logo path:last-of-type { fill: #fff; }
.fl-call { background: var(--navy-700); color: #fff; }
body { padding-bottom: 0; }
@media (max-width: 1023px) { main { padding-bottom: 0; } }
@media (min-width: 1024px) { .float-contact { display: none; } }

/* ---------- บทความ (ระบบกลาง) ---------- */
.a-wrap { max-width: 800px; }
.a-wrap h1 { font-size: clamp(28px, 5vw, 44px); margin: 12px 0; }
.a-meta { color: var(--muted); font-size: 15px; }
.a-cover img { border-radius: var(--radius-lg); width: 100%; }
.a-lead { font-size: 19px; color: var(--ink); }
.a-toc { background: var(--blue-50); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.a-body h2 { margin: 32px 0 12px; font-size: 26px; }
.a-body h3 { margin: 24px 0 8px; }
.a-body blockquote { margin: 24px 0; padding: 12px 20px; border-left: 4px solid var(--amber); background: var(--blue-50); border-radius: 0 10px 10px 0; }
.a-fig { margin: 24px 0; }
.a-fig img { border-radius: var(--radius); }
.a-fig figcaption { font-size: 14px; color: var(--muted); padding-top: 6px; }
.a-cta, .a-embed { margin: 32px 0; padding: 24px; background: var(--blue-50); border-radius: var(--radius-lg); }
.crumbs-dark, .a-wrap .crumbs { color: var(--muted); }
.a-wrap .crumbs a { color: var(--blue-600); }

/* ---------- อนิเมชัน: ปรากฏตอนเลื่อนถึง ครั้งเดียว ---------- */
.js [data-rv] { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-rv].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-rv] { opacity: 1; transform: none; }
  .hero picture { transform: none !important; }
}
