/* หน้าเว็บ บริษัท เอ.ที. ธุรกิจก่อสร้างและออกแบบ จำกัด
   โทนน้ำเงินกรมท่า + ทอง จากโลโก้ · ทางการ น่าเชื่อถือ เรียบ สะอาดตา อบอุ่น
   ฟอนต์เดียวทั้งเว็บ IBM Plex Sans Thai แยกน้ำหนัก 400 / 500 / 600 / 700 */

:root {
  --navy-950: #050d2b;
  --navy-900: #081540;
  --navy: #0b1d5a;
  --navy-700: #142a7c;
  --royal: #1f3aa6;
  --gold: #c9a14a;
  --gold-300: #e6cd8c;
  --gold-100: #f6edd6;
  --gold-ink: #87661f;      /* ทองที่อ่านออกบนพื้นสว่าง */
  --paper: #f7f5ef;
  --surface: #ffffff;
  --ink: #141a2e;
  --muted: #565e74;
  --line: #e4dfd2;
  --line-green: #06c755;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --display: var(--font);
  --shadow-sm: 0 1px 2px rgb(11 29 90 / .06), 0 2px 8px rgb(11 29 90 / .05);
  --shadow: 0 2px 4px rgb(11 29 90 / .05), 0 12px 32px -8px rgb(11 29 90 / .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  --sec: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } :root { --gutter: 24px; } }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.455; margin: 0; color: var(--navy); text-wrap: balance; }
