/* Wenming Law Firm — หน้าบ้าน
   สีทั้งหมดมาจากหน้าธีมในหลังบ้าน: Models/Theme.php ส่งค่า --c-* มาทาง <style> ใน header
   แต่ละพื้นกำหนด --bg --fg --fg-head --accent ของตัวเอง ส่วนประกอบจึงอ่านออกบนพื้นทุกสี */
:root {
  --bg: var(--c-page-bg);
  --fg: var(--c-text);
  --fg-head: var(--c-heading);
  --accent: var(--c-accent);
  --head: 'Trirong', 'Noto Serif SC', Georgia, serif;
  --body: 'Sarabun', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --han: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --header-h: 76px;
}
.site-header { --bg: var(--c-header-bg); --fg: var(--c-header-text); --fg-head: var(--c-header-text); --accent: var(--c-header-accent); }
.facts, .section--paper2, .service-body__closing, .notice, .article__cta, .booking__summary { --bg: var(--c-band-bg); --fg: var(--c-band-text); --fg-head: var(--c-band-text); --accent: var(--c-band-accent); }
.hero, .section--ink, .quote-band, .page-head, .aside-card, .site-footer, .action-bar { --bg: var(--c-dark-bg); --fg: var(--c-dark-text); --fg-head: var(--c-dark-text); --accent: var(--c-dark-accent); }
.cta-band { --bg: var(--c-btn-bg); --fg: var(--c-btn-text); --fg-head: var(--c-btn-text); --accent: var(--c-btn-text); }
.dropdown, .case, .sample, .calendar, .service-pick__body, .slot, .certs a, .field input, .field textarea { --bg: var(--c-card-bg); --fg: var(--c-card-text); --fg-head: var(--c-card-text); --accent: var(--c-btn-bg); }
body, .site-header, .facts, .section--paper2, .service-body__closing, .notice, .article__cta, .booking__summary,
.hero, .section--ink, .quote-band, .page-head, .aside-card, .site-footer, .action-bar, .cta-band,
.dropdown, .case, .sample, .calendar, .service-pick__body, .slot, .certs a, .field input, .field textarea {
  --fg-muted: color-mix(in srgb, var(--fg) 74%, var(--bg));
  --rule: color-mix(in srgb, var(--fg) 20%, var(--bg));
  --soft: color-mix(in srgb, var(--fg) 7%, var(--bg));
  background: var(--bg);
  color: var(--fg);
}
html.lang-zh {
  --head: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
html.lang-zh body { font-size: 16px; line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; line-height: 1.35; color: var(--fg-head); margin: 0; }
html.lang-zh h1, html.lang-zh h2, html.lang-zh h3 { font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--c-dark-bg); color: var(--c-dark-text); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .72em 1.5em; border: 1px solid transparent; border-radius: 2px;
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.4;
  transition: background .18s, color .18s, border-color .18s, filter .18s;
}
.btn--sm { padding: .5em 1.05em; font-size: .94rem; }
.btn--block { width: 100%; }
.btn--seal { background: var(--c-btn-bg); color: var(--c-btn-text); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 16%, transparent); }
.btn--seal:hover { filter: brightness(.88); }
.btn--ghost { border-color: color-mix(in srgb, var(--fg) 45%, transparent); color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--paper { background: var(--fg); color: var(--bg); }
.btn--paper:hover { filter: brightness(.92); }
.btn--line { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn--line:hover { background: var(--fg); color: var(--bg); }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .icon { transition: transform .18s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--back:hover .icon { transform: translateX(-4px); }

/* หัวข้อสองภาษา: ลายเซ็นของเว็บ */
.dual { display: flex; align-items: center; flex-wrap: wrap; gap: .4em .7em; margin: 0 0 .55em; font-size: .92rem; letter-spacing: .04em; color: var(--fg-muted); }
.dual::before { content: ''; width: 9px; height: 9px; background: var(--accent); flex: none; }
.dual span { font-family: var(--head); font-size: 1.08em; color: var(--accent); letter-spacing: .08em; }

/* ตราประทับ */
.seal {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 4px;
  background: var(--c-btn-bg); color: var(--c-btn-text); border-radius: 3px;
  font-family: var(--han); font-weight: 600; font-size: 15px; line-height: 1.05; letter-spacing: 0;
  writing-mode: vertical-rl; text-align: center;
}
.seal--lg { width: 58px; height: 58px; font-size: 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); }
.site-header__row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand__logo { width: 46px; height: 46px; padding: 3px; background: #fff; border-radius: 6px; }
.brand__text { display: grid; line-height: 1.25; }
.brand__text strong { font-family: 'Trirong', Georgia, serif; font-size: 1.12rem; font-weight: 500; letter-spacing: .01em; }
.brand__text small { font-family: var(--han); font-size: .8rem; color: var(--accent); letter-spacing: .14em; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; gap: 3px; padding: 8px 12px; text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap; }
.main-nav > a[aria-current], .main-nav__group > a[aria-current] { color: var(--accent); }
.main-nav a:hover { color: var(--accent); }
.main-nav__group { position: relative; }
.main-nav__group > a .icon { width: .9em; height: .9em; }
.dropdown {
  position: absolute; top: 100%; left: -6px; min-width: 330px; padding: 8px;
  border: 1px solid var(--rule); box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s;
}
.main-nav__group:hover .dropdown, .main-nav__group:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 7px 12px; white-space: normal; font-size: .95rem; }
.dropdown a:hover { background: var(--soft); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; flex: none; height: 36px; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.lang-switch__item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--fg-muted); }
.lang-switch__item + .lang-switch__item { border-left: 1px solid var(--rule); }
.lang-switch__item:hover { color: var(--fg); background: var(--soft); }
.lang-switch__item[aria-current] { color: var(--fg); background: var(--soft); }
.lang-switch__flag { width: 21px; height: 14px; flex: none; outline: 1px solid rgba(0, 0, 0, .12); }
.lang-switch--block { display: flex; height: 48px; margin-top: 18px; }
.lang-switch--block .lang-switch__item { flex: 1; font-size: 1rem; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--rule); border-radius: 2px; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

.mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; padding: 12px 28px 90px; background: var(--bg); overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--rule); font-family: var(--head); font-size: 1.2rem; text-decoration: none; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: min(84vh, 720px); overflow: hidden; }
.hero__media { position: absolute; inset: 0 0 0 34%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: var(--bg); --fade: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .82) 26%, rgba(0, 0, 0, .18) 62%, rgba(0, 0, 0, .34) 100%); -webkit-mask-image: var(--fade); mask-image: var(--fade); }
.hero__inner { position: relative; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-weight: 500; }
.hero__firm { display: block; margin-bottom: .9rem; font-family: var(--body); font-size: 1.1rem; font-weight: 500; letter-spacing: .04em; color: var(--accent); }
.hero__title { display: block; font-size: clamp(3.1rem, 6.6vw, 5.6rem); line-height: 1.22; }
html.lang-zh .hero__title { letter-spacing: .08em; font-weight: 600; }
.hero__lead { max-width: 520px; margin: 1.5rem 0 2rem; color: var(--fg); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__vertical { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); display: grid; gap: 7px; margin: 0; }
.hero__vertical span { display: grid; place-items: center; width: 46px; height: 62px; background: var(--c-btn-bg); color: var(--c-btn-text); border-radius: 2px; font-family: var(--han); font-weight: 600; font-size: 1.05rem; line-height: 1.1; writing-mode: vertical-rl; }

