/* ที.วาย.ซี กรุ๊ป ทีม — ดำ / เหลืองแบรนด์ / ครีม (ลูกค้าไม่เอาสีขาวและสีแดง) */
:root {
  --ink: #15140f;
  --ink-2: #222019;
  --ink-3: #322f26;
  --paper: #f4efe3;
  --paper-2: #ebe4d3;
  --paper-3: #e0d6bf;
  --cream: #f6f0df;
  --cream-muted: #cfc6b0;
  --text: #1d1b15;
  --muted: #5b5547;
  --yellow: #ffe23c;
  --yellow-2: #f2cd00;
  --gold-text: #6b5300;
  --line: #00873e;
  --line-2: #006f33;
  --err: #a8430b;
  --ok: #2f6b34;

  --r: 14px;
  --r-sm: 10px;
  --gap: 10px;
  --pad: 16px;
  --header: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(21, 20, 15, .06), 0 4px 14px rgba(21, 20, 15, .06);
  --shadow-up: 0 2px 4px rgba(21, 20, 15, .08), 0 14px 30px rgba(21, 20, 15, .12);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gap: 18px; --pad: 24px; } }
@media (min-width: 1024px) { :root { --gap: 24px; --pad: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow-2); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 860px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.4; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn-primary, .btn-call { background: var(--yellow); color: var(--ink); }
.btn-primary:hover, .btn-call:hover { background: var(--yellow-2); }
.btn-line { background: var(--line); color: var(--cream); }
.btn-line:hover { background: var(--line-2); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost-light { border-color: rgba(246, 240, 223, .55); color: var(--cream); background: rgba(21, 20, 15, .25); }
.btn-ghost-light:hover { border-color: var(--yellow); color: var(--yellow); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-weight: 600; color: var(--gold-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--yellow-2); }
.text-link .ic { width: 1.1em; height: 1.1em; }
.sec-dark .text-link { color: var(--yellow); }

/* ---------- หัวเว็บ ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--cream); border-bottom: 1px solid rgba(255, 226, 60, .18); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.brand-text strong { font-size: 16px; letter-spacing: .02em; color: var(--yellow); white-space: nowrap; }
.brand-text small { font-size: 14px; color: var(--cream-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--cream-muted); transition: color .2s, background-color .2s; }
.nav ul a:hover { color: var(--cream); background: var(--ink-3); }
.nav ul a[aria-current='page'] { color: var(--yellow); }
.nav-cta { display: flex; gap: 8px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--ink-3); color: var(--cream); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ic { width: 24px; height: 24px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded='true'] .ic-open { display: none; }
.menu-btn[aria-expanded='true'] .ic-close { display: block; }

@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 20px; }
}
@media (max-width: 1023.98px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: var(--header) 0 auto 0; background: var(--ink); padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--ink-3); display: none; max-height: calc(100dvh - var(--header)); overflow: auto; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--ink-3); border-radius: 0; }
  .nav-cta { margin-top: 16px; flex-wrap: wrap; }
  .nav-cta .btn { flex: 1 1 160px; min-height: 48px; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; color: var(--cream); background: var(--ink); overflow: hidden; height: min(68vh, 640px); min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 768px) { .hero { height: min(82vh, 780px); min-height: 520px; } }
.hero-track { position: absolute; inset: 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 20, 15, .45) 0%, rgba(21, 20, 15, .1) 30%, rgba(21, 20, 15, .55) 62%, rgba(21, 20, 15, .9) 100%); }
@media (min-width: 1024px) { .hero-shade { background: linear-gradient(90deg, rgba(21, 20, 15, .85) 0%, rgba(21, 20, 15, .55) 45%, rgba(21, 20, 15, .1) 75%), linear-gradient(180deg, rgba(21, 20, 15, .35), transparent 30%); } }
.hero-copy { position: relative; padding-bottom: 76px; display: grid; }
.hero-text { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s var(--ease); pointer-events: none; }
.hero-text.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero h1, .hero .h1 { font-size: clamp(1.85rem, 1.2rem + 3vw, 3.6rem); font-weight: 700; max-width: 18ch; line-height: 1.4; margin: 0 0 12px; text-wrap: balance; }
.hero-sub { font-size: clamp(1rem, .95rem + .4vw, 1.25rem); color: var(--cream-muted); max-width: 46ch; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; grid-row: 2; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(246, 240, 223, .45); background: rgba(21, 20, 15, .4); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.hero-arrow:hover { border-color: var(--yellow); color: var(--yellow); }
.hero-dots { display: flex; gap: 2px; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative; }
.hero-dots button::after { content: ''; position: absolute; left: 8px; right: 8px; top: 20px; height: 4px; border-radius: 2px; background: rgba(246, 240, 223, .4); transition: background-color .3s; }
.hero-dots button[aria-selected='true']::after { background: var(--yellow); }
.hero-empty { min-height: 360px; }
@media (max-width: 479.98px) { .hero-cta .btn { flex: 1 1 100%; } .hero-copy { padding-bottom: 70px; } }

/* ---------- ส่วนต่างๆ ---------- */
.sec { padding: 56px 0; }
@media (min-width: 1024px) { .sec { padding: 96px 0; } }
.sec-alt { background: var(--paper-2); }
.sec-dark { background: var(--ink); color: var(--cream); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); flex: 1 1 520px; }
.sec-head .kicker { flex-basis: 100%; }
.sec-text { flex-basis: 100%; color: var(--cream-muted); max-width: 60ch; margin: 4px 0 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--gold-text); margin: 0 0 10px; }
.kicker::before { content: ''; width: 28px; height: 4px; border-radius: 2px; background: var(--yellow-2); }
.sec-dark .kicker, .page-hero .kicker, .cta-band .kicker { color: var(--yellow); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 68ch; }

