/* galaxy-thailand — Minimal luxury: ครีม · กรมท่า · ทอง
   ลายเซ็น: เส้นคลื่นพลังงานสีทอง (สื่อคลื่น PEMF) + เส้นทองสั้นนำหัวข้อ
   กฎเหล็ก: ทุกส่วนต้องยังสวยเมื่อข้อความสั้นมากหรือยาวมาก และต้องไม่ล้นจอที่ 360px */

:root {
  --accent: #8C6A1F;            /* ทองเข้ม (site.config.js → brand.color) */
  --gold: #C9A24A;
  --gold-hi: #D6B46A;
  --gold-pale: #EADBB4;
  --ink: #0E1A38;
  --navy: #0A1430;
  --navy-2: #12224A;
  --teal: #2A9D8F;
  --paper: #F8F4EC;
  --paper-2: #F1EBDF;
  --white: #FFFDF9;
  --muted: #55607A;
  --muted-dark: #B9C0D3;
  --line: #E3D9C4;
  --line-dark: rgba(214, 180, 106, .22);
  --radius: 18px;
  --font: 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --gap: clamp(64px, 9vw, 128px);
  --pad: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.75; -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.42; margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--gold-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); position: relative; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* เส้นทองสั้นนำหัวข้อ */
.rule { display: block; width: 56px; height: 2px; margin-bottom: 22px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi) 60%, transparent); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.hero .eyebrow::before { content: ''; width: 40px; height: 2px; background: var(--gold); flex: none; }
.eyebrow-ink { color: var(--accent); }

.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 17.5px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; font: 600 16.5px/1.5 var(--font);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; min-height: 52px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #D9B866, #C29A44); color: var(--navy); border-color: #C9A24A;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 24px -10px rgba(201,162,74,.7); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 30px -12px rgba(201,162,74,.85); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-line { background: rgba(255,253,249,.7); color: var(--ink); border-color: var(--gold); backdrop-filter: blur(6px); }
.btn-line:hover { background: #fff; color: var(--accent); }

/* ---------- หัวเว็บ ---------- */
.nav { position: sticky; top: 0; z-index: 50; color: var(--ink); background: rgba(248, 244, 236, .96); backdrop-filter: blur(12px);
  transition: box-shadow .3s; }
.topbar { font-size: 14px; background: var(--navy); color: #fff; transition: margin .3s; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-note { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.topbar-links { display: flex; align-items: center; gap: 14px; flex: none; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; opacity: .9; }
.topbar a:hover { color: var(--gold-hi); opacity: 1; }
.topbar svg, .social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 50px; width: auto; }
.logo span { font-weight: 700; font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.nav-home { display: none; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 15.5px; font-weight: 500; position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--gold); transition: right .3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-cta { min-height: 44px; padding: 10px 22px; font-size: 15.5px; }
.nav.solid { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(14,26,56,.35); }
.nav.solid .topbar { margin-top: -38px; }
.nav-toggle { display: none; }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper-2); color: var(--ink); isolation: isolate; }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; display: grid; align-content: center; }
.hero-full .hero-slide { min-height: min(calc(100svh - 114px), 820px); padding: 80px 0 110px; }
.hero-compact .hero-slide { min-height: clamp(380px, 54vh, 540px); padding: 72px 0 84px; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 72% 50%; transform: scale(1.04); will-change: transform; }
.hero-compact .hero-media img { object-position: 70% 50%; transform: none; }
.hero-shade { position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(248,244,236,.96) 0%, rgba(248,244,236,.88) 30%, rgba(248,244,236,.45) 52%, rgba(248,244,236,0) 72%),
    linear-gradient(0deg, rgba(248,244,236,.5) 0%, transparent 25%); }
.hero-body { position: relative; z-index: 2; width: 100%; }
.hero-body > * { max-width: 640px; }
@media (min-width: 900px) { .hero-title .ph { white-space: nowrap; } }
.hero-title { font-size: clamp(34px, 5.2vw, 64px); font-weight: 700; color: var(--ink); line-height: 1.4; letter-spacing: -.012em; }
.hero-compact .hero-title { font-size: clamp(32px, 4.6vw, 56px); }
.hero-sub { margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: #3A4560; font-weight: 400; line-height: 1.7; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-cta:empty { display: none; }
.hero-body > * { animation: rise .9s var(--ease) both; }
.hero-body > :nth-child(2) { animation-delay: .08s; }
.hero-body > :nth-child(3) { animation-delay: .16s; }
.hero-body > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-split .hero-slide { grid-template-columns: 1fr 1fr; min-height: 560px; padding-top: 120px; }
.hero-split .hero-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 3px; border: 0; border-radius: 2px; background: rgba(14,26,56,.25); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: var(--gold-hi); }