/* แถบข้อเท็จจริง */
.facts { border-bottom: 1px solid var(--rule); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__item { display: grid; padding: 24px 22px; border-left: 1px solid var(--rule); line-height: 1.5; }
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts__item strong { font-family: var(--head); font-size: 1.16rem; font-weight: 500; }
.facts__item span { color: var(--fg-muted); font-size: .94rem; }

/* Section */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head__lead { margin: .6rem 0 0; color: var(--fg-muted); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.1rem; }
.split__media { margin: 0; }
.split__media img { width: 100%; }

/* รายการบริการแบบเลขมาตรา */
.ledger { border-bottom: 1px solid var(--rule); }
.ledger li { border-top: 1px solid var(--rule); }
.ledger a { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.15fr) 26px; gap: 22px; align-items: baseline; padding: 21px 6px; text-decoration: none; transition: padding .18s, background .18s; }
.ledger a:hover { background: var(--soft); padding-left: 14px; }
.ledger__no { font-family: var(--head); color: var(--accent); font-size: .98rem; }
.ledger__title strong { display: block; font-family: var(--head); font-size: 1.24rem; font-weight: 500; line-height: 1.4; }
.ledger__title small { display: block; margin-top: 2px; color: var(--fg-muted); font-size: .86rem; }
.ledger__desc { color: var(--fg-muted); font-size: .96rem; line-height: 1.65; }
.ledger__arrow { align-self: center; color: var(--accent); transition: transform .18s; }
.ledger a:hover .ledger__arrow { transform: translateX(4px); }

