/* =========================================================================
   พี.แซด. ไฮเทค ซิสเท็ม — สไตล์หลัก
   ยึดตามมาตรฐานดีไซน์กลาง 1Day1Deaw
   ฟอนต์ไทยจริง / ไอคอนเส้น / รูปไม่ครอปในโซนแกลเลอรี / อนิเมชันสังเกตได้แต่ไม่รบกวน
   ========================================================================= */

:root {
  /* ธีมสีน้ำเงินเข้มทั้งเว็บตามที่ทางร้านขอ ตัวหนังสือสว่างบนพื้นเข้ม */
  --navy:    #0E1636;
  --navy-2:  #070B1E;
  --blue:    #1D6FDE;
  --blue-2:  #37A2F2;
  --cyan:    #2BD1F5;
  --ink:     #F3F8FF;
  --body:    #BAC9E6;
  --muted:   #8DA0C4;
  --line:    rgba(116,163,236,.24);
  --bg:      #070B1E;
  --soft:    #0C1330;
  --card:    #111B3D;
  --line-gr: #06C755;
  /* ขอบเรืองแสง ใช้กับปุ่มและป้ายข้อความ */
  --glow:    0 0 0 1px rgba(43,209,245,.34), 0 0 22px -6px rgba(43,209,245,.55);
  --glow-sm: 0 0 0 1px rgba(43,209,245,.26), 0 0 14px -6px rgba(43,209,245,.45);
  --wrap:    1160px;
  --r:       14px;
  --r-sm:    10px;
  --sh:      0 1px 2px rgba(0,0,0,.4), 0 10px 26px -14px rgba(0,0,0,.75);
  --sh-up:   0 2px 6px rgba(0,0,0,.5), 0 20px 40px -16px rgba(0,0,0,.85);
  --ease:    cubic-bezier(.22,.61,.36,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;              /* ข้อความไทยอย่างน้อย 1.6 */
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;            /* กันเลื่อนซ้ายขวาบนมือถือ */
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.32; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 6.2vw, 56px); }
h2 { font-size: clamp(25px, 4vw, 38px); }
h3 { font-size: clamp(18px, 2.2vw, 21px); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-2); }
img, video, svg, iframe { max-width: 100%; }
img, video { height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.wrap-narrow { max-width: 780px; }

.ic { flex: none; }
.ic-line { color: var(--line-gr); }
.ic-fb   { color: #1877F2; }

/* ------------------------------------------------------------- อนิเมชัน */
/* ปรากฏตอนเลื่อนถึง ขยับขึ้น 20px + จางเข้า เล่นครั้งเดียว */
html.js .reveal { opacity: 0; transform: translateY(20px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  html.js .reveal.in { transition: none; }
}

/* ------------------------------------------------------------------ ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.25;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  min-height: 50px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--sh); }
.btn-primary:hover { background: var(--blue-2); color: #fff; box-shadow: var(--sh-up); }

.btn-call { background: var(--cyan); color: #06243B; box-shadow: var(--sh); }
.btn-call:hover { background: #00BCEF; color: #06243B; box-shadow: var(--sh-up); }

.btn-line { background: var(--line-gr); color: #fff; box-shadow: var(--sh); }
.btn-line:hover { background: #05B34D; color: #fff; box-shadow: var(--sh-up); }

.btn-ghost { background: var(--card); color: var(--blue); border-color: var(--line); box-shadow: var(--sh); }
.btn-ghost:hover { border-color: var(--blue-2); color: var(--blue-2); box-shadow: var(--sh-up); }
.btn-block { display: flex; width: 100%; }

.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-pair.is-sm .btn { padding: 12px 18px; font-size: 15px; min-height: 46px; }

/* ------------------------------------------------------------------ หัวเว็บ */
/* หัวเว็บเป็นสีน้ำเงินเข้มต่อเนื่องกับแบนเนอร์ด้านล่าง ทำให้เว็บไม่ขาวจนโล่ง */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(11,15,46,.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.head-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-th { font-weight: 700; color: #fff; font-size: 17px; }
.brand-sub { font-size: 14px; color: #93A7CC; letter-spacing: .01em; }

.nav-desk { display: none; gap: 2px; }
.nav-item { position: relative; }
.nav-top {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 9px 13px; border-radius: 999px; text-decoration: none;
  color: #C9D8F0; font-weight: 500; font-size: 15.5px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-top:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-top[aria-current="page"] { background: rgba(0,168,216,.2); color: var(--cyan); font-weight: 600; }
.nav-caret { transition: transform .2s var(--ease); }

/* ---- เมนูย่อยบนจอใหญ่: เปิดตอนเอาเมาส์ไปชี้ และตอนกด Tab เข้ามาในกลุ่ม ---- */
.nav-sub {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  min-width: 260px; max-width: 320px; padding: 8px;
  /* รายการบริการยาวกว่าความสูงจอได้ จึงให้เลื่อนในกล่องแทนที่จะทะลุขอบจอ */
  max-height: min(72vh, 430px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 18px 40px -16px rgba(9,14,40,.5);
  display: flex; flex-direction: column; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-item.has-sub:hover .nav-caret,
.nav-item.has-sub:focus-within .nav-caret { transform: rotate(180deg); }
/* สะพานโปร่งใสกันเมาส์หลุดช่องว่างระหว่างปุ่มกับเมนูย่อย */
.nav-item.has-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.nav-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none;
  color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.5;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav-sub a:hover { background: var(--soft); color: var(--blue); }
.nav-sub a .ic { color: var(--blue-2); flex: none; }
.nav-sub a span { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  .nav-sub { transition: none; }
  .nav-caret { transition: none; }
}

.head-call { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; padding: 0;
}
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---- เมนูบนมือถือ: เมนูย่อยกางด้วยปุ่ม เพราะไม่มีการเอาเมาส์ไปชี้ ---- */
.nav-mob {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 16px 16px; border-top: 1px solid rgba(255,255,255,.12);
  max-height: calc(100vh - 68px); overflow-y: auto;
}
.nav-mob[hidden] { display: none; }   /* ต้องมี ไม่งั้น display:flex จะชนะ attribute hidden */
.nm-top {
  display: block; flex: 1;
  padding: 13px 10px; border-radius: var(--r-sm); text-decoration: none;
  color: #E4ECF8; font-weight: 500; font-size: 17px;
}
.nm-top:hover { background: rgba(255,255,255,.08); color: #fff; }
.nm-top[aria-current="page"] { color: var(--cyan); font-weight: 600; }
.nm-row { display: flex; align-items: center; gap: 4px; }
.nm-toggle {
  flex: none; width: 46px; height: 46px; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm); color: #CBD9F0;
}
.nm-toggle .ic { transition: transform .2s var(--ease); }
.nm-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nm-sub { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 8px 12px; }
.nm-sub[hidden] { display: none; }
.nm-sub a {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 10px; border-radius: var(--r-sm); text-decoration: none;
  color: #B7C7E2; font-size: 15.5px; line-height: 1.5;
  border-left: 2px solid rgba(255,255,255,.14);
}
.nm-sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nm-sub .ic { color: var(--cyan); flex: none; }
.nav-mob-call {
  display: flex !important; align-items: center; gap: 9px; margin-top: 10px;
  justify-content: center; padding: 13px 10px; border-radius: var(--r-sm);
  text-decoration: none; font-size: 16px;
  background: var(--cyan); color: #06243B !important; font-weight: 600 !important;
}
@media (prefers-reduced-motion: reduce) { .nm-toggle .ic { transition: none; } }

@media (min-width: 900px) {
  .nav-desk { display: flex; }
  .head-call { display: inline-flex; padding: 11px 18px; font-size: 15px; min-height: 44px; }
  .nav-toggle, .nav-mob { display: none !important; }
}
/* เมนูย่อยชุดท้ายๆ กางออกทางซ้ายแทน ไม่ให้ล้นขอบจอ */
@media (min-width: 900px) {
  .nav-item:nth-last-child(-n+2) .nav-sub { left: auto; right: 0; }
}

/* -------------------------------------------------------------- ฮีโร่ */
.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(0,168,216,.30), transparent 60%),
    radial-gradient(90% 80% at 5% 100%, rgba(11,77,162,.45), transparent 62%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #E8EDF8;
  padding: 44px 0 52px;
  text-align: center;
  position: relative;
}
.hero-in { display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: 88px; height: 88px; border-radius: 50%; margin-bottom: 20px;
  box-shadow: 0 10px 34px -10px rgba(0,0,0,.6);
}
.hero h1 { color: #fff; margin-bottom: 14px; text-wrap: balance; }
.hero h1 span { color: var(--cyan); }
.hero-sub {
  color: #C6D2E8; max-width: 640px; margin: 0 auto 24px; font-size: 16.5px; line-height: 1.75;
}
.hero .cta-pair { justify-content: center; }
.hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px;
}
.hero-chips li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  color: #DCE5F5; padding: 8px 14px; border-radius: 999px; font-size: 14px; line-height: 1.4;
}
.hero-chips .ic { color: var(--cyan); }

/* บนมือถือฮีโร่ต้องไม่เกิน 70vh เพื่อให้เห็นเนื้อหาถัดไปโผล่ คนจะรู้ว่าเลื่อนต่อได้ */
@media (max-width: 767px) {
  .hero { padding: 22px 0 26px; }
  .hero-logo { width: 62px; height: 62px; margin-bottom: 12px; }
  .hero h1 { font-size: 28px; line-height: 1.3; margin-bottom: 10px; }
  .hero-sub {
    font-size: 15px; line-height: 1.65; margin-bottom: 16px;
  }
  .hero .cta-pair { width: 100%; gap: 9px; }
  .hero .cta-pair .btn { width: 100%; min-height: 48px; padding: 12px 16px; }
  .hero-chips { margin-top: 16px; gap: 6px; }
  .hero-chips li { padding: 6px 11px; font-size: 14px; }
}
/* จอแคบสุด บีบเพิ่มอีกชั้นเพื่อให้ยังเห็นแบนเนอร์ถัดไป */
@media (max-width: 400px) {
  .hero { padding: 16px 0 18px; }
  .hero-logo { width: 50px; height: 50px; margin-bottom: 9px; }
  .hero h1 { margin-bottom: 8px; }
  .hero-sub { -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 14px; }
  .hero .cta-pair .btn { min-height: 46px; }
  .hero-chips { margin-top: 12px; }
  .hero-chips li { padding: 5px 10px; }
}
@media (min-width: 768px) { .hero { padding: 68px 0 76px; } .hero-logo { width: 104px; height: 104px; } .hero-sub { font-size: 18px; } }

/* ------------------------------------------------------- แบนเนอร์สไลด์ */
/* แสดงภาพเต็มใบเสมอ (contain) เพราะเป็นภาพโฆษณาที่มีตัวหนังสือ ครอปแล้วข้อมูลหาย */
.slider-sec { background: var(--navy-2); }
.slider { position: relative; max-width: 1280px; margin-inline: auto; }
.slides {
  position: relative; aspect-ratio: 1080 / 442; min-height: 132px;
  background: var(--navy-2); overflow: hidden;
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.slide.is-on { opacity: 1; }
.slide > a { display: contents; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

.sl-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.88); color: var(--navy);
  display: none; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease);
}
.sl-btn:hover { background: #fff; }
.sl-prev { left: 12px; } .sl-next { right: 12px; }
.slider:hover .sl-btn, .sl-btn:focus-visible { display: inline-flex; }
@media (max-width: 767px) { .sl-btn { display: inline-flex; width: 38px; height: 38px; background: rgba(255,255,255,.8); } }

.sl-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 7px; }
.sl-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: background-color .2s var(--ease), width .2s var(--ease);
}
.sl-dot[aria-selected="true"] { background: var(--cyan); width: 24px; border-radius: 999px; }

/* ------------------------------------------------------------- แบรนด์ */
/* ------------------------------------------------- โปสเตอร์ และนามบัตร */
/* ทั้งสองส่วนใช้สัดส่วนจริงของไฟล์ ไม่ครอป ไม่ใส่กรอบ */
.poster-sec { background: var(--soft); padding: 28px 0; }
.poster-in, .namecard-in { display: flex; justify-content: center; }
.poster-img, .namecard {
  display: block; width: 100%; max-width: 560px; height: auto; border-radius: 14px;
}
@media (min-width: 768px) { .poster-sec { padding: 40px 0; } }

/* ---- นามบัตร (อยู่ในหน้า Company Profile) ---- */
.namecard-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .namecard-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 32px; } }
.namecard-fig { margin: 0; }
.namecard { width: 100%; max-width: 620px; height: auto; border-radius: var(--r); }
.namecard-hold {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 16 / 9; border-radius: var(--r); color: var(--muted); font-size: 14.5px; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, #E3ECF8, #E3ECF8 9px, #D8E4F5 9px, #D8E4F5 18px);
}

/* --------------------------------------------------------------- เซกชัน */
.sec { padding: 52px 0; }
.sec-alt { background: var(--soft); }
@media (min-width: 768px) { .sec { padding: 76px 0; } }

.sec-head { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.kicker {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .06em;
  color: var(--blue-2); background: rgba(0,120,192,.09);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.sec-head .lead { color: var(--muted); font-size: 16.5px; margin-bottom: 0; }
.sec-foot { text-align: center; margin-top: 32px; }

/* ----------------------------------------------------- การ์ดบริการ 2/2/3/3 */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px)  { .svc-grid { gap: 12px; } }
@media (min-width: 768px)  { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .svc-grid { gap: 22px; } }

.svc-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 16px; text-decoration: none; color: inherit; box-shadow: var(--sh);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative;
}
.svc-card.has-img { padding: 0; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--sh-up); border-color: var(--blue-2); }
@media (prefers-reduced-motion: reduce) { .svc-card:hover { transform: none; } }

/* ภาพบริการอยู่บนสุด หัวข้อและคำอธิบายอยู่ใต้ภาพ
   ภาพบริการทุกใบเป็นสัดส่วน 1024x559 เท่ากันหมด จึงล็อกกรอบได้โดยไม่เสียเนื้อภาพ */
.svc-photo { display: block; background: var(--soft); aspect-ratio: 1024 / 559; overflow: hidden; }
.svc-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .35s var(--ease);
}
.svc-card:hover .svc-photo img { animation-play-state: paused; }

.svc-body { display: flex; flex-direction: column; flex: 1; }
.svc-card.has-img .svc-body { padding: 14px 14px 16px; }
.svc-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 10px;
  background: linear-gradient(140deg, rgba(0,168,216,.18), rgba(11,77,162,.16));
  color: var(--blue);
}
.svc-card.has-img .svc-ic {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 8px;
}
.svc-card h3 { font-size: 16px; margin-bottom: 6px; line-height: 1.4; }
.svc-card p {
  font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.svc-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-weight: 600; font-size: 14px;
}
.svc-card:hover .svc-more .ic { transform: translateX(3px); }
.svc-more .ic { transition: transform .2s var(--ease); }
@media (min-width: 768px) {
  .svc-card { padding: 24px 22px; }
  .svc-card.has-img { padding: 0; }
  .svc-card.has-img .svc-body { padding: 18px 20px 22px; }
  .svc-card h3 { font-size: 19px; }
  .svc-card p { font-size: 15px; -webkit-line-clamp: 4; line-clamp: 4; }
}

