/* ==========================================================================
   เว็บรับทำพื้นทรายล้าง กรวดล้าง หินขัด
   ชุดสีตามภาพที่เจ้าของกิจการส่งมา (สไตล์เดียวทั้งเว็บ มุมโค้งมาก):
   เขียวมอส #365004 = ปุ่ม ลิงก์ ราคา · เขียวแอปเปิล #8DA432 = จุดและตัวเลขนำสายตา · เหลืองแฟลกซ์ #EDE383 = พื้นอ่อนและปุ่มบนพื้นเข้ม
   น้ำตาลทอง #925E06 = หัวข้อย่อยและเลขลำดับ · น้ำตาลเข้ม #351903 = ตัวหนังสือและท้ายเว็บ
   ========================================================================== */

:root {
  --bg: #fbf9ec;
  --surface: #fffefa;
  --tint: #f5f0c9;
  --ink: #351903;
  --ink-2: #553a20;
  --muted: #6d5a3f;
  --line: #e6dfb5;
  --line-strong: #c9bf86;

  /* เขียวมอส: สีหลัก */
  --accent: #365004;
  --accent-strong: #263a02;
  --accent-soft: #e3ecc0;
  --accent-text: #365004;          /* สีหลักเมื่อใช้เป็นสีตัวหนังสือ/ไอคอน */
  --accent-text-strong: #263a02;
  --on-accent: #ffffff;

  /* เขียวแอปเปิล: สีสดสำหรับจุดและตัวเลขนำสายตา (ตัวหนังสือบนสีนี้ใช้น้ำตาลเข้ม ไม่ใช้ขาว) */
  --accent-bright: #8da432;
  --on-accent-bright: #351903;

  /* น้ำตาลทอง กับเหลืองแฟลกซ์: สีรอง */
  --accent-2: #925e06;
  --accent-2-soft: #ede383;
  --accent-2-text: #7e5104;        /* น้ำตาลทองเมื่อใช้เป็นสีตัวหนังสือ (เข้มขึ้นเล็กน้อยให้อ่านชัดบนพื้นเหลือง) */
  --accent-2-bright: #ede383;      /* เหลืองแฟลกซ์ ใช้บนพื้นสีเข้ม */

  --dark: #351903;
  --amber-bg: #fdf1cf;
  --amber-ink: #654700;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --danger-ink: #7a1a14;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-btn: 14px;
  --r-field: 12px;
  --r-pill: 999px;
  --r-img: 20px;
  --r-round: 50%;
  --shadow: 0 1px 2px rgba(53, 25, 3, .05), 0 10px 26px rgba(54, 80, 4, .09);
  --shadow-lg: 0 2px 4px rgba(53, 25, 3, .05), 0 24px 52px rgba(54, 80, 4, .15);
  --btn-shadow: 0 8px 20px rgba(54, 80, 4, .28);

  /* ต้องตรงกับ SITE_STYLE ใน includes/i18n.php (ชุดฟอนต์ที่โหลดจาก Google Fonts) */
  --font-head: "Mitr", "Leelawadee UI", system-ui, sans-serif;
  --font-body: "Noto Sans Thai Looped", "Leelawadee UI", "Segoe UI", system-ui, sans-serif;
  --head-weight: 500;
  --h1-size: clamp(2.05rem, 4.4vw, 3.3rem);

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;

  --header-bg: rgba(255, 254, 250, .93);
  --thead: #f8f4d8;
  --focus: #365004;
  --focus-soft: rgba(54, 80, 4, .22);
  /* แถบชวนขอประเมินราคา: ไล่จากเขียวมอสไปเขียวสด (ทุกจุดเข้มพอให้ตัวหนังสือขาวอ่านชัด) */
  --band-from: #365004;
  --band-mid: #486509;
  --band-to: #5f7f12;
  --band-bg: linear-gradient(120deg, var(--band-from) 0%, var(--band-mid) 52%, var(--band-to) 100%);
  --band-ink: #ffffff;
  --band-ink-2: #ffffff;
  --footer-accent: #ede383;
  --field-border: #8f8250; /* ขอบช่องกรอก เข้มพอให้เห็นชัดบนพื้นขาว */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 8% -80px, #f4eca6 0%, rgba(244, 236, 166, 0) 70%) no-repeat,
    radial-gradient(820px 480px at 96% -40px, #dbe9a9 0%, rgba(219, 233, 169, 0) 70%) no-repeat,
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size, 1rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.28; margin: 0; text-wrap: balance; }
h1 { font-size: var(--h1-size); letter-spacing: 0; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.2rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
/* ภาษาจีน: ปกติเบราว์เซอร์ตัดบรรทัดระหว่างตัวอักษรตัวไหนก็ได้ (เช่น "地|面")
   หัวข้อใหญ่จึงตัดได้เฉพาะจุดที่ใส่ \u{200B} ไว้ใน lang.php หรือหลังเครื่องหมายวรรคตอน — ถ้ายังล้นจึงยอมตัดตรงไหนก็ได้ */
html[lang^="zh"] { line-break: strict; }
html[lang^="zh"] h1 { word-break: keep-all; overflow-wrap: anywhere; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent-text-strong); }
[hidden] { display: none !important; }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; color: var(--bg); }

.icon { flex: none; }

/* ---------- แถบแจ้งว่าเป็นเว็บตัวอย่าง ---------- */
/* demo-bar: see the end of this file */

.tag-sample {
  display: inline-flex; align-items: center;
  background: var(--amber-bg); color: var(--amber-ink);
  font-family: var(--font-body); font-size: .6875rem; font-weight: 600; line-height: 1.4;
  padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap;
}

.notice {
  display: inline-block; margin-top: 18px;
  background: var(--amber-bg); color: var(--amber-ink);
  font-size: .875rem; padding: 8px 14px; border-radius: var(--r-btn);
}

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  font: 600 .9375rem/1.2 var(--font-body);
  border: 1px solid transparent; border-radius: var(--r-btn);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--accent-2-soft); color: var(--ink); }
