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

:root {
  --accent: #1546a0;            /* น้ำเงินหลวง ปุ่มหลักและลิงก์ (ทับได้จาก site.config.js → brand.color) */
  --navy: #0b2a5b;              /* น้ำเงินกรมท่า พื้นแบนเนอร์และแถบเข้ม */
  --navy-2: #081f45;            /* ท้ายเว็บ */
  --gold: #c9a24a;              /* ทองจากโลโก้ ใช้เป็นพื้นปุ่ม/เส้นตกแต่งเท่านั้น ตัวหนังสือบนทองใช้สีกรมท่า */
  --gold-2: #e6c46c;            /* ทองอ่อน สำหรับตัวหนังสือบนพื้นกรมท่า */
  --ink: #0f1d36;
  --muted: #4b5a74;
  --paper: #ffffff;
  --tint: #f2f5fb;
  --line: #dce3ef;
  --line-green: #06c755;
  --radius: 12px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --gap: clamp(56px, 8vw, 104px);
  --pad: clamp(16px, 4vw, 32px);
  --max: 1180px;
  --shadow: 0 1px 2px rgba(11, 42, 91, .06), 0 8px 24px -12px rgba(11, 42, 91, .18);
  --shadow-up: 0 2px 4px rgba(11, 42, 91, .08), 0 18px 36px -14px rgba(11, 42, 91, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16.5px; line-height: 1.7; -webkit-text-size-adjust: 100%; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4, .h1 { line-height: 1.4; margin: 0; text-wrap: balance; font-weight: 700; color: inherit; }
p { margin: 0; }
button { font: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); }
.sec-tint { background: var(--tint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.ico { width: 1.25em; height: 1.25em; stroke-width: 1.75; flex: none; }
.ico-brand { width: 1.4em; height: 1.4em; flex: none; }

/* ---------- หัวข้อของแต่ละส่วน ---------- */
.sec-head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); color: var(--navy); }
.sec-head h2::after {
  content: ''; display: block; width: 56px; height: 3px; background: var(--gold);
  margin: 14px auto 0; border-radius: 2px;
}
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 8px;
  font-size: 16.5px; font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center;
  background: var(--accent); color: #fff; border: 1.5px solid var(--accent);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
.btn-outline { background: transparent; color: var(--accent); border-color: currentColor; }
.btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover { background: #05a647; border-color: #05a647; }
.btn-line .ico-brand rect { fill: #fff; }
.btn-line .ico-brand path:first-of-type { fill: var(--line-green); }
.btn-line .ico-brand path:last-of-type { fill: #fff; }
.btn-block { width: 100%; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- แถบบนสุด + เมนู ---------- */
.topbar { background: var(--navy); color: #d6e0f2; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ico { color: var(--gold-2); width: 16px; height: 16px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }

.nav {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px);
}
.nav-in { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.logo img { width: 56px; height: 56px; flex: none; }
.logo span { font-weight: 700; font-size: 17px; line-height: 1.4; max-width: 17em; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 10px 14px; border-radius: 8px; position: relative;
}
.nav-links a:hover { color: var(--accent); background: var(--tint); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold);
}
.nav-cta { min-height: 46px; padding: 10px 18px; font-size: 15.5px; }
.nav-toggle {
  display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); place-items: center; cursor: pointer;
}
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .ico:last-child, .nav-open .nav-toggle .ico:first-child { display: none; }
.nav-open .nav-toggle .ico:last-child { display: block; }

@media (max-width: 1023px) {
  .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: #fff; padding: 8px var(--pad) 18px;
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(11, 42, 91, .35);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav-links a[aria-current="page"]::after { left: 4px; right: auto; width: 32px; bottom: 6px; }
}
@media (max-width: 599px) {
  .topbar .wrap > span { font-size: 14px; }
  .nav-in { min-height: 66px; gap: 10px; }
  .logo img { width: 46px; height: 46px; }
  .logo span { font-size: 15px; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-track { display: flex; transition: transform .7s cubic-bezier(.22, .7, .2, 1); }
.hs { flex: 0 0 100%; min-width: 0; position: relative; }
.hero .h1, .hero h1 { font-size: clamp(30px, 4.6vw, 58px); letter-spacing: -.01em; }
.hs-sub { font-size: clamp(16.5px, 1.6vw, 20px); line-height: 1.65; opacity: .92; margin-top: 14px; max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--gold-2);
  font-weight: 600; font-size: 15.5px; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.hs-actions { margin-top: 26px; }

/* แบบรูปเต็มจอ — รูป 16:9 เต็มกว้าง ไม่ครอปข้อความในภาพ จอใหญ่ข้อความทับฝั่งซ้าย */
.hero-full .hs-pic { aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.hero-full .hs-pic picture, .hero-full .hs-pic img { width: 100%; height: 100%; }
.hero-full .hs-pic img { object-fit: cover; object-position: center; }
.hero-full .hs-body { background: var(--navy); padding: 26px 0 78px; }
@media (min-width: 768px) {
  .hero-full .hs-pic { max-height: calc(100svh - 114px); min-height: 460px; width: 100%; }
  .hero-full .hs-pic::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 31, 69, .9) 0%, rgba(8, 31, 69, .72) 34%, rgba(8, 31, 69, 0) 62%),
      linear-gradient(0deg, rgba(8, 31, 69, .55) 0%, rgba(8, 31, 69, 0) 26%);
  }
  .hero-full .hs-body { position: absolute; inset: 0; display: flex; align-items: center; background: none; padding: 0 0 40px; }
  .hero-full .hs-body > .wrap { width: 100%; }
  .hs-text { max-width: min(560px, 46%); }
}
@media (max-width: 767px) {
  /* รูปสำหรับมือถือ (ถ้าลูกค้าใส่) เป็นแนวตั้ง — คุมไม่ให้สูงเกินครึ่งจอ ให้เห็นข้อความต่อ */
  .hero-full .hs-pic:has(source) { aspect-ratio: auto; max-height: 52svh; }
  .hero .hs-actions .btn { flex: 1 1 100%; }
}

/* ปุ่มเลื่อนสไลด์ */
.hero-ctrl {
  position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5);
  background: rgba(8, 31, 69, .35); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s ease;
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button {
  width: 28px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; position: relative;
}
.hero-dots button::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 2px; background: rgba(255, 255, 255, .4); transition: background-color .3s ease;
}
.hero-dots button[aria-current="true"]::before { background: var(--gold); }

/* หัวหน้ารอง (compact) และแบบครึ่งจอ (split) — ข้อความซ้าย รูป 16:9 ขวาเต็มภาพ */
.hero-compact, .hero-split { padding-block: clamp(28px, 5vw, 64px); }
.hero-compact {
  background: radial-gradient(circle at 92% 0%, rgba(21, 70, 160, .55), transparent 55%), var(--navy);
}
.hero-split { background: var(--tint); color: var(--ink); }
.hero-split .h1, .hero-split h1 { color: var(--navy); }
.ph-grid { display: grid; gap: 22px; align-items: center; }
.ph-pic { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: rgba(255, 255, 255, .08); }
.ph-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-compact .h1, .hero-compact h1 { font-size: clamp(28px, 4vw, 48px); }
.hero-compact .hs-actions { margin-top: 20px; }
.hero-compact .hero-ctrl, .hero-split .hero-ctrl { position: static; margin-top: 14px; }
.hero-split .hero-arrow { color: var(--navy); border-color: var(--line); background: #fff; }
.hero-split .hero-dots button::before { background: var(--line); }
.hero-split .hero-dots button[aria-current="true"]::before { background: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; color: #b8c6e0; margin-bottom: 14px; }
.crumbs a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-block: -10px; }
.crumbs a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .ph-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); }
}

/* ---------- จุดเด่น ---------- */
.sec-features { background: var(--tint); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.feature-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--gold-2); margin-bottom: 14px;
}
.feature-icon .ico { width: 26px; height: 26px; }
.feature h3 { font-size: 17.5px; color: var(--navy); }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 6px; }
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(min(var(--cols), 4), minmax(0, 1fr)); gap: 20px; }
  .feature { padding: 28px 24px; }
}
@media (max-width: 399px) { .feature { padding: 18px 14px; } .feature h3 { font-size: 16px; } }