/* หัวข้อไทยตัดบรรทัดตรงช่องว่างเท่านั้น ไม่ฉีกคำอย่าง ครบ|วงจร — ถ้ายาวเกินจอจริงๆ ค่อยตัดกลางคำ */
.nw { white-space: nowrap; }
h1, h2, .hero-title { overflow-wrap: anywhere; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
small { font-size: max(14px, .85em); }
svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; min-height: 48px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.45; text-decoration: none; text-align: center;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(180deg, #d9b45e, var(--gold)); color: var(--navy-950); box-shadow: 0 6px 18px -6px rgb(201 161 74 / .7); }
.btn-gold:hover { background: linear-gradient(180deg, #e2c16f, #d0a851); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline-light { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05b44c; }
.btn-line svg { fill: #fff; stroke: none; }
.btn-block { width: 100%; }

/* ---------- แถบบนสุด + หัวเว็บ ---------- */
.topbar { display: none; background: var(--navy-950); color: rgb(255 255 255 / .78); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; min-height: 38px; }
.topbar svg { color: var(--gold-300); }
.topbar-r { gap: 22px !important; }
.topbar a:hover { color: #fff; }
@media (min-width: 900px) { .topbar { display: block; } }

.site-head { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-head.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgb(11 29 90 / .35); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; min-height: 48px; margin-right: auto; }
.brand img { width: 48px; height: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-size: 14px; line-height: 1.455; color: var(--navy); font-weight: 700; }
.brand-text small { display: none; font-size: 14px; color: var(--gold-ink); line-height: 1.4; }
@media (min-width: 560px) { .brand-text b { font-size: 16px; } .brand-text small { display: block; } .brand img { width: 54px; } }

.nav { display: none; }
.nav a { text-decoration: none; }
.nav-toggle { margin-left: 4px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; flex: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; left: 0; margin-left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1079px) {
  .nav-open .nav {
    display: flex; flex-direction: column; position: fixed; inset: 68px 0 auto 0; background: #fff; padding: 8px var(--gutter) 20px;
    border-top: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgb(11 29 90 / .35); max-height: calc(100dvh - 68px); overflow: auto;
  }
  .nav-open .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
  .nav-open .nav a[aria-current="page"] { color: var(--gold-ink); }
  .nav-cta { margin-top: 16px; }
}
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: 4px; }
  .nav a:not(.btn) { position: relative; padding: 10px 14px; font-weight: 500; color: var(--ink); border-radius: 8px; transition: color .2s; }
  .nav a:not(.btn)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav a:not(.btn):hover { color: var(--navy); }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
  .nav-cta { margin-left: 12px; min-height: 44px; padding-inline: 20px; }
  .nav-toggle { display: none; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; isolation: isolate; }
.hero-track { position: relative; display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.hero-slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 50% 55%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgb(5 13 43 / .92) 0%, rgb(8 21 64 / .72) 45%, rgb(8 21 64 / .2) 100%),
  linear-gradient(0deg, rgb(5 13 43 / .7), transparent 45%); }
.hero-slide > .wrap { position: relative; display: flex; align-items: center; }
.hero-full .hero-slide > .wrap { min-height: min(68vh, 640px); padding-block: 72px 104px; }
@media (min-width: 768px) { .hero-full .hero-slide > .wrap { min-height: min(78vh, 720px); } }
.hero-body { max-width: 780px; }
.hero-rule { display: block; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 22px; }
.hero h1, .hero .hero-title { color: #fff; font-size: clamp(30px, 6.2vw, 58px); font-weight: 700; line-height: 1.45; letter-spacing: -.005em; }
.hero-sub { margin-top: 16px; font-size: clamp(16px, 2vw, 19px); color: rgb(255 255 255 / .86); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; align-items: center; gap: 14px; z-index: 2; }
.hero-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35); background: rgb(5 13 43 / .35); color: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.hero-arrow:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.hero-dots { display: flex; gap: 0; }
.hero-dots button { width: 48px; height: 48px; padding: 0; border: 0; background: none; position: relative; }
.hero-dots button::before { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgb(255 255 255 / .35); transition: background .3s; }
.hero-dots button[aria-current="true"]::before { background: var(--gold); }

.hero-compact .hero-slide > .wrap { min-height: 260px; padding-block: 56px; }
@media (min-width: 768px) { .hero-compact .hero-slide > .wrap { min-height: 340px; } }
.hero-compact .hero-shade { background: linear-gradient(90deg, rgb(5 13 43 / .9), rgb(8 21 64 / .6)); }
.hero-compact h1, .hero-compact .hero-title { font-size: clamp(30px, 4.6vw, 48px); }
.hero-compact .hero-body { max-width: 720px; }
.hero-compact .hero-body::before { content: ''; display: block; width: 44px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 16px; }

.hero-split { background: var(--navy); }
.hero-split .hero-split { display: grid; gap: 28px; padding-block: 48px; align-items: center; }
.hero-split .hero-pic, .hero-split .hero-pic img { position: static; height: auto; border-radius: var(--radius); }
@media (min-width: 900px) { .hero-split .hero-split { grid-template-columns: 1fr 1fr; padding-block: 72px; } }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding-block: var(--sec); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; }
.sec-head h2::after { content: ''; display: block; width: 44px; height: 3px; margin-top: 14px; background: var(--gold); border-radius: 2px; }
.sec-head.center h2::after { margin-inline: auto; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.05em; }
.prose p + p { margin-top: 1em; }
.prose { color: #2c3349; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: .6em; }
.prose-narrow { max-width: 760px; }

/* จุดเด่น */
.sec-features { background: var(--surface); }
.features-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 480px) { .features-grid { grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr)); } }
@media (min-width: 768px) { .features-grid { gap: 20px; grid-template-columns: repeat(min(var(--cols), 4), minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.feature { padding: 22px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.feature-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--navy); color: var(--gold-300); margin-bottom: 16px; }
.feature-icon svg { width: 25px; height: 25px; }
.feature h3 { font-size: 17px; font-weight: 600; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (min-width: 768px) { .feature { padding: 28px 24px; } .feature h3 { font-size: 19px; } }

/* เกี่ยวกับเรา */
.sec-about { background: var(--paper); }
.about { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .about.pic-right .about-pic { order: 2; }
  .about.no-pic { grid-template-columns: 1fr; max-width: 820px; }
}
.about-pic { position: relative; margin: 0; }
.about-pic img { width: 100%; border-radius: var(--radius); }
.about-pic::after { content: ''; position: absolute; inset: auto -12px -12px auto; width: 42%; height: 42%; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); border-radius: 0 0 var(--radius) 0; pointer-events: none; }
.about-text h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.about-text h2::after { content: ''; display: block; width: 44px; height: 3px; margin-top: 14px; background: var(--gold); border-radius: 2px; }
.about-text .btn { margin-top: 26px; }

/* แถบกรอง */
.chips { display: flex; gap: 8px; margin: -8px 0 28px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; min-height: 48px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* บริการ */
.sec-services { background: var(--surface); }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* มือถือเล็ก: การ์ดคอลัมน์เดียว — ชื่อบริการภาษาไทยยาว แบ่ง 2 คอลัมน์แล้วอ่านไม่ออก */
@media (max-width: 479px) {
  .cards { gap: 12px; grid-template-columns: 1fr; }
}
@media (min-width: 768px) { .cards { gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.card[hidden], .row-item[hidden] { display: none; }
.card-pic { position: relative; aspect-ratio: 4 / 3; background: #e9e6dd; overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-pic img { transform: scale(1.03); }
.card-no { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 8px; background: rgb(8 21 64 / .82); color: var(--gold-300); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.card-cat { font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.card h3, .card h2, .card h4 { font-size: 18px; font-weight: 600; line-height: 1.45; }
.card h2 a { text-decoration: none; }
.card-body p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.card-link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); text-decoration: none; font-size: 15px; min-height: 48px; }
.card-link svg { transition: transform .2s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }
.card-price { font-weight: 700; color: var(--navy); } .card-price s { margin-left: 8px; color: var(--muted); font-weight: 400; }
.card-sold { color: #b42318; font-weight: 600; }
@media (min-width: 768px) { .card-body { padding: 22px 22px 24px; } .card h3 { font-size: 20px; } }

.rows { display: grid; gap: 14px; }
.row-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px 18px; align-items: center; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.row-item .card-pic { border-radius: var(--radius-sm); }
.row-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 768px) { .row-item { grid-template-columns: 200px 1fr auto; } .row-cta { grid-column: auto; } }
.row-body h3 { font-size: 18px; } .row-body p { color: var(--muted); font-size: 15px; }

/* ผลงาน: การ์ดโครงการ รูปปกคงสัดส่วนจริง ไม่ครอป ไม่มีกรอบ — กดแล้วเปิดดูทุกรูปของโครงการ */
.sec-gallery { background: var(--paper); }
.albums { columns: 2; column-gap: 12px; }
@media (min-width: 480px) { .albums { columns: 3; } }
@media (max-width: 479px) { .albums { columns: 1; } }
@media (min-width: 1024px) { .albums { columns: var(--cols); column-gap: 22px; } }
.album { break-inside: avoid; margin: 0 0 18px; }
@media (min-width: 1024px) { .album { margin-bottom: 26px; } }
.album-open { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: #e9e6dd; }
.album-open img { width: 100%; transition: transform .6s var(--ease); }
.album-open:hover img { transform: scale(1.03); }
.album-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: rgb(5 13 43 / .78); color: #fff; font-size: 14px; font-weight: 600; backdrop-filter: blur(4px); }
.album-count svg { color: var(--gold-300); }
.album figcaption { padding: 12px 2px 0; }
.album h3 { font-size: 18px; font-weight: 600; line-height: 1.45; }
.album p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* เสียงจากลูกค้า */
.sec-quotes { background: var(--surface); }
.quotes { display: grid; gap: 16px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.quote { margin: 0; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.quote-mark { color: var(--gold); } .quote-mark svg { width: 30px; height: 30px; }
.quote blockquote { margin: 0; color: #2c3349; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; color: var(--navy); } .quote figcaption small { color: var(--muted); }

/* คำถามที่พบบ่อย */
.sec-faq { background: var(--surface); }
.faq-wrap { display: grid; gap: 8px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq-wrap .sec-head { position: sticky; top: 120px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; font-weight: 600; color: var(--navy); font-size: 17px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--gold-ink); border-radius: 2px; 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 2px 22px; color: var(--muted); }

/* แถบชวนติดต่อ */
.cta-band { padding-block: clamp(52px, 7vw, 88px); }
.cta-dark { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-950), var(--navy) 55%, var(--navy-700)); color: #fff; }
.cta-dark::before { content: ''; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border: 2px solid rgb(201 161 74 / .28); transform: rotate(45deg); pointer-events: none; }
.cta-dark::after { content: ''; position: absolute; right: 40px; bottom: -160px; width: 280px; height: 280px; border: 2px solid rgb(201 161 74 / .16); transform: rotate(45deg); pointer-events: none; }
.cta-soft { background: var(--gold-100); }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (min-width: 900px) { .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); max-width: 30ch; }
.cta-dark h2 { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ติดต่อ */
.sec-contact { background: var(--paper); }
.contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; } }
.contact-note { margin-bottom: 22px; color: #2c3349; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li > svg { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--navy); color: var(--gold-300); }
.contact-list small { display: block; color: var(--muted); font-size: 14px; }
.contact-list a, .contact-list span { color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a { display: inline-flex; align-items: center; min-height: 48px; margin-block: -12px; }
.contact-list a:hover { text-decoration: underline; }
.hours { margin-top: 26px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.hours h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 10px; }
.hours h3 svg { color: var(--gold-ink); }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.hours .closed { color: #b42318; }
.lead { display: grid; gap: 16px; padding: 24px 18px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .lead { padding: 32px; } }
.lead h3 { font-size: 20px; }
.lead-grid { display: grid; gap: 16px; }
@media (min-width: 560px) { .lead-grid { grid-template-columns: 1fr 1fr; } }
.lead label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.lead label small { font-weight: 400; color: var(--muted); }
.lead input, .lead textarea, .lead select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px; min-height: 48px; border: 1px solid #d5cfbf; border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.lead textarea { min-height: 130px; resize: vertical; }
.lead input:focus, .lead textarea:focus, .lead select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(11 29 90 / .12); }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead .msg:empty { display: none; }
.lead .msg { font-weight: 600; font-size: 15px; }
.lead .msg.ok { color: #067647; } .lead .msg.bad { color: #b42318; }
.contact-map { margin-top: 32px; }
.map-wrap { position: relative; }
.map { display: block; width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: #e9e6dd; }
@media (min-width: 768px) { .map { height: 420px; } }
.map-btn { position: absolute; right: 12px; bottom: 12px; min-height: 48px; font-size: 15px; box-shadow: var(--shadow); }

/* ---------- ท้ายเว็บ ---------- */
.site-foot { background: var(--navy-950); color: rgb(255 255 255 / .75); padding-top: clamp(48px, 6vw, 72px); font-size: 15px; }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.6fr .8fr 1.2fr; gap: 48px; } }
.foot-brand img { width: 64px; border-radius: 10px; margin-bottom: 14px; }
.foot-brand b { display: block; color: #fff; font-size: 17px; line-height: 1.5; }
.foot-brand p { margin-top: 10px; max-width: 46ch; line-height: 1.75; }
.foot-h { color: var(--gold-300); font-size: 15px; font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; }
.foot-links, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 48px; min-width: 64px; text-decoration: none; }
.foot-links a:hover, .foot-contact a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.foot-contact svg { margin-top: 4px; color: var(--gold-300); }
.foot-contact a { text-decoration: none; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 48px; margin-block: -12px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); color: #fff; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.foot-bottom { margin-top: 44px; padding-block: 20px; border-top: 1px solid rgb(255 255 255 / .1); color: rgb(255 255 255 / .55); }

/* ปุ่มลอยมือถือ: ไลน์กับโทรเท่านั้น */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.float-contact a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.float-line { background: var(--line-green); color: #fff; } .float-line svg { fill: #fff; stroke: none; }
.float-call { background: var(--navy); color: #fff; }
body { padding-bottom: 68px; }
@media (min-width: 900px) { .float-contact { display: none; } body { padding-bottom: 0; } }

/* ดูรูปผลงานทั้งโครงการ */
.light { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgb(5 13 43 / .96); color: #fff;
  display: none; flex-direction: column; }
.light[open] { display: flex; }
.light::backdrop { background: rgb(5 13 43 / .96); }
.light-top { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px max(16px, env(safe-area-inset-left)); }
.light-title { font-size: 16px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.light-n { font-size: 14px; color: rgb(255 255 255 / .7); white-space: nowrap; }
.light-close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; font-size: 30px; line-height: 1.4; flex: none; }
.light-close:hover { background: rgb(255 255 255 / .22); }
.light-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.light-fig { margin: 0; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.light-fig img, .light-fig video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.light-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; z-index: 1;
  background: rgb(255 255 255 / .14); color: #fff; font-size: 34px; line-height: 1.4; transition: background .2s; }
.light-nav:hover { background: rgb(255 255 255 / .28); }
.light-nav.prev { left: 10px; } .light-nav.next { right: 10px; }
.light.single .light-nav { display: none; }
.light-desc { min-height: 1.6em; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); text-align: center; color: rgb(255 255 255 / .82); font-size: 15px; }
@media (max-width: 767px) { .light-nav { top: auto; bottom: -4px; transform: none; width: 48px; height: 48px; } .light-stage { padding-bottom: 56px; } }

/* บทความ */
.a-wrap { max-width: 780px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; } .crumbs a { color: var(--navy); }
.a-wrap h1 { font-size: clamp(28px, 4vw, 42px); }
.a-meta { color: var(--muted); font-size: 14px; margin-top: 10px; }
.a-cover { margin: 24px 0; } .a-cover img { border-radius: var(--radius); }
.a-lead { font-size: 1.1em; color: #2c3349; margin-bottom: 20px; }
.a-toc { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.a-body h2 { margin: 1.6em 0 .6em; font-size: 26px; } .a-body h3 { margin: 1.3em 0 .5em; }
.a-body p, .a-body ul, .a-body ol { margin: 0 0 1em; }
.a-fig { margin: 1.5em 0; } .a-fig img { border-radius: var(--radius-sm); } .a-fig figcaption { font-size: 14px; color: var(--muted); padding-top: 6px; }
.a-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); }
.a-embed, .a-cta { margin-top: 32px; }
.a-cta { padding: 24px; border-radius: var(--radius); background: var(--gold-100); display: grid; gap: 14px; justify-items: start; }

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