/* Master Together — น้ำเงินน่าเชื่อถือ · ครีมอบอุ่น · ทองหรูหรา (สีจากโลโก้) */
:root {
  --navy: #1a2f45;
  --navy-2: #223b57;
  --navy-deep: #12233a;
  --gold: #c9a159;          /* ใช้บนพื้นน้ำเงิน/เป็นสีพื้น — บนครีมใช้ --gold-ink แทน */
  --gold-soft: #f3e8d2;
  --gold-ink: #7a5a1e;
  --cream: #faf7f1;
  --cream-2: #f2ebde;
  --paper: #ffffff;
  --ink: #18222e;
  --muted: #566170;
  --line: #e4dccd;
  --danger: #b42318;
  --ok: #1f7a4d;
  --line-green: #06c755;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(18, 35, 58, .05), 0 4px 14px rgba(18, 35, 58, .06);
  --shadow-up: 0 2px 4px rgba(18, 35, 58, .06), 0 12px 28px rgba(18, 35, 58, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 600; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(28px, 3.2vw + 16px, 52px); letter-spacing: -.005em; }
h2 { font-size: clamp(24px, 1.6vw + 18px, 36px); }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.i { width: 22px; height: 22px; flex: none; }
.i-sm { width: 18px; height: 18px; }
.brand { width: 24px; height: 24px; flex: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d6b06c; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05b04b; }
.btn-line .brand rect { fill: #fff; }
.btn-line .brand path:first-of-type { fill: var(--line-green); }
.btn-line .brand path:last-of-type { fill: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- หัวเว็บ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-logo { width: 42px; height: 42px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-weight: 600; color: var(--navy); font-size: 17px; white-space: nowrap; }
.brand-en { font-size: 12px; color: var(--gold-ink); letter-spacing: .04em; white-space: nowrap; font-weight: 600; }
.menu-btn { display: none; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink);
}
.site-nav a:not(.btn):hover { background: var(--cream-2); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav { display: flex; align-items: center; gap: 12px; }
.nav-cta { min-height: 44px; padding: 8px 16px; }

@media (max-width: 1023px) {
  .js .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; background: transparent; color: var(--navy); border-radius: 10px; cursor: pointer;
  }
  .menu-btn .i { width: 26px; height: 26px; }
  .menu-btn .i:last-child, .menu-btn[aria-expanded="true"] .i:first-child { display: none; }
  .menu-btn[aria-expanded="true"] .i:last-child { display: block; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    box-shadow: 0 16px 24px rgba(18, 35, 58, .08);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .nav-cta { margin-top: 8px; min-height: 48px; }
  html:not(.js) .site-nav { display: none; }
}

/* ---------- แบนเนอร์สไลด์ ---------- */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-track { display: grid; }
.slide {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; position: relative;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.slide-wrap { position: relative; z-index: 1; }
.slide-body { display: grid; gap: 8px; justify-items: start; padding: 18px 0 4px; }
.slide-eyebrow { color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.slide-title { font-size: clamp(28px, 2.6vw + 18px, 40px); font-weight: 600; line-height: 1.35; text-wrap: balance; }
.slide-accent { display: block; color: var(--gold); }
.slide-sub { color: #e7dcc6; font-size: 16px; line-height: 1.7; max-width: 46ch; }
.slide .btn { margin-top: 8px; }

/* สไลด์ที่มีรูป — มือถือ/แท็บเล็ต: ครอปเหลือจุดโฟกัส (คนครบ ไม่ตัดหัว) แล้ววางข้อความใต้รูป */
.slide-media { aspect-ratio: 3 / 2; overflow: hidden; }
@media (max-width: 639px) { .slide-media { max-height: 230px; width: 100%; } }
.slide-img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.focus-center .slide-img { object-position: 50% 50%; }
.focus-left .slide-img { object-position: 0% 50%; }
@media (min-width: 640px) { .slide-media { aspect-ratio: 5 / 2; } }

/* เดสก์ท็อป: รูปเต็มจอ ข้อความวางบนพื้นที่ว่างฝั่งซ้ายของรูป */
@media (min-width: 1024px) {
  .slide { min-height: clamp(440px, 40vw, 640px); }
  .slide-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .slide-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 35, 58, .55) 0%, rgba(18, 35, 58, .25) 35%, rgba(18, 35, 58, 0) 50%); }
  .slide.has-img .slide-body { max-width: min(620px, 52%); padding: 48px 0; gap: 10px; }
  .slide-title { font-size: clamp(34px, 3.5vw, 56px); }
  .slide-sub { font-size: 19px; }
}

/* สไลด์ไม่มีรูป: ข้อความกลางจอ */
.slide:not(.has-img) .slide-body { justify-items: center; text-align: center; padding: 40px 0; margin: 0 auto; }
.slide:not(.has-img) .slide-title::before {
  content: ''; display: block; width: 56px; height: 3px; background: var(--gold); margin: 0 auto 18px; border-radius: 2px;
}
.slide:not(.has-img) .slide-title { font-size: clamp(28px, 3vw + 16px, 52px); max-width: 20ch; }
.slide:not(.has-img) .slide-sub { max-width: 40ch; }

.hero-controls { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 0 12px; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.hero-btn:hover { border-color: var(--gold); color: var(--gold); }
.hero-pause .i:last-child, .hero.is-paused .hero-pause .i:first-child { display: none; }
.hero.is-paused .hero-pause .i:last-child { display: block; }
.hero-dots { display: flex; gap: 2px; margin: 0 6px; }
.hero-dot { width: 32px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dot::after { content: ''; position: absolute; left: 6px; right: 6px; top: 20px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); transition: background-color .3s; }
.hero-dot[aria-current="true"]::after { background: var(--gold); }

/* ---------- ส่วนทั่วไป ---------- */
.intro { padding: 48px 0 8px; }
.intro h1 { font-size: clamp(28px, 2.4vw + 18px, 46px); }
.lead { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 66ch; }
.section { padding: 56px 0; }
.section-tint { background: var(--paper); }
@media (min-width: 1024px) { .section { padding: 88px 0; } .intro { padding: 72px 0 8px; } }
.section-title { margin-bottom: 24px; }
.section-title::after { content: ''; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--gold); margin-top: 12px; }
.section-sub { color: var(--muted); margin: -8px 0 24px; max-width: 66ch; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .section-title { margin-bottom: 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); text-decoration: none; padding: 10px 0; }
.link-more:hover { color: var(--gold-ink); }

.grid { display: grid; gap: 10px; }
.grid-feat, .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 480px) { .grid-feat { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid { gap: 12px; } }
@media (min-width: 768px) {
  .grid { gap: 20px; }
  .grid-feat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.feat { background: var(--paper); border-radius: var(--radius-lg); padding: 18px 14px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .feat { padding: 26px 22px; } }
.feat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--navy); margin-bottom: 14px;
}
.feat-icon .i { width: 26px; height: 26px; }
.feat-title { font-size: 17px; margin-bottom: 6px; }
.feat-text { font-size: 15px; color: var(--muted); line-height: 1.65; }

.card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.section-tint .card { background: var(--cream); box-shadow: none; border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
  .section-tint .card:hover { box-shadow: var(--shadow-up); }
}
.card-link { display: flex; flex-direction: column; height: 100%; padding: 18px 14px; text-decoration: none; }
@media (min-width: 768px) { .card-link { padding: 26px 22px; } }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: var(--gold); margin-bottom: 16px;
}
.card-icon .i { width: 28px; height: 28px; }
.card-img { width: calc(100% + 28px); max-width: none; margin: -18px -14px 16px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
@media (min-width: 768px) { .card-img { width: calc(100% + 44px); margin: -26px -22px 18px; } }
.card-title { font-size: 17px; margin-bottom: 8px; color: var(--navy); }
@media (min-width: 360px) { .card-title .nw { white-space: nowrap; } }
@media (max-width: 389px) { .card-title { font-size: 16px; } }
.card-text { font-size: 15px; color: var(--muted); line-height: 1.65; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--gold-ink); }

.steps { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .step { flex-direction: column; } }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-ink); font-weight: 600; font-size: 18px;
}
.step-title { font-size: 17px; margin-bottom: 4px; }
.step-text { font-size: 15px; color: var(--muted); line-height: 1.65; }