/* ---------- เกี่ยวกับเรา ---------- */
.about { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-pic { margin: 0; }
.about-pic img { width: 100%; border-radius: var(--radius); }
.rule { display: block; width: 56px; height: 3px; background: var(--gold); margin-bottom: 18px; border-radius: 2px; }
.about-text h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); margin-bottom: 18px; }
.prose p + p { margin-top: 14px; }
.prose { color: #2a3a57; }
.about-text .btn { margin-top: 26px; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .about.pic-right .about-pic { order: 2; }
  .about-pic img { max-height: 640px; width: auto; margin-inline: auto; }
}

/* ---------- บริการ (การ์ด) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card-pic { aspect-ratio: 4 / 3; background: var(--line); display: block; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3, .card-body h4, .card-body h2 { font-size: 16.5px; color: var(--navy); }
.card-body h2 a { color: inherit; text-decoration: none; }
.card-body p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.chip {
  align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--tint);
  border-radius: 999px; padding: 2px 10px; line-height: 1.6;
}
.card-ask {
  margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent);
}
.card-ask .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.card .btn { margin-top: auto; width: 100%; }
.card-price { font-weight: 700; font-size: 17px; margin-top: auto; padding-top: 8px; }
.card-price s { color: var(--muted); font-weight: 400; font-size: 14.5px; margin-inline-start: 8px; }
.card-sold { color: var(--muted); font-weight: 600; font-size: 14.5px; margin-top: auto; padding-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
  .card:hover .card-ask .ico { transform: translateX(3px); }
}
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .card-body { padding: 20px 20px 22px; gap: 8px; }
  .card-body h3 { font-size: 19px; }
  .card-body p { font-size: 15.5px; }
}

/* บริการแบบแถว */
.rows { display: grid; gap: 14px; }
.row-item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start;
  background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.row-pic { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--line); }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }
.row-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.row-body h3 { font-size: 17.5px; color: var(--navy); }
.row-body p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.row-body .btn { margin-top: 6px; min-height: 44px; padding: 8px 16px; font-size: 15px; }
@media (min-width: 768px) {
  .row-item { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 16px; align-items: center; }
  .row-body h3 { font-size: 21px; }
  .row-body p { font-size: 16px; }
}

/* ---------- ภาพจากงานจริง (ไม่ครอป สัดส่วนตามไฟล์ ไม่ใส่กรอบ/เงา) ---------- */
.gal { columns: 2; column-gap: 10px; }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
.gal-item a { display: block; position: relative; border-radius: 8px; overflow: hidden; }
.gal-item img { width: 100%; transition: transform .4s ease; }
.gal-item figcaption { padding: 8px 2px 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.gal-item figcaption b { display: block; color: var(--ink); font-weight: 600; }
.gal-play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(8, 31, 69, .7); color: #fff; display: grid; place-items: center;
}
@media (hover: hover) and (pointer: fine) { .gal-item a:hover img { transform: scale(1.03); } }
@media (min-width: 480px) { .gal { columns: 3; column-gap: 14px; } .gal-item { margin-bottom: 14px; } }
@media (min-width: 1024px) { .gal { columns: var(--cols); column-gap: 18px; } .gal-item { margin-bottom: 18px; } }

