/* ===========================================================================
   บุนนาค พร๊อพเพอร์ตี้ — สไตล์กลาง
   โทน: กรมท่า (น่าเชื่อถือ) + ทอง (หรูหรา) ตามที่ลูกค้าระบุในบรีฟ
   ฟอนต์เดียวทั้งเว็บ IBM Plex Sans Thai แยกด้วยน้ำหนัก 400/600/700
   =========================================================================== */

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13355f;
  --navy-600: #1d4a7d;
  --navy-100: #e8eef6;
  --navy-50:  #f4f7fb;

  --gold-600: #a8871d;
  --gold-500: #c9a227;
  --gold-400: #ddc061;
  --gold-100: #f7efd6;

  --ink:      #14202e;
  --ink-soft: #4a5a6e;
  --ink-mute: #77879b;
  --line:     #dfe6ef;
  --line-soft:#eef2f7;
  --bg:       #ffffff;
  --bg-soft:  #f7f9fc;

  --ok:   #1a7f5a;
  --warn: #b26a00;
  --warn-bg: #fff4e0;
  --err:  #c0392b;
  --err-bg: #fdecea;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-1: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 8px rgba(11, 37, 69, .05);
  --shadow-2: 0 2px 4px rgba(11, 37, 69, .07), 0 12px 28px rgba(11, 37, 69, .10);

  --wrap: 1200px;
  --gut: 20px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── รีเซ็ต ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 6vw, 56px); }
h2 { font-size: clamp(25px, 4vw, 38px); }
h3 { font-size: clamp(19px, 2.4vw, 23px); }
p  { line-height: 1.75; }

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

/* ── โครง ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(52px, 8vw, 92px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-800); color: #fff; }

.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold-500); }
.section--navy .eyebrow { color: var(--gold-400); }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }
.section--navy .section-head p { color: #c5d3e6; }

/* ── ปุ่ม ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 13px 26px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-400); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--navy-800); }
.btn--ghost:hover { border-color: var(--navy-800); }
.btn--on-navy { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn--on-navy:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ── หัวเว็บ ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__bar { display: flex; align-items: center; gap: 18px; min-height: 74px; }
/* ชื่อแบรนด์วางให้ฐานตัวอักษรตรงกับขอบล่างของโลโก้ทุกขนาดจอ */
.brand { display: flex; align-items: flex-end; gap: 11px; min-width: 0; flex: 0 1 auto; min-height: 44px; }
.brand img { width: 42px; height: 44px; object-fit: contain; flex: none; }
.brand > span { min-width: 0; overflow: hidden; }
.brand__name {
  display: block; font-weight: 700; font-size: 17px; line-height: 1.15; color: var(--navy-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 479px) {
  .brand img { width: 36px; height: 38px; }
  .brand__name { font-size: 15px; }
}

.nav { display: none; margin-left: auto; gap: 4px; align-items: center; }
.nav a {
  padding: 9px 13px; border-radius: 8px; font-size: 15.5px; font-weight: 600; color: var(--ink-soft);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--navy-800); background: var(--navy-50); }