.btn-light:hover { background: #f5eea6; color: var(--ink); }
.btn-outline-light { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline-light:hover { color: inherit; background: rgba(127, 127, 127, .2); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .25s ease;
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- ส่วนหัวและเมนู ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { flex: none; width: 46px; height: 46px; }
.brand__mark rect { fill: var(--accent); }
.brand__mark text { fill: var(--on-accent); font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.brand__mark path { stroke: var(--accent-2-bright); stroke-width: 3; stroke-linecap: round; }
.brand__text { display: grid; line-height: 1.25; }
.brand__text strong { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 700; }
.brand__text span { font-size: .75rem; color: var(--muted); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__text span { color: #c9bb9f; }

.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 1; }
.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__list > li > a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  color: var(--ink-2); font-weight: 500; font-size: .9375rem; text-decoration: none; border-radius: var(--r-sm);
  transition: background-color .15s ease, color .15s ease;
}
.site-nav__list > li > a:hover { background: var(--tint); color: var(--ink); }
.site-nav__list > li > a[aria-current] { color: var(--accent-text); font-weight: 600; }
.site-nav__end { display: flex; align-items: center; gap: 14px; }

.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: 4px !important; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 28px; height: 40px; margin-left: -2px;
  background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: var(--r-sm);
}
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.has-sub:hover .sub-toggle .icon, .has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 10px); left: -10px; z-index: 5; width: 310px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* เปิดเมื่อชี้เมาส์ หรือกดปุ่มลูกศร (.is-open) — ถ้าไม่มี JavaScript ให้เปิดเมื่อโฟกัสเข้ามาแทน */
.has-sub:hover > .sub, html:not(.js) .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; border-radius: var(--r-btn);
  transition: background-color .15s ease;
}
.sub a:hover { background: var(--tint); }
.sub__dot { width: 30px; height: 30px; border-radius: var(--r-sm); background-size: cover; background-position: center; flex: none; border: 1px solid rgba(53, 25, 3, .08); }
.sub__all { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.sub__all a { justify-content: space-between; color: var(--accent-text); font-weight: 600; }
.sub__all .icon { width: 18px; height: 18px; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); }
.lang a {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  font-size: .8125rem; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: var(--r-pill);
  transition: background-color .15s ease, color .15s ease;
}
.lang a:hover { background: var(--tint); }
.lang a[aria-current] { background: var(--ink); color: var(--bg); }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-btn); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.nav-open .menu-toggle__bars { background: transparent; }
.nav-open .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
  .site-header__row { flex-wrap: wrap; gap: 0 16px; }
  .js .menu-toggle { display: inline-grid; }
  .site-nav { flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 20px; padding: 8px 0 24px; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 28px;
  }
  .js .nav-open .site-nav { display: flex; }
  .nav-open { overflow: hidden; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-bottom: 1px solid var(--line); }
  .site-nav__list > li > a { min-height: 52px; padding: 0 4px; font-size: 1.0625rem; width: 100%; }
  .site-nav__list > li > a:hover { background: none; }
  .has-sub { display: block; }
  .has-sub::after, .sub-toggle { display: none; }
  .sub {
    position: static; width: auto; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 12px; background: none;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px;
  }
  .sub a { min-height: 44px; padding: 6px 4px; }
  .sub__all { grid-column: 1 / -1; }
  .site-nav__end { justify-content: space-between; }
}
@media (max-width: 480px) {
  .sub { grid-template-columns: 1fr; }
  .site-nav__end { flex-direction: column; align-items: stretch; }
  .site-nav__end .lang { align-self: flex-start; }
}

/* ---------- ชิ้นส่วนข้อความ ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--accent-2-text); font-size: .8125rem; font-weight: 600; letter-spacing: .03em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent-bright); border-radius: 2px; flex: none; }
:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.page-head--center .eyebrow { justify-content: center; }

.lead { margin-top: 18px; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--ink-2); max-width: 36em; }

.checks { display: grid; gap: 10px; margin-top: 24px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.checks .icon { width: 24px; height: 24px; padding: 5px; margin-top: 2px; background: var(--accent-soft); color: var(--accent-text); border-radius: var(--r-round); stroke-width: 3; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; font-size: .875rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); }
.chips--lg { gap: 12px; }
.chips--lg li { padding: 10px 20px; font-size: 1rem; font-weight: 500; background: var(--surface); }

/* ---------- รายชื่อผลงานที่เคยทำมา: เรียงลงเป็นคอลัมน์ มีเส้นคั่น ---------- */
.clients { columns: 2; column-gap: clamp(20px, 3vw, 44px); font-size: .9375rem; }
.clients li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line-strong); font-weight: 500; line-height: 1.45; }
@media (min-width: 700px) { .clients { columns: 3; font-size: 1rem; } }
@media (min-width: 1100px) { .clients { columns: 4; } }
.clients .clients__more { border-bottom: 0; font-weight: 400; color: var(--ink-2); }

.note { margin-top: 18px; color: var(--muted); font-size: .9375rem; max-width: 62em; }

/* ---------- โครงส่วนต่าง ๆ ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--tint); }
.section--flush { padding-top: 0; }
.section--band { padding-block: clamp(40px, 6vw, 80px); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p:not(.eyebrow) { margin-top: 12px; color: var(--ink-2); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card > h2 { font-size: 1.25rem; margin-bottom: 16px; }
.card__label { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.card--tint { background: var(--tint); border-color: transparent; }
.card--dark { background: linear-gradient(160deg, #351903 0%, #4f2a08 100%); color: #fbf6ea; border-color: transparent; }
.card--dark h3 { font-size: 1.25rem; font-weight: 700; }
.card--dark p { margin: 10px 0 20px; color: #e3d8c4; }

/* ---------- หน้าแรก: ส่วนเปิด ---------- */
.hero { padding-block: clamp(44px, 7vw, 92px) clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }


/* ---------- การ์ดบริการ ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.service-card__img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; overflow: hidden; }
.service-card__img::before { content: ""; display: block; width: 100%; height: 100%; background: inherit; transition: transform .6s ease; }
.service-card:hover .service-card__img::before { transform: scale(1.04); }
.service-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px; }
.service-card__name { font-size: 1.25rem; font-weight: 700; }
.service-card__name a { color: var(--ink); text-decoration: none; }
.service-card__name a::after { content: ""; position: absolute; inset: 0; }
.service-card__text { color: var(--ink-2); font-size: .9375rem; }
.service-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.price { color: var(--accent-text); font-weight: 600; }
.service-card__go {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: auto;
  background: var(--accent-soft); color: var(--accent-text); border-radius: var(--r-round);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.service-card__go .icon { width: 18px; height: 18px; }
.service-card:hover .service-card__go { background: var(--accent); color: var(--on-accent); transform: translateX(3px); }

/* ---------- จุดเด่น 3 ข้อ ---------- */
/* จุดเด่น: แถวละ 3 ใบ — ถ้ามี 5 ข้อ แถวล่าง 2 ใบแบ่งครึ่งเต็มความกว้าง ไม่เหลือช่องว่าง */
.why { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.why li { grid-column: span 2; }
.why li:nth-child(4):nth-last-child(2), .why li:nth-child(5):last-child { grid-column: span 3; }
.why li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.why__num { display: block; font-family: var(--font-head); font-size: .875rem; font-weight: 700; color: var(--accent-2-text); margin-bottom: 14px; }
.why h3 { font-size: 1.1875rem; }
.why p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; }
  .why li, .why li:nth-child(4):nth-last-child(2), .why li:nth-child(5):last-child { grid-column: auto; }
}

/* ---------- ขั้นตอนทำงาน ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { position: relative; }
.steps li:not(:last-child)::before { content: ""; position: absolute; top: 21px; left: 54px; right: -14px; height: 1px; background: var(--line-strong); }
.steps__num {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  background: var(--accent-bright); color: var(--on-accent-bright); border-radius: var(--r-round); box-shadow: 0 0 0 6px var(--accent-soft);
  font-family: var(--font-head); font-weight: 700;
}
.steps h3 { margin-top: 16px; font-size: 1.0625rem; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 18px; padding-bottom: 26px; }
  .steps li:not(:last-child)::before { top: 46px; bottom: 4px; left: 21px; right: auto; width: 1px; height: auto; }
  .steps__num { grid-row: span 2; }
  .steps h3 { margin-top: 8px; }
}

/* ---------- รูปผลงาน: ตารางรูปล้วน ครอบให้เต็มกรอบ กดเปิดรูปเต็มได้ ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .photo-grid, .photo-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--tint); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .photo img { transition: none; } .photo:hover img { transform: none; } }
.section__more { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 40px); }
.works-group { scroll-margin-top: 96px; }
a.filter { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.filter__count { font-size: .8125rem; color: var(--muted); }
/* ลิงก์ข้ามไปหัวข้อในหัวหน้าเพจ */
.page-head .filters { display: block; margin: 24px -4px 0; }
.page-head .filters .filter { margin: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  min-height: 42px; padding: 0 16px; font: 500 .9375rem/1 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.filter:hover { border-color: var(--ink); }
.filter:active { transform: translateY(1px); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- แถบชวนขอประเมินราคา ---------- */
.band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px;
  background: var(--band-bg); color: var(--band-ink); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px);
}
.band h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.band p { margin-top: 10px; color: var(--band-ink-2); max-width: 34em; }
.band .actions { margin-top: 0; }