dialog.light {
  border: 0; padding: 0; background: transparent; max-width: min(94vw, 980px); max-height: 94vh;
  color: #fff; overflow: visible;
}
dialog.light::backdrop { background: rgba(5, 14, 33, .9); }
.light-media img, .light-media video { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
.light-cap { text-align: center; margin-top: 12px; font-size: 15px; color: #d6e0f2; }
.light-x {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- เสียงจากลูกค้า ---------- */
.quotes { display: grid; gap: 14px; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.quote blockquote { margin: 0; font-size: 16.5px; color: #2a3a57; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote figcaption img, .quote-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-av { display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-weight: 700; }
.quote figcaption b { display: block; color: var(--navy); }
.quote figcaption small { color: var(--muted); font-size: 14px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-grid { display: grid; gap: 8px; }
.sec-faq .sec-head { text-align: left; margin-inline: 0; }
.sec-faq .sec-head h2::after { margin-inline: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-weight: 600; font-size: 17px; color: var(--navy); line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-a { padding: 0 0 20px; color: #2a3a57; }
.faq-a p + p { margin-top: 10px; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 64px; align-items: start; }
  .sec-faq .sec-head { position: sticky; top: 110px; }
}

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding-block: clamp(48px, 7vw, 84px); text-align: center; }
.cta-dark {
  background: radial-gradient(circle at 15% 120%, rgba(21, 70, 160, .7), transparent 50%), var(--navy);
  color: #fff; border-top: 4px solid var(--gold);
}
.cta-soft { background: var(--tint); }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 38px); max-width: 26em; margin: 0 auto; }
.cta-soft h2 { color: var(--navy); }
.cta-band .hs-actions { justify-content: center; margin-top: 26px; }

/* ---------- ติดต่อ / จองรถ ---------- */
.contact { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-note { margin-bottom: 20px; font-size: 16.5px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li {
  display: flex; align-items: center; gap: 14px; background: var(--tint); border-radius: 10px; padding: 12px 14px;
  min-width: 0;
}
.contact-list li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-list small { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.contact-list a { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--navy); }
.contact-list a:hover { color: var(--accent); }
.c-ico {
  width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.c-ico .ico-brand { width: 26px; height: 26px; }
.hours-247 {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px;
  border-radius: 10px; background: var(--navy); color: #fff;
}
.hours-247 > .ico { width: 30px; height: 30px; color: var(--gold-2); }
.hours-247 b { display: block; font-size: 17px; }
.hours-247 small { color: #c4d1ea; font-size: 14px; }
.hours { list-style: none; margin: 14px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.hours .closed { color: #b42318; }
.lead {
  display: grid; gap: 14px; background: #fff; border-radius: 14px; padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow-up); border-top: 4px solid var(--gold);
}
.lead h3 { font-size: 22px; color: var(--navy); }
.lead-note { color: var(--muted); font-size: 15px; margin-top: -6px; }
.f2 { display: grid; gap: 14px; }
.lead label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.lead input, .lead textarea, .lead select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; min-height: 50px;
}
.lead textarea { min-height: 96px; resize: vertical; }
.lead input:focus, .lead textarea:focus, .lead select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21, 70, 160, .15); }
.lead .bad { border-color: #b42318; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { font-size: 15px; min-height: 1.5em; }
.msg.ok { color: #067647; font-weight: 600; }
.msg.bad { color: #b42318; font-weight: 600; }
.map-wrap { margin-top: 28px; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
@media (min-width: 600px) { .f2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .contact.no-form { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* ---------- ข้อความอิสระ ---------- */
.richtext { max-width: 760px; margin: 0 auto; }
.richtext.is-wide { max-width: none; }
.richtext h2 { font-size: clamp(24px, 3vw, 32px); color: var(--navy); margin-bottom: 16px; }
.richtext .prose { font-size: 17px; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy-2); color: #c4d1ea; padding: clamp(44px, 6vw, 72px) 0 24px; font-size: 15.5px; }
.foot b { color: #fff; display: block; margin-bottom: 10px; font-size: 16.5px; }
.foot a { color: #e3eaf7; text-decoration: none; }
.foot a:hover { color: var(--gold-2); }
.foot-grid { display: grid; gap: 32px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 72px; height: 72px; flex: none; }
.foot-brand p { line-height: 1.7; }
.foot-links, .foot-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-contact a, .foot-contact p { display: inline-flex; gap: 10px; align-items: center; }
.foot-contact .ico { color: var(--gold-2); width: 18px; height: 18px; }
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social .ico-brand { width: 26px; height: 26px; }
.foot small { display: block; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #8fa1c4; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; } }

/* ---------- ปุ่มลอยบนมือถือ (ไลน์ + โทร เท่านั้น สูงไม่เกิน 60px) ---------- */
.float-contact { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .float-contact {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
    box-shadow: 0 -6px 20px -8px rgba(11, 42, 91, .3);
  }
  .float-contact a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px;
    border-radius: 10px; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  }
  .fc-line { background: var(--line-green); }
  .fc-line .ico-brand rect { fill: #fff; }
  .fc-line .ico-brand path:first-of-type { fill: var(--line-green); }
  .fc-line .ico-brand path:last-of-type { fill: #fff; }
  .fc-call { background: var(--accent); }
}

/* ---------- บทความ ---------- */
.a-wrap { max-width: 760px; }
.crumbs-dark { color: var(--muted); }
.crumbs-dark a { color: var(--accent); }
.a-wrap h1 { font-size: clamp(28px, 4.2vw, 40px); color: var(--navy); margin-bottom: 12px; }
.a-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.a-cover { margin: 0 0 26px; }
.a-cover img { border-radius: var(--radius); width: 100%; }
.a-lead { font-size: 18.5px; color: #2a3a57; margin-bottom: 24px; }
.a-toc { background: var(--tint); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.a-toc ol { margin: 8px 0 0; padding-inline-start: 20px; }
.a-body { font-size: 17px; }
.a-body > * + * { margin-top: 16px; }
.a-body h2 { font-size: clamp(22px, 3vw, 28px); color: var(--navy); margin-top: 36px; }
.a-body h3 { font-size: 20px; margin-top: 28px; }
.a-body blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-inline-start: 3px solid var(--gold); color: #2a3a57; }
.a-fig { margin: 24px 0; }
.a-fig img { border-radius: var(--radius); }
.a-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.a-embed { margin-top: 40px; }
.a-embed h3 { margin-bottom: 14px; color: var(--navy); }
.a-cta { margin-top: 36px; padding: 24px; background: var(--tint); border-radius: var(--radius); text-align: center; }
.a-cta p { margin-bottom: 14px; }

/* ---------- อนิเมชัน: ปรากฏตอนเลื่อนถึง (เล่นครั้งเดียว) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- พื้นที่กดบนมือถืออย่างน้อย 44px (ผลตรวจ qa-1d1d) ---------- */
.topbar a { min-height: 44px; }
.topbar .wrap { min-height: 44px; }
.hero-dots button { width: 44px; }
.card-ask { min-height: 44px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; }
.foot-links, .foot-contact { gap: 0; }