/* ---- หน้าปกของหัวข้อ "บริการของเรา" ---- */
.svc-cover { margin: 0 0 28px; }
.svc-cover img { width: 100%; height: auto; border-radius: var(--r); }
.svc-cover figcaption {
  margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted);
}
@media (min-width: 768px) { .svc-cover { margin-bottom: 40px; } }

/* --------------------------------------------------- จุดเด่น 2/3/4/4 */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px)  { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 768px)  { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.why { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 16px; }
.why-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 12px;
  background: var(--navy); color: var(--cyan);
}
.why h3 { font-size: 15.5px; margin-bottom: 6px; line-height: 1.45; }
.why p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }
@media (min-width: 768px) { .why h3 { font-size: 17px; } .why p { font-size: 15px; } }

/* ------------------------------------------------ แกลเลอรีผลงาน 2/3/3/4 */
/* ห้ามครอป ห้ามใส่กรอบหรือเงารอบรูป ใช้ระยะห่างแยกรูปแทน */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px)  { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 768px)  { .work-grid { gap: 18px; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.work { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.work img { width: 100%; height: auto; border-radius: var(--r-sm); }  /* สัดส่วนจริงของไฟล์ */

/* ---- ผลงานแบบอัลบั้ม: กดที่รูปหน้าปกเพื่อเปิดดูรูปทั้งชุด ---- */
.work-open {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: none; cursor: zoom-in; border-radius: var(--r-sm);
  transition: transform .2s var(--ease);
}
.work-open:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .work-open:hover { transform: none; } }
.work-open::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-sm);
  background: linear-gradient(180deg, transparent 55%, rgba(8,13,38,.55) 100%);
  opacity: 0; transition: opacity .2s var(--ease);
}
.work-open:hover::after, .work-open:focus-visible::after { opacity: 1; }
.work-badge {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(8,13,38,.78); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 999px;
}
.work-badge .ic { color: var(--cyan); }
.work-hold {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  aspect-ratio: 4 / 3; border-radius: var(--r-sm);
  background: repeating-linear-gradient(135deg, #EDF2FA, #EDF2FA 9px, #E6EDF8 9px, #E6EDF8 18px);
  color: var(--muted); font-size: 14px; text-align: center; padding: 10px;
}
.work figcaption { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.work figcaption strong { color: var(--ink); font-size: 14.5px; line-height: 1.45; font-weight: 600; }
.work-loc { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; }
.work-detail {
  color: var(--muted); font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) {
  .work figcaption strong { font-size: 16px; }
  .work-loc, .work-detail { font-size: 14px; }
}

/* ------------------------------------------------------------ ตารางราคา */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px)  { .price-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .price-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.price {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 20px; box-shadow: var(--sh);
}
.price.is-hi { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(0,120,192,.1), var(--sh-up); }
.price-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 600;
  padding: 4px 13px; border-radius: 999px; white-space: nowrap;
}
.price h3 { font-size: 17px; margin-bottom: 10px; }
.price-num { display: flex; flex-direction: column; gap: 1px; margin-bottom: 14px; }
.price-unit { font-size: 14px; color: var(--muted); }
.price-num strong { font-size: 27px; color: var(--navy); line-height: 1.25; font-weight: 700; }
.price-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.price-list li { display: flex; gap: 8px; font-size: 14px; line-height: 1.6; }
.price-list .ic { color: var(--blue-2); margin-top: 4px; }
.price-note { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.price .btn { margin-top: auto; }
.price-disclaim {
  display: flex; align-items: flex-start; gap: 8px; justify-content: center;
  margin: 22px auto 0; max-width: 700px; text-align: left;
  font-size: 14px; color: var(--muted);
}
.price-disclaim .ic { color: #C98A00; margin-top: 4px; flex: none; }

/* ------------------------------------------------------------ โปรโมชั่น */
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .promo-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.promo {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh);
}
.promo-ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0,168,216,.13); color: var(--blue);
}
.promo h3 { font-size: 17px; margin-bottom: 5px; }
.promo p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.65; }
.promo-until { margin-top: 6px !important; font-size: 14px !important; color: var(--blue) !important; font-weight: 600; }

