/* WING FUNG — ดีไซน์หลักของเว็บ
   โทน: น้ำเงินเข้มจากโลโก้ เรียบ สะอาดตา ทางการ
   สีทั้งหมดดึงมาจากโลโก้จริง: น้ำเงิน #180078 เขียว #00600F */

:root {
  --brand:      #180078;
  --brand-600:  #2A1E9E;
  --brand-900:  #0B0335;
  --brand-soft: #F1F1FA;
  --green:      #00600F;

  --ink:    #16181F;
  --ink-2:  #363B49;
  --muted:  #5B6172;
  --line:   #E3E5EE;
  --bg:     #FFFFFF;
  --bg-soft:#F5F6FA;

  --wrap: 1180px;
  --pad: 16px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(11, 3, 53, .06), 0 2px 8px rgba(11, 3, 53, .05);
  --shadow-md: 0 4px 10px rgba(11, 3, 53, .08), 0 12px 28px rgba(11, 3, 53, .09);

  --t: 200ms cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 768px) { :root { --pad: 24px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 6.2vw, 52px); }
h2 { font-size: clamp(25px, 4.2vw, 38px); }
h3 { font-size: clamp(19px, 2.4vw, 23px); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: 60px; }
@media (min-width: 768px) { .section { padding-block: 92px; } }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand-900); color: #fff; }
.section--brand h2 { color: #fff; }

.skip {
  position: absolute; left: 0; top: 0; z-index: 200;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  background: #fff; color: var(--brand); padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { width: auto; height: auto; clip: auto; overflow: visible; }

/* ---------------- หัวข้อของแต่ละช่วง ---------------- */

.head { max-width: 680px; margin-bottom: 34px; }
.head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  color: var(--green); text-transform: none; margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--green); }
.section--brand .eyebrow { color: #9FE8AE; }
.section--brand .eyebrow::before { background: #9FE8AE; }
.section--brand .head p { color: #C9CCE8; }

/* ---------------- ปุ่ม ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn--line { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--line:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--wide { width: 100%; }

.btn .ic { flex: none; }

/* ---------------- หัวเว็บ ---------------- */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand {
  display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink);
  min-width: 0; min-height: 46px; flex: 0 1 auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; flex: none; }
@media (min-width: 768px) { .brand img { width: 56px; height: 56px; } }
.brand > span { min-width: 0; }
.brand b { font-size: 18px; letter-spacing: .05em; line-height: 1.35; display: block; white-space: nowrap; }
@media (min-width: 768px) { .brand b { font-size: 21px; } }
/* บนมือถือซ่อนประโยคใต้ชื่อไว้ก่อน ไม่งั้นหัวเว็บจะล้นจอ */
.brand small { display: none; }
@media (min-width: 768px) {
  .brand small {
    display: block; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.35;
    letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
}

.nav { margin-left: auto; display: none; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__item > a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px; letter-spacing: .02em;
  padding: 9px 11px; border-radius: 8px; transition: background var(--t), color var(--t);
}
.nav__item > a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.nav__item > a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav__chev { transition: transform var(--t); }

/* เมนูย่อยบริษัทในเครือ — เปิดทั้งตอนชี้และตอนกดด้วยคีย์บอร์ด */
.subnav {
  position: absolute; top: 100%; left: 0; z-index: 20;
  min-width: 330px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.nav__item--has-sub:hover .nav__chev,
.nav__item--has-sub:focus-within .nav__chev { transform: rotate(180deg); }
.subnav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); line-height: 1.5;
}
.subnav a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

.drawer__sub { list-style: none; margin: 0 0 4px; padding: 0 0 6px 14px; border-bottom: 1px solid var(--line); }
.drawer__sub a { font-size: 15px; font-weight: 400; color: var(--muted); min-height: 44px; border-bottom: 0; }
.head-cta { display: none; margin-left: 8px; }

@media (min-width: 1120px) {
  .nav { display: flex; }
  .head-cta { display: inline-flex; }
  .burger { display: none !important; }
}

.burger {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
  transition: transform var(--t), top var(--t);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.drawer {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: 10px var(--pad) 18px;
}
.drawer.is-open { display: block; }
.drawer a {
  display: flex; align-items: center; min-height: 50px; padding: 13px 4px;
  font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line);
}
.drawer a:last-of-type { border-bottom: 0; }
.drawer .btn { margin-top: 12px; }

/* ---------------- แบนเนอร์ ---------------- */

.hero {
  position: relative; overflow: hidden; background: var(--brand-900);
  display: flex; flex-direction: column; min-height: 70vh;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 60% 50%;               /* คนงานอยู่ค่อนไปทางขวา ห้ามให้โดนตัด */
  will-change: transform;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,3,53,.92) 0%, rgba(11,3,53,.78) 42%, rgba(11,3,53,.35) 100%);
}
.hero { max-height: 70vh; }
.hero__in {
  position: relative; z-index: 2;
  min-height: 0; flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 34px; color: #fff;
}
@media (min-width: 768px) {
  .hero { max-height: none; min-height: 0; }
  .hero__in { min-height: 560px; padding-block: 96px; }
}
.hero__in h1 { color: #fff; max-width: 15ch; margin-bottom: .3em; }
.hero__text { color: #D5D8F0; font-size: clamp(16px, 2vw, 19px); max-width: 52ch; margin-bottom: 20px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__btns .btn { flex: 1 1 auto; padding-inline: 16px; }
@media (min-width: 560px) { .hero__btns .btn { flex: 0 0 auto; padding-inline: 24px; } }

.hero__facts {
  position: relative; z-index: 2; flex: none;
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .hero__facts { grid-template-columns: repeat(4, 1fr); } }
.hero__facts div { padding: 11px 4px; color: #fff; }
.hero__facts b { display: block; font-size: 15px; line-height: 1.45; }
.hero__facts span { font-size: 14px; color: #B9BDE4; line-height: 1.5; }

/* ---------------- หน้าย่อย: หัวหน้า ---------------- */

.page-head { background: var(--brand-900); color: #fff; padding-block: 44px 46px; }
@media (min-width: 768px) { .page-head { padding-block: 64px 68px; } }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #C9CCE8; max-width: 62ch; margin: 0; }
.crumb { font-size: 14px; color: #9FA4D4; margin-bottom: 12px; }
.crumb a {
  display: inline-flex; align-items: center; min-height: 44px;
  min-width: 44px; justify-content: center; padding-inline: 8px; margin-inline: -8px; color: #C9CCE8;
}

/* ---------------- ตาราง/การ์ด ---------------- */

.grid { display: grid; gap: 10px; }
@media (min-width: 768px) { .grid { gap: 18px; } }

.grid--features { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px)  { .grid--features { grid-template-columns: repeat(4, 1fr); } }

.grid--cards { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px)  { .grid--cards { grid-template-columns: repeat(3, 1fr); } }

.grid--gallery { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px)  { .grid--gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid--gallery { grid-template-columns: repeat(4, 1fr); } }

.feature { padding: 22px 18px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.section--soft .feature { box-shadow: none; border: 1px solid var(--line); }
.feature .ic { color: var(--brand); margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.68; margin: 0; }

/* การ์ดบริการ — รูปไม่มีกรอบ ไม่มีเงารอบรูป */
.card {
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.card__img { aspect-ratio: 3 / 2; background: var(--bg-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card__body .ic { color: var(--brand); margin-bottom: 8px; }
.card h3 { font-size: 18px; margin-bottom: 4px; color: var(--ink); }
.card__en { font-size: 14px; color: var(--muted); letter-spacing: .03em; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.68; margin: 0 0 14px; }
.card__more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--brand);
}
.card:hover .card__more .ic { transform: translateX(3px); }
.card__more .ic { transition: transform var(--t); }

/* การ์ดสินค้า — รูปลอยบนพื้นหลัง ไม่มีกรอบ ไม่มีเงารอบรูป */
.shot { display: block; color: inherit; }
/* ต้องมาหลัง .shot เสมอ ไม่งั้น display:block จะไปทับการซ่อนตอนกรองหมวด */
.shot[hidden] { display: none; }
.shot:hover { text-decoration: none; }
.shot img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 8px; background: var(--bg-soft);
  transition: transform var(--t), opacity var(--t);
}
.shot:hover img { transform: translateY(-3px); opacity: .94; }
.shot__title {
  display: block; font-size: 14.5px; font-weight: 600; color: var(--ink);
  padding: 8px 2px 0; line-height: 1.5;
}
.shot__meta { display: block; font-size: 14px; color: var(--muted); padding: 1px 2px 0; line-height: 1.5; }
.shot:hover .shot__title { color: var(--brand); }
@media (min-width: 768px) { .shot__title { font-size: 15.5px; } }

/* บริษัทในเครือ */
.grid--companies { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 560px)  { .grid--companies { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--companies { grid-template-columns: repeat(3, 1fr); } }
.company {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 18px; color: inherit;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.company:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); text-decoration: none; }
.company .ic { color: var(--brand); margin-bottom: 10px; }
.company b { display: block; font-size: 15.5px; line-height: 1.5; letter-spacing: .02em; }
.company span { display: block; font-size: 14px; color: var(--muted); margin-top: 5px; }

.company-list { display: grid; gap: 14px; }
.company-row {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 20px; scroll-margin-top: 100px;
}
.company-row__mark { flex: none; color: var(--brand); }
.company-row h2 { font-size: clamp(17px, 2.4vw, 21px); margin-bottom: 4px; letter-spacing: .02em; }
.company-row__th { color: var(--muted); font-size: 15.5px; margin-bottom: 10px; }
.company-row__meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 12px; }
.company-row__meta div { display: flex; gap: 7px; align-items: baseline; font-size: 15px; }
.company-row__meta dt { font-weight: 600; color: var(--muted); margin: 0; }
.company-row__meta dd { margin: 0; }
.company-row p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* ใบรับรองมาตรฐาน */
.grid--certs { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px)  { .grid--certs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid--certs { grid-template-columns: repeat(4, 1fr); } }
.cert img {
  width: 100%; aspect-ratio: 900 / 1277; object-fit: contain;
  background: #fff; border-radius: 8px;
  transition: transform var(--t);
}
.cert a:hover img { transform: translateY(-3px); }
.cert figcaption { padding: 9px 2px 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.cert figcaption b { display: block; color: var(--brand); font-size: 14.5px; }
.cert figcaption em { display: block; font-style: normal; color: var(--ink-2); font-weight: 600; }
.cert figcaption span { display: block; margin-top: 2px; }

/* ใบรับรองแยกเป็นกลุ่มตามบริษัท */
.cert-group + .cert-group { margin-top: 34px; }
.cert-group__name {
  font-size: 16px; letter-spacing: .02em; color: var(--ink);
  margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--line);
}
@media (min-width: 768px) { .cert-group__name { font-size: 18px; } }
.cert-group + .cert-group { padding-top: 4px; }

/* ระยะขอบอยู่ที่ figure ไม่ใช่ที่ img เพื่อไม่ให้สัดส่วนรูปเพี้ยน */
.figure--wide { background: #fff; border-radius: var(--radius-lg); padding: 12px; }
@media (min-width: 768px) { .figure--wide { padding: 22px; } }
.figure--wide img { width: 100%; }
/* จำกัดความกว้างไม่ให้เกินความละเอียดจริงของไฟล์ จะได้ไม่เบลอบนจอ retina */
.figure--timeline { max-width: 1085px; margin-inline: auto; }
.figure--map { max-width: 1220px; margin-inline: auto; }

/* ชิปหมวด */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* อุตสาหกรรม */
.inds { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .inds { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.ind {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 18px 16px;
}
.ind b { display: block; font-size: 16px; margin-bottom: 4px; }
.ind span { font-size: 14px; color: #B9BDE4; line-height: 1.6; }

/* ---------------- หน้ารายละเอียดบริการ ---------------- */

.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; } }
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(21px, 3vw, 27px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.rt-list { margin: 0 0 1.1em; padding: 0; list-style: none; }
.rt-list li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.rt-list li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--brand);
}

.aside { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 22px; }
.aside h3 { font-size: 18px; }
.aside dl { margin: 0; font-size: 15.5px; }
.aside dt { font-weight: 600; margin-top: 12px; }
.aside dd { margin: 0; color: var(--muted); }
.aside dd a { display: inline-flex; align-items: center; min-height: 44px; }

.figure img { width: 100%; border-radius: var(--radius-lg); }
.figure figcaption { font-size: 14px; color: var(--muted); padding-top: 9px; }

/* ---------------- คำถามที่พบบ่อย ---------------- */

.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 36px 17px 0; position: relative;
  font-weight: 600; font-size: 17px; line-height: 1.55;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 25px;
  width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform var(--t);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 29px; }
.faq .faq__a { padding: 0 0 18px; color: var(--ink-2); }

/* ---------------- ฟอร์ม ---------------- */

.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 6px; }
.field .req { color: #B3261E; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px;  /* ต่ำกว่า 16px แล้ว iOS จะซูมเอง */
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24,0,120,.12);
}
.field .hint { font-size: 14px; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 14px; color: #B3261E; margin-top: 6px; font-weight: 600; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #B3261E; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp input { font-size: 16px; }

.alert { padding: 15px 17px; border-radius: var(--radius); font-size: 16px; margin-bottom: 20px; }
.alert--ok { background: #E8F5EC; color: #14532D; border: 1px solid #B7DFC4; }
.alert--bad { background: #FDECEA; color: #8C1D18; border: 1px solid #F2C2BC; }

/* ---------------- กล่องติดต่อ ---------------- */

.contact-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

.info-list { display: grid; gap: 4px; margin: 0 0 24px; }
.info-row { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info-row .ic { color: var(--brand); flex: none; margin-top: 3px; }
.info-row b { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.figure figcaption, .aside dl { font-size: 15px; }
.info-row span, .info-row a { font-size: 16.5px; color: var(--ink); }
.info-row a { display: inline-flex; align-items: center; min-height: 44px; }

.map-box { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.map-box iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------------- ท้ายเว็บ ---------------- */

.site-foot { background: var(--brand-900); color: #C9CCE8; padding-block: 44px 24px; font-size: 15px; }
.site-foot a { color: #E3E5F6; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.site-foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; letter-spacing: .03em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 2px; display: flex; align-items: center; min-height: 44px; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.foot-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot-brand img { width: 60px; height: 60px; background: #fff; border-radius: 10px; padding: 5px; }
.foot-brand b { color: #fff; font-size: 19px; letter-spacing: .05em; }
.foot-bar {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px;
  font-size: 14px; color: #9095C4;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
}

/* ---------------- แถบติดต่อลอยบนมือถือ ---------------- */

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 58px; font-size: 16px; font-weight: 600; color: var(--brand);
}
.dock a:hover { text-decoration: none; }
.dock a + a { border-left: 1px solid var(--line); }
.dock a.is-line { background: #06C755; color: #fff; }
.dock a.is-call { background: var(--brand); color: #fff; }
@media (min-width: 1000px) { .dock { display: none; } }
body.has-dock { padding-bottom: 58px; }
@media (min-width: 1000px) { body.has-dock { padding-bottom: 0; } }

/* ---------------- อนิเมชัน ---------------- */

.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none !important; }
}

/* ---------------- อื่นๆ ---------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(11,3,53,.94);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 82vh; width: auto; border-radius: 8px; }
.lightbox figcaption { color: #E3E5F6; text-align: center; font-size: 15px; padding-top: 14px; max-width: 70ch; }
.lightbox__close {
  position: absolute; top: 14px; right: 14px; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent;
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