.quote-band { padding: clamp(48px, 7vw, 84px) 0; text-align: center; }
.quote-band blockquote { max-width: 780px; margin: 1.3rem auto 0; font-family: var(--head); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.55; }

/* ทีมทนาย */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .4s; }
.person:hover .person__photo img { transform: scale(1.02); }
.person__role { margin: .85rem 0 .1rem; font-size: .84rem; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; }
.person__name { font-size: 1.12rem; }
.person__en { margin: .15rem 0 0; color: var(--fg-muted); font-size: .92rem; line-height: 1.5; }
.person__en span { font-family: var(--han); color: var(--fg); }

/* ขั้นตอน */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: none; }
.process > li { position: relative; padding-top: 58px; }
.process > li::before { content: ''; position: absolute; left: 0; right: -24px; top: 21px; height: 1px; background: currentColor; opacity: .26; }
.process > li:last-child::before { right: 0; }
.process__no { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; background: var(--c-btn-bg); color: var(--c-btn-text); font-family: 'Trirong', Georgia, serif; font-size: 1.1rem; border-radius: 2px; }
.process h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.process ul { font-size: .94rem; line-height: 1.65; opacity: .82; }
.process ul li + li { margin-top: .55em; }

/* การ์ดบทความ */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* แถบเพจ Facebook ใต้ข่าวในหน้าแรก (ปลั๊กอินแสดงเฉพาะส่วนหัวเพจ) */
.fb-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 20px 40px; align-items: center; margin-top: 3rem; padding: 26px 28px; background: var(--soft); border: 1px solid var(--rule); }
.fb-strip__title { display: flex; align-items: center; gap: .4em; font-size: 1.25rem; margin-bottom: .4rem; }
.fb-strip__title .icon { color: #1877f2; }
.fb-strip p { margin: 0 0 .6rem; color: var(--fg-muted); }
.fb-strip__link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--accent); }
.fb-strip__frame { height: 130px; background: var(--c-card-bg); overflow: hidden; }
.fb-strip__frame iframe { display: block; border: 0; }