.slogan { background: var(--navy); color: #fff; padding: 64px 0; text-align: center; }
.slogan-text { font-size: clamp(22px, 1.6vw + 16px, 34px); font-weight: 600; line-height: 1.55; text-wrap: balance; }
.slogan-text::before { content: '\201C'; display: block; font-size: 64px; line-height: .6; color: var(--gold); margin-bottom: 12px; font-family: Georgia, serif; }
.slogan-by { color: var(--gold); margin-top: 18px; font-size: 16px; font-weight: 600; }

.faq-list { display: grid; gap: 10px; }
.faq { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 17px; font-weight: 600; line-height: 1.5; }
.faq-chev { color: var(--gold-ink); transition: transform .2s var(--ease); }
.faq[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; color: var(--muted); }
.faq-a p + p { margin-top: 10px; }

.cta-band { background: var(--navy-2); color: #fff; padding: 56px 0; }
.cta-in { display: grid; gap: 24px; }
@media (min-width: 1024px) { .cta-in { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }
.cta-title { color: #fff; }
.cta-text { color: #e7dcc6; margin-top: 10px; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) { .cta-actions .btn { width: 100%; } }

/* ---------- หน้าย่อย ---------- */
.page-head { background: var(--cream-2); padding: 20px 0 40px; }
@media (min-width: 1024px) { .page-head { padding: 28px 0 64px; } }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a { text-decoration: none; padding: 6px 0; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy);
}
.chip:hover { border-color: var(--gold); }
.detail-head { display: flex; gap: 16px; align-items: flex-start; }
.detail-head .chip { margin-bottom: 8px; min-height: 32px; font-size: 14px; }
.detail-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 60px; height: 60px; border-radius: 14px; background: var(--navy); color: var(--gold);
}
.detail-icon .i { width: 32px; height: 32px; }
.detail-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 16px; line-height: 1.8; }
.prose h2 { font-size: clamp(22px, 1vw + 18px, 28px); margin: 32px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.detail-img { border-radius: var(--radius-lg); margin-bottom: 24px; width: 100%; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .i { color: var(--ok); margin-top: 3px; }
.side-card { background: var(--paper); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; }
@media (min-width: 1024px) { .side-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.side-title { font-weight: 600; font-size: 19px; color: var(--navy); line-height: 1.45; }
.side-text { color: var(--muted); font-size: 15px; margin-bottom: 6px; }

.mv { display: grid; gap: 16px; }
@media (min-width: 768px) { .mv { grid-template-columns: 1fr 1fr; gap: 24px; } }
.mv-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.mv-title { font-size: 22px; margin-bottom: 10px; }
.mv-card p { color: var(--muted); }

.video { width: 100%; border-radius: var(--radius-lg); background: #000; }
.masonry { columns: 2; column-gap: 10px; }
.masonry li { break-inside: avoid; margin-bottom: 10px; }
.masonry img { width: 100%; border-radius: 8px; }
@media (min-width: 480px) { .masonry { columns: 3; column-gap: 12px; } .masonry li { margin-bottom: 12px; } }
@media (min-width: 1024px) { .masonry { columns: 4; column-gap: 16px; } .masonry li { margin-bottom: 16px; } }

/* ---------- ฟอร์มติดต่อ ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.form-card, .info-card { background: var(--paper); border-radius: var(--radius-lg); padding: 22px 16px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card, .info-card { padding: 32px; } }
.form-title { font-size: 22px; margin-bottom: 20px; }
.form-grid { display: grid; gap: 4px 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; font-size: 16px;
  border: 1.5px solid #cfc5b2; border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a2f45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 47, 69, .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-err { min-height: 22px; font-size: 14px; color: var(--danger); margin: 4px 0 6px; line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-weight: 600; min-height: 0; margin-bottom: 8px; }
.form-error:empty { display: none; }
.btn-submit { width: 100%; min-height: 52px; font-size: 17px; }
@media (min-width: 640px) { .btn-submit { width: auto; min-width: 220px; } }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.form-done { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #e9f5ee; color: #14532d; font-weight: 600; }
.form-done[hidden] { display: none; }
.form-done .i { color: var(--ok); width: 28px; height: 28px; }
.info-list { display: grid; gap: 18px; margin-bottom: 24px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--navy); flex: none; }
.info-brand { background: transparent; }
.info-brand .brand { width: 36px; height: 36px; }
.info-label { font-size: 14px; color: var(--muted); }
.info-list a { font-weight: 600; color: var(--navy); text-decoration: none; word-break: break-word; }
.info-list a:hover { text-decoration: underline; }

.notfound { padding: 80px 0; }

/* ---------- ท้ายเว็บ ---------- */
.site-footer { background: var(--navy-deep); color: #d9d3c6; padding: 56px 0 0; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1.2fr .8fr; gap: 40px; } }
.footer-logo { width: 64px; height: 64px; border-radius: 12px; margin-bottom: 14px; }
.footer-name { color: #fff; font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.footer-desc { line-height: 1.7; max-width: 44ch; }
.footer-h { color: var(--gold); font-size: 16px; margin-bottom: 14px; }
.footer-list { display: grid; gap: 12px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .i { color: var(--gold); margin-top: 2px; width: 20px; height: 20px; }
.footer-list a, .footer-links a { text-decoration: none; }
.footer-list a:hover, .footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 4px 0; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { display: inline-flex; padding: 4px; }
.footer-social .brand { width: 36px; height: 36px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; padding-bottom: 24px; font-size: 14px; color: #a9b1bd; }

/* ---------- ปุ่มลอยมือถือ: ไลน์ + โทร ---------- */
.float-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .float-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  }
  .float-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px;
    border-radius: var(--radius); font-weight: 600; font-size: 16px; text-decoration: none;
  }
  .float-line { background: var(--line-green); color: #fff; }
  .float-line .brand rect { fill: #fff; }
  .float-line .brand path:first-of-type { fill: var(--line-green); }
  .float-line .brand path:last-of-type { fill: #fff; }
  .float-call { background: var(--navy); color: #fff; }
}

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

/* พื้นที่กดอย่างน้อย 44px สำหรับลิงก์ตัวหนังสือ */
.brand-link { min-height: 48px; }
.brand-en { font-size: 14px; letter-spacing: .02em; }
.crumbs a, .footer-links a, .footer-list a, .info-list a, .link-more, .footer-social a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.crumbs ol { margin-bottom: 12px; }
.footer-links { gap: 0; }
.footer-list li { align-items: center; }
.footer-list .i { margin-top: 0; }
.chip { min-height: 44px; }
.detail-head .chip { min-height: 44px; }
@media (min-width: 1024px) { .site-nav a:not(.btn) { min-height: 44px; display: flex; align-items: center; } }
/* ภาษาไทย: line-height อย่างน้อย 1.4 กันสระบน-ล่างชนกัน */
h1, h2, h3, .slide-title, .btn, .brand-text, .side-title { line-height: 1.4; }
.hero-dot { width: 44px; }
.hero-dot::after { left: 10px; right: 10px; }

/* ---------- ลูกค้าของเรา: โลโก้แสดงเต็ม ไม่ครอป ---------- */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 480px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 768px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.logo-tile { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; height: 120px; }
@media (min-width: 768px) { .logo-tile { height: 148px; padding: 20px; } }
.logo-img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- ผลงาน ---------- */
.work + .work { margin-top: 56px; }
.work-head { max-width: 760px; margin-bottom: 24px; }
.work-head .chip { min-height: 32px; font-size: 14px; margin-bottom: 10px; }
.work-title { font-size: clamp(20px, 1vw + 16px, 26px); margin-bottom: 8px; }
.work-client { display: flex; align-items: flex-start; gap: 8px; color: var(--gold-ink); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.work-client .i { margin-top: 3px; }
.work-text { color: var(--muted); }
.work-text p + p { margin-top: 10px; }
.zoom { display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.zoom img { transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .zoom:hover img { transform: scale(1.02); } }

/* กดดูรูปใหญ่ */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 18, 30, .88); }
.lightbox-in { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 12px 24px; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox-close { position: fixed; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }
