/* Prime Study Thailand — หน้าเว็บฝั่งลูกค้า (บิล 691002-04)
   สีแบรนด์: Deep Navy #062F5F / #0A376D + Premium Gold #D5A437 + White
   ฟอนต์: Plus Jakarta Sans (อังกฤษ) + IBM Plex Sans Thai (ไทย) — เว็บเป็นภาษาอังกฤษ แต่ถ้าลูกค้าพิมพ์ไทยในหลังบ้านจะไม่เพี้ยน */

:root {
  --navy-950: #031B37;
  --navy-900: #041F40;
  --navy: #062F5F;
  --navy-600: #0A376D;
  --navy-400: #3A5F8F;
  --navy-100: #DCE6F2;
  --navy-50: #EEF3F9;
  --gold: #D5A437;
  --gold-300: #E8C670;
  --gold-text: #9C7215;   /* ทองที่อ่านออกบนพื้นขาว (คอนทราสต์ผ่าน) */
  --ink: #0B1B33;
  --muted: #4A5A70;
  --line: #DCE3EC;
  --paper: #FFFFFF;
  --tint: #F5F7FA;
  --wa: #25D366;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Plus Jakarta Sans', 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 2px rgba(6, 47, 95, .06), 0 8px 24px -12px rgba(6, 47, 95, .18);
  --shadow-up: 0 2px 4px rgba(6, 47, 95, .06), 0 18px 36px -16px rgba(6, 47, 95, .28);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy-600); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); font-weight: 700; text-wrap: balance; }
h2 em, h1 em, .hero-title em, .cta-band h2 em { font-style: normal; color: var(--gold-text); }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; }
svg { width: 1.25em; height: 1.25em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-ico svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .btn-ico svg { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-300); box-shadow: 0 10px 24px -12px rgba(213, 164, 55, .8); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy-100); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.btn .ico-solid { width: 20px; height: 20px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; min-height: 44px; padding: 0;
  font-weight: 600; font-size: 15px; color: var(--navy-600); text-decoration: none;
}
.link-arrow .btn-ico svg { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--gold-text); }
.link-arrow:hover .btn-ico svg { transform: translateX(3px); }

/* ---------- หัวเว็บ ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; background: #fff;
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(6, 47, 95, .35); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.logo { display: flex; align-items: center; flex: none; text-decoration: none; color: var(--navy); font-weight: 700; }
.logo img { height: 58px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 10px 12px; font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: none; border-radius: 8px; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--navy-600); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  :root { --nav-h: 66px; }
  .logo img { height: 50px; }
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px;
    background: var(--navy-50); color: var(--navy); cursor: pointer;
  }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-toggle .i-close, .nav.open .nav-toggle .i-open { display: none; }
  .nav.open .nav-toggle .i-close { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0; margin: 0;
    padding: 8px 20px 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(6, 47, 95, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--gold-text); }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .logo img { height: 46px; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.hero-track { display: grid; }
.hero-slide {
  grid-area: 1 / 1; position: relative; display: flex; opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
.hero-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 62% 40%; }
.hero-slide.is-on .hero-media img { animation: heroZoom 9s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3, 27, 55, .88) 0%, rgba(4, 31, 64, .66) 34%, rgba(4, 31, 64, .12) 62%, rgba(4, 31, 64, 0) 78%),
              linear-gradient(0deg, rgba(3, 27, 55, .55) 0%, rgba(3, 27, 55, 0) 34%);
}
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(540px, 76vh, 660px); padding-top: 48px; padding-bottom: 96px; }
.hero-body { max-width: 620px; }
.hero-title { color: #fff; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.08; letter-spacing: -.03em; }
.hero-title em { color: var(--gold-300); }
.hero-sub { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn .ico-solid { color: var(--wa); }
.hero-nav { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; align-items: center; gap: 14px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .38);
  cursor: pointer; transition: width .3s var(--ease), background .3s; position: relative;
}
.hero-dots button::before { content: ''; position: absolute; inset: -12px -2px; }
.hero-dots button[aria-current="true"] { width: 48px; background: var(--gold); }
.hero-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(3, 27, 55, .25); color: #fff; transition: background .2s, border-color .2s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.hero-arrow svg { width: 20px; height: 20px; }

/* แบนเนอร์หน้ารอง */
.hero-compact .hero-inner { min-height: clamp(320px, 44vh, 430px); padding-top: 40px; padding-bottom: 48px; }
.hero-compact .hero-shade { background: linear-gradient(90deg, rgba(3, 27, 55, .9) 0%, rgba(4, 31, 64, .72) 45%, rgba(4, 31, 64, .3) 100%); }
.hero-compact .hero-title { font-size: clamp(34px, 4.4vw, 56px); }
.hero-compact .hero-media img { object-position: center 45%; }