.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-dark-bg); margin-bottom: .85rem; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .3em .9em; margin: 0 0 .4rem; font-size: .86rem; color: var(--fg-muted); }
.post-card__meta span { color: var(--accent); font-weight: 600; }
.post-card h3 { font-size: 1.1rem; line-height: 1.5; margin-bottom: .4rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card__excerpt { margin: 0; color: var(--fg-muted); font-size: .94rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover-tile { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: var(--c-dark-bg); color: var(--c-dark-accent); font-family: var(--han); font-size: clamp(3.2rem, 6vw, 4.6rem); font-weight: 600; }
.cover-tile::after { content: ''; position: absolute; inset: 12px; border: 1px solid currentColor; opacity: .34; }
.cover-tile--news { background: var(--c-btn-bg); color: var(--c-btn-text); }

.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.strip a { position: relative; aspect-ratio: 1; overflow: hidden; text-decoration: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.strip a:hover img { transform: scale(1.05); }

.cta-band { padding: clamp(40px, 6vw, 64px) 0; }
.cta-band__row { display: flex; align-items: center; justify-content: space-between; gap: 26px 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta-band p { margin: .3rem 0 0; opacity: .88; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* หัวหน้าเว็บย่อย */
.page-head { position: relative; padding: clamp(44px, 7vw, 84px) 0; overflow: hidden; }
.page-head::after { content: '法'; position: absolute; right: 2%; top: 50%; transform: translateY(-52%); font-family: var(--han); font-weight: 600; font-size: clamp(10rem, 24vw, 19rem); line-height: 1; color: var(--fg); opacity: .05; pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-head__lead { max-width: 660px; margin: .8rem 0 0; color: var(--fg-muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.values li { padding: 26px; border: 1px solid var(--rule); }
.values__zh { display: block; font-family: var(--han); font-weight: 600; font-size: 2.3rem; line-height: 1.2; color: var(--accent); letter-spacing: .08em; margin-bottom: .55rem; }
.values h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.values p { margin: 0; color: var(--fg-muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.two-col h2 { font-size: 1.6rem; margin-bottom: 1.1rem; }
.checks li { display: flex; gap: .7em; padding: .55em 0; border-bottom: 1px solid var(--rule); line-height: 1.6; }
.checks .icon { color: var(--accent); margin-top: .22em; }
.strengths { margin: 0; }
.strengths div { padding: .75em 0; border-bottom: 1px solid var(--rule); }
.strengths dt { font-family: var(--head); font-size: 1.14rem; }
.strengths dd { margin: 0; color: var(--fg-muted); }

.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.office-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.masonry { columns: 4 240px; column-gap: 12px; }
.masonry a { display: block; margin-bottom: 12px; break-inside: avoid; overflow: hidden; }
.masonry img { width: 100%; transition: transform .35s; }
.masonry a:hover img { transform: scale(1.03); }
.masonry--cols { display: flex; align-items: flex-start; gap: 12px; columns: auto; }
.masonry__col { flex: 1 1 0; min-width: 0; }
.work { position: relative; text-decoration: none; }
.work__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: .5em .8em; background: rgba(46, 48, 54, .62); backdrop-filter: blur(2px); color: #fff; font-size: .95rem; line-height: 1.45; }
.strip .work__caption { padding: .4em .65em; font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.certs a { display: block; padding: 10px; border: 1px solid var(--rule); }
.certs img { width: 100%; height: 300px; object-fit: contain; }

/* หน้าบริการ */
.page-head--service .dual { font-family: var(--head); }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.service-body__heading { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: 1.4rem; }
.service-body__closing { margin: 2rem 0 0; padding: 1.2rem 1.4rem; border-left: 3px solid var(--accent); font-weight: 500; }
.block { margin-top: 2.4rem; }
.block h3 { font-size: 1.28rem; margin-bottom: .8rem; }
.block__note { margin: 1rem 0 0; color: var(--accent); font-weight: 500; }
.deflist li { padding: .75em 0; border-bottom: 1px solid var(--rule); line-height: 1.65; }
.deflist li:first-child { border-top: 1px solid var(--rule); }
.deflist strong { display: block; font-weight: 600; }
.deflist span { display: block; color: var(--fg-muted); }
.deflist em { display: block; margin-top: .4em; padding-left: .9em; border-left: 2px solid var(--accent); font-style: normal; font-size: .95rem; color: var(--fg-muted); }

.case { border: 1px solid var(--rule); }
.case + .case { margin-top: 10px; }
.case summary { display: flex; align-items: center; gap: .8em; padding: .8em 1em; cursor: pointer; list-style: none; line-height: 1.5; }
.case summary::-webkit-details-marker { display: none; }
.case summary .icon { margin-left: auto; color: var(--fg-muted); transition: transform .18s; }
.case[open] summary .icon { transform: rotate(180deg); }
.case__ref { font-family: var(--head); color: var(--accent); white-space: nowrap; font-size: .96rem; }
.case__topic { font-weight: 600; }
.case dl { margin: 0; padding: .2em 1em 1em; }
.case dl div { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 12px; padding: .5em 0; border-top: 1px solid var(--rule); line-height: 1.65; }
.case dt { color: var(--fg-muted); font-size: .93rem; }
.case dd { margin: 0; }

.steps { counter-reset: step; }
.steps li { position: relative; padding: .55em 0 .55em 2.7em; counter-increment: step; line-height: 1.6; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .5em; display: grid; place-items: center; width: 1.8em; height: 1.8em; background: var(--c-dark-bg); color: var(--c-dark-text); font-family: 'Trirong', Georgia, serif; font-size: .92rem; border-radius: 2px; }
.sample { margin: 0; padding: 1.1rem 1.3rem; border: 1px solid var(--rule); font-family: Georgia, 'Noto Serif SC', serif; font-size: .98rem; line-height: 1.75; }

.service-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; }
.aside-card { padding: 22px; }
.aside-card h2 { font-size: 1.24rem; margin-bottom: .4rem; }
.aside-card p { color: var(--fg-muted); font-size: .95rem; line-height: 1.6; }
.aside-card .btn--line { margin-top: 8px; }
.aside-nav h2 { font-size: 1.04rem; margin-bottom: .4rem; }
.aside-nav a { display: block; padding: .42em 0; border-top: 1px solid var(--rule); text-decoration: none; font-size: .95rem; line-height: 1.5; }
.aside-nav a:hover, .aside-nav a[aria-current] { color: var(--accent); }

/* บล็อก */
.tabs { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 2.2rem; border-bottom: 1px solid var(--rule); }
.tabs a { padding: .55em 0; text-decoration: none; color: var(--fg-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a[aria-current] { color: var(--accent); border-color: var(--accent); }
.tabs a:hover { color: var(--fg); }
.pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 3rem; }
.pager a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; }
.pager a:hover { color: var(--accent); }
.pager__now { color: var(--fg-muted); }
.empty { padding: 2rem 0; color: var(--fg-muted); text-align: center; }

.article__head { padding: clamp(36px, 6vw, 64px) 0 0; }
.article__head h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.4; }
.article__cover { margin-top: 1.8rem; }
.article__cover img { width: 100%; max-height: 460px; object-fit: cover; }
.notice { margin: 1.4rem 0 0; padding: .7em 1em; font-size: .95rem; }
.prose { margin-top: 1.8rem; }
.prose h2, .prose h3 { margin: 1.7em 0 .5em; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.24rem; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .3em; }
.prose img { margin: 1.4em 0; }
.prose a { color: var(--accent); }
.prose blockquote { margin: 1.3em 0; padding: .3em 1.1em; border-left: 3px solid var(--accent); color: var(--fg-muted); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 1.6rem; color: var(--fg-muted); font-size: .9rem; }
.article__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px; margin: 2.6rem 0 2rem; padding: 22px 24px; }
.article__cta h2 { font-size: 1.2rem; }
.article__cta p { margin: .15rem 0 0; color: var(--fg-muted); font-size: .95rem; }
.article__cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.article { padding-bottom: clamp(44px, 6vw, 72px); }

/* ฟอร์ม */
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; margin-bottom: 4px; font-weight: 500; font-size: .95rem; }
.field__label small { color: var(--fg-muted); font-weight: 400; }
.field input, .field textarea { display: block; width: 100%; padding: .62em .8em; border: 1px solid var(--rule); border-radius: 2px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.choice { display: inline-flex; align-items: center; gap: .5em; cursor: pointer; }
.choice input { accent-color: var(--accent); width: 1.05em; height: 1.05em; }
.form-alert { padding: .7em 1em; background: #fbeae7; border-left: 3px solid #b3261e; color: #7c1d14; }
.form-ok { padding: .9em 1.1em; background: #e9f2e6; border-left: 3px solid #4d7f3f; color: #2f5526; }
.form-note { margin: .7em 0 0; color: var(--fg-muted); font-size: .86rem; line-height: 1.55; }

/* จองเวลา */
.booking { max-width: 980px; margin: 0 auto; }
.booking__step { margin: 0 0 2.2rem; padding: 0; border: 0; min-width: 0; }
.booking__step legend { display: flex; align-items: center; gap: .6em; margin-bottom: 1rem; padding: 0; font-family: var(--head); font-size: 1.3rem; }
.booking__step legend span { display: grid; place-items: center; width: 34px; height: 34px; background: var(--c-dark-bg); color: var(--c-dark-text); font-family: 'Trirong', Georgia, serif; font-size: 1rem; border-radius: 2px; }
.service-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-pick { position: relative; display: block; cursor: pointer; }
.service-pick input { position: absolute; opacity: 0; }
.service-pick__body { display: grid; gap: 4px; height: 100%; padding: 16px; border: 1px solid var(--rule); line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.service-pick__body strong { font-family: var(--head); font-size: 1.08rem; font-weight: 500; }
.service-pick__desc { color: var(--fg-muted); font-size: .92rem; }
.service-pick__meta { display: inline-flex; align-items: center; gap: .4em; margin-top: 4px; font-size: .9rem; font-weight: 500; }
.service-pick input:checked + .service-pick__body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.service-pick input:focus-visible + .service-pick__body { outline: 2px solid var(--accent); outline-offset: 2px; }

.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.calendar { padding: 14px; border: 1px solid var(--rule); }
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendar__head strong { font-family: var(--head); font-weight: 500; }
.calendar__head button { display: grid; place-items: center; width: 36px; height: 36px; background: none; border: 1px solid var(--rule); cursor: pointer; }
.calendar__head button:disabled { opacity: .3; cursor: default; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.calendar__dow { padding: 4px 0; color: var(--fg-muted); font-size: .84rem; }
.calendar__day { aspect-ratio: 1; display: grid; place-items: center; padding: 0; background: var(--soft); border: 1px solid transparent; font-weight: 600; cursor: pointer; line-height: 1; }
.calendar__day:hover { border-color: var(--accent); }
.calendar__day:disabled { background: none; color: var(--fg-muted); opacity: .55; font-weight: 400; cursor: default; border-color: transparent; }
.calendar__day.is-selected { background: var(--c-btn-bg); color: var(--c-btn-text); }
.slots__label { margin: 0 0 .7rem; font-weight: 500; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 7px; }
.slot { padding: .5em 0; border: 1px solid var(--rule); font-weight: 600; cursor: pointer; }
.slot:hover { border-color: var(--accent); }
.slot:disabled { background: none; color: var(--fg-muted); opacity: .55; text-decoration: line-through; cursor: default; border-color: var(--rule); }
.slot.is-selected { background: var(--c-btn-bg); border-color: var(--c-btn-bg); color: var(--c-btn-text); }
.booking__submit { max-width: 480px; margin: 0 auto; }
.booking__summary { margin: 0 0 .8rem; padding: .7em 1em; text-align: center; font-weight: 500; }

.done { text-align: center; }
.done h1 { font-size: 1.9rem; margin: 1rem 0 .4rem; }
.done__mark { display: inline-grid; place-items: center; width: 60px; height: 60px; background: var(--c-btn-bg); color: var(--c-btn-text); border-radius: 2px; }
.done__mark .icon { width: 30px; height: 30px; }
.done__list { max-width: 460px; margin: 1.6rem auto; text-align: left; }
.done__list div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; padding: .6em 0; border-top: 1px solid var(--rule); }
.done__list dt { color: var(--fg-muted); }
.done__list dd { margin: 0; }

/* ติดต่อ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); }
.contact-info dl { margin: 0 0 2rem; }
.contact-info dl div { padding: .8em 0; border-bottom: 1px solid var(--rule); }
.contact-info dt { display: flex; align-items: center; gap: .5em; color: var(--fg-muted); font-size: .92rem; }
.contact-info dt .icon { color: var(--accent); }
.contact-info dd { margin: .15em 0 0; }
.contact-info h2, .contact-form h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.qr-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qr-list img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--rule); padding: 6px; }
.qr-list span { display: block; margin-top: 5px; text-align: center; font-weight: 500; font-size: .92rem; line-height: 1.4; }
.qr-list small { font-weight: 400; color: var(--fg-muted); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Footer */
.site-footer { color: var(--fg-muted); font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.25fr 1.25fr; gap: 36px; padding-top: 56px; padding-bottom: 44px; }
.site-footer h2 { margin-bottom: .8rem; font-size: 1.04rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer li { padding: .22em 0; line-height: 1.55; }
.site-footer__firm { margin: .9rem 0 0; font-family: var(--head); font-size: 1.14rem; color: var(--fg); line-height: 1.45; }
.site-footer__en { margin: .1rem 0 .6rem; }
.site-footer__tag { margin: 0; color: var(--accent); letter-spacing: .05em; }
.site-footer__contact li { display: flex; gap: .6em; }
.site-footer__contact .icon { margin-top: .25em; color: var(--accent); }
.site-footer__social { display: flex; gap: 8px; margin-top: 12px; }
.site-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule); }
.site-footer__bottom { padding-top: 14px; padding-bottom: 18px; border-top: 1px solid var(--rule); font-size: .87rem; color: var(--fg-muted); }

.action-bar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(12, 14, 18, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; background: rgba(255, 255, 255, .12); border: 0; color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav--prev { left: 14px; top: 50%; }
.lightbox__nav--next { right: 14px; top: 50%; }

/* Responsive */
.site-header .btn--sm { white-space: nowrap; }
@media (max-width: 1280px) {
  .site-header .lang-switch__item span { display: none; }
}
@media (max-width: 1160px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .fb-strip { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process > li { padding: 0 0 26px 62px; }
  .process > li::before { left: 21px; right: auto; top: 44px; bottom: 0; width: 1px; height: auto; }
  .process > li:last-child::before { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  body { padding-bottom: 60px; }
  .wrap { padding: 0 20px; }
  .hero { min-height: 0; }
  .hero__media { inset: 0; }
  .hero__media::after { --fade: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .86) 100%); }
  .hero__inner { padding-top: 64px; padding-bottom: 60px; }
  .hero__vertical { display: none; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__item { padding: 16px 14px; border-left: 0; border-top: 1px solid var(--rule); }
  .facts__item:nth-child(-n+2) { border-top: 0; }
  .facts__item:nth-child(odd) { padding-left: 0; }
  .split, .two-col, .service-layout, .contact-grid, .picker { grid-template-columns: minmax(0, 1fr); }
  .split__media { order: -1; }
  .ledger a { grid-template-columns: minmax(0, 1fr) 24px; gap: 2px 12px; padding: 16px 0; }
  .ledger a:hover { padding-left: 0; }
  .ledger__no { grid-column: 1 / -1; font-size: .88rem; }
  .ledger__desc { grid-column: 1; grid-row: 3; }
  .ledger__arrow { grid-column: 2; grid-row: 2 / 4; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .people--4 { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr 1fr; }
  .office-grid img:first-child { grid-column: 1 / -1; }
  .service-aside { position: static; }
  .service-picks { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn--sm.btn--seal { display: none; }
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.5fr; }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .45em; height: 60px; text-decoration: none; font-weight: 600; font-size: .95rem; border-right: 1px solid var(--rule); }
  .action-bar__primary { background: var(--c-btn-bg); color: var(--c-btn-text); border: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .post-grid, .post-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .fb-strip { padding: 20px 18px; }
  .strip .work__caption { padding: .3em .5em; font-size: .72rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-header__row { gap: 8px; }
  .site-header .lang-switch__item { padding: 0 6px; }
  .brand { gap: 8px; min-width: 0; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__text strong { font-size: .95rem; }
  .brand__text small { font-size: .74rem; letter-spacing: .08em; }
  .hero__cta .btn { width: 100%; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .case summary { flex-wrap: wrap; gap: .1em .8em; padding-right: 2.4em; position: relative; }
  .case summary .icon { position: absolute; right: 1em; top: 1em; }
  .qr-list { gap: 8px; }
}
@media (max-width: 350px) {
  .site-header .lang-switch__item[aria-current] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