/* ---------- หัวหน้าเพจด้านใน ---------- */
.page-head { padding-block: clamp(32px, 5vw, 60px) clamp(36px, 5vw, 64px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-head--center { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.page-head--center .lead { margin-inline: auto; }
.page-head--center .actions { justify-content: center; }
@media (max-width: 900px) { .page-head__grid { grid-template-columns: 1fr; } }

.breadcrumb { margin-bottom: 26px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- หน้าหมวดบริการ ---------- */
.surface { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px; box-shadow: var(--shadow-lg); }
.surface__img { aspect-ratio: 5 / 4; border-radius: var(--r-img); background-size: cover; background-position: center; border: 1px solid rgba(53, 25, 3, .08); }
.surface__price {
  position: absolute; left: 28px; bottom: 28px; display: grid; gap: 2px; justify-items: start;
  background: var(--surface); border-radius: var(--r); padding: 12px 18px; box-shadow: var(--shadow);
}
.surface__label { font-size: .75rem; font-weight: 600; color: var(--muted); }
.surface__value { font-size: .9375rem; color: var(--ink-2); }
.surface__value strong { font-family: var(--font-head); font-size: 1.75rem; line-height: 1.2; color: var(--ink); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.detail-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } .detail-aside { position: static; } }

.accordion { display: grid; gap: 12px; }
.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s ease, border-color .2s ease; }
.accordion details:hover { border-color: var(--line-strong); }
.accordion details[open] { box-shadow: var(--shadow); }
.accordion summary { display: flex; align-items: center; gap: 14px; padding: 15px 18px; font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--r); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion__num { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; background: var(--accent-soft); color: var(--accent-text); border-radius: var(--r-sm); font-size: .875rem; }
.accordion__title { flex: 1; }
.accordion summary .icon { color: var(--accent-text); transition: transform .2s ease; }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion details > p { padding: 0 20px 20px 62px; color: var(--ink-2); }
@media (max-width: 560px) { .accordion details > p { padding-left: 18px; } }

.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.swatches li { display: grid; gap: 2px; }
.swatches__img { aspect-ratio: 1; border-radius: var(--r-img); background-size: cover; background-position: center; border: 1px solid rgba(53, 25, 3, .1); margin-bottom: 10px; transition: transform .3s ease; }
.swatches li:hover .swatches__img { transform: translateY(-2px); }
.swatches strong { font-size: .9375rem; font-weight: 600; }
.swatches span { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 980px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- ตารางราคา ---------- */
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 16px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; }
.table thead th { background: var(--thead); font-size: .8125rem; font-weight: 600; color: var(--muted); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th a { color: var(--ink); font-weight: 600; text-decoration: none; }
.table tbody th a:hover { color: var(--accent-text); text-decoration: underline; }
.table td { color: var(--ink-2); }
.table .num { text-align: right; white-space: nowrap; }
.table .num strong { font-family: var(--font-head); font-size: 1.125rem; color: var(--ink); }
.table__unit { font-weight: 400; }
.table-card__note { padding: 12px 22px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table th, .table td { padding: 0; border: 0; }
  .table td { display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .8125rem; flex: none; }
  .table .num { text-align: right; }
}
/* ตารางเทียบ (หน้าบริการหินอ่อนและหินแกรนิต): ช่องแรกเป็นหัวแถว อีกสองช่องเป็นข้อความยาว */
.table--compare tbody th { width: 22%; color: var(--ink); font-weight: 600; }
.table--compare td { width: 39%; }
@media (max-width: 640px) {
  .table--compare tbody th, .table--compare td { width: auto; }
  .table--compare td { display: block; margin-top: 10px; }
  .table--compare td::before { display: block; margin-bottom: 2px; font-weight: 600; }
}

/* ---------- เกี่ยวกับเรา ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(56px, 8vw, 104px); }
.story__text p { margin-top: 16px; color: var(--ink-2); }
.story__text .link-arrow { margin-top: 24px; }
.story__visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.story__visual div { aspect-ratio: 1; border-radius: var(--r-lg); background-size: cover; background-position: center; border: 1px solid rgba(53, 25, 3, .08); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ---------- ติดต่อและฟอร์ม ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.contact-aside { display: grid; gap: 20px; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { padding: clamp(20px, 3vw, 36px); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card > h2 { font-size: 1.5rem; margin-bottom: 20px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; gap: 18px; } }
.form .btn { justify-self: start; }
@media (max-width: 480px) { .form .btn { justify-self: stretch; } }

.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: .9375rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field-border); border-radius: var(--r-field);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, .18); }
.field__hint { font-size: .8125rem; color: var(--muted); }
.field__error { display: block; font-size: .875rem; font-weight: 500; color: var(--danger); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.estimate { display: grid; gap: 2px; background: var(--accent-soft); border-radius: var(--r); padding: 14px 18px; }
.estimate__label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--accent-text-strong); }
.estimate__value { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.estimate__value.is-empty { font-family: var(--font-body); font-size: .9375rem; font-weight: 400; color: var(--ink-2); }
.estimate__note { font-size: .8125rem; color: var(--ink-2); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r); margin-bottom: 20px; }
.alert h3 { font-size: 1.0625rem; }
.alert--ok { background: var(--accent-soft); color: var(--accent-text-strong); }
.alert--ok .icon { width: 26px; height: 26px; padding: 5px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-round); stroke-width: 3; margin-top: 2px; }
.alert--error { background: var(--danger-bg); color: var(--danger-ink); font-weight: 500; }
.alert--error a { color: inherit; font-weight: 700; }

.contact-list { display: grid; gap: 16px; margin: 0; }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.contact-list dt .icon { width: 18px; height: 18px; color: var(--accent-text); }
.contact-list dd { margin: 2px 0 0 26px; font-size: 1.0625rem; font-weight: 600; }
/* QR ไลน์ใต้ช่องทางติดต่อ — พื้นขาวเสมอ ให้สแกนได้ชัด */
.line-qr { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.line-qr a { flex: none; display: block; padding: 6px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--r); }
.line-qr img { display: block; width: 132px; height: 132px; }
.line-qr figcaption { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.line-qr figcaption .icon { flex: none; width: 18px; height: 18px; color: var(--accent-text); }
.contact-list dd.contact-list__text { font-size: .9375rem; font-weight: 500; line-height: 1.6; }
.contact-list dd a { color: var(--ink); text-decoration: none; }
.contact-list dd a:hover { color: var(--accent-text); text-decoration: underline; }

.mini-steps { list-style: decimal; padding-left: 1.3em; display: grid; gap: 6px; color: var(--ink-2); }
.mini-steps li::marker { color: var(--accent-2-text); font-weight: 700; }

/* ---------- ท้ายเว็บ ---------- */
.site-footer { background: var(--dark); color: #e3d8c4; padding-top: clamp(48px, 6vw, 72px); font-size: .9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer__brand p { margin-top: 16px; max-width: 26em; }
.site-footer h2 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; color: #bcab8e; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--footer-accent); }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: clamp(36px, 5vw, 56px); padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; color: #bcab8e;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- การเคลื่อนไหวตอนเปิดหน้า ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .enter > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .enter > :nth-child(2) { animation-delay: .05s; }
  .enter > :nth-child(3) { animation-delay: .1s; }
  .enter > :nth-child(4) { animation-delay: .15s; }
  .enter > :nth-child(5) { animation-delay: .2s; }
  .enter > :nth-child(6) { animation-delay: .25s; }
  .hero__visual.enter > *, .page-head__grid > .enter:last-child > * { animation-delay: .18s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* วงโฟกัสบนพื้นสีเข้ม/สีแบรนด์ ให้เห็นชัด */
.band :focus-visible { outline-color: var(--band-ink); }
.site-footer :focus-visible, .card--dark :focus-visible { outline-color: #ffffff; }

/* ==========================================================================
   แถบเว็บตัวอย่าง (แสดงเมื่อ demo = true ใน data.php)
   สีคงที่ เพื่อให้เห็นชัดว่าเป็นแถบแจ้ง ไม่ใช่ส่วนของเว็บ
   ========================================================================== */
.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 24px;
  background: #fdf1cf; color: #654700;
  font-family: "Leelawadee UI", "Segoe UI", system-ui, sans-serif; font-size: .8125rem; line-height: 1.5; text-align: center;
  padding: 8px var(--gutter);
}

/* ==========================================================================
   รูปทรงของเว็บ: มุมโค้งไม่เท่ากัน เมนูลอยทรงมน
   ========================================================================== */
.surface { border-radius: 40px 40px 40px 12px; }
.surface__img { border-radius: 28px 28px 28px 6px; }
.why li { border-radius: 28px 28px 28px 8px; }
.band { border-radius: 40px 40px 40px 12px; }
.brand__mark rect { rx: 14; }

@media (min-width: 1241px) {
  :root { --header-h: 92px; }
  .site-header { padding-top: 14px; background: none; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header__row {
    width: calc(100% - var(--gutter) * 2 + 44px); max-width: calc(var(--wrap) + 44px); min-height: 66px; padding-inline: 22px;
    background: var(--header-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  }
}

/* ---------- หน้าแรก: ภาพหินทรงกลมซ้อนกัน เกาะขอบซ้ายของรูปงานจริงในกรอบซุ้มโค้ง (กติกาของซุ้มอยู่ที่ "ของแต่ง" ท้ายไฟล์) ---------- */
.collage { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-inline: auto; }
.collage span { position: absolute; border-radius: 50%; background-size: cover; background-position: center; border: 6px solid var(--surface); box-shadow: var(--shadow-lg); }
.collage span:nth-child(1) { width: 50%; height: 50%; left: 0; top: 34%; }
.collage span:nth-child(2) { width: 30%; height: 30%; left: 22%; top: 5%; }
.collage span:nth-child(3) { width: 28%; height: 28%; left: 37%; bottom: 0; }
.collage span:nth-child(4) { width: 20%; height: 20%; left: 7%; bottom: 3%; }
@media (max-width: 900px) { .collage { max-width: 380px; } }

/* ---------- รายการบริการ: การ์ดภาพวงกลม ---------- */
.svc--round { row-gap: 100px; padding-top: 70px; }
.svc--round .service-card { overflow: visible; text-align: center; border-radius: 28px; }
.svc--round .service-card__img { width: 140px; height: 140px; aspect-ratio: auto; margin: -70px auto 0; border-radius: 50%; border: 6px solid var(--bg); box-shadow: var(--shadow); flex: none; }
.svc--round .service-card__img::before { border-radius: 50%; }
.svc--round .service-card__foot { justify-content: center; }
.svc--round .service-card__go { margin-left: 0; }

/* ---------- หน้าบริการ: ตารางราคาคู่กับกล่องลองประมาณราคา ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.quick { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.quick__title { font-size: 1.375rem; font-weight: var(--head-weight); }
.quick__lead { margin-top: -8px; color: var(--ink-2); font-size: .9375rem; }
.quick .btn { justify-self: stretch; }
@media (max-width: 1100px) {
  .pricing { grid-template-columns: 1fr; }
  .quick { width: 100%; max-width: 560px; margin-inline: auto; }
}

/* ==========================================================================
   ของแต่ง — หน้าตาของเว็บมีแบบเดียว คือแบบตกแต่งนี้
   ใบบัว โบว์ และลายตารางใบโคลเวอร์ มาจากเจ้าของกิจการ พื้นรูปเป็นสีขาวทึบ จึงซ้อนแบบ multiply ให้พื้นขาวกลืนไปกับพื้นเว็บ
   — วางได้เฉพาะบนพื้นสีอ่อน (บนแถบเขียวหรือท้ายเว็บสีเข้มจะเห็นกรอบสี่เหลี่ยม)
   รูปถ่าย (hero-arch, head-*, band-stone) เป็นรูปงานจริงและรูปผิวหินจริงที่เจ้าของกิจการส่งมา — ที่มาอยู่ใน docs/decor-photo-sources.md
   ========================================================================== */
/* เครื่องหมายหน้าหัวข้อย่อย: ใบโคลเวอร์สี่แฉก (วาดเองในไฟล์นี้) */
.eyebrow::before {
  width: 16px; height: 16px; border-radius: 0; background: var(--accent-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg id='l'%3E%3Cpath d='M12 11.6C9.4 9.6 7.4 8 7.4 5.7a2.45 2.45 0 0 1 4.6-1.2 2.45 2.45 0 0 1 4.6 1.2c0 2.300-2 3.900-4.600 5.900z' transform='rotate(45 12 12)'/%3E%3Cpath d='M12 11.6C9.4 9.6 7.4 8 7.4 5.7a2.45 2.45 0 0 1 4.6-1.2 2.45 2.45 0 0 1 4.6 1.2c0 2.300-2 3.900-4.600 5.900z' transform='rotate(135 12 12)'/%3E%3Cpath d='M12 11.6C9.4 9.6 7.4 8 7.4 5.7a2.45 2.45 0 0 1 4.6-1.2 2.45 2.45 0 0 1 4.6 1.2c0 2.300-2 3.900-4.600 5.900z' transform='rotate(225 12 12)'/%3E%3Cpath d='M12 11.6C9.4 9.6 7.4 8 7.4 5.7a2.45 2.45 0 0 1 4.6-1.2 2.45 2.45 0 0 1 4.6 1.2c0 2.300-2 3.900-4.600 5.900z' transform='rotate(315 12 12)'/%3E%3C/g%3E%3Cpath d='M12 12c.2 4 1 7 2.600 10.200' fill='none' stroke='%23000' stroke-width='1.700' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg id='l'%3E%3Cpath d='M12 11.6C9.4 9.6 7.4 8 7.4 5.7a2.45 2.45 0 0 1 4.6-1.2 2.45 2.45 0 0 1 4.6 1.2c0 2.300-2 3.900-4.600 5.900z' transform='rotate(45 12 12)'/%3E%3Cpath d='M12 11.6C9.4 9.6 7.4 8 7.4 5.7a2.45 2.45 0 0 1 4.6-1.2 2.45 2.45 0 0 1 4.6 1.2c0 2.300-2 3.900-4.600 5.900z' transform='rotate(135 12 12)'/%3E%3Cpath d='M12 11.6C9.4 9.6 7.4 8 7.4 5.7a2.45 2.45 0 0 1 4.6-1.2 2.45 2.45 0 0 1 4.6 1.2c0 2.300-2 3.900-4.600 5.900z' transform='rotate(225 12 12)'/%3E%3Cpath d='M12 11.6C9.4 9.6 7.4 8 7.4 5.7a2.45 2.45 0 0 1 4.6-1.2 2.45 2.45 0 0 1 4.6 1.2c0 2.300-2 3.900-4.600 5.900z' transform='rotate(315 12 12)'/%3E%3C/g%3E%3Cpath d='M12 12c.2 4 1 7 2.600 10.200' fill='none' stroke='%23000' stroke-width='1.700' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ช่วงพื้นสี: ลายตารางใบโคลเวอร์จาง ๆ ใต้สีพื้น (สีพื้นทับไว้ 86% ตัวหนังสือยังอ่านชัด) */
.section--tint {
  background: linear-gradient(rgba(245, 240, 201, .86), rgba(245, 240, 201, .86)), url("../img/decor/clover-check.webp") center top / 620px auto;
}

/* รูปถ่ายแต่ง: ไฟล์ครอปไว้ตามสัดส่วนของรูปทรงแล้ว และ object-fit: cover ครอปเพิ่มเองเมื่อกรอบเปลี่ยนสัดส่วน — ไม่ยืดหรือบีบรูป */
.decor-photo { display: block; object-fit: cover; background: var(--tint); border: 6px solid var(--surface); box-shadow: var(--shadow-lg); pointer-events: none; }
.decor-photo--arch { border-radius: 999px 999px var(--r-lg) var(--r-lg); }

/* หน้าแรก: รูปถนนในกรอบซุ้มโค้งอยู่ด้านขวา ภาพหินทรงกลมเกาะขอบซ้ายของซุ้ม */
.hero__visual { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.hero__visual > .decor-photo { position: absolute; top: 0; right: 0; width: 56%; height: 100%; }
@media (max-width: 900px) { .hero__visual { max-width: 380px; } }

/* หัวหน้าเพจด้านใน: แถบสูงอย่างน้อย 348px ตัวหนังสืออยู่กลางแนวตั้ง และเว้นที่ทางขวาไว้ (หน้าที่มีรูปพื้นหลังใช้กติกา .page-head--photo ด้านล่าง) */
@media (min-width: 901px) {
  .page-head { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 348px; }
  .page-head > .wrap:not(.page-head__grid) > * { max-width: calc(100% - 300px); }
}

/* หัวหน้าเพจแบบรูปพื้นหลังเต็มแถบ (ใช้เฉพาะหน้าที่ใส่ class นี้ — ตอนนี้คือหน้าติดต่อ ผลงาน เกี่ยวกับเรา และบริการ)
   รูปอยู่ชั้นหลังและถูก mask ให้จาง: ฝั่งตัวหนังสือ (ซ้าย) ไม่มีรูปเลย แล้วค่อย ๆ ชัดขึ้นไปทางขวา ขอบบนและล่างจางกลืนกับพื้นเว็บ
   จอแคบ ตัวหนังสือกินเต็มความกว้าง รูปจึงจางทั้งแถบ (ไม่เกิน 26%) ให้ตัวหนังสือสีเข้มยังอ่านชัด */
.page-head--photo { position: relative; overflow: hidden; }
.page-head--photo > .wrap { position: relative; z-index: 1; }
.page-head--photo::before {
  content: ""; position: absolute; inset: 0 0 0 auto; width: min(60%, 860px); z-index: 0; pointer-events: none;
  background: center 45% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .22) 32%, #000 72%), linear-gradient(to bottom, transparent 0%, #000 20%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .22) 32%, #000 72%), linear-gradient(to bottom, transparent 0%, #000 20%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.page-head--photo-contact::before { background-image: url("../img/decor/head-contact-wide.webp"); pointer-events: none; }
/* หน้าผลงาน: ต้องเห็นสไลเดอร์ยีราฟทั้งตัว จึงแสดงรูปทั้งรูปเสมอ (contain) และการไล่จางซ้าย บน ล่างฝังอยู่ในไฟล์รูป (พื้นโปร่งใส) เหมือนหน้าเกี่ยวกับเรา */
.page-head--photo-works::before {
  background-image: url("../img/decor/head-works-giraffe-wide.webp?v=4"); background-size: contain; background-position: right center; pointer-events: none;
  -webkit-mask-image: none; mask-image: none;
}
/* หน้าบริการ: แสดงรูปทั้งรูป ไม่ขยาย (contain) การไล่จางและส่วนที่ลบออก (คนเดินและป้ายบอกทางมุมซ้ายบน) ฝังอยู่ในไฟล์รูป */
.page-head--photo-services::before {
  background-image: url("../img/decor/head-services-walkway-wide.webp?v=4"); background-size: contain; background-position: right center; pointer-events: none;
  -webkit-mask-image: none; mask-image: none;
}
/* หน้าเกี่ยวกับเรา: ป้ายชื่อกิจการอยู่ชิดขอบซ้ายของรูปถ่าย จึงต้องเห็นรูปทั้งกว้างเสมอ (contain ไม่ใช่ cover) ไม่ให้ป้ายโดนตัด
   การไล่จางซ้าย บน และล่างฝังอยู่ในไฟล์รูป (พื้นโปร่งใส) ให้ป้ายทั้งแผ่นอยู่ในช่วงที่รูปชัดเต็มที่ — จอกว้างจึงไม่ใช้ mask ซ้ำ */
.page-head--photo-about::before {
  background-image: url("../img/decor/head-about-wide.webp?v=2"); background-size: contain; background-position: right center; pointer-events: none;
  -webkit-mask-image: none; mask-image: none;
}
@media (min-width: 901px) { .page-head.page-head--photo > .wrap:not(.page-head__grid) > * { max-width: 56%; } }
@media (max-width: 900px) {
  .page-head--photo::before {
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, .26)), linear-gradient(to bottom, transparent 0%, #000 25%, #000 60%, transparent 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, .26)), linear-gradient(to bottom, transparent 0%, #000 25%, #000 60%, transparent 100%);
  }
  /* จอแคบ: ขยายรูปให้เห็นเฉพาะช่วงล่างขวา (กำแพงและรั้วหินล้าง) — ไม่ให้ตัวหนังสือบนป้ายไปซ้อนอยู่หลังหัวข้อ */
  .page-head--photo-about::before { background-size: auto 260%; background-position: 96% 88%; }
  /* จอแคบ หน้าผลงาน: ไม่ซ้อนรูปหลังตัวหนังสือ แต่วางเป็นแถบรูปเต็มความกว้างใต้ชิป เห็นทั้งรูป (ยีราฟทั้งตัว) ไม่ขยายและไม่จาง */
  .page-head--photo-works { display: flex; flex-direction: column; padding-bottom: 8px; }
  .page-head--photo-works::before {
    order: 2; position: relative; inset: auto; width: 100%; aspect-ratio: 1144 / 640; margin-top: 20px;
    background-size: contain; background-position: center;
    -webkit-mask-image: none; mask-image: none;
  }
  /* จอแคบ หน้าบริการ: รูปจางเต็มแถบ เลื่อนไปทางขวาให้กระบะต้นไม้อยู่ในกรอบ (รูปสูงกว่าแถบ จึงเป็นการย่อ ไม่ใช่ขยาย) */
  .page-head--photo-services::before { background-size: cover; background-position: 85% center; }
}

/* แถบชวนขอประเมินราคา: พื้นเป็นรูปผิวกรวดล้างจริง ทับด้วยชั้นเขียวเข้ม (ทึบอย่างน้อย 60% ตัวหนังสือขาวยังอ่านชัดทุกจุด) */
.band {
  background: linear-gradient(120deg, rgba(38, 58, 2, .86) 0%, rgba(38, 58, 2, .72) 55%, rgba(38, 58, 2, .6) 100%), url("../img/decor/band-stone.webp") center / cover no-repeat;
}

/* หัวข้อ "ผลงานที่เคยทำมา": ใบบัวลอยมุมขวาบน */
#clients { position: relative; }
#clients::after {
  content: ""; position: absolute; top: 0; right: 0; width: min(26vw, 330px); aspect-ratio: 601 / 470; pointer-events: none;
  background: url("../img/decor/lily-pads.webp") top right / contain no-repeat; mix-blend-mode: multiply; opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom left, #000 30%, transparent 82%); mask-image: linear-gradient(to bottom left, #000 30%, transparent 82%);
}
#clients > .wrap { position: relative; z-index: 1; }
@media (max-width: 700px) { #clients::after { width: 150px; } }

/* กล่องลองประมาณราคา: โบว์ลายตารางติดมุมขวาบน */
.quick { position: relative; }
.quick::before {
  content: ""; position: absolute; top: -36px; right: 20px; width: 104px; aspect-ratio: 320 / 292; pointer-events: none;
  background: url("../img/decor/bow.webp") center / contain no-repeat; mix-blend-mode: multiply; transform: rotate(9deg);
}
@media (max-width: 1100px) { .quick::before { top: -26px; width: 84px; } }

/* ===== หัวหน้าเพจ ผลงาน/บริการ/เกี่ยวกับเรา บนจอกว้าง: ให้รูปเต็มกรอบเท่าหน้าติดต่อ (cover) ยึดฝั่งขวาไว้ให้จุดเด่นของรูปไม่โดนตัด ===== */
@media (min-width: 901px) {
  .page-head--photo-works::before { background-size: cover; background-position: right 22%; pointer-events: none; }
  .page-head--photo-services::before { background-size: cover; background-position: right center; pointer-events: none; }
  .page-head--photo-about::before { background-size: cover; background-position: right center; pointer-events: none; }
}

/* ===== แถบรูปเลื่อน (หน้าผลงาน และตัวอย่างสีหน้าแรก): เห็นทีละราว 6 ช่อง ช่องหลายขนาดต่อกัน เลื่อนไปทางขวาเพื่อดูรูปที่เหลือ ===== */
.mosaic { position: relative; }
.mosaic__track {
  --mrow: clamp(150px, 17vw, 215px); --mgap: 12px;
  display: grid; grid-auto-flow: column dense; grid-template-rows: repeat(2, var(--mrow));
  grid-auto-columns: calc((100% - 3 * var(--mgap)) / 4); gap: var(--mgap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-behavior: smooth;
  padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; border-radius: var(--r);
}
.mosaic__track:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.mosaic__track > .photo { aspect-ratio: auto; height: 100%; min-width: 0; scroll-snap-align: start; }
/* จังหวะ 12 รูป: สูง · กว้าง · เล็ก 4 · กว้าง · เล็ก 2 · สูง · เล็ก 2 */
.mosaic:not(.mosaic--even) .photo:nth-child(12n + 1), .mosaic:not(.mosaic--even) .photo:nth-child(12n + 10) { grid-row: span 2; }
.mosaic:not(.mosaic--even) .photo:nth-child(12n + 2), .mosaic:not(.mosaic--even) .photo:nth-child(12n + 7) { grid-column: span 2; }
/* แถบรูปผลงาน: 3 แถว (เจ้าของขอเพิ่มลงมาอีกแถว) — ตัวอย่างสีหน้าแรกยัง 2 แถว */
.mosaic:not(.mosaic--even) .mosaic__track { --mrow: clamp(130px, 14.5vw, 185px); grid-template-rows: repeat(3, var(--mrow)); }
.mosaic--even .mosaic__track { --mrow: clamp(104px, 12.5vw, 172px); grid-auto-columns: calc((100% - 5 * var(--mgap)) / 6); }
@media (max-width: 900px) {
  .mosaic__track, .mosaic:not(.mosaic--even) .mosaic__track { --mrow: clamp(120px, 24vw, 190px); grid-auto-columns: calc((100% - 2 * var(--mgap)) / 3); }
  .mosaic--even .mosaic__track { --mrow: clamp(96px, 22vw, 170px); grid-auto-columns: calc((100% - 3 * var(--mgap)) / 4); }
}
@media (max-width: 640px) {
  .mosaic__track, .mosaic:not(.mosaic--even) .mosaic__track { --mgap: 8px; --mrow: 34vw; grid-auto-columns: calc((100% - var(--mgap)) / 2.15); }
  .mosaic--even .mosaic__track { --mrow: 28vw; grid-auto-columns: calc((100% - 2 * var(--mgap)) / 3.2); }
}
.mosaic__nav {
  position: absolute; top: calc(50% - 6px); transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font: 600 1.6rem/1 var(--font-head);
}
.mosaic__nav[hidden] { display: none; }
.mosaic__nav--prev { left: -14px; } .mosaic__nav--next { right: -14px; }
.mosaic__nav:hover { border-color: var(--ink); }
.mosaic__nav:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 1240px) { .mosaic__nav--prev { left: 6px; } .mosaic__nav--next { right: 6px; } }
@media (prefers-reduced-motion: reduce) { .mosaic__track { scroll-behavior: auto; } }

/* ตัวอย่างสี: ตารางครบทุกรูป (หน้าบริการ) และเลขกำกับบนรูปไว้บอกช่าง */
.photo-grid--samples { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.photo-grid--samples .photo { aspect-ratio: 1 / 1; }
@media (max-width: 980px) { .photo-grid--samples { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .photo-grid--samples { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.numbered { counter-reset: sample; }
.numbered .photo { position: relative; counter-increment: sample; }
.numbered .photo::after {
  content: counter(sample); position: absolute; left: 8px; top: 8px; min-width: 28px; padding: 2px 8px; text-align: center;
  border-radius: var(--r-pill); background: rgba(30, 20, 5, .72); color: #fff; font: 500 .8125rem/1.5 var(--font-head); pointer-events: none;
}
#samples { scroll-margin-top: 96px; }

/* ===== กล่องดูรูปขยาย (กดรูปผลงาน ตัวอย่างสี หรือรูปทีมช่าง): รูปเต็มจอบนพื้นดำ มีปุ่มกากบาทปิดมุมขวาบนเสมอ ===== */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 64px 16px 24px; background: rgba(20, 12, 2, .9); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); border-radius: var(--r); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #2a2014; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: rgba(20, 12, 2, .75); color: #fff; font: 500 1.9rem/1 var(--font-head); cursor: pointer;
}
.lightbox__close { top: 10px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 12px; } .lightbox__nav--next { right: 12px; }
.lightbox__close:hover, .lightbox__nav:hover { background: #fff; color: #351903; }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 3px solid #ede383; outline-offset: 3px; }
body.lightbox-open { overflow: hidden; }

/* ===== กล่องตัวอย่างสีในตารางการ์ดบริการ (หน้าแรก): กินสองช่องข้างการ์ดใบสุดท้าย แถบรูปแถวเดียว
   กล่องไม่ดันความสูงของแถว (height: 0 + min-height: 100%) การ์ดหินอ่อนฯ จึงสูงเท่าการ์ดใบอื่น และกล่องสูงเท่าการ์ดพอดี ===== */
.svc-samples {
  grid-column: span 2; min-width: 0; height: 0; min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 16px 22px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); scroll-margin-top: 110px;
}
.svc-samples__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.svc-samples h3 { font-size: 1.125rem; }
.svc-samples .link-arrow { font-size: .875rem; }
.svc-samples__lead { margin: 2px 0 10px; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.svc-samples .mosaic__track { --mrow: clamp(84px, 7.4vw, 104px); --mgap: 10px; grid-template-rows: var(--mrow); grid-auto-columns: var(--mrow); padding-bottom: 10px; }
.svc-samples .mosaic__nav { width: 36px; height: 36px; top: calc(50% - 5px); }
.svc-samples .mosaic__nav--prev { left: -12px; } .svc-samples .mosaic__nav--next { right: -12px; }
@media (max-width: 980px) { .svc-samples { height: auto; min-height: 0; margin-top: -40px; } }
@media (max-width: 640px) { .svc-samples { grid-column: auto; padding: 16px 16px 12px; } .svc-samples .mosaic__track { --mrow: 26vw; } }

/* ===== จอคอมกว้าง (1241px ขึ้นไป): รูปหัวหน้าเพจไม่จำกัดที่ 860px แล้ว กินพื้นที่ 60% ของจอ และแถบสูงขึ้นตามความกว้างจอ ให้รูปดูเต็มจอ
   (มือถือและแท็บเล็ตใช้กติกาเดิม) รูปที่ฝังการไล่จางไว้ในไฟล์ได้ mask ซ้ายเพิ่ม ให้ตัวหนังสือฝั่งซ้ายยังอ่านชัดเมื่อรูปกว้างขึ้น ===== */
@media (min-width: 1241px) {
  .page-head--photo { min-height: clamp(348px, 27vw, 540px); }
  .page-head--photo::before { width: 60%; pointer-events: none; }
  .page-head--photo-works::before, .page-head--photo-services::before, .page-head--photo-about::before {
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%); mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  }
}

/* การ์ดบริการทุกแถวสูงเท่ากัน (แถวสุดท้ายมีการ์ดใบเดียว เนื้อหาสั้นกว่า จึงเคยเตี้ยกว่าแถวอื่น) */
@media (min-width: 981px) { .svc--round { grid-auto-rows: 1fr; } }

/* ===== รูปหัวหน้าเพจบนจอคอม: ให้การไล่จางกินเข้ามาในรูปมากขึ้นทั้งซ้าย บน และล่าง รูปจะกลืนกับพื้นเว็บนุ่มขึ้น (เจ้าของขอ) ===== */
@media (min-width: 901px) {
  .page-head--photo::before, .page-head--photo-works::before, .page-head--photo-services::before, .page-head--photo-about::before {
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 26%, rgba(0, 0, 0, .8) 46%, #000 64%), linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .7) 16%, #000 30%, #000 62%, rgba(0, 0, 0, .6) 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 26%, rgba(0, 0, 0, .8) 46%, #000 64%), linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .7) 16%, #000 30%, #000 62%, rgba(0, 0, 0, .6) 82%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}

/* ---------- คำถามที่พบบ่อย (หน้าแรก) ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.faq__item summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: var(--head-weight); color: var(--ink); list-style-position: outside; margin-left: 22px; padding-left: 4px; }
.faq__item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.faq__item[open] summary { color: var(--accent-text); }
.faq__item p { padding: 0 20px 18px 26px; color: var(--ink-2); overflow-wrap: anywhere; }