/* แบนเนอร์แบบครึ่งจอ */
.hero-split-wrap, .hero-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 88px; }
.hero-split .hero-pic img { width: 100%; border-radius: var(--radius); }

@media (max-width: 719px) {
  .hero-full .hero-slide { flex-direction: column; }
  .hero-full .hero-media { position: relative; height: min(118vw, 62vh); }
  .hero-full .hero-media picture, .hero-full .hero-media img { position: absolute; }
  .hero-full .hero-media img { object-position: center 30%; }
  .hero-full .hero-shade { inset: auto 0 0; top: 0; background: linear-gradient(0deg, rgba(4, 31, 64, 1) 0%, rgba(4, 31, 64, .55) 22%, rgba(4, 31, 64, 0) 46%); height: min(118vw, 62vh); }
  .hero-full .hero-inner { min-height: 0; margin-top: -88px; padding-top: 0; padding-bottom: 84px; align-items: flex-start; }
  .hero-title { font-size: 34px; }
  .hero-sub { margin-top: 14px; font-size: 16.5px; }
  .hero-actions { flex-direction: column; margin-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .hero-nav { bottom: 22px; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-compact .hero-inner { min-height: 300px; align-items: flex-end; padding-bottom: 36px; }
  .hero-compact .hero-shade { background: linear-gradient(0deg, rgba(3, 27, 55, .92) 0%, rgba(4, 31, 64, .55) 60%, rgba(4, 31, 64, .35) 100%); }
  .hero-compact .hero-title { font-size: 32px; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
}

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.sec-head h2, .about-text h2, .contact-info h2, .prose h2 { font-size: clamp(30px, 3.6vw, 46px); }
.sec-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.sec-head h2::after {
  content: ''; display: block; width: 48px; height: 3px; margin: 20px auto 0; border-radius: 3px; background: var(--gold);
}

/* เรียงสีพื้นหลังสลับกันอัตโนมัติ จะได้ไม่ต้องให้ลูกค้าเลือก */
.sec-features { background: var(--paper); }
.sec-about { background: var(--tint); }
.sec-cards, .sec-list { background: var(--paper); }
main > .sec-cards + .sec-cards, main > .sec-list + .sec-cards, main > .sec-cards + .sec-list { padding-top: 0; }
.sec-gallery { background: var(--paper); }
.sec-people { background: var(--tint); }
.sec-faq { background: var(--navy-50); }
.sec-text { background: var(--paper); }
.sec-contact { background: var(--tint); }
main > .sec-about + .sec-people, main > .sec-people + .sec-about { padding-top: 0; }
main > .sec-features + .sec-features { padding-top: 0; }

/* ---------- จุดเด่น ---------- */
.features-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .features-grid { grid-template-columns: repeat(min(3, var(--cols)), 1fr); gap: 18px; } }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(min(4, var(--cols)), 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(var(--cols), 1fr); gap: 24px; } }
.feature {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; 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-up); border-color: transparent; }
.feature-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--navy-50); color: var(--navy-600);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature:hover .feature-icon { background: var(--navy); color: var(--gold-300); }
.feature-icon { transition: background .2s, color .2s; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 479px) {
  .feature { padding: 20px 16px; gap: 10px; }
  .feature-icon { width: 46px; height: 46px; border-radius: 13px; }
  .feature-icon svg { width: 24px; height: 24px; }
  .feature h3 { font-size: 16.5px; }
  .feature p { font-size: 14.5px; }
}

/* ---------- เกี่ยวกับ ---------- */
.about { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about.pic-right .about-pic { order: 2; }
  .about.no-pic { grid-template-columns: minmax(0, 760px); justify-content: center; }
}
.about-pic img { width: 100%; border-radius: var(--radius); }
.about-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.about-text h2::before { content: ''; display: block; width: 48px; height: 3px; margin-bottom: 20px; border-radius: 3px; background: var(--gold); }
.prose p { color: var(--muted); font-size: 17.5px; }
.prose p + p { margin-top: 16px; }