.intro-grid { display: grid; gap: 28px; margin-bottom: 40px; }
.intro-grid h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); margin-bottom: 16px; }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; } }

.facts, .meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li, .meta li { display: flex; gap: 12px; align-items: center; background: var(--paper-2); border-radius: var(--r); padding: 14px 16px; }
.facts .ic, .meta .ic { width: 26px; height: 26px; color: var(--gold-text); }
.facts small, .meta small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.facts span, .meta span { font-weight: 600; line-height: 1.45; }
.facts a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
.meta { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.page-hero .meta li { background: var(--ink-2); }
.page-hero .meta .ic { color: var(--yellow); }
.page-hero .meta small { color: var(--cream-muted); }
@media (min-width: 768px) { .meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* จุดเด่น: 2 / 3 / 4 / 4 */
.strengths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 480px) { .strengths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .strengths { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.strengths li { background: var(--paper-2); border-radius: var(--r); padding: 18px 16px; }
.sec-alt .strengths li { background: var(--paper); }
.strength-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--yellow); color: var(--ink); margin-bottom: 12px; flex: none; }
.strength-ic .ic { width: 26px; height: 26px; }
.strengths h3 { font-size: 17px; margin-bottom: 6px; }
.strengths p { font-size: 15px; color: var(--muted); line-height: 1.6; }
@media (min-width: 768px) { .strengths li { padding: 24px 22px; } .strengths h3 { font-size: 19px; } .strengths p { font-size: 16px; } }

/* การ์ดบริการ: 2 / 2 / 3 / 4 — รูปคงสัดส่วนเดิม */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.sec:not(.sec-alt) .card { background: var(--paper-2); box-shadow: none; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-media img { width: 100%; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; }
.card h3 { font-size: 16px; line-height: 1.4; }
.card-text { font-size: 15px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; color: var(--gold-text); font-size: 15px; }
.card-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; margin-top: 2px; }
.card-more .ic { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.tag { align-self: flex-start; font-size: 14px; font-weight: 600; line-height: 1.4; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
@media (min-width: 768px) { .card-body { padding: 16px 18px 20px; gap: 8px; } .card h3 { font-size: 19px; } .card-text { font-size: 16px; } }
@media (max-width: 479.98px) { .card-text { -webkit-line-clamp: 2; font-size: 14px; } }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
  .card:hover .card-more .ic { transform: translateX(3px); }
}

/* ผลงาน + แกลเลอรี: masonry คงสัดส่วนเดิม ไม่ครอป ไม่มีกรอบ — 2 / 3 / 3 / 4 */
.projects, .masonry { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--gap); }
@media (min-width: 480px) { .projects, .masonry { columns: 3; } }
@media (min-width: 1024px) { .projects, .masonry { columns: 4; } .masonry-detail { columns: 2; } }
.masonry figure, .project { break-inside: avoid; margin: 0 0 var(--gap); }
.masonry img { width: 100%; border-radius: var(--r-sm); }
.masonry a { display: block; border-radius: var(--r-sm); cursor: zoom-in; }
.project a { display: block; text-decoration: none; }
.project-media img { width: 100%; border-radius: var(--r-sm); transition: transform .2s var(--ease); }
.project-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 2px 6px; }
.project h3 { font-size: 16px; line-height: 1.4; }
.project-meta { font-size: 14px; color: var(--muted); }
.project-count { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.project-count .ic { width: 16px; height: 16px; }
@media (min-width: 768px) { .project h3 { font-size: 18px; } }
@media (hover: hover) and (pointer: fine) { .project a:hover .project-media img { transform: translateY(-3px); } .project a:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow-2); text-underline-offset: 4px; } }
.sec-dark .masonry img { border-radius: var(--r-sm); }