/* --------------------------------------------------------------- รีวิว */
.rev-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px)  { .rev-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.rev {
  position: relative; margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 20px; box-shadow: var(--sh);
  display: flex; flex-direction: column; gap: 11px;
}
.rev-q { color: rgba(11,77,162,.18); }
.rev p { font-size: 15px; line-height: 1.75; margin: 0; color: var(--body); }
.rev footer { display: flex; flex-direction: column; margin-top: auto; padding-top: 6px; }
.rev footer strong { color: var(--ink); font-size: 15px; }
.rev footer span { color: var(--muted); font-size: 14px; }
.stars { display: inline-flex; gap: 2px; }
.star { color: #D8DFEA; display: inline-flex; }
.star.is-on { color: #F5A623; }
.star.is-on svg { fill: #F5A623; }

/* -------------------------------------------------------------- วิดีโอ */
.vid-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
.vid { margin: 0; }
.vid video { width: 100%; height: auto; border-radius: var(--r-sm); background: #000; }
.vid figcaption { margin-top: 9px; font-size: 14px; color: var(--muted); }

/* ----------------------------------------------------------------- FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 18px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink); font-size: 16px; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--soft); }
.faq summary .ic { flex: none; color: var(--blue); transition: transform .25s var(--ease); }
.faq[open] summary .ic { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; font-size: 15.5px; line-height: 1.75; }
.faq-a p { color: var(--body); }
@media (prefers-reduced-motion: reduce) { .faq summary .ic { transition: none; } }

/* ------------------------------------------------------------- แถบ CTA */
.band {
  background: linear-gradient(140deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff; padding: 44px 0;
}
.band-in { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.band h2 { color: #fff; margin-bottom: 8px; }
.band p { color: #C9D6EC; margin: 0; font-size: 16px; max-width: 620px; }
@media (min-width: 900px) {
  .band { padding: 56px 0; }
  .band-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .band-in .cta-pair { flex: none; }
}

/* ------------------------------------------------------- หัวหน้าเว็บย่อย */
.page-head {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #DCE5F5; padding: 30px 0 40px;
}
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head > .wrap > p { color: #C0CDE4; max-width: 720px; font-size: 16.5px; margin-bottom: 20px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: #93A4C4; margin-bottom: 16px; }
.crumb a { color: #BCCBE6; text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb .ic { color: #61729B; }
.page-cat {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600;
  color: var(--cyan); background: rgba(0,168,216,.12); border: 1px solid rgba(0,168,216,.26);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
}
@media (min-width: 768px) { .page-head { padding: 44px 0 56px; } }

/* --------------------------------------------------------- ค้นหา/ตัวกรอง */
.filter-bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 18px; box-shadow: var(--sh); color: var(--muted);
}
.search-box input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; padding: 14px 0; color: var(--ink); min-width: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--body);
  padding: 9px 15px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--blue-2); color: var(--blue); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-count { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.filter-empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ------------------------------------------------------------- ใบปลิว */
.broch-grid { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
@media (min-width: 900px) { .broch-grid { grid-template-columns: 1fr 1fr; gap: 44px; } }
.broch-text .sec-head { text-align: left; margin: 0 0 14px; }
.broch { margin: 0; }
.broch img { width: 100%; height: auto; border-radius: var(--r-sm); }
.broch figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* -------------------------------------------------- หน้ารายละเอียดบริการ */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: minmax(0,1fr) 330px; gap: 44px; align-items: start; } }
.detail-main { font-size: 16.5px; line-height: 1.8; }
.detail-main h2 { font-size: clamp(20px, 2.6vw, 26px); margin-top: 1.6em; }
.detail-img { width: 100%; height: auto; border-radius: var(--r); margin-bottom: 22px; }
.tick-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5em; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list .ic { color: var(--blue-2); margin-top: 5px; flex: none; }
.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
@media (max-width: 899px) { .detail-side { position: static; } }
.side-links { display: flex; flex-direction: column; gap: 2px; }
.side-links a {
  display: flex; align-items: center; gap: 10px; padding: 11px 10px;
  border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-size: 15px;
  transition: background-color .2s var(--ease);
}
.side-links a:hover { background: var(--soft); color: var(--blue); }
.side-links a span { flex: 1; }
.side-links .ic { color: var(--blue); flex: none; }

/* -------------------------------------------------------- เกี่ยวกับเรา */
.prose { font-size: 16.5px; line-height: 1.85; }
.cat-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .cat-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-list { grid-template-columns: repeat(3, 1fr); } }
.cat-list li {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 18px; font-weight: 500; color: var(--ink); font-size: 15.5px;
}
.cat-list .ic { color: var(--blue-2); flex: none; }

.team-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 20px; box-shadow: var(--sh);
}
.member img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.member-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 14px;
  background: var(--soft); color: var(--blue);
}
.member h3 { margin-bottom: 3px; font-size: 18px; }
.member-role { color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.member p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.7; }

.about-contact { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .about-contact { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }

/* ----------------------------------------------------------- ติดต่อ/ฟอร์ม */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 44px; align-items: start; } }
.contact-col .sec-head { text-align: left; margin: 0 0 20px; }
.contact-col > h2 { margin-bottom: 18px; }

.lead-form { display: flex; flex-direction: column; gap: 14px; }
.f-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .f-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.f-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.f-label b { color: #D2453E; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;              /* ต่ำกว่า 16px แล้ว iOS จะซูมเข้าเอง */
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink); width: 100%; min-height: 50px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.7; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7585' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(0,120,192,.14);
}
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #D2453E; }
.f-err { font-size: 14px; color: #C13A33; min-height: 0; }
.f-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; font-size: 16px; }
.btn-submit { align-self: flex-start; background: var(--blue); color: #fff; box-shadow: var(--sh); }
.btn-submit:hover { background: var(--blue-2); }
.btn-submit .bs-busy { display: none; }
.btn-submit.is-busy .bs-idle { display: none; }
.btn-submit.is-busy .bs-busy { display: inline; }
.btn-submit[disabled] { opacity: .65; cursor: not-allowed; transform: none; }
.f-note { font-size: 14px; color: var(--muted); margin: 0; }
.f-result:empty { display: none; }
.f-result {
  padding: 15px 17px; border-radius: var(--r-sm); font-size: 15px; line-height: 1.7;
  border: 1px solid transparent;
}
.f-result.ok  { background: #EAF7EF; border-color: #BCE3CB; color: #1B6B3A; }
.f-result.bad { background: #FDEDEC; border-color: #F3C6C3; color: #B0322B; }

.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--sh); }
.info-card h3 { font-size: 18px; margin-bottom: 16px; }
.info-list { display: flex; flex-direction: column; gap: 15px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ic { color: var(--blue); margin-top: 3px; flex: none; }
.info-list div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.info-list span { font-size: 14px; color: var(--muted); }
.info-list a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 16px; word-break: break-word; }
.info-list a:hover { color: var(--blue); text-decoration: underline; }
.info-list p { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.65; }

/* ---- การ์ดพื้นที่ให้บริการ (ใช้แทนแผนที่ เพราะทางร้านรับงานนอกสถานที่ ไม่มีหน้าร้าน) ---- */
.area-card { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); border-color: transparent; color: #C6D4EC; }
.area-card h3 { color: #fff; }
.area-lead { font-size: 14.5px; color: #A9BBDA; margin-bottom: 14px; line-height: 1.7; }
.area-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.area-list li {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  color: #DCE6F7; padding: 7px 12px; border-radius: 999px; font-size: 14px; line-height: 1.4;
}
.area-list .ic { color: var(--cyan); }
.area-note { font-size: 14px; color: #9AADCE; margin: 0; line-height: 1.7; }

/* ------------------------------------------------------------ แจ้งเตือน */
.notice {
  display: flex; gap: 13px; align-items: flex-start;
  background: #FFF8E8; border: 1px solid #F0DCA8; border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 24px;
}
.notice .ic { color: #B47F09; flex: none; margin-top: 3px; }
.notice strong { display: block; color: #7A5600; margin-bottom: 4px; font-size: 16px; }
.notice p { margin: 0; font-size: 14.5px; color: #8A6410; line-height: 1.7; }

/* ป้ายข้อมูลตัวอย่าง — เห็นเฉพาะตอนเปิดด้วย ?preview=1 ไม่ขึ้นกับผู้ใช้จริง */
.ph-tag {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: #F97316; color: #fff; font-size: 14px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.mt { margin-top: 20px; }

/* ------------------------------------------------------------- ท้ายเว็บ */
.site-foot { background: var(--navy-2); color: #A9B7D2; padding: 46px 0 0; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
@media (min-width: 640px)  { .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1.2fr .8fr; gap: 36px; } }
.foot-brand img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 12px; }
.foot-name { color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 5px; }
.foot-tag { font-size: 14px; color: #8C9CBC; margin: 0; line-height: 1.7; }
.site-foot h2 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.foot-list { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.foot-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.foot-list .ic { color: var(--cyan); flex: none; margin-top: 4px; }
.foot-list a { color: #C3D0E8; text-decoration: none; word-break: break-word; }
.foot-list a:hover { color: #fff; text-decoration: underline; }
.foot-nav li { display: block; }
.foot-areas { border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px; padding-bottom: 22px; }
.foot-areas h2 { font-size: 14px; margin-bottom: 7px; }
.foot-areas p { font-size: 14px; color: #8C9CBC; margin: 0; line-height: 1.85; }
.foot-base { border-top: 1px solid rgba(255,255,255,.09); padding-top: 20px; padding-bottom: 20px; }
.foot-base p { font-size: 14px; color: #74849F; margin: 0; }

/* ------------------------------------------------- ปุ่มลอยล่างจอ (มือถือ) */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; gap: 1px; background: rgba(255,255,255,.4);
  box-shadow: 0 -4px 20px rgba(20,26,70,.18);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px;                              /* ไม่เกิน 60px ตามมาตรฐาน */
  text-decoration: none; font-weight: 600; font-size: 15.5px;
}
.mb-line { background: var(--line-gr); color: #fff; }
.mb-call { background: var(--cyan); color: #06243B; }
.mb-line .ic { color: #fff; }

/* เว้นที่ท้ายหน้าไม่ให้แถบลอยทับเนื้อหา */
@media (max-width: 899px) {
  .site-foot { padding-bottom: 56px; }
}
@media (min-width: 900px) {
  .mobile-bar { display: none; }
}

@media print {
  .site-head, .mobile-bar, .band, .sl-btn, .sl-dots { display: none !important; }
  body { color: #000; }
}

/* ป้าย HOT LINE หน้าเบอร์โทรบนแถบเมนู ซ่อนบนจอแคบเพื่อไม่ให้ปุ่มล้น */
.head-call .hot { font-weight: 700; letter-spacing: .02em; }
@media (max-width: 1100px) { .head-call .hot { display: none; } }

/* =====================================================================
   ส่วนที่เพิ่มในรอบแก้ไขที่ 2
   ===================================================================== */

/* ------------------------------------------------- แถบยี่ห้อวิ่ง (marquee) */
.mq-sec {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 55%, var(--navy-2) 100%);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mq-wrap { display: flex; flex-direction: column; gap: 10px; }
.mq-label {
  margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .06em;
  color: #A9BFE2; text-transform: none;
}
.mq {
  position: relative; overflow: hidden;
  /* จางขอบซ้ายขวาให้ดูเหมือนวิ่งต่อไปเรื่อยๆ ไม่ใช่โผล่มาแล้วหายวับ */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mq-track {
  display: flex; width: max-content;
  /* ความเร็วคงที่เท่ากันทุกขนาดจอ สคริปต์คำนวณเวลาต่อรอบจากความกว้างจริงให้ใน --mq-dur
     ไม่หยุดตอนเอาเมาส์ไปชี้ เพราะเป็นแถบโลโก้ ไม่มีอะไรให้อ่านค้างไว้ */
  animation: mq-run var(--mq-dur, 12s) linear infinite;
}
.mq-set { display: flex; align-items: center; gap: 12px; padding-right: 12px; }
.mq-item {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #E2EAF8; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 10px 16px; border-radius: 999px;
}
.mq-item .ic { color: var(--cyan); }
.mq-logo { padding: 8px 14px; background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.5); }
.mq-logo img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }

@keyframes mq-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* ปิดอนิเมชันให้คนที่ตั้งค่าไม่อยากเห็นภาพเคลื่อนไหว แล้วให้ปัดดูเองแทน */
@media (prefers-reduced-motion: reduce) {
  .mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .mq-track { animation: none; }
  .mq-set:last-child { display: none; }
}
@media (min-width: 768px) {
  .mq-sec { padding: 22px 0; }
  .mq-item { font-size: 16px; padding: 11px 18px; }
  .mq-logo img { height: 40px; }
}

/* ------------------------------------------------------ กล่องดูอัลบั้มรูป */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,10,30,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.lb[hidden] { display: none; }
.lb-card {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 1100px; height: 100%; max-height: 100%;
}
.lb-bar { display: flex; align-items: center; gap: 12px; flex: none; }
.lb-title {
  margin: 0; flex: 1; min-width: 0; color: #fff; font-weight: 600; font-size: 15.5px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-count { margin: 0; flex: none; color: #9FB2D4; font-size: 14px; }
.lb-close {
  flex: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; color: #fff;
  transition: background-color .2s var(--ease);
}
.lb-close:hover { background: rgba(255,255,255,.24); }

.lb-stage {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
/* รูปในอัลบั้มแสดงเต็มใบเสมอ ไม่ครอป */
.lb-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: var(--r-sm); object-fit: contain;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; padding: 0; cursor: pointer; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.9); border: 0; border-radius: 50%; color: var(--navy);
  transition: background-color .2s var(--ease);
}
.lb-nav:hover { background: #fff; }
.lb-nav[hidden] { display: none; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

.lb-thumbs {
  flex: none; display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.lb-thumbs[hidden] { display: none; }
.lb-thumbs button {
  flex: none; width: 66px; height: 48px; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #0C1330;
  opacity: .55; transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--cyan); }

body.lb-open { overflow: hidden; }

@media (min-width: 768px) {
  .lb { padding: 20px; }
  .lb-card { gap: 14px; }
  .lb-title { font-size: 17px; }
  .lb-prev { left: -4px; }
  .lb-next { right: -4px; }
  .lb-thumbs button { width: 88px; height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-close, .lb-nav, .lb-thumbs button { transition: none; }
}

/* กันข้อความที่ต้องอ่านติดกัน เช่น เบอร์โทร ไม่ให้ถูกตัดคนละบรรทัด */
.nowrap { white-space: nowrap; }
.hero-sub p { margin: 0 0 .55em; }
.hero-sub p:last-child { margin-bottom: 0; }

/* =====================================================================
   ธีมสีน้ำเงินเข้ม (รอบแก้ไขสุดท้าย)
   ส่วนใหญ่เปลี่ยนตามตัวแปรสีด้านบนแล้ว ตรงนี้คือจุดที่เคยฝังสีอ่อนไว้
   ===================================================================== */

/* พื้นหลังมีแสงฟุ้งจางๆ ให้ไม่ดูเป็นดำตัน */
body {
  background:
    radial-gradient(90% 50% at 12% 0%, rgba(29,111,222,.16), transparent 60%),
    radial-gradient(70% 45% at 92% 12%, rgba(43,209,245,.10), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}
@media (max-width: 767px) { body { background-attachment: scroll; } }

.sec-alt { border-block: 1px solid var(--line); }

/* การ์ดทุกชนิดบนพื้นมืด ต้องมีขอบอ่อนๆ ไม่งั้นจะจมหายไปกับพื้นหลัง */
.svc-card, .why, .price, .promo, .rev, .faq, .info-card, .member,
.cat-list li, .search-box, .chip, .btn-ghost, .namecard-hold, .work-hold, .cp-page {
  border-color: var(--line);
}
.btn-ghost { color: var(--cyan); }
.btn-ghost:hover { color: #fff; border-color: var(--cyan); box-shadow: var(--glow-sm); }
.chip:hover { color: #fff; border-color: var(--cyan); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--glow-sm); }

/* ---- ขอบเรืองแสงตามที่ทางร้านขอ ---- */
.kicker {
  color: var(--cyan); background: rgba(43,209,245,.08);
  border: 1px solid rgba(43,209,245,.3); box-shadow: var(--glow-sm);
}
.btn-primary { box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: var(--glow), var(--sh-up); }
.btn-call { background: var(--cyan); color: #04202F; box-shadow: var(--glow); }
.btn-call:hover { background: #55DDFB; color: #04202F; }
.hero h1 span { text-shadow: 0 0 26px rgba(43,209,245,.55); }
.hero-chips li { box-shadow: var(--glow-sm); }
.price.is-hi { border-color: var(--cyan); box-shadow: var(--glow), var(--sh-up); }
.price-flag { box-shadow: var(--glow-sm); }
.svc-card:hover { border-color: var(--cyan); box-shadow: var(--glow-sm), var(--sh-up); }
.work-open:focus-visible, .cp-page .work-open:hover { box-shadow: var(--glow-sm); }

/* ---- จุดที่เคยเป็นสีอ่อน ---- */
.nav-sub { background: var(--card); box-shadow: 0 18px 44px -14px rgba(0,0,0,.85); }
.nav-sub a { color: var(--ink); }
.nav-sub a:hover { background: rgba(43,209,245,.12); color: var(--cyan); }
.site-head { background: rgba(7,11,30,.92); }
.site-foot { background: var(--navy-2); border-top: 1px solid var(--line); }
.work-hold, .namecard-hold {
  background: repeating-linear-gradient(135deg, #0D1631, #0D1631 9px, #111C3C 9px, #111C3C 18px);
  color: var(--muted);
}
.star { color: rgba(141,160,196,.35); }
.rev-q { color: rgba(43,209,245,.22); }
.svc-photo, .promo-photo { background: var(--soft); }
.sl-dot { background: rgba(255,255,255,.35); }

/* ช่องกรอกบนพื้นมืด */
.field input, .field select, .field textarea {
  background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(141,160,196,.75); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(43,209,245,.18);
  background: rgba(255,255,255,.06);
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238DA0C4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}
.field select option { background: var(--card); color: var(--ink); }
.f-label { color: var(--ink); }
.f-label b { color: #FF8A80; }
.f-err { color: #FF9C93; }
.f-result.ok  { background: rgba(6,199,85,.12); border-color: rgba(6,199,85,.4); color: #7BE8A8; }
.f-result.bad { background: rgba(255,90,80,.12); border-color: rgba(255,90,80,.4); color: #FFA79F; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #FF6B60; }

.notice { background: rgba(245,166,35,.1); border-color: rgba(245,166,35,.34); }
.notice .ic { color: #F5C265; }
.notice strong { color: #FFD79A; }
.notice p { color: #E3CBA4; }
.price-disclaim .ic { color: #F5C265; }

.info-list a { color: var(--ink); }
.info-list a:hover { color: var(--cyan); }
.info-list p { color: var(--body); }
.prose, .detail-main { color: var(--body); }
.detail-main a, .faq-a a { color: var(--cyan); }
.mobile-bar { background: rgba(255,255,255,.14); }

/* ---- แถบข้อความวิ่งบนสุด ---- */
.tk {
  position: relative; overflow: hidden; z-index: 91;
  background: linear-gradient(90deg, var(--blue) 0%, #0D3F8E 50%, var(--blue) 100%);
  border-bottom: 1px solid rgba(43,209,245,.35);
  box-shadow: 0 0 26px -6px rgba(43,209,245,.5);
}
.tk-track { display: flex; width: max-content; animation: tk-run var(--tk-dur, 18s) linear infinite; }
.tk:hover .tk-track { animation-play-state: paused; }
.tk-set { display: flex; align-items: center; }
.tk-item {
  display: inline-flex; align-items: center; white-space: nowrap;
  color: #EAF4FF; font-size: 14px; font-weight: 600; line-height: 1;
  padding: 9px 0; margin-inline: 22px;
  text-shadow: 0 0 12px rgba(43,209,245,.5);
}
.tk-item::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); margin-left: 22px; box-shadow: 0 0 8px var(--cyan);
}
@keyframes tk-run { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) {
  .tk { overflow-x: auto; }
  .tk-track { animation: none; }
  .tk-set:not(:first-child) { display: none; }
}

/* ---- ภาพขยับตอนเลื่อนถึง (ลูกค้าขอให้ภาพเคลื่อนไหวได้) ---- */
/* ภาพค่อยๆ คลายจากซูมเล็กน้อยตอนโผล่เข้าจอ เล่นครั้งเดียว ไม่รบกวนการอ่าน
   ใช้เฉพาะภาพที่อยู่ในกรอบซึ่งตัดขอบได้ ไม่งั้นภาพที่เต็มความกว้างจะล้นจนหน้าเว็บเลื่อนซ้ายขวาได้
   ส่วนภาพใหญ่ที่ลอยอยู่เดี่ยวๆ ใช้จางเข้าและขยับขึ้นจาก .reveal ของกรอบแทน */
.svc-photo, .promo-photo, .work-open, .cp-page .work-open { overflow: hidden; }

html.js .reveal .promo-photo img,
html.js .reveal .work-open img,
html.js .reveal .cp-page-img {
  transform: scale(1.06);
  transition: transform .9s var(--ease);
}
html.js .reveal.in .promo-photo img,
html.js .reveal.in .work-open img,
html.js .reveal.in .cp-page-img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal .promo-photo img,
  html.js .reveal .work-open img, html.js .reveal .cp-page-img {
    transform: none; transition: none;
  }
}

/* ---- ข้อเสนอของเรา แบบมีรูป ---- */
.promo.has-img { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.promo-photo { display: block; aspect-ratio: 1024 / 559; overflow: hidden; }
.promo-photo img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { display: flex; gap: 14px; align-items: flex-start; }
.promo.has-img .promo-body { padding: 18px 20px 22px; }

/* ---- บล็อกภาพสต๊อกสินค้า ---- */
.stock-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 900px) { .stock-grid { grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: 44px; } }
.stock-fig { margin: 0; display: flex; justify-content: center; }
.stock-img { width: 100%; max-width: 420px; height: auto; border-radius: var(--r); }
.stock-text .kicker { margin-bottom: 12px; }
.stock-text h2 { margin-bottom: 14px; }
.stock-text p { color: var(--body); font-size: 16.5px; line-height: 1.8; }
.stock-text .cta-pair { margin-top: 20px; }

/* ---- หน้า Company Profile แบบรูปภาพ ---- */
.cp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px)  { .cp-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .cp-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.cp-page { margin: 0; }
.cp-page .work-open {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  background: var(--card); border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.cp-page .work-open:hover { transform: translateY(-3px); border-color: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .cp-page .work-open:hover { transform: none; } }
.cp-page img { width: 100%; height: auto; display: block; }
.cp-no {
  position: absolute; top: 6px; left: 6px;
  background: rgba(7,11,30,.82); color: #fff; font-size: 14px; font-weight: 600;
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

.mt-sm { margin-top: 16px; }

/* แถบไอคอนแทนภาพ สำหรับบริการที่ยังไม่มีรูปหน้างาน */
.svc-photo.is-blank {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(70% 90% at 50% 40%, rgba(43,209,245,.16), transparent 70%),
    linear-gradient(150deg, #142149 0%, #0C1330 100%);
  color: rgba(43,209,245,.75);
  border-bottom: 1px solid var(--line);
}

/* =====================================================================
   ภาพหน้าปกการ์ดบริการ — ขยับช้าๆ ต่อเนื่อง (ลูกค้าขอให้ภาพเคลื่อนไหว)
   เล่นเฉพาะการ์ดที่อยู่ในจอ (สคริปต์ใส่คลาส is-live ให้) เพื่อไม่ให้เปลืองเครื่อง
   ขยับด้วย transform อย่างเดียว การ์ดจึงไม่ขยับตำแหน่งและไม่ทำให้หน้าเว็บกระตุก
   ===================================================================== */
@keyframes svc-pan {
  0%   { transform: scale(1.08) translate3d(-1.4%,  1.0%, 0); }
  50%  { transform: scale(1.14) translate3d( 1.6%, -1.4%, 0); }
  100% { transform: scale(1.08) translate3d(-1.4%,  1.0%, 0); }
}
.svc-photo img {
  will-change: transform;
  transform: scale(1.08);
}
.svc-card.is-live .svc-photo img {
  animation: svc-pan 18s ease-in-out infinite;
}
/* ไล่เวลากันไม่ให้ทุกใบขยับพร้อมกันจนตาลาย */
.svc-grid > *:nth-child(3n+2) .svc-card.is-live .svc-photo img,
.svc-grid > .svc-card.is-live:nth-child(3n+2) .svc-photo img { animation-delay: -6s; }
.svc-grid > *:nth-child(3n+3) .svc-card.is-live .svc-photo img,
.svc-grid > .svc-card.is-live:nth-child(3n+3) .svc-photo img { animation-delay: -12s; }

@media (prefers-reduced-motion: reduce) {
  .svc-photo img { transform: none; will-change: auto; }
  .svc-card.is-live .svc-photo img { animation: none; }
}