/* ---------- การ์ดรายการ ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: transparent; }
.card[hidden], .step[hidden], [data-group][hidden] { display: none; }
.card-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 20px; }
.card-text { position: relative; padding-top: 24px; }
.card-text::before { content: ''; position: absolute; left: 24px; top: 0; width: 40px; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 24px; border-radius: 12px; background: var(--navy-50); color: var(--navy-600); }
.card-icon svg { width: 24px; height: 24px; }
.card h3, .card h4, .card h2 { font-size: 20px; }
.card h2 a { color: inherit; text-decoration: none; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.tag {
  align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: #FBF4E2; color: var(--gold-text);
  font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.card-price { font-weight: 700; color: var(--navy); }
.card-price s { margin-left: 8px; color: var(--muted); font-weight: 400; }
.card-sold { color: #9b2c2c; font-weight: 600; }
.filter-empty { margin-top: 24px; padding: 24px; text-align: center; color: var(--muted); background: var(--tint); border-radius: var(--radius); }

/* รายการเป็นขั้นตอนมีเลขกำกับ (รูปแบบ "รายการแนวนอน") */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 26px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: transparent; }
.step-no { font-size: 34px; font-weight: 700; line-height: 1; color: var(--gold); letter-spacing: -.03em; min-width: 52px; font-variant-numeric: tabular-nums; }
.step-pic img { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.step-body h3 { font-size: 20px; }
.step-body p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.step-cta .link-arrow { margin: 0; white-space: nowrap; }
@media (max-width: 680px) {
  .step { grid-template-columns: auto 1fr; gap: 6px 16px; padding: 20px; align-items: start; }
  .step-no { font-size: 26px; min-width: 38px; grid-row: span 2; }
  .step-pic { display: none; }
  .step-cta { grid-column: 2; }
}

/* แถบกรอง + ค้นหา */
.filter-bar { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.filter-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy-400); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search { position: relative; display: flex; align-items: center; flex: 0 1 340px; }
.search svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 16px 0 44px; border-radius: 999px; border: 1.5px solid var(--line);
  font: inherit; font-size: 16px; color: var(--ink); background: var(--tint);
}
.search input:focus { outline: none; border-color: var(--navy-400); background: #fff; }
@media (max-width: 700px) { .search { flex: 1 1 100%; order: -1; } }
.filter-bar + .sec { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- แกลเลอรี (คงสัดส่วนจริงของทุกรูป ไม่ครอป) ---------- */
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { columns: 3; column-gap: 14px; } }
@media (min-width: 1024px) { .gal { columns: var(--cols); column-gap: 20px; } }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 480px) { .gal-item { margin-bottom: 14px; } }
@media (min-width: 1024px) { .gal-item { margin-bottom: 20px; } }
.gal-item a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gal-item img, .gal-item video { width: 100%; border-radius: var(--radius-sm); transition: transform .5s var(--ease); }
.gal-item a:hover img { transform: scale(1.03); }
.gal-item figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px 0; font-size: 15px; }
.gal-item figcaption b { color: var(--navy); }
.gal-item figcaption span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.light::backdrop { background: rgba(3, 27, 55, .9); }
.light img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.light button {
  position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer;
}

/* ---------- คน (ทีมงาน / รีวิว) ---------- */
.people { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .people { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.person { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.person-pic { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-100); aspect-ratio: 4 / 5; margin-bottom: 12px; }
.person-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .6s var(--ease); }
.person:hover .person-pic img { transform: scale(1.03); }
.person-initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 700; color: var(--navy); }
.person figcaption { display: flex; flex-direction: column; gap: 2px; }
.person figcaption b { font-size: 19px; color: var(--navy); line-height: 1.3; }
.person-role { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); line-height: 1.45; }
.person p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 479px) {
  .people { gap: 18px 10px; }
  .person figcaption b { font-size: 16px; }
  .person-role { font-size: 14px; letter-spacing: .02em; }
  .person p { font-size: 14.5px; }
}

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 32px); text-align: left; margin: 0; }
  .faq-head h2::after { margin-left: 0; }
}
.faq details { border-bottom: 1px solid var(--navy-100); }
.faq details:first-child { border-top: 1px solid var(--navy-100); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
  font-weight: 600; font-size: 18px; color: var(--navy); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; color: var(--navy); transition: transform .25s var(--ease), background .2s; }
