/* ==========================================================================
   decor.css — ช่องรูปที่รอใส่ไฟล์ / รูปพื้นหลัง section / ลวดลายตกแต่ง
   ========================================================================== */

/* ---------- ช่องรูปที่ยังไม่มีไฟล์ (สร้างจาก img[data-slot]) ---------- */
.ph--slot { gap: 4px; line-height: 1.35; }
.ph--slot b { font-size: 13px; color: #6f86a6; }
.ph--slot .ph__file { font-family: Consolas, "Courier New", monospace; font-size: 11.5px; color: #8aa0bd; word-break: break-all; }
.ph--slot .ph__size {
  margin-top: 2px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #c9d8ea;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-primary);
}

/* ช่องรูปในแต่ละตำแหน่ง */
.portfolio__media .ph,
.clients__logo .ph { border: 0; border-radius: 0; min-height: 0; }
.portfolio__media img { object-fit: cover; padding: 0; }

.clients__logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}
.clients__logo img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.clients__logo:hover img { filter: none; opacity: 1; }
.clients__logo .ph { padding: 4px; background: transparent; }
.clients__logo .ph svg { width: 22px; height: 22px; }

.testimonial__avatar { display: block; overflow: hidden; background: var(--c-tint-2); border: 1px solid var(--c-line); }
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__avatar .ph { min-height: 0; padding: 0; border: 0; border-radius: 50%; }
.testimonial__avatar .ph b,
.testimonial__avatar .ph small { display: none; }

/* ---------- รูปพื้นหลัง section (data-bg) ---------- */
.bg-slot {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  padding: 3px 10px;
  border: 1px dashed currentColor;
  border-radius: 6px;
  background: rgba(255, 255, 255, .85);
  color: var(--c-primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11.5px;
  pointer-events: none;
}

/* พื้นหลังสว่าง (เกี่ยวกับเรา) — รูปจางทางซ้ายให้อ่านตัวหนังสือง่าย */
.bg-photo-light {
  background-image:
    linear-gradient(90deg, rgba(234, 243, 252, .98) 0%, rgba(234, 243, 252, .93) 40%, rgba(234, 243, 252, .78) 100%),
    var(--bg-img, none);
  background-size: cover;
  background-position: center;
}

/* พื้นหลังเข้ม (สั่งทำ / ขอราคา) — มีแสงไล่สีแม้ยังไม่มีรูป */
.bg-photo-dark {
  background-image:
    radial-gradient(circle at 88% 6%, rgba(47, 143, 224, .28), transparent 38%),
    radial-gradient(circle at 4% 96%, rgba(47, 143, 224, .18), transparent 34%),
    linear-gradient(rgba(11, 42, 91, .94), rgba(11, 42, 91, .9)),
    var(--bg-img, none);
  background-size: cover;
  background-position: center;
}

/* แถบ CTA */
.cta-band {
  background-image:
    linear-gradient(120deg, rgba(22, 86, 184, .94) 0%, rgba(18, 58, 120, .92) 100%),
    var(--bg-img, none);
  background-size: cover;
  background-position: center;
}

/* ---------- ลวดลายรูหนามเตยแบบกระดาษต่อเนื่อง ---------- */
.perf { position: relative; }
.perf::before,
.perf::after {
  content: "";
  position: absolute;
  top: 14px; bottom: 14px;
  width: 26px;
  background: radial-gradient(circle, #cddcee 4px, transparent 4.6px) center 6px / 26px 24px repeat-y;
  pointer-events: none;
}
.perf::before { left: 6px; border-right: 1.5px dashed #d3e0f0; }
.perf::after { right: 6px; border-left: 1.5px dashed #d3e0f0; }
.ncr-spec.perf { padding-inline: 64px; }

/* จุดลายตารางจางๆ บนพื้นฟ้าอ่อน */
.section--tint-soft {
  background-image: radial-gradient(#dbe6f4 1px, transparent 1.3px);
  background-size: 22px 22px;
}

/* ---------- Hero: ป้ายลอยบนรูปสินค้า ---------- */
.hero__badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-navy);
  animation: badge-float 5s ease-in-out infinite;
}
.hero__badge b { font-size: 22px; line-height: 1; color: var(--c-primary); }
.hero__badge svg { width: 18px; height: 18px; color: var(--c-open); }
.hero__badge--a { top: 10%; left: 2%; }
.hero__badge--b { bottom: 8%; right: 4%; animation-delay: -2.5s; }
@keyframes badge-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- วิธีเตรียมไฟล์ ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.guide-card {
  position: relative;
  padding: 26px 24px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.guide-card .icon-badge { margin-bottom: 14px; }
.guide-card h3 { font-size: 17px; margin-bottom: 10px; }
.guide-card__no {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-tint);
}
.guide-card__list li { position: relative; padding-left: 18px; font-size: 14px; color: var(--c-muted); line-height: 1.6; }
.guide-card__list li + li { margin-top: 6px; }
.guide-card__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-sky);
}
.guide-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  margin: 26px auto 0;
  padding: 14px 18px;
  border: 1px dashed #bcd0ea;
  border-radius: var(--radius);
  background: #fff;
  font-size: 14.5px;
  color: var(--c-navy-2);
}
.guide-tip svg { width: 26px; height: 26px; flex: none; color: var(--c-primary); }

/* ---------- แชท: ปุ่มหลัก / ปุ่มเลือกหลายข้อ / ข้อความชวนคุย ---------- */
.chat__chip--main { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; }
.chat__chip--main:hover { background: var(--c-primary-hover); }
.chat__chip--msg { border-color: var(--c-msg); color: var(--c-msg); }
.chat__chip--msg:hover,
.chat__chip--msg.chat__chip--main { background: var(--c-msg); border-color: var(--c-msg); color: #fff; }
.chat__chip--msg.chat__chip--main:hover { background: var(--c-msg-hover); }
.chat__chip--toggle.is-on { background: var(--c-tint); border-color: var(--c-primary); font-weight: 700; }
.chat__chip--toggle.is-on::before { content: "✓ "; }
.chat__chips.is-used { opacity: .55; }
.chat__chips.is-used .chat__chip { cursor: default; }
.chat__chips.is-used .chat__chip:hover { background: #fff; color: var(--c-primary); border-color: #bcd0ea; }
.chat__chips.is-used .chat__chip--main:hover { background: var(--c-primary); color: #fff; }

.chat__teaser {
  position: relative;
  max-width: 270px;
  animation: chat-pop .3s var(--ease);
}
.chat__teaser[hidden] { display: none; }
.chat__teaser-body {
  display: block;
  width: 100%;
  padding: 14px 34px 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: 16px 16px 4px 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 42, 91, .22);
  text-align: left;
}
.chat__teaser-body strong { display: block; font-size: 15px; color: var(--c-navy); }
.chat__teaser-body span { display: block; margin-top: 2px; font-size: 13px; color: var(--c-muted); line-height: 1.45; }
.chat__teaser-close {
  position: absolute;
  top: 8px; right: 8px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-muted);
}
.chat__teaser-close svg { width: 12px; height: 12px; }
.chat.is-open .chat__teaser { display: none; }

/* ---------- Facebook Messenger (ช่องทางหลักสำหรับถามราคา) / LINE (แอดเพื่อน) ---------- */
:root { --c-msg: #0866ff; --c-msg-hover: #0756d6; }
.btn--msg { background: var(--c-msg); color: #fff; box-shadow: 0 8px 18px rgba(8, 102, 255, .25); }
.btn--msg:hover { background: var(--c-msg-hover); color: #fff; }
.btn--line-ghost { background: #fff; color: #07a547; border-color: var(--c-line-app); }
.btn--line-ghost:hover { background: var(--c-line-app); color: #fff; }
.chat__fab--msg { background: var(--c-msg); }
.chat__handoff button { background: var(--c-msg); }

/* ---------- แบนเนอร์จัดส่งทั่วประเทศ ---------- */
.ship {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--c-line);
  border-radius: 22px;
  background: linear-gradient(100deg, #fff 0%, var(--c-tint-2) 55%, var(--c-tint) 100%);
  box-shadow: var(--shadow-sm);
}
.ship__media { position: absolute; inset: 0 0 0 28%; }
.ship__media img,
.ship__media .ph { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.ship__media .ph { border: 0; border-radius: 0; background: transparent; }
/* ไล่ขอบรูปด้านซ้ายให้กลืนกับพื้นขาว */
.ship__media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 38%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.ship__body { position: relative; z-index: 2; max-width: 470px; padding: 40px 0 40px 40px; }
.ship__title { margin-bottom: 10px; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.25; color: var(--c-primary); }
.ship__lead { margin-bottom: 20px; color: var(--c-muted); }
.ship__facts { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 24px; }
.ship__facts li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; color: var(--c-muted); }
.ship__facts b { display: block; font-size: 13.5px; color: var(--c-navy); }
.ship__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); color: var(--c-primary); }
.ship__icon svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .ship__media { inset: 0 0 0 20%; opacity: .55; }
  .ship__body { max-width: none; padding-right: 32px; }
}
@media (max-width: 767px) {
  .ship { min-height: 0; }
  .ship__media { position: relative; inset: auto; height: 190px; opacity: 1; }
  .ship__media::before { inset: 0 0 auto 0; width: auto; height: 40%; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%); }
  .ship__body { padding: 26px 20px 8px; }
  .ship { display: flex; flex-direction: column-reverse; }
}

/* ---------- เสียงจากลูกค้า / แถบ CTA / FAQ + การ์ดติดต่อ ---------- */
.stars { display: block; margin-bottom: 10px; font-size: 17px; letter-spacing: 3px; color: #f5b301; }

.btn--green { background: var(--c-open); color: #fff; box-shadow: 0 8px 18px rgba(31, 180, 106, .3); }
.btn--green:hover { background: #179a58; color: #fff; }

.cta-band { padding-block: 34px; }
.cta-band__text { position: relative; z-index: 1; flex: 1 1 320px; }
.cta-band__pic { position: relative; z-index: 1; flex: 1 1 260px; display: flex; justify-content: center; align-self: stretch; align-items: center; max-width: 380px; }
.cta-band__pic img { width: auto; max-width: 100%; max-height: 150px; margin-block: -14px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3)); }
.cta-band__pic .ph--slot { height: 110px; min-height: 0; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); }
.cta-band__pic .ph--slot b,
.cta-band__pic .ph--slot svg { color: #fff; }
.cta-band__pic .ph--slot .ph__file { color: #cfe0f7; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
/* แถวคำถามกระชับ (เดิมสูง 62px ทำให้การ์ดฝั่งขวายืดตาม) */
.faq-grid .faq__item + .faq__item { margin-top: 8px; }
.faq-grid .faq__item summary { padding: 11px 52px 11px 18px; font-size: 14.5px; }
.faq-grid .faq__item summary::after { width: 24px; height: 24px; margin-top: -12px; font-size: 17px; }
.faq-grid .faq__item p { padding: 0 18px 14px; font-size: 14px; }
.faq-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #fff 0%, var(--c-tint) 100%);
  box-shadow: var(--shadow-sm);
}
.faq-card__body { position: relative; z-index: 2; max-width: 60%; padding: 30px 0 30px 30px; }
.faq-card__body h3 { margin-bottom: 2px; font-size: 22px; }
.faq-card__body > p { margin-bottom: 18px; color: var(--c-muted); }
.faq-card__list { display: grid; gap: 12px; margin-bottom: 24px; }
.faq-card__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; word-break: break-word; }
.faq-card__list svg { width: 20px; height: 20px; flex: none; color: var(--c-primary); }
.faq-card__list a { color: var(--c-navy); font-weight: 700; font-size: 13.5px; }
.faq-card__list li > span { display: block; line-height: 1.35; }
.faq-card__list small { display: block; font-size: 12.5px; font-weight: 400; color: var(--c-muted); }

/* รูปเต็มการ์ด (ออฟฟิศเบลอ + เจ้าหน้าที่ทางขวา) ไล่สีขาวทางซ้ายให้อ่านข้อความได้ */
.faq-card__pic { position: absolute; inset: 0; z-index: 0; }
.faq-card__pic img,
.faq-card__pic .ph { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.faq-card__pic .ph { border: 0; border-radius: 0; background: transparent; }
.faq-card__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .75) 38%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.faq-card__bubble {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
}
.faq-card__bubble::after {
  content: "";
  position: absolute;
  bottom: -6px; right: 28px;
  width: 12px; height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr; }
  .cta-band__text,
  .cta-band__pic { flex: 0 0 auto; }
  .cta-band__pic { max-width: 100%; justify-content: flex-start; }
}
@media (max-width: 767px) {
  .cta-band__pic { display: none; }
  .faq-card { min-height: 0; }
  .faq-card__body { max-width: none; padding: 24px 20px 8px; }
  .faq-card__pic { position: relative; inset: auto; height: 230px; }
  .faq-card__pic::after { display: none; }
}

/* ---------- อื่นๆ ---------- */
/* หัวข้อในการ์ดขาวบนพื้นเข้ม (เดิม .section--navy h3 ทำให้หัวข้อขั้นตอนเป็นสีขาวมองไม่เห็น) */
.section--navy .panel h3 { color: var(--c-navy); }
/* ตัวอักษรในช่องกรอกบนการ์ดขาว (เดิมสืบทอดสีเทาอ่อนจากพื้นเข้ม อ่านยาก) */
.section--navy .panel { color: var(--c-text); }
.social a[hidden] { display: none; }
.site-header__cta { border: 0; }

@media (max-width: 1024px) {
  .guide-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .perf::before, .perf::after { display: none; }
  .ncr-spec.perf { padding-inline: 16px; }
  .hero__badge { padding: 6px 10px; font-size: 12px; }
  .hero__badge b { font-size: 17px; }
  .hero__badge--a { top: 2%; left: 0; }
  .hero__badge--b { bottom: 2%; right: 0; }
  .chat__teaser { max-width: calc(100vw - 100px); }
}
