:root {
  --navy: #0d2240;
  --navy-2: #13305a;
  --navy-3: #1c3f70;
  --gold: #c19a52;
  --gold-2: #d9b673;
  --paper: #f7f5f0;
  --line: #e4dfd3;
  --ink: #142033;
  --muted: #5b6577;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  font-size: 17px; line-height: 1.7; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 12px 16px; min-height: 48px; z-index: 100; }
.skip:focus { left: 8px; }

.ic { width: 20px; height: 20px; flex: none; }
.ic--lg { width: 32px; height: 32px; }
.logo-ic { width: 22px; height: 22px; flex: none; }

/* แถบบน */
.topbar { background: var(--navy); color: #d6deea; font-size: 14px; }
.topbar__in { display: flex; gap: 24px; justify-content: flex-end; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.topbar a:hover { color: var(--gold-2); }
.topbar .ic { width: 15px; height: 15px; }

/* หัวเว็บ — ไม่มี backdrop-filter/transform เพื่อให้เมนูมือถือเต็มจอ */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .97); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); min-height: 48px; }
.nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.brand__logo { flex: none; width: auto; max-width: none; height: 50px; }
.brand__chip { background: #fff; border-radius: 6px; padding: 6px 10px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.45; }
.brand__txt small { font-size: 14px; color: var(--muted); }
.brand--light { color: #fff; }
.brand--light .brand__txt small { color: #b9c4d6; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15.5px; font-weight: 600; color: var(--navy); }
.nav a:not(.btn):hover { color: var(--gold); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; position: relative; z-index: 60; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s var(--ease), opacity .2s; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ปุ่มสลับภาษา — อยู่นอกเมนู เห็นตลอดทั้งเดสก์ท็อปและมือถือ */
.lang { display: flex; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; position: relative; z-index: 60; }
.lang a { min-width: 44px; min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--navy); transition: background .2s, color .2s; }
.lang a:hover { color: var(--gold); }
.lang a[aria-current] { background: var(--navy); color: #fff; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 16px; transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 54px; padding: 12px 28px; font-size: 17px; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-2); box-shadow: 0 8px 24px -10px rgba(193, 154, 82, .8); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }
.nav__cta { min-height: 42px; padding: 8px 18px; font-size: 15px; }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--gold); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow--gold { color: var(--gold-2); }

/* แบนเนอร์ */
.hero { position: relative; min-height: min(70vh, 640px); display: flex; align-items: center; background: var(--navy); color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 34, 64, .95) 0%, rgba(13, 34, 64, .82) 40%, rgba(13, 34, 64, .25) 75%, rgba(13, 34, 64, .1) 100%); }
.hero__in { position: relative; padding-block: 64px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 58px); max-width: 15em; margin-bottom: 18px; }
.hero__since { font-size: max(16px, .42em); font-weight: 600; color: var(--gold-2); white-space: nowrap; margin-left: .3em; }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); max-width: 30em; color: #d8e0ec; }
.hero__cta { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 12px; margin: 28px 0 18px; }
.hero__contact { display: flex; flex-direction: column; align-items: flex-start; }
.hero__tel { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-2); }