/* ขั้นตอน */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: flex; gap: 16px; position: relative; padding-bottom: 28px; }
.steps li:not(:last-child)::before { content: ''; position: absolute; left: 27px; top: 58px; bottom: 6px; width: 2px; background: var(--paper-3); }
.step-no { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.steps h3 { font-size: 18px; margin: 12px 0 4px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .steps li { flex-direction: column; padding: 0; }
  .steps li:not(:last-child)::before { left: 66px; right: -18px; top: 27px; bottom: auto; width: auto; height: 2px; }
  .steps h3 { margin-top: 6px; }
}

/* คลิปหน้าแรก */
.clip-grid { display: grid; gap: 28px; align-items: center; }
.clip-media { max-width: 520px; width: 100%; margin: 0 auto; }
.clip-copy h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); margin-bottom: 14px; }
.clip-copy .btn { margin-top: 18px; }
@media (min-width: 768px) { .clip-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* วิดีโอ: คงสัดส่วนเดิม */
.videos { display: grid; gap: 28px var(--gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 600px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.videos-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .videos-links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.videos-links .video figcaption h3 { font-size: 16px; }
.video { margin: 0; }
.video video, .embed { width: 100%; aspect-ratio: var(--ratio); background: var(--ink); border-radius: var(--r-sm); }
.video video { object-fit: contain; }
.video figcaption { padding: 12px 2px 0; }
.video figcaption h3 { font-size: 18px; margin-bottom: 4px; }
.video figcaption p { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.video figcaption .text-link { font-size: 15px; }
.embed { position: relative; overflow: hidden; display: flex; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.embed-play { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; background: radial-gradient(circle at 50% 40%, var(--ink-3), var(--ink)); color: var(--cream); padding: 20px; text-align: center; }
.embed-play .ic { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: var(--yellow); color: var(--ink); transition: transform .2s var(--ease); }
.embed-play span { font-weight: 600; }
.embed-play small { color: var(--cream-muted); font-size: 15px; }
.embed-play:hover .ic { transform: scale(1.06); }
.sub-h { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin: 0 0 18px; }
.videos + .sub-h { margin-top: 56px; }
.more-clips { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); }
.more-clips a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-weight: 600; color: var(--text); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper-2); border-radius: var(--r); }
.sec-alt .faq details { background: var(--paper); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 17px; font-weight: 600; }
.faq summary .ic { transition: transform .25s var(--ease); color: var(--gold-text); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; color: var(--muted); }

/* แถบชวนติดต่อ */
.cta-band { background: var(--ink); color: var(--cream); position: relative; padding: 56px 0; }
.cta-band::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px); }
.cta-inner { display: grid; gap: 22px; }
.cta-inner h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.4rem); margin-bottom: 8px; }
.cta-inner p { color: var(--cream-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1024px) { .cta-band { padding: 80px 0; } .cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } .cta-actions { justify-content: flex-end; flex-wrap: nowrap; } }
@media (max-width: 479.98px) { .cta-actions .btn { flex: 1 1 100%; } }