.faq-ico svg { width: 18px; height: 18px; }
.faq details[open] .faq-ico { transform: rotate(45deg); background: var(--gold); }
.faq-a { padding: 0 52px 24px 0; color: var(--muted); font-size: 16.5px; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-dark { background: var(--navy); color: #fff; }
.cta-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 100% 0%, rgba(213, 164, 55, .22), transparent 60%),
              radial-gradient(50% 90% at 0% 100%, rgba(10, 55, 109, .9), transparent 70%);
}
.cta-dark::after {
  content: ''; position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  border: 1.5px solid rgba(213, 164, 55, .35); border-radius: 50%; box-shadow: 0 0 0 60px rgba(213, 164, 55, .05), 0 0 0 120px rgba(213, 164, 55, .03);
}
.cta-soft { background: var(--navy-50); }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band h2 { max-width: 680px; font-size: clamp(28px, 3.4vw, 44px); }
.cta-dark h2 { color: #fff; }
.cta-dark h2 em { color: var(--gold-300); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .ico-solid { color: var(--wa); }
@media (max-width: 600px) { .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 6fr; gap: 64px; } }
.contact.no-form { grid-template-columns: 1fr; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info h2::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 20px; border-radius: 3px; background: var(--gold); }
.contact-note p { color: var(--muted); }
.contact-note p + p { margin-top: 10px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-list small { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list a, .contact-list span { font-size: 17px; font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-text); }
.contact-list .link-arrow { margin-top: 4px; font-size: 15px; color: var(--navy-600); }
.ci-ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: #fff; color: var(--navy-600); box-shadow: var(--shadow); }
.ci-ico svg { width: 22px; height: 22px; }
.ci-ico .ico-solid { color: #1DA851; }
.hours { padding: 22px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.hours h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 17px; margin-bottom: 12px; }
.hours h3 svg { color: var(--gold-text); }
.hours h3 small { font-weight: 400; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15.5px; border-top: 1px dashed var(--line); }
.hours li:first-child { border-top: 0; }
.hours .closed { color: var(--muted); }

.lead { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: #fff; box-shadow: var(--shadow-up); }
.lead h3 { font-size: 24px; }
.lead-note { margin-top: -6px; color: var(--muted); font-size: 15.5px; }
.f-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .f-row { grid-template-columns: 1fr 1fr; } }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f label { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.f label small { font-weight: 400; color: var(--muted); }
.lead input, .lead select, .lead textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; color: var(--ink); background: var(--tint); transition: border-color .2s, background .2s;
}
.lead textarea { resize: vertical; min-height: 120px; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: none; border-color: var(--navy-400); background: #fff; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead button[disabled] { opacity: .65; cursor: progress; }
.msg { min-height: 1.4em; font-size: 15px; }
.msg.ok { color: #1f6f43; font-weight: 600; }
.msg.bad { color: #a12828; font-weight: 600; }
.map-wrap { margin-top: 40px; }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); background: var(--navy-50); }

/* ---------- ข้อความอิสระ ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose-wide { max-width: none; }
.prose h2 { margin-bottom: 24px; }
.prose h2::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 18px; border-radius: 3px; background: var(--gold); }
.about-text .prose { max-width: none; margin: 0; }
.about-text .prose h2::after { display: none; }

/* ---------- บทความ ---------- */
.a-wrap { max-width: 800px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.a-wrap h1 { font-size: clamp(32px, 4vw, 48px); }
.a-meta { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.a-cover { margin: 28px 0; }
.a-cover img { border-radius: var(--radius); width: 100%; }
.a-lead { font-size: 20px; color: var(--ink); margin-bottom: 24px; }
.a-toc { padding: 20px 24px; background: var(--navy-50); border-radius: var(--radius); margin-bottom: 28px; }
.a-body h2 { margin: 36px 0 12px; font-size: 28px; }
.a-body h3 { margin: 28px 0 10px; font-size: 22px; }
.a-body ul, .a-body ol { color: var(--muted); padding-left: 22px; }
.a-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); }
.a-fig { margin: 24px 0; }
.a-fig img { border-radius: var(--radius-sm); }
.a-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.a-cta { margin: 32px 0; padding: 28px; border-radius: var(--radius); background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.a-embed { margin-top: 40px; }
.a-embed h3 { margin-bottom: 16px; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy-950); color: rgba(255, 255, 255, .75); padding: 72px 0 32px; font-size: 15.5px; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 5fr 3fr 4fr; gap: 56px; } }
.foot-name { display: block; font-size: 22px; color: #fff; letter-spacing: -.01em; }
.foot-tag { margin-top: 6px; color: var(--gold-300); font-weight: 600; }
.foot-brand > p:not(.foot-tag) { margin-top: 14px; max-width: 440px; line-height: 1.7; }
.foot-h { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot-nav { display: grid; gap: 0; }
.foot-nav a, .foot-list a { color: rgba(255, 255, 255, .78); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-nav a:hover, .foot-list a:hover { color: var(--gold-300); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-list a, .foot-list span { display: inline-flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.foot-list span { align-items: flex-start; padding-top: 10px; }
.foot-list svg { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background .2s, border-color .2s, color .2s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.social svg { width: 20px; height: 20px; }
.copy { display: block; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- ปุ่มลอย (มือถือ) ---------- */
.float-contact { display: none; }
@media (max-width: 860px) {
  .float-contact {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px -10px rgba(3, 27, 55, .45); backdrop-filter: blur(8px);
  }
  .fc { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; color: var(--navy); background: var(--navy-50); }
  .fc svg { width: 20px; height: 20px; }
  .fc-wa { background: #1DA851; color: #fff; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.menu-open .float-contact { display: none; }
}

/* ---------- อนิเมชันตอนเลื่อนถึง ---------- */
.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; }
.js .card[data-reveal].in:hover, .js .feature[data-reveal].in:hover { transform: translateY(-3px); transition-delay: 0s; }
.js .step[data-reveal].in:hover { transform: translateY(-2px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- รอบแก้ 1: ไอคอนโซเชียลบนหัวเว็บ ---------- */
.nav-social { display: flex; gap: 6px; }
.nav-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--navy); background: var(--navy-50); transition: background .2s, color .2s;
}
.nav-social a:hover { background: var(--navy); color: var(--gold-300); }
.nav-social svg { width: 19px; height: 19px; }
.nav-cta svg:not(.ico-solid), .fc svg { width: 20px; height: 20px; }
@media (max-width: 1080px) { .nav-social { margin-left: 4px; } }
@media (max-width: 560px) {
  .nav-social { margin-left: auto; gap: 4px; }
  .nav-social a { width: 44px; height: 44px; background: transparent; }
  .nav-toggle { margin-left: 4px; }
}
@media (max-width: 359px) { .nav-social { display: none; } .nav-toggle { margin-left: auto; } }

/* ---------- รอบแก้ 1: กล่อง Chat With Us ---------- */
.chat-box {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(3, 27, 55, .55);
}
.chat-box::backdrop { background: rgba(3, 27, 55, .55); backdrop-filter: blur(3px); }
.chat-box[open] { animation: chatIn .25s var(--ease); }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 8px; }
.chat-head h2 { font-size: 24px; }
.chat-head p { margin-top: 4px; color: var(--muted); font-size: 15.5px; }
.chat-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--navy-50); color: var(--navy); cursor: pointer; }
.chat-list { display: grid; gap: 10px; padding: 12px 24px 8px; }
.chat-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy);
  text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.chat-opt:hover { border-color: var(--navy-400); background: var(--tint); }
.chat-opt:active { transform: scale(.99); }
.chat-opt > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chat-opt b { font-size: 17px; }
.chat-opt small { color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.chat-opt small em { font-style: normal; color: var(--navy-400); }
.chat-opt > svg { width: 18px; height: 18px; color: var(--muted); }
.chat-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--navy-50); color: var(--navy-600); }
.chat-ico svg { width: 24px; height: 24px; }
.chat-wa .chat-ico { background: #E7F8EE; color: #1DA851; }
.chat-fb .chat-ico { background: #E8F1FF; color: #0866FF; }
.chat-wc .chat-ico { background: #E9F9EC; color: #07C160; }
.chat-foot { padding: 8px 24px 24px; color: var(--muted); font-size: 14px; }

/* ---------- รอบแก้ 1: ผู้บริหาร (การ์ดใหญ่) แยกจากทีมพาร์ทเนอร์ ---------- */
.people-big { grid-template-columns: 1fr; gap: 20px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 760px) { .people-big { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.people-big .person {
  display: grid; grid-template-columns: 42% 1fr; gap: 0 24px; align-items: start; padding: 18px;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow);
}
.people-big .person-pic { grid-row: span 2; margin: 0; }
.people-big .person figcaption { padding-top: 8px; }
.people-big .person figcaption b { font-size: 21px; }
.people-big .person p { margin-top: 10px; }
@media (max-width: 479px) {
  .people-big .person { grid-template-columns: 1fr; padding: 14px; }
  .people-big .person-pic { grid-row: auto; margin-bottom: 14px; }
}
/* ทีมพาร์ทเนอร์: จัดกลาง ไม่ว่าจะมีกี่คน */
.sec-people:not(.people-lead) .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .sec-people:not(.people-lead) .people { grid-template-columns: repeat(auto-fit, minmax(220px, 270px)); justify-content: center; } }
main > .people-lead + .sec-people { padding-top: 0; }