/* จุดเด่น */
.trust { background: var(--navy-2); color: #fff; border-top: 1px solid rgba(193, 154, 82, .35); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 28px 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.trust__item:first-child { border-left: 0; }
.trust__item .ic { color: var(--gold-2); margin-bottom: 10px; }
.trust__item h3 { font-size: 17px; color: #fff; }
.trust__item p { font-size: 15px; color: #b9c4d6; margin: 4px 0 0; }

/* ทำไมต้องเรา */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why__item { display: flex; gap: 16px; align-items: flex-start; }
.why__item .ic { color: var(--gold); }
.why__item h3 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.why__item p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* ส่วนทั่วไป */
.section { padding-block: clamp(64px, 9vw, 112px); }
.head { margin-bottom: 40px; }
.head h2, .about h2, .contact h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--navy); }
.head--light h2 { color: #fff; }
.head__lead { max-width: 46em; margin: 14px 0 0; color: var(--muted); }
.head--light .head__lead { color: #d8e0ec; }
.services__tag { margin: 28px 0 0; font-weight: 600; color: var(--navy); }

/* เกี่ยวกับเรา */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { margin: 0; }
.about__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.about__txt h2 { margin-bottom: 20px; }
.about__txt p { color: var(--muted); }
.about__txt .btn { margin-top: 8px; }

/* บริการ */
.services { background: #fff; }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc__card { padding: 30px 28px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; transition: transform .2s var(--ease), box-shadow .2s; }
.svc__card:nth-child(3n+1) { border-left: 0; }
.svc__card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(13, 34, 64, .45); position: relative; z-index: 1; }
.svc__card .ic { color: var(--gold); margin-bottom: 16px; }
.svc__card h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.svc__card p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* ผลิตภัณฑ์ */
.products { background: var(--navy); color: #fff; }
/* รูปชุดปะเก็นจริงเป็นแนวตั้งคนละสัดส่วนและไฟล์เล็ก: สัดส่วนคอลัมน์ทำให้สองรูปสูงเท่ากันโดยไม่ครอป และไม่ขยายเกิน 258/179px กันรูปแตกบนจอละเอียดสูง */
.gallery { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; align-items: start; }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.gallery__item img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item--wide, .gallery__item--line { grid-column: 1 / -1; }
.gallery__item--wide img { aspect-ratio: 16 / 9; }
.gallery__item--kit1 img { aspect-ratio: 479 / 703; }
.gallery__item--kit2 img { aspect-ratio: 323 / 682; }
.gallery__item--line img { aspect-ratio: 4 / 3; }
.gallery__tag { position: absolute; left: 14px; bottom: 14px; background: rgba(13, 34, 64, .85); color: #fff; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 6px; }
.products__note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; font-size: 15px; color: #b9c4d6; }
.products__note p { margin: 0; }
.products__fb { flex: 1 1 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); }

/* ขั้นตอน */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 1.5px solid var(--gold); }
.steps__n { font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1.4; display: block; margin-bottom: 12px; }
.steps h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.steps p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* คำถาม */
.faq { background: #fff; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17.5px; color: var(--navy); position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__list details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ติดต่อ */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact h2 { color: #fff; margin-bottom: 18px; }
.contact__txt p { color: #d0d9e6; margin-bottom: 28px; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.channels a, .channels__box { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.channels a:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); transform: translateY(-2px); }
.channels .ic, .channels .logo-ic { width: 26px; height: 26px; color: var(--gold-2); }
.channels span { display: flex; flex-direction: column; line-height: 1.5; font-weight: 600; font-size: 17px; word-break: break-word; }
.channels small { font-size: 14px; font-weight: 400; color: #b9c4d6; }
.channels em { font-style: normal; font-size: 14px; font-weight: 400; color: #d0d9e6; margin-top: 2px; }
.channels__en { font-weight: 600; }
.channels em.channels__map { color: var(--gold-2); font-weight: 600; }
.logo-ic--line { color: #06c755 !important; }
.logo-ic--wa { color: #25d366 !important; }
.logo-ic--fb { color: #1877f2 !important; }
.channels .logo-ic--fb { color: #fff !important; }

/* ท้ายเว็บ */
.footer { background: #091a33; color: #b9c4d6; font-size: 15px; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer p { margin-top: 16px; max-width: 26em; }
.nowrap { white-space: nowrap; }
.footer__addr { font-style: normal; margin-top: 12px; max-width: 30em; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer ul a { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; }
.footer a:hover { color: var(--gold-2); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--gold); color: var(--navy); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; font-size: 14px; }

/* ปุ่มลอยมือถือ */
.dock { display: none; }

/* กล่องดูภาพ */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 14, 28, .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; }
.lightbox__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ปรากฏตอนเลื่อน */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* แบนเนอร์เดสก์ท็อป: ภาพชิดขวา ข้อความบนพื้นน้ำเงินฝั่งซ้าย (ตามแบบอ้างอิง) */
@media (min-width: 1024px) {
  .hero__img { left: auto; right: 0; width: min(64%, 920px); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
  .hero__shade { background: linear-gradient(90deg, rgba(13, 34, 64, .9) 0%, rgba(13, 34, 64, .55) 45%, rgba(13, 34, 64, 0) 70%); }
  .gallery { grid-template-columns: 258px 179px minmax(0, .41fr) minmax(0, 1fr); }
  .gallery__item--wide { grid-column: 1 / 4; grid-row: 1; }
  .gallery__item--line { grid-column: 4; grid-row: 1; }
  .gallery__item--kit1 { grid-column: 1; grid-row: 2; }
  .gallery__item--kit2 { grid-column: 2; grid-row: 2; }
  .products__note { grid-column: 3 / -1; grid-row: 2; align-self: center; flex-direction: column; align-items: flex-start; margin: 0 0 0 clamp(16px, 3vw, 40px); font-size: 19px; color: #d8e0ec; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery { grid-template-columns: 258px 179px 1fr; }
  .gallery__item--line { grid-column: auto; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .gallery { grid-template-columns: 258px 179px; justify-content: center; }
}

/* แท็บเล็ต */
@media (max-width: 1023px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item { padding: 24px 16px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .nav { gap: 16px; font-size: 15px; }
  .nav__cta { padding: 8px 14px; }
  .header .brand__txt { display: none; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .lang { margin-left: auto; }
  .header__in { gap: 12px; }
  .nav { position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; gap: 22px; font-size: 21px; background: var(--paper); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav__cta { margin-top: 10px; font-size: 18px; min-height: 52px; padding: 12px 28px; }
}
@media (max-width: 767px) {
  .hide-sm { display: none !important; }
  .topbar__in { justify-content: center; gap: 16px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc__card { padding: 20px 14px; }
  .svc__card:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .svc__card:nth-child(odd) { border-left: 0; }
  .why__grid { grid-template-columns: 1fr; gap: 22px; }
  .svc__card h3 { font-size: 16.5px; }
  .svc__card p { font-size: 14.5px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item { padding: 20px 14px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .trust__item:nth-child(-n+2) { border-top: 0; }
  .trust__item:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }
  .trust__item h3 { font-size: 16px; }
  .trust__item p { font-size: 14px; }
  .gallery { gap: 10px; }
  .gallery__tag { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 8px; line-height: 1.5; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 0; }
  .hero__in { padding-block: 36px; }
  .hero__shade { background: linear-gradient(180deg, rgba(13, 34, 64, .55) 0%, rgba(13, 34, 64, .9) 60%, rgba(13, 34, 64, .95) 100%); }
  .hero__cta { grid-template-columns: 1fr; }
  .contact__cta .btn { flex: 1 1 100%; }
  .hero__cta { margin: 22px 0 14px; }
  .hero__lead { margin-bottom: 0; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(247, 245, 240, .98); border-top: 1px solid var(--line); }
  .dock a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 8px; font-weight: 600; }
  .dock__line { background: #06c755; color: #fff; }
  .dock__tel { background: var(--navy); color: #fff; }
  body { padding-bottom: 64px; }
}
@media (max-width: 479px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .hero__tel { font-size: 15px; }
  .brand { gap: 8px; }
  .brand__logo { height: 42px; }
  .header .brand__txt { display: none; }
}