/* หัวหน้าย่อย */
.page-hero { background: var(--ink); color: var(--cream); padding: 28px 0 44px; }
.page-hero h1 { font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3.25rem); max-width: 24ch; margin-bottom: 16px; }
.page-intro { color: var(--cream-muted); }
.page-intro strong { color: var(--cream); }
@media (min-width: 1024px) { .page-hero { padding: 40px 0 72px; } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; padding: 0; font-size: 14px; color: var(--cream-muted); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; opacity: .6; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.crumbs ol { align-items: center; }
.crumbs a:hover { color: var(--yellow); }
.crumbs [aria-current] { color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.nf { min-height: 50vh; display: flex; align-items: center; }

/* หมวดบริการ */
.chips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--paper-2); border: 2px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.chip .ic { width: 20px; height: 20px; }
.chip span { font-weight: 400; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--yellow); }
.chip.is-on span { color: var(--cream-muted); }
.cat-block + .cat-block { margin-top: 56px; }
.cat-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.cat-head .strength-ic { margin: 0; }
.cat-head h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.9rem); }
.cat-head p { color: var(--muted); margin-top: 2px; }

/* รายละเอียดบริการ */
.detail-grid { display: grid; gap: 32px; }
.prose { margin-top: 28px; max-width: 68ch; }
.side-card { background: var(--paper-2); border-radius: var(--r); padding: 22px; }
.side-price { margin-bottom: 18px; }
.side-price small { display: block; color: var(--muted); font-size: 15px; }
.side-price strong { font-size: 36px; line-height: 1.4; }
.side-h { font-size: 17px; margin-bottom: 10px; }
.checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--ok); margin-top: 4px; }
.side-cta { display: grid; gap: 10px; }
.side-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; } .detail-side { position: sticky; top: calc(var(--header) + 24px); } }

/* ตัวกรองผลงาน */
.filters { display: grid; gap: 14px; margin-bottom: 28px; }
.filters .chips { margin: 0; }
.search { display: flex; align-items: center; gap: 10px; background: var(--paper-2); border-radius: 999px; padding: 0 18px; min-height: 52px; max-width: 420px; border: 2px solid transparent; }
.search:focus-within { border-color: var(--ink); }
.search .ic { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 12px 0; outline: none; }
.filter-empty { padding: 32px 0; color: var(--muted); }
@media (min-width: 1024px) { .filters { grid-template-columns: 1fr 360px; align-items: center; } }

/* ติดต่อ */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; } }
.channels { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.channels a { display: flex; flex-direction: column; gap: 8px; padding: 16px; height: 100%; border-radius: var(--r); background: var(--paper-2); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.channels .ic { width: 28px; height: 28px; color: var(--gold-text); }
.channels small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.channels span { font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.channels .ch-line { background: var(--line); color: var(--cream); }
.channels .ch-line .ic, .channels .ch-line small { color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .channels a:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); } }
.facts-stack { margin-bottom: 24px; }
.sign { margin: 0; }
.sign img { width: 100%; border-radius: var(--r-sm); }

.form-card { background: var(--paper-2); border-radius: var(--r); padding: 22px 18px; }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.form-note { color: var(--muted); margin-top: -8px; }
.form { display: grid; gap: 14px; }
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.req { color: var(--err); }
.field input, .field select, .field textarea { width: 100%; font-size: 16px; line-height: 1.5; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); border: 2px solid var(--paper-3); background: var(--paper); transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--err); }
.err { color: var(--err); font-size: 14px; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-actions .btn { min-width: 220px; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }
.form[aria-busy='true'] .btn { opacity: .6; pointer-events: none; }

/* ท้ายเว็บ */
.site-footer { background: var(--ink-2); color: var(--cream-muted); padding: 56px 0 24px; font-size: 16px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr .7fr; } }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 12px; }
.footer-name { color: var(--cream); font-weight: 700; font-size: 19px; margin-bottom: 4px; }
.footer-name span { display: block; color: var(--yellow); font-size: 15px; letter-spacing: .03em; }
.footer-h { font-size: 16px; color: var(--cream); margin-bottom: 12px; }
.footer-list, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-list li { min-height: 44px; padding: 9px 0; }
.footer-links a { display: flex; align-items: center; min-height: 44px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .ic { color: var(--yellow); margin-top: 4px; }
.footer-list a, .footer-links a { text-decoration: none; overflow-wrap: anywhere; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; margin: -9px 0; }
.footer-list a:hover, .footer-links a:hover { color: var(--yellow); }
.socials { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-3); color: var(--cream); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--yellow); color: var(--ink); }
.socials .ic { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--ink-3); margin-top: 40px; padding-top: 20px; font-size: 14px; }

