:root {
  --navy: #14305a;
  --navy-2: #0e2445;
  --navy-3: #1d4277;
  --gold: #f0a01e;
  --gold-2: #d98a0c;
  --ink: #18212e;
  --muted: #5b6573;
  --line: #e3e7ee;
  --paper: #ffffff;
  --tint: #f3f6fa;
  --line-green: #06c755;
  --r: 14px;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 820px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--lg { width: 30px; height: 30px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 17px; }
.btn--line { background: var(--gold); color: var(--navy-2); box-shadow: 0 6px 18px -8px rgba(240,160,30,.8); }
.btn--line:hover { background: #f6b23e; }
.btn--ghost { background: #fff; color: var(--navy); }
.btn--ghost:hover { background: #eef2f8; }

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

/* หัวเว็บ — ไม่มี backdrop-filter/transform เพื่อให้เมนูมือถือเต็มจอ */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 64px; aspect-ratio: 944 / 496; object-fit: contain; }
.nw { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); position: relative; padding: 6px 0; }
.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 { transform: scaleX(1); }
.nav__cta { display: none; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--tint); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.burger .ic { width: 24px; height: 24px; }

/* แบนเนอร์ */
.hero { display: grid; grid-template-columns: 1fr; background: var(--navy); color: #fff; }
.hero__media { position: relative; overflow: hidden; height: min(56vw, 60vh); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.hero__body { position: relative; padding: 32px 16px 40px; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.hero__text { max-width: 620px; margin-inline: auto; }
.hero h1 { font-size: clamp(30px, 7.4vw, 58px); line-height: 1.45; margin: 10px 0 16px; }
.hero h1 span { color: var(--gold); }
.hero__lead { color: #d3dceb; font-size: 17px; max-width: 54ch; }
.hero__vision { margin: 22px 0 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--gold); max-width: 54ch; }
.hero__vision-k { font-size: 14px; font-weight: 600; color: var(--gold); }
.hero__vision p:last-child { margin-top: 2px; font-size: 16px; line-height: 1.7; color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--gold-2); letter-spacing: .02em; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold); }
.hero .eyebrow { background: var(--gold); color: var(--navy-2); padding: 4px 14px; border-radius: 999px; }
.hero .eyebrow::before { display: none; }

/* จุดเด่น */
.trust { background: linear-gradient(180deg, var(--navy-2) 0 36px, #fff 36px); }
.trust__grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 10px; background: #fff; border-radius: 20px; box-shadow: 0 18px 40px -24px rgba(14,36,69,.55), 0 0 0 1px rgba(14,36,69,.06); }
.trust__item { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border-radius: 14px; }
.trust__item .ic { color: var(--gold-2); }
.trust__item h3 { font-size: 17px; color: var(--navy); }
.trust__item p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* หัวข้อส่วน */
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #fff; }
.head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.head .eyebrow::after { content: ''; width: 28px; height: 2px; background: currentColor; }
.head h2 { font-size: clamp(28px, 5.6vw, 44px); color: var(--navy); margin-top: 8px; }
.head__lead { margin-top: 10px; color: var(--muted); }
.head--light h2 { color: #fff; }
.head--light .head__lead { color: #c9d4e5; }

/* บริการ */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 767px) { .svc__card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.svc__card { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.svc__card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(20,48,90,.45); }
.svc__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { position: relative; padding: 30px 14px 18px; }
.svc__ic { position: absolute; top: -24px; left: 20px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; box-shadow: 0 6px 16px -6px rgba(217,138,12,.8); border: 3px solid #fff; }
.svc__ic .ic { width: 24px; height: 24px; }
.svc__body h3 { font-size: 18px; color: var(--navy); }
.svc__body p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.kinds__item { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-radius: var(--r); background: var(--tint); }
.kinds__item .ic { width: 26px; height: 26px; color: var(--gold-2); }
.kinds__item { background: #fff; border: 1px solid var(--line); }
.kinds__item h3 { font-size: 16px; color: var(--navy); }
.kinds__item p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 2px; }

/* อาคาร */
.bld { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bld li { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; color: var(--navy); line-height: 1.5; }
.bld .ic { color: var(--gold-2); width: 24px; height: 24px; }

/* เกี่ยวกับ */
.about__grid { display: grid; gap: 32px; }
.about__media { display: grid; gap: 14px; align-content: start; }
.about__media img { width: 100%; max-width: 472px; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.vision { margin: 0; padding: 22px 22px 24px; border-radius: var(--r); background: var(--navy); color: #fff; }
.vision p:last-child { margin-top: 8px; font-size: 18px; font-weight: 600; line-height: 1.6; }
/* วิสัยทัศน์ 2 แถว: แถวละประโยค มือถือย่อตัวอักษรตามจอให้แต่ละประโยคจบในแถวเดียว */
.vl { display: block; }
@media (max-width: 479px) {
  .vision p.vl-2 { font-size: clamp(12px, 3.95vw, 18px); letter-spacing: -.01em; }
  .vision { padding-inline: clamp(16px, 5vw, 22px); }
  .hero__vision p.vl-2 { font-size: clamp(14px, 3.9vw, 16px); }
}
.about__text h2 { font-size: clamp(26px, 4.6vw, 38px); color: var(--navy); margin: 8px 0 14px; }
.about__text > p { color: var(--muted); }
.pro__title { font-size: 18px; color: var(--navy); margin: 26px 0 12px; }
.pro { display: grid; gap: 12px; }
.pro li { display: flex; gap: 14px; align-items: flex-start; }
.pro__l { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--gold); color: var(--navy-2); font-weight: 700; font-size: 20px; }
.pro b { color: var(--navy); }
.pro__code { margin-left: 6px; color: var(--gold-2); letter-spacing: .04em; }
.pro__en { display: block; font-size: 13px; font-weight: 600; color: var(--gold-2); letter-spacing: .03em; line-height: 1.4; }
.pro p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ผลงาน */
.gallery { columns: 2; column-gap: 10px; }
.gallery__item { position: relative; display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: 10px; overflow: hidden; }
.gallery__item img { width: 100%; height: auto; transition: transform .4s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__zoom { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(14,36,69,.75); color: #fff; }
.gallery__zoom .ic { width: 16px; height: 16px; }
.gallery__note { margin-top: 8px; font-size: 14px; color: #a9b7cc; }

/* ขั้นตอน */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: s; }
.steps li { position: relative; padding: 20px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -20px rgba(14,36,69,.5); }
.steps__n { position: absolute; top: 12px; right: 16px; font-size: 26px; font-weight: 700; color: var(--gold); }
.steps .ic { width: 28px; height: 28px; color: var(--navy); }
.steps h3 { font-size: 16px; color: var(--navy); margin-top: 12px; }
.steps p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.quote { display: grid; gap: 18px; margin-top: 24px; padding: 26px 22px; border-radius: var(--r); background: var(--navy); color: #fff; }
.quote h3 { font-size: 22px; color: var(--gold); }
.quote p { margin-top: 6px; color: #d3dceb; }
.quote .btn { justify-self: start; }

/* คำถาม */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--gold-2); transition: transform .2s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ติดต่อ */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.contact__grid { display: grid; gap: 28px; }
.contact h2 { font-size: clamp(26px, 5vw, 40px); margin: 8px 0 22px; }
.contact__list { display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .ic { width: 22px; height: 22px; color: var(--gold); margin-top: 4px; }
.contact__list small { display: block; color: #a9b7cc; font-size: 14px; }
.contact__list a, .contact__list span { font-size: 18px; font-weight: 600; text-decoration: none; line-height: 1.5; }
.contact__list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact__map { border-radius: var(--r); overflow: hidden; min-height: 300px; background: var(--navy-3); }
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* ท้ายเว็บ */
.footer { background: #0a1a33; color: #b9c5d8; padding: 48px 0 96px; font-size: 15px; }
.footer__grid { display: grid; gap: 28px; }
.footer__brand img { width: 200px; border-radius: 10px; }
.footer__brand p { margin-top: 14px; max-width: 38ch; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer li { margin-bottom: 6px; }
.footer a { text-decoration: none; display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.footer a:hover { color: #fff; }
.footer__copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }

/* ปุ่มลอยมือถือ */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.dock__line { background: var(--line-green); color: #fff; }
.dock__tel { background: var(--navy); color: #fff; }

/* กล่องดูรูป */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(6,16,32,.88); }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; border-radius: 10px; }
.lightbox__cap { color: #fff; text-align: center; margin-top: 10px; }
.lightbox__close { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }

/* อนิเมชันตอนเลื่อนถึง */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-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; }
  .btn, .svc__card, .gallery__item img { transition: none; }
}

/* มือถือ: เมนูเต็มจอ */
@media (max-width: 1023px) {
  .topbar__in { justify-content: center; gap: 16px; font-size: 14px; }
  .topbar__in > span { display: none; }
  .header__cta { display: none; }
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: 0; z-index: 60; flex-direction: column; justify-content: center; gap: 8px; background: #fff; padding: 80px 24px 40px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav a:not(.btn) { font-size: 22px; padding: 10px 0; }
  .nav__cta { display: inline-flex; margin-top: 16px; }
  body.nav-open .nav { visibility: visible; opacity: 1; }
  body.nav-open { overflow: hidden; }
  body.nav-open .burger { position: fixed; top: 15px; right: 16px; z-index: 70; }
}
@media (max-width: 420px) {
  .brand img { height: 52px; }
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (min-width: 480px) {
  .trust__grid, .kinds { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 3; }
  .bld { grid-template-columns: repeat(3, 1fr); }
  .svc { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .trust__grid, .kinds, .steps { grid-template-columns: repeat(4, 1fr); }
  .svc { grid-template-columns: repeat(3, 1fr); }
  .bld { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 88px 0; }
  .quote { grid-template-columns: 1fr auto; align-items: center; padding: 32px 36px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer { padding-bottom: 40px; }
}
@media (min-width: 1024px) {
  .hero { position: relative; display: block; min-height: 620px; overflow: hidden; }
  .hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; height: auto; }
  .hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(20,48,90,.55) 22%, rgba(20,48,90,0) 48%); }
  .hero__body { position: relative; z-index: 1; display: flex; align-items: center; min-height: 620px; background: none; padding: 64px 0 96px max(16px, calc((100vw - var(--wrap)) / 2)); }
  .hero__text { margin: 0; max-width: 560px; }
  .trust { background: linear-gradient(180deg, transparent 0 50%, #fff 50%); margin-top: -60px; position: relative; z-index: 2; }
  .trust__grid { padding: 14px 18px; }
  .trust__item + .trust__item { border-left: 1px solid var(--line); border-radius: 0; }
  .steps li + li::before { content: ''; position: absolute; left: -10px; top: 50%; width: 10px; height: 2px; background: var(--gold); }
  .gallery { columns: 4; }
  .about__grid { grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
  .dock { display: none; }
  .trust__item { flex-direction: row; align-items: flex-start; gap: 14px; background: none; padding: 8px 4px; }
  .trust__grid { padding: 32px 0; }
}