/* เส้นคลื่นทอง */
.waves { position: absolute; left: 0; width: 100%; pointer-events: none; fill: none; }
.waves path { stroke: var(--gold-hi); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.waves path:nth-child(2) { opacity: .55; }
.waves path:nth-child(3) { opacity: .28; }
.hero-waves { bottom: -10px; height: 130px; z-index: 2; opacity: .9; }
.hero-waves path { stroke: var(--gold); }
.hero-waves path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- จุดเด่น ---------- */
.sec-features { background: var(--paper); }
.hero-full + .sec-features { background: var(--navy); color: #fff; padding-block: clamp(34px, 4vw, 48px); }
.hero-full + .sec-features .sec-head h2 { color: #fff; }
.hero-full + .sec-features .features { border-top: 0; }
.hero-full + .sec-features .feature { padding: 4px 24px; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.hero-full + .sec-features .feature + .feature { border-left-color: var(--line-dark); }
.hero-full + .sec-features .feature-top { grid-row: span 2; margin: 0; }
.hero-full + .sec-features .feature-no { display: none; }
.hero-full + .sec-features .feature-icon { background: transparent; border-color: var(--line-dark); color: var(--gold-hi); }
.hero-full + .sec-features .feature h3 { font-size: 17.5px; margin: 0; color: #fff; }
.hero-full + .sec-features .feature p { color: var(--muted-dark); font-size: 14.5px; line-height: 1.55; }
.hero-full + .sec-features .feature::before { display: none; }
.features { --cols: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 0;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature { padding: 30px 28px 6px 0; position: relative; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.feature-no { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.feature-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-pale); color: var(--accent); background: var(--white); }
.feature-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.feature::before { content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width .6s var(--ease) calc(var(--d, 0) * 80ms + .2s); }
.feature + .feature::before { left: 28px; }
.feature.in::before { width: 48px; }

.sec-features:not(.hero-full + .sec-features) .features { border-top: 0; }
.sec-features:not(.hero-full + .sec-features) .feature, .sec-features:not(.hero-full + .sec-features) .feature + .feature { border-left: 0; padding: 0 20px 0 0; }
.sec-features:not(.hero-full + .sec-features) .feature-top { position: relative; justify-content: flex-start; gap: 14px; margin-bottom: 22px; }
.sec-features:not(.hero-full + .sec-features) .feature-top::after { content: ''; position: absolute; left: 64px; right: -20px; top: 50%; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale)); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease) calc(var(--d, 0) * 120ms + .2s); }
.sec-features:not(.hero-full + .sec-features) .feature.in .feature-top::after { transform: scaleX(1); }
.sec-features:not(.hero-full + .sec-features) .feature:last-child .feature-top::after { display: none; }
.sec-features:not(.hero-full + .sec-features) .feature-no { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--gold); background: var(--white); font-size: 17px; letter-spacing: .04em; color: var(--accent); position: relative; z-index: 1; }
.sec-features:not(.hero-full + .sec-features) .feature-icon { display: none; }
.sec-features:not(.hero-full + .sec-features) .feature::before { display: none; }

/* ---------- ข้อความใหญ่ (เกี่ยวกับ ไม่มีรูป) ---------- */
.sec-statement { background: var(--paper-2); overflow: hidden; }
.statement { max-width: 900px; margin: 0 auto; text-align: center; }
.statement .eyebrow { margin-bottom: 26px; }
.statement-body { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.6; font-weight: 400; color: var(--ink); text-wrap: pretty; }
.statement-body p + p { font-size: 18px; color: var(--muted); margin-top: 22px; line-height: 1.8; }
.statement .btn { margin-top: 36px; }
.sec-statement + .sec-products, .sec-faq + .sec-contact, .sec-statement + .sec-features { padding-top: 0; }
.sec-statement + .sec-products .sec-head, .sec-statement + .sec-features .sec-head { padding-top: clamp(48px, 6vw, 80px); }
.sec-statement + .sec-products, .sec-statement + .sec-features { background: linear-gradient(180deg, var(--paper-2), var(--paper) 160px); }

/* ---------- แถบกรมท่า: รูปคู่ข้อความ ---------- */
.sec-dark { background: var(--navy); color: #fff; }
.sec-about { background: var(--navy); }
.sec-products + .sec-about { background: linear-gradient(180deg, var(--navy-2), var(--navy) 420px); }
.sec-about + .sec-about { padding-top: 0; }
.about { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about.pic-right .about-pic { order: 2; }
.about-pic { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.about-pic img { width: 100%; height: 100%; object-fit: cover; }
.about-pic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(200deg, transparent 55%, rgba(10,20,48,.35)); }
.about-text h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 20px; }
.about-text p { color: var(--muted-dark); font-size: 17.5px; }
.about-text .btn { margin-top: 30px; }

/* ---------- สิ่งที่เราทำ (แถวสารบัญ) ---------- */
.sec-products { background: var(--paper); }
.rows { border-top: 1px solid var(--ink); }
.row-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; transition: background-color .3s; }
.row-item::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.row-item:hover::after { width: 100%; }
.row-no { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.row-text h3 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 500; }
.row-text p { color: var(--muted); margin-top: 6px; font-size: 16.5px; max-width: 62ch; }
.row-item .card-pic { width: 180px; border-radius: 12px; overflow: hidden; }
.row-item .card-pic img { width: 100%; height: 100%; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(14,26,56,.45); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-no { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.card-body h3 { font-size: 21px; margin: 8px 0 6px; }
.card-body p { color: var(--muted); font-size: 16px; }
.card-price { font-weight: 700; margin: 10px 0; }
.card-price s { color: var(--muted); font-weight: 400; margin-left: 8px; }

/* ---------- แกลเลอรี ---------- */
.sec-gallery { background: var(--paper-2); }
.gal { --cols: 3; columns: var(--cols); column-gap: 16px; }
.gal-item { break-inside: avoid; margin: 0 0 16px; }
.gal-item a { display: block; border-radius: 12px; overflow: hidden; }
.gal-item img { width: 100%; transition: transform .5s var(--ease); }
.gal-item a:hover img { transform: scale(1.03); }
.gal-item figcaption { padding: 10px 2px 0; font-size: 15px; color: var(--muted); }
.gal-item figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- เสียงจากลูกค้า ---------- */
.sec-quotes { background: var(--paper); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote { margin: 0; padding: 32px; background: var(--white); border-radius: var(--radius); position: relative; }
.quote-mark { font-size: 64px; line-height: .6; color: var(--gold); display: block; height: 30px; }
.quote blockquote { margin: 0 0 22px; font-size: 17px; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: grid; font-size: 15px; color: var(--muted); }
.quote figcaption b { color: var(--ink); }

/* ---------- คำถามที่พบบ่อย ---------- */
.sec-faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 12px; align-items: center;
  padding: 24px 0; font-size: 18.5px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq-no { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: .08em; }
.faq summary i { width: 24px; height: 24px; position: relative; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 5px; right: 5px; top: 11px; height: 1.5px; background: var(--accent); transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq summary:hover > span:nth-child(2) { color: var(--accent); }
.faq-a { padding: 0 36px 26px 56px; color: var(--muted); font-size: 16.5px; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { text-align: center; overflow: hidden; }
.cta-dark { color: #fff; background:
    radial-gradient(60% 80% at 85% 10%, rgba(42,157,143,.28), transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(201,162,74,.22), transparent 60%),
    var(--navy); }
.cta-dark::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 120px 80px, var(--gold-hi) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 200px 150px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 300px 40px, #cfe9e5 50%, transparent 51%);
  background-size: 340px 200px; }
.cta-band .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 34px; }
.cta-band h2 { font-size: clamp(28px, 3.8vw, 48px); max-width: 22ch; font-weight: 500; line-height: 1.45; }
.cta-soft { background: var(--paper-2); }
.cta-waves { bottom: 8%; height: 140px; opacity: .45; }

/* ---------- ติดต่อ ---------- */
.sec-contact { background: var(--paper); }
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(14,26,56,.5); background: var(--white); }
.contact-panel { position: relative; overflow: hidden; background: radial-gradient(130% 100% at 0% 0%, var(--navy-2), var(--navy) 65%); color: #fff;
  padding: clamp(32px, 5vw, 56px); }
.contact-panel h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.contact-note { color: var(--muted-dark); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; position: relative; z-index: 1; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-list li > svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid var(--line-dark); fill: none; stroke: var(--gold-hi); stroke-width: 1.6; }
.contact-list small { display: block; color: var(--muted-dark); font-size: 14px; letter-spacing: .06em; }
.contact-list a { text-decoration: none; font-size: 18px; font-weight: 500; }
.contact-list a:hover { color: var(--gold-hi); }
.hours { list-style: none; padding: 0; margin: 26px 0 0; font-size: 15.5px; color: var(--muted-dark); position: relative; z-index: 1; }
.hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-dark); }
.hours .closed { color: #f3a6a6; }
.panel-waves { bottom: 0; height: 110px; opacity: .5; }
.contact-form { padding: clamp(28px, 5vw, 56px); }
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field-wide { grid-column: 1 / -1; }
.lead label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.lead input, .lead textarea, .lead select { width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.lead select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.lead input:focus, .lead textarea:focus, .lead select:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,74,.18); }
.lead textarea { min-height: 130px; resize: vertical; }
.lead ::placeholder { color: #9AA1B2; }
.lead .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }
.msg { margin: 12px 0 0; font-size: 15.5px; min-height: 1.5em; }
.msg.ok { color: #1f7a52; } .msg.bad { color: #b3261e; }
.map { width: 100%; height: 340px; border: 0; border-radius: 16px; }
.contact-map { margin-top: 24px; }

/* ---------- ข้อความอิสระ ---------- */
.sec-rich { background: var(--paper); }
.sec-rich + .sec-rich, .sec-faq + .sec-rich { padding-top: 0; }
.rich { max-width: 760px; margin: 0 auto; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.rich-wide { max-width: none; }
.rich h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.rich p { color: var(--muted); font-size: 16px; }

/* ---------- ท้ายเว็บ ---------- */
.foot { position: relative; background: var(--navy); color: var(--muted-dark); padding: 96px 0 0; overflow: hidden; }
.foot-waves { top: 0; height: 90px; opacity: .35; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; position: relative; }
.foot b { display: block; color: #fff; font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; }
.foot-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 20px; }
.foot-brand p { font-size: 15.5px; max-width: 42ch; }
.foot-nav, .foot-contact { display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.foot-nav a, .foot-contact a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.foot-nav a:hover, .foot-contact a:hover { color: var(--gold-hi); }
.foot-contact svg { width: 17px; height: 17px; fill: none; stroke: var(--gold-hi); stroke-width: 1.6; flex: none; }
.foot-contact p { display: flex; gap: 10px; }
.social { display: flex; gap: 10px; margin-top: 6px; }
.foot .social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.foot-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 64px; padding-block: 22px 26px; font-size: 14px; }
.foot-base small { font-size: 14px; }

.float-contact { display: none; }

/* ---------- กล่องดูรูปเต็ม ---------- */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh; }
dialog.light::backdrop { background: rgba(10,20,48,.86); }
dialog.light img { max-height: 86vh; width: auto; border-radius: 10px; }
dialog.light button { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; cursor: pointer; }

/* ---------- ค่อยปรากฏตอนเลื่อนถึง ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- บทความ (ของเสริม) ---------- */
.a-wrap { max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.a-meta { color: var(--muted); font-size: 15px; }
.a-body h2 { font-size: 26px; margin: 36px 0 12px; }
.a-body h3 { font-size: 21px; margin: 28px 0 10px; }
.a-fig, .a-cover { margin: 24px 0; }
.a-fig img, .a-cover img { border-radius: 14px; }
.a-toc, .a-embed, .a-cta { margin: 28px 0; padding: 22px; background: var(--white); border-radius: 14px; border: 1px solid var(--line); }
blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--gold); }

/* =================== จอเล็ก =================== */
@media (max-width: 1180px) {
  .nav-row { min-height: 64px; }
  .logo img { height: 38px; }
  .nav-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: inherit; position: relative; z-index: 2; }
  .nav-toggle span { display: block; width: 24px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease); }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 0; background: var(--navy); color: #fff; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 90px 28px 40px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-links a:not(.btn) { font-size: 22px; padding: 8px 0; }
  .nav-links .nav-home { display: block; }
  .nav-cta { margin-top: 22px; min-height: 52px; font-size: 17px; }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav.open { color: #fff; }
  .nav.open .logo img { filter: brightness(0) invert(1); }
  .nav.open .logo { position: relative; z-index: 2; }
  .nav-links { overflow-y: auto; justify-content: flex-start; padding-top: 100px; }
}
@media (max-width: 899px) { .topbar { display: none; } }

@media (max-width: 1023px) {
  .features[style*="--cols:4"] { --cols: 2 !important; }
  .features[style*="--cols:4"] .feature:nth-child(3) { border-left: 0; padding-left: 0; }
  .features[style*="--cols:4"] .feature:nth-child(3)::before { left: 0; }
  .features[style*="--cols:4"] .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 72px; }

  .hero-full .hero-slide { height: 70vh; min-height: 560px; max-height: 720px; padding: 40px 0 64px; align-content: end; }
  .hero-compact .hero-slide { min-height: 380px; height: 54vh; padding: 40px 0 48px; align-content: end; }
  .hero-full + .sec-features .feature, .hero-full + .sec-features .feature + .feature { padding: 14px 0; border-left: 0; }
  .hero-full + .sec-features .feature + .feature { border-top: 1px solid var(--line-dark); }
  .hero-media img, .hero-compact .hero-media img { object-position: 70% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(248,244,236,.99) 0%, rgba(248,244,236,.95) 50%, rgba(248,244,236,.55) 66%, rgba(248,244,236,0) 82%); }
  .hero-media img { object-position: 50% 0 !important; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-split .hero-slide { grid-template-columns: 1fr; }
  .hero-waves { height: 80px; }

  .about { grid-template-columns: 1fr; }
  .about.pic-right .about-pic { order: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .contact { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 48px minmax(0, 1fr); }
  .row-item .card-pic { grid-column: 2; width: 100%; max-width: 320px; }
  .row-cta { grid-column: 2; }

  .float-contact { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; }
  .fl { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; max-height: 56px; border-radius: 999px;
    text-decoration: none; font-weight: 600; font-size: 16px; box-shadow: 0 10px 30px -12px rgba(10,20,48,.6); }
  .fl svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .fl-call { background: linear-gradient(180deg, #D9B866, #C29A44); color: var(--navy); }
  .fl-line { background: #06C755; color: #fff; }
  .fl-fb { background: var(--navy); color: #fff; border: 1px solid var(--line-dark); }
  body { padding-bottom: 76px; }
}

@media (max-width: 639px) {
  body { font-size: 16.5px; }
  .features, .features[style*="--cols:4"] { --cols: 1 !important; }
  .features[style*="--cols:4"] { --cols: 2 !important; }
  .feature, .feature + .feature { padding: 24px 0 4px; border-left: 0; }
  .features[style*="--cols:4"] .feature { padding: 22px 12px 4px 0; }
  .features[style*="--cols:4"] .feature:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .feature + .feature { border-top: 1px solid var(--line); }
  .features[style*="--cols:4"] .feature:nth-child(2) { border-top: 0; }
  .feature + .feature::before { left: 0; }
  .features[style*="--cols:4"] .feature:nth-child(even)::before { left: 14px; }
  .feature h3 { font-size: 18px; }
  .feature p { font-size: 15px; }
  .feature-icon { width: 38px; height: 38px; }
  .cards, .quotes { grid-template-columns: 1fr; }
  .gal { --cols: 2 !important; column-gap: 10px; }
  .gal-item { margin-bottom: 10px; }
  .lead { grid-template-columns: 1fr; }
  .faq summary { grid-template-columns: 34px minmax(0, 1fr) 22px; font-size: 17px; padding: 20px 0; }
  .faq-a { padding: 0 0 22px 46px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .row-item { padding: 24px 0; gap: 14px; }
  .contact { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-waves path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ขั้นตอนบนจอเล็ก: เรียงลงทีละข้อ เส้นเชื่อมเป็นแนวตั้ง */
@media (max-width: 1023px) {
  .sec-features:not(.hero-full + .sec-features) .features { --cols: 2 !important; gap: 28px 0; }
  .sec-features:not(.hero-full + .sec-features) .feature-top::after { display: none; }
}
@media (max-width: 639px) {
  .sec-features:not(.hero-full + .sec-features) .features { --cols: 1 !important; gap: 0; }
  .sec-features:not(.hero-full + .sec-features) .feature,
  .sec-features:not(.hero-full + .sec-features) .feature + .feature,
  .sec-features:not(.hero-full + .sec-features) .feature:nth-child(even) {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; padding: 0 0 26px; border: 0; position: relative; }
  .sec-features:not(.hero-full + .sec-features) .feature-top { grid-row: span 2; margin: 0; align-self: start; }
  .sec-features:not(.hero-full + .sec-features) .feature:not(:last-child)::after { content: ''; position: absolute; left: 28px; top: 58px; bottom: 2px; width: 1px; background: var(--gold-pale); }
  .sec-features:not(.hero-full + .sec-features) .feature h3 { padding-top: 12px; }
  .hero-full + .sec-features .features { --cols: 1 !important; }
  .hero-full + .sec-features .feature:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero-full + .sec-features .feature:nth-child(2) { border-top: 1px solid var(--line-dark); }
}

/* เส้นเชื่อมขั้นตอน: ไม่ลากเลยท้ายแถว */
@media (min-width: 1024px) {
  .features[style*="--cols:3"] .feature:nth-child(3n) .feature-top::after,
  .features[style*="--cols:4"] .feature:nth-child(4n) .feature-top::after { display: none; }
  .features .feature:nth-child(n+4) { margin-top: 0; }
  .sec-features:not(.hero-full + .sec-features) .features { row-gap: 44px; }
}
@media (max-width: 899px) { .hero .eyebrow { display: none; } }

/* พื้นที่กดบนมือถือไม่ต่ำกว่า 44px */
@media (max-width: 899px) {
  .logo { min-height: 44px; }
  .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-nav a, .foot-contact a { min-height: 44px; }
  .foot-nav, .foot-contact { gap: 0; }
  .foot .social a { width: 44px; height: 44px; }
}


/* =================== รอบ 2: แบนเนอร์ลูกค้า + วงโคจร Galaxy =================== */
:root { --teal-soft: #DCEFEC; }

/* วงโคจร (จากโลโก้) */
.orbit { position: absolute; pointer-events: none; fill: none; overflow: visible; }
.orbit ellipse { stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .55; }
.orbit ellipse.o2 { stroke: var(--teal); opacity: .35; }
.orbit ellipse.o3 { opacity: .3; }
.orbit circle { fill: var(--gold); }
.orbit circle.o2 { fill: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .orbit { animation: spin 90s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

/* แบนเนอร์: รูปเต็มกว้างตามสัดส่วนจริง ไม่ครอป + การ์ดข้อความซ้อนขอบล่าง */
.hero-full { background: var(--paper); color: var(--ink); overflow: visible; }
.hero-full .hero-track { overflow: hidden; }
.hero-full .hero-slide { min-height: 0; padding: 0; display: block; }
.banner-media { display: block; position: relative; }
.banner-media img { width: 100%; height: auto; display: block; }
.banner-media::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(0deg, var(--paper), transparent); }
.banner-card { position: relative; z-index: 2; margin: clamp(-150px, -9vw, -60px) 0 0; max-width: 860px; overflow: hidden;
  background: rgba(255, 253, 249, .96); backdrop-filter: blur(10px); border-radius: 26px;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4.4vw, 60px); box-shadow: 0 40px 80px -50px rgba(14,26,56,.45), 0 0 0 1px rgba(201,162,74,.25); }
.banner-card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--teal) 70%, transparent); }
.banner-text { position: relative; z-index: 1; }
.banner-text > * { max-width: 680px; }
.card-orbit { width: 340px; height: 340px; right: -120px; top: -110px; opacity: .8; }
.hero-full .hero-title { font-size: clamp(30px, 4.2vw, 54px); }
.hero-full .hero-sub { font-size: clamp(16.5px, 1.4vw, 19px); margin-top: 16px; }
.hero-full .hero-cta { margin-top: 28px; }
.hero-full .eyebrow { display: flex; }

/* แถบความน่าเชื่อถือ: พื้นอ่อน ไอคอนวงทอง (ไม่ใช่แถบกรมท่าทึบแล้ว) */
.hero-full + .sec-features { background: var(--paper); color: var(--ink); padding-block: clamp(36px, 5vw, 64px); }
.hero-full + .sec-features .feature h3 { color: var(--ink); }
.hero-full + .sec-features .feature p { color: var(--muted); }
.hero-full + .sec-features .feature + .feature { border-left-color: var(--line); }
.hero-full + .sec-features .feature-icon { background: var(--white); border-color: var(--gold-pale); color: var(--accent); width: 48px; height: 48px; }

/* ข้อความใหญ่: ชิดซ้าย มีวงโคจรด้านขวา */
.statement { text-align: left; margin: 0; max-width: 820px; position: relative; z-index: 1; }
.statement-orbit { width: 560px; height: 560px; right: -140px; top: 50%; margin-top: -280px; opacity: .9; }
.statement-body p:first-child { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.55; color: var(--ink); font-weight: 400; }
.statement-body p + p { font-size: 18px; color: var(--muted); margin-top: 22px; max-width: 640px; }

/* บริการ: การ์ดรูปตามสัดส่วนจริง */
.sec-products { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.cards { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 22px; }
.card { background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.card-pic { overflow: hidden; }
.card-pic img { transition: transform .6s var(--ease); }
.card:hover .card-pic img { transform: scale(1.04); }
.card-body { padding: 22px 22px 26px; }
.card-body h3 { font-size: 19.5px; }
.card-body p { font-size: 15.5px; line-height: 1.7; }

/* เกี่ยวกับแบบมีรูป: สลับพื้นเข้ม (มีวงโคจร) กับพื้นอ่อน */
.sec-about { overflow: hidden; }
.sec-about.sec-dark { background:
    radial-gradient(70% 90% at 100% 0%, rgba(42,157,143,.22), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(201,162,74,.14), transparent 60%), var(--navy); }
.sec-about.sec-light { background: var(--white); color: var(--ink); }
.sec-about.sec-light .about-text p { color: var(--muted); }
.sec-about + .sec-about { padding-top: var(--gap); }
.bg-orbit { width: 700px; height: 700px; left: -260px; bottom: -300px; opacity: .5; }
.about-pic-wrap { position: relative; }
.pic-orbit { width: 120%; height: 120%; left: -10%; top: -10%; opacity: .7; z-index: 0; }
.about-pic { z-index: 1; box-shadow: 0 30px 60px -36px rgba(10,20,48,.55); }
.about-pic::after { display: none; }
.about.pic-right .about-pic-wrap { order: 2; }

/* แถบชวนติดต่อ / แผง / ท้ายเว็บ */
.cta-orbit { width: 640px; height: 640px; right: -180px; top: -200px; opacity: .6; }
.panel-orbit { width: 420px; height: 420px; right: -160px; bottom: -180px; opacity: .55; }
.foot-orbit { width: 520px; height: 520px; right: -160px; top: -220px; opacity: .3; }
.foot { overflow: hidden; }

@media (max-width: 1023px) {
  .cards[style*="--cols:4"] { --cols: 2 !important; }
}
@media (max-width: 899px) {
  .banner-media::after { height: 18%; }
  .banner-card { margin-top: -28px; border-radius: 20px; padding: 26px 20px 28px; }
  .card-orbit { width: 220px; height: 220px; right: -90px; top: -90px; }
  .hero-full .hero-title { font-size: clamp(28px, 7.4vw, 34px); }
  .hero-full .eyebrow { display: flex; font-size: 14px; letter-spacing: .06em; }
  .hero-full .hero-cta .btn { flex: 1 1 100%; }
  .statement-orbit { width: 320px; height: 320px; right: -170px; top: 0; margin-top: -40px; }
  .about.pic-right .about-pic-wrap { order: 0; }
  .pic-orbit { display: none; }
}
@media (max-width: 639px) {
  .cards, .cards[style*="--cols:4"] { --cols: 1 !important; }
  .hero-full + .sec-features .feature, .hero-full + .sec-features .feature + .feature { border-left: 0; padding: 14px 0; }
  .hero-full + .sec-features .feature + .feature { border-top: 1px solid var(--line); }
}
@media (max-width: 899px) {
  .hero-full .hero-slide { height: auto; min-height: 0; max-height: none; padding: 0; }
}
.banner-card { animation: rise .9s var(--ease) .15s both; }

/* ส่วนรูปคู่ข้อความที่อยู่ติดแถบชวนติดต่อ (พื้นเข้มทั้งคู่) → เปลี่ยนเป็นพื้นอ่อน ไม่ให้แถบเข้มติดกัน */
.sec-about.sec-dark:has(+ .cta-dark) { background: var(--white); color: var(--ink); }
.sec-about.sec-dark:has(+ .cta-dark) .about-text p { color: var(--muted); }
.sec-about.sec-dark:has(+ .cta-dark) .bg-orbit { display: none; }