/* ปุ่มลอยมือถือ: ไลน์ + โทร สูงไม่เกิน 60px */
.dock { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: rgba(21, 20, 15, .94); backdrop-filter: blur(8px); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
  .dock-line { background: var(--line); color: var(--cream); }
  .dock-call { background: var(--yellow); color: var(--ink); }
}

/* ดูรูปใหญ่ */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(15, 14, 10, .96); color: var(--cream); }
.lightbox::backdrop { background: rgba(15, 14, 10, .96); }
.lightbox figure { margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 12px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(246, 240, 223, .35); background: rgba(21, 20, 15, .6); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; bottom: 14px; }
.lb-next { right: 12px; bottom: 14px; }
.lb-count { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 15px; color: var(--cream-muted); }
@media (min-width: 768px) { .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); } }

/* เนื้อหาปรากฏตอนเลื่อนถึง (เล่นครั้งเดียว) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease-out, transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.project[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-track { transform: none !important; }
}

/* ---------- แก้ครั้งที่ 1 ---------- */
/* ชื่อบริษัทใต้คำโปรยบนหัวเว็บ — เล็กกว่าชื่อแบรนด์ ตัดขึ้นบรรทัดใหม่ได้บนจอแคบ */
.brand-text .brand-company { font-size: 12px; line-height: 1.35; color: var(--cream-muted); opacity: .85; white-space: normal; overflow: visible; text-wrap: balance; margin-top: 1px; }
.header-row { padding-block: 6px; }
@media (min-width: 1024px) { .brand-text .brand-company { max-width: 300px; } }
@media (min-width: 1024px) and (max-width: 1279.98px) {
  /* เมนู 6 ช่อง: ซ่อนปุ่มโทรบนหัวเว็บช่วงจอกลาง (ปุ่มโทรยังอยู่ในแบนเนอร์และท้ายหน้า) */
  .nav-cta .btn-call { display: none; }
  .nav ul a { padding: 8px 9px; font-size: 15px; }
}

/* ชื่อบริษัทท้ายเว็บ */
.footer-company { color: var(--cream); font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
.footer-company span { display: block; color: var(--yellow); font-size: 13px; letter-spacing: .03em; margin-top: 2px; }

/* ปุ่มโทร 2 เบอร์ */
.call-group { display: contents; }
@media (max-width: 479.98px) {
  .call-group.is-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1 1 100%; }
  .call-group.is-pair .btn { min-height: 48px; padding: 8px 10px; font-size: 15px; gap: 6px; white-space: nowrap; }
  .call-group.is-pair .btn .ic { width: 18px; height: 18px; flex: none; }
  .call-group.is-pair .btn span { font-variant-numeric: tabular-nums; }
  .call-group.is-pair .call-word { display: none; }
}
.side-cta .call-group { display: grid; gap: 10px; }

/* บทความ */
.card-date { font-size: 14px; color: var(--muted); }
.article-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; color: var(--cream-muted); }
.article-meta .ic { width: 18px; height: 18px; color: var(--yellow); }
.article-wrap { max-width: 860px; }
.article-cover { margin: 0 0 8px; }
.article-cover img { width: 100%; border-radius: var(--r); }
.article-body { margin-top: 28px; }
.article-body h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 36px 0 12px; }
.article-body ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 10px; }
.article-body li::marker { color: var(--gold-text); }
.article-body p, .article-body li { font-size: 17px; line-height: 1.8; }
.article-wrap .masonry-detail { columns: 2; }
.article-cta { margin-top: 48px; padding: 24px; border-radius: var(--r); background: var(--paper-2); display: grid; gap: 14px; }
.article-cta p { font-weight: 600; margin: 0; }
@media (max-width: 479.98px) { .article-cta .cta-actions .call-group.is-pair .btn { flex: initial; } }
/* หัวเว็บสูงขึ้นจากบรรทัดชื่อบริษัท — เมนูมือถือและ scroll-padding อ้างความสูงนี้ */
:root { --header: 90px; }
@media (min-width: 1024px) { :root { --header: 72px; } }
@media (max-width: 1023.98px) { .nav-cta .btn { flex-basis: 200px; white-space: nowrap; } }