.nav a[aria-current='page'] { color: var(--navy-800); }
.nav a[aria-current='page']::after {
  content: ''; display: block; height: 2px; background: var(--gold-500); margin-top: 4px; border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.nav + .header-actions { margin-left: 6px; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.lang-switch button {
  border: 0; background: #fff; padding: 8px 11px; font-size: 14px; font-weight: 700;
  color: var(--ink-mute); cursor: pointer; min-height: 44px; min-width: 44px;
}
.lang-switch button[aria-pressed='true'] { background: var(--navy-800); color: #fff; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer; flex: none;
}
.burger svg { width: 22px; height: 22px; }

.mobile-nav { display: none; border-top: 1px solid var(--line-soft); padding: 10px 0 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 13px 4px; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-of-type { border-bottom: 0; }

@media (min-width: 1000px) {
  .nav { display: flex; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }
}

/* ── แบนเนอร์ ─────────────────────────────────────────────────────────── */
/* ชนขอบทุกด้าน ไม่มี margin ไม่มีมุมโค้ง สูงไม่เกิน 70vh บนมือถือ */
.hero { position: relative; isolation: isolate; background: var(--navy-900); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* ตัวบ้านอยู่กลางภาพค่อนไปทางบน ล็อกโฟกัสไว้ไม่ให้หลังคาโดนตัดตอนจอแคบ */
  object-position: 50% 42%;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,26,51,.78) 0%, rgba(7,26,51,.58) 42%, rgba(7,26,51,.88) 100%);
}
.hero__inner {
  min-height: min(70vh, 560px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(56px, 9vw, 104px);
  color: #fff;
}
.hero h1 { color: #fff; max-width: 17ch; text-wrap: balance; }
.hero__sub { margin-top: 16px; max-width: 56ch; font-size: clamp(16px, 2vw, 19px); color: #d7e2f0; }
.hero__slogan {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px;
  border: 1px solid rgba(221,192,97,.5); border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--gold-400);
}
@media (min-width: 900px) { .hero__inner { min-height: 600px; } }

/* ── ช่องค้นหาอัจฉริยะ ─────────────────────────────────────────────────── */
.search-card {
  margin-top: clamp(26px, 4vw, 38px);
  background: rgba(255,255,255,.97); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-2);
  /* การ์ดพื้นขาวอยู่ในแบนเนอร์ที่ตัวอักษรเป็นสีขาว ต้องรีเซ็ตสีตัวอักษรเอง
     ไม่งั้นข้อความในช่องเลือกและช่องพิมพ์จะเป็นสีขาวบนพื้นขาว มองไม่เห็น */
  color: var(--ink);
}
.search-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.search-tabs button {
  flex: 1; min-height: 46px; border: 1.5px solid var(--line); background: #fff;
  border-radius: var(--radius-sm); font-size: 15.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: all .2s var(--ease);
}
.search-tabs button[aria-pressed='true'] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.search-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .search-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .search-grid { grid-template-columns: 1.1fr 1.1fr 1.1fr auto; align-items: end; } }

/* ── ฟอร์ม ────────────────────────────────────────────────────────────── */
.field { display: block; }
.field > span, .field-label {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px;
}
.field-label .req { color: var(--err); }
input[type=text], input[type=tel], input[type=email], input[type=number],
input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  /* 16px ขั้นต่ำ ไม่งั้น iOS ซูมเข้าเองตอนกดช่อง */
  font-size: 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5a6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 19px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29,74,125,.14);
}
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] {
  border-color: var(--err); box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.field-error { display: none; margin-top: 6px; font-size: 14px; color: var(--err); font-weight: 600; }
.field-error.show { display: block; }

.form-note {
  padding: 13px 15px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  display: none; margin-bottom: 4px;
}
.form-note.show { display: block; }
.form-note--ok  { background: #e8f6f0; color: var(--ok); }
.form-note--err { background: var(--err-bg); color: var(--err); }

/* ── การ์ดทรัพย์ ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 12px; }
/* การ์ดสินค้า/บริการ: 2 / 2 / 3 / 3-4 ตามมาตรฐานกลาง */
.grid--cards { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid--cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .grid--cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.grid--feature { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 480px) { .grid--feature { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid--feature { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--navy-50); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 7px; font-size: 14px; font-weight: 700;
  background: rgba(255,255,255,.95); color: var(--navy-800);
}
.badge--sale { background: var(--navy-800); color: #fff; }
.badge--rent { background: var(--gold-500); color: var(--navy-900); }
.badge--sold, .badge--rented { background: #6b7785; color: #fff; }
.badge--reserved { background: var(--warn-bg); color: var(--warn); }
.badge--featured { background: var(--gold-100); color: var(--gold-600); }
.badge--sample { background: var(--warn-bg); color: var(--warn); }

.card__body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__price { font-size: clamp(17px, 2.3vw, 21px); font-weight: 700; color: var(--navy-800); }
.card__price .unit { font-size: 14px; font-weight: 600; color: var(--ink-mute); }
.card__title {
  font-size: 15.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__loc { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink-mute); }
.card__loc svg { width: 15px; height: 15px; flex: none; }
.card__specs {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 11px;
  border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-soft);
}
.card__specs span { display: inline-flex; align-items: center; gap: 5px; }
.card__specs svg { width: 16px; height: 16px; color: var(--ink-mute); flex: none; }

/* ── การ์ดหมวดหมู่ ────────────────────────────────────────────────────── */
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px; padding: 18px 16px; border-radius: var(--radius);
  background: var(--navy-800); color: #fff; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
@media (min-width: 768px) { .cat-card { min-height: 200px; padding: 22px; } }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(201,162,39,.34) 0%, transparent 58%);
}
.cat-card > * { position: relative; }
.cat-card svg { width: 30px; height: 30px; color: var(--gold-400); margin-bottom: auto; }
.cat-card h3 { font-size: 18px; margin-top: 14px; }
.cat-card span { font-size: 14px; color: #b9cae0; }

/* หมวดหมู่ทรัพย์ 14 ประเภท — การ์ดกะทัดรัดกว่าเดิม จะได้กวาดสายตาดูครบเร็ว */
.grid--cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .grid--cats { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 768px) { .grid--cats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.grid--cats .cat-card { min-height: 116px; padding: 14px 13px; }
@media (min-width: 768px) { .grid--cats .cat-card { min-height: 142px; padding: 18px; } }
.grid--cats .cat-card svg { width: 26px; height: 26px; }
.grid--cats .cat-card h3 { font-size: 15.5px; margin-top: 10px; line-height: 1.35; }
@media (min-width: 768px) { .grid--cats .cat-card h3 { font-size: 16.5px; } }
.grid--cats .cat-card span { font-size: 12.5px; }
/* หมวดที่ยังไม่มีประกาศ — ลดน้ำหนักลง แต่ยังกดสอบถามได้ */
.cat-card--empty { background: var(--navy-900); }
.cat-card--empty::before { opacity: .45; }
.cat-card--empty h3 { color: #e7eef7; }

/* ── จุดเด่น / ขั้นตอน ────────────────────────────────────────────────── */
.feature { padding: 20px 16px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); height: 100%; }
.section--soft .feature { background: #fff; }
.feature svg { width: 28px; height: 28px; color: var(--gold-600); margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }

/* การ์ดบริการที่กดได้ — ต้องรู้สึกว่าเป็นปุ่มตั้งแต่ยังไม่ชี้ */
a.feature--link {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.feature--link:hover { border-color: var(--gold-500); box-shadow: var(--shadow-2); transform: translateY(-3px); }
a.feature--link:active { transform: translateY(0); box-shadow: none; }
a.feature--link:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.feature__more {
  display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--navy-700);
}
.feature__more svg { width: 17px; height: 17px; margin: 0; color: currentColor; transition: transform .2s var(--ease); }
a.feature--link:hover .feature__more svg { transform: translateX(3px); }

.step { position: relative; padding: 22px 18px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); height: 100%; }
.step__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900); font-weight: 700; font-size: 16px; margin-bottom: 13px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; color: #fff; }
.step p { font-size: 14.5px; color: #bccce0; line-height: 1.6; }

/* ── รีวิวลูกค้า ───────────────────────────────────────────────────────── */
.review {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  padding: 22px 18px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.review__mark { display: block; width: 26px; height: 26px; color: var(--gold-600); }
.review blockquote { font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.review figcaption b { color: var(--navy-800); }
.review figcaption span { color: var(--ink-soft); }

#review-list.few-1 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
#review-list.few-2 { grid-template-columns: 1fr; max-width: 840px; margin-inline: auto; }
@media (min-width: 768px) { #review-list.few-2 { grid-template-columns: 1fr 1fr; } }

/* ── ตัวเลขสถิติ ──────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.stat { text-align: center; padding: 20px 12px; border-radius: var(--radius); background: var(--navy-50); }
.stat__n { font-size: clamp(28px, 4.5vw, 42px); font-weight: 700; color: var(--navy-800); line-height: 1.4; }
.stat__l { font-size: 14.5px; color: var(--ink-soft); margin-top: 5px; }

/* ── แกลเลอรีผลงาน — masonry คงสัดส่วนไฟล์จริง ห้ามครอป ─────────────────── */
.masonry { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .masonry { columns: 3; column-gap: 12px; } }
@media (min-width: 1024px) { .masonry { columns: 4; column-gap: 16px; } }
.masonry figure { break-inside: avoid; margin-bottom: 10px; border-radius: var(--radius-sm); overflow: hidden; }
@media (min-width: 480px) { .masonry figure { margin-bottom: 12px; } }
@media (min-width: 1024px) { .masonry figure { margin-bottom: 16px; } }
.masonry img { width: 100%; height: auto; transition: transform .3s var(--ease); }
.masonry figure:hover img { transform: scale(1.03); }

/* ── กล่องรอเนื้อหาจริง ───────────────────────────────────────────────── */
.awaiting {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 34px 22px; text-align: center; color: var(--ink-mute); background: var(--bg-soft);
}
.awaiting svg { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--ink-mute); }
.awaiting strong { display: block; color: var(--ink-soft); font-size: 17px; margin-bottom: 5px; }
.awaiting p { font-size: 15px; max-width: 46ch; margin-inline: auto; }

/* ── แถบติดต่อลอยบนมือถือ — ไลน์กับโทรเท่านั้น สูงไม่เกิน 60px ──────────── */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr;
  height: 58px; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(11,37,69,.10);
}
.contact-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15.5px; font-weight: 700;
}
.contact-bar a:first-child { color: var(--navy-800); border-right: 1px solid var(--line); }
.contact-bar a:last-child { background: #06C755; color: #fff; }
.contact-bar svg { width: 20px; height: 20px; }
body { padding-bottom: 58px; }
@media (min-width: 1000px) {
  .contact-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ── ท้ายเว็บ ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: #b9c8db; padding-block: 52px 0; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr; gap: 40px; } }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer img.flogo { width: 46px; height: 48px; object-fit: contain; margin-bottom: 14px; }
.footer-list { display: flex; flex-direction: column; font-size: 15px; }
/* พื้นที่กดบนมือถืออย่างน้อย 44px ไม่งั้นกดพลาดง่าย */
.footer-list a { padding-block: 9px; min-height: 44px; display: flex; align-items: center; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact > div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-400); }
.footer-bottom {
  margin-top: 38px; padding-block: 10px 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 18px;
  justify-content: space-between; align-items: center;
}
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom > span { display: inline-flex; align-items: center; min-height: 44px; }

/* ── ตัวช่วย ──────────────────────────────────────────────────────────── */
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 40px; }
.mb-s { margin-bottom: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: 8px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 11px 18px; border-radius: 8px;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { width: auto; height: auto; clip: auto; }

.prose h2 { font-size: clamp(21px, 3vw, 27px); margin: 30px 0 12px; }
.prose h3 { font-size: 19px; margin: 22px 0 9px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.8; color: var(--ink-soft); }
/* ย่อหน้าต้องเห็นว่าขึ้นย่อหน้าใหม่ ไม่งั้นอ่านติดกันเป็นก้อนเดียว */
.prose p + p { margin-top: 15px; }
.prose ul { padding-left: 21px; display: flex; flex-direction: column; gap: 7px; margin: 12px 0; }
.prose li::marker { color: var(--gold-500); }
.prose > *:first-child { margin-top: 0; }

/* ── สปินเนอร์ ────────────────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--line-soft) 25%, #f6f8fb 50%, var(--line-soft) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-card { height: 290px; }

/* ── อนิเมชันตอนเลื่อนถึง — ขยับขึ้น 18px จางเข้า เล่นครั้งเดียว ─────────── */
.reveal { opacity: 1; transform: none; }
/* ซ่อนไว้รออนิเมชันเฉพาะตอน JS ทำงาน ถ้า JS พังเนื้อหาต้องยังเห็นได้ตามปกติ */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in, .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .card:hover, .cat-card:hover, .masonry figure:hover img,
  a.feature--link:hover, a.feature--link:hover .feature__more svg { transform: none; }
  .skeleton { animation: none; }
}
