/* ฐาปกรณ์ รถตู้อุบล — พรีเมียมโทนเข้ม (กรมท่า + ทอง)
   แบบอ้างอิง: design/comps/แบบอ้างอิง.png · ทิศทาง: design/comps/layout-direction.md (แบบ A)
   ฟอนต์เดียวทั้งเว็บ Noto Sans Thai แยกน้ำหนัก 400 / 600 / 700 */

:root {
  --bg: #07101f;
  --navy: #0b1a33;
  --navy-2: #102444;
  --navy-3: #16305a;
  --gold: #d4b26a;
  --gold-2: #ecd49b;
  --gold-3: #b18f45;
  --ivory: #f4efe6;
  --muted: #b3bccb;
  --line: rgba(212, 178, 106, .26);
  --line-2: rgba(212, 178, 106, .55);
  --radius: 6px;
  --font: 'Noto Sans Thai', system-ui, sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sec: clamp(56px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font-family: var(--font); font-size: 17px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
svg.line-logo { stroke: none; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--navy); padding: 8px 14px; }
.skip:focus { left: 8px; }
.eyebrow { color: var(--gold); font-size: 15px; font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 4px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: #0b1a33; box-shadow: 0 6px 18px -8px rgba(212,178,106,.7); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(212,178,106,.9); }
.btn-line { border-color: var(--line-2); color: var(--gold-2); background: rgba(7,16,31,.35); }
.btn-line:hover { border-color: var(--gold); background: rgba(212,178,106,.1); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { background: #050c18; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: center; gap: 22px; min-height: 38px; align-items: center; flex-wrap: wrap; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar svg { color: var(--gold); width: 16px; height: 16px; }
.topbar a:hover { color: var(--gold-2); }

/* ห้ามใส่ backdrop-filter / transform / filter ที่หัวเว็บ — เมนูมือถืออยู่นอกหัวเว็บแล้ว แต่กันไว้ */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo-img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.logo-txt { display: grid; line-height: 1.3; min-width: 0; }
.logo-txt b { font-size: 21px; color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.logo-txt small { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { margin-inline-start: auto; display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 10px 12px; text-decoration: none; color: var(--ivory); font-size: 16px; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--gold-2); }
.nav-cta { min-height: 46px; padding-inline: 18px; }
.nav-toggle { display: none; margin-inline-start: auto; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 4px; background: transparent; cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold-2); margin-inline: auto; }

.mobile-menu { position: fixed; inset: 0; z-index: 120; background: var(--navy); display: flex; flex-direction: column; padding: 18px clamp(16px, 5vw, 32px) 28px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mm-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mm-top b { color: var(--gold-2); font-size: 20px; }
.mm-top button { width: 48px; height: 48px; font-size: 32px; line-height: 1; background: none; border: 1px solid var(--line-2); border-radius: 4px; color: var(--gold-2); cursor: pointer; }
.mobile-menu nav { display: grid; margin: 12px 0 24px; }
.mobile-menu nav a { padding: 16px 4px; font-size: 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current="page"] { color: var(--gold-2); }
.mm-cta { display: grid; gap: 12px; margin-top: auto; }
body.nav-open { overflow: hidden; }

/* ---------- แบนเนอร์หน้าแรก (เต็มจอ ข้อความซ้ายล่าง) ---------- */
.hx-luxe { position: relative; height: min(86vh, 780px); min-height: 520px; overflow: hidden; background: var(--navy); }
.hx-track, .hx-slide { position: absolute; inset: 0; }
.hx-slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hx-slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.hx-slide picture, .hx-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hx-slide::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,16,31,.94) 0%, rgba(7,16,31,.72) 34%, rgba(7,16,31,.12) 68%, transparent 100%),
              linear-gradient(0deg, rgba(7,16,31,.9) 0%, transparent 38%); }
.hx-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: 84px; }
.hx-copy > * { max-width: 640px; }
.hx-title { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.22; color: var(--gold-2); text-wrap: balance;
  background: linear-gradient(180deg, #f6e6b8 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hx-sub { margin-top: 16px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ivory); max-width: 560px; }
.hx-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hx-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--ivory); text-decoration: none; font-size: 18px; font-weight: 600; width: max-content; }
.hx-phone svg { color: var(--gold); }
.hx-ctrl { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.hx-arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(7,16,31,.5); color: var(--gold-2); cursor: pointer; }
.hx-arrow:hover { background: rgba(212,178,106,.15); }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 32px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.hero-dots button::before { content: ''; position: absolute; left: 4px; right: 4px; top: 21px; height: 2px; background: rgba(244,239,230,.35); }
.hero-dots button[aria-current="true"]::before { background: var(--gold); height: 3px; top: 20px; }

/* หัวหน้ารอง */
.hx-page { position: relative; overflow: hidden; background: var(--navy); border-bottom: 1px solid var(--line); }
.hx-page .hx-bg { position: absolute; inset: 0; }
.hx-page .hx-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: .38; }
.hx-page::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,31,.95) 20%, rgba(7,16,31,.4)); }
.hx-page-in { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 96px); }
.hx-page h1 { font-size: clamp(32px, 4.6vw, 56px); color: var(--gold-2); margin-top: 10px; }
.hx-page p { margin-top: 12px; max-width: 620px; font-size: 18px; color: var(--ivory); }
.hx-page .btn { margin-top: 24px; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--gold); text-decoration: none; }

/* ---------- แถบความมั่นใจ 01–04 ---------- */
.trust { background: var(--navy); border-bottom: 1px solid var(--line); }
.trust-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-row li { display: flex; gap: 16px; align-items: center; padding: 26px 22px; border-left: 1px solid var(--line); }
.trust-row li:first-child { border-left: 0; padding-left: 0; }
.trust-row .num { font-size: 40px; font-weight: 400; color: var(--gold); line-height: 1; letter-spacing: -.02em; }
.trust-row h3 { font-size: 16px; font-weight: 600; color: var(--ivory); }
.trust-row p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ---------- หัวข้อส่วน ---------- */
.sec { padding-block: var(--sec); }
.sec-head { display: grid; justify-items: center; text-align: center; gap: 12px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { display: flex; align-items: center; gap: 22px; font-size: clamp(27px, 3.4vw, 42px); color: var(--gold-2); text-wrap: balance; }
.sec-head:not(.is-left) h2::before, .sec-head:not(.is-left) h2::after { content: ''; height: 1px; width: clamp(28px, 9vw, 140px); background: linear-gradient(90deg, transparent, var(--gold)); flex: none; }
.sec-head:not(.is-left) h2::after { transform: scaleX(-1); }
.sec-head.is-left { justify-items: start; text-align: left; }
.sec-intro { color: var(--muted); max-width: 640px; font-size: 17px; }

/* ---------- รถและบริการ (การ์ด) ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.car { background: linear-gradient(180deg, var(--navy-2), var(--navy)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.car:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 40px -24px rgba(212,178,106,.45); }
.car-pic { overflow: hidden; background: var(--navy-3); }
.car-pic img { width: 100%; height: 100%; object-fit: cover; }
.car-body { padding: 18px 18px 20px; display: grid; gap: 8px; }
.car-body .eyebrow { margin: 0; font-size: 14px; }
.car h3 { font-size: 19px; color: var(--ivory); }
.car p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--gold-2); font-weight: 600; font-size: 15px; text-decoration: none; min-height: 44px; }
.card-link svg { transition: transform .2s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }
.card-price { color: var(--gold-2); font-weight: 700; }

/* รายการรถแนวนอน */
.fl-rows { display: grid; border-top: 1px solid var(--line); }
.fl-row { display: grid; grid-template-columns: 56px 150px 1fr auto; gap: 26px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.fl-n { font-size: 34px; color: var(--gold); line-height: 1; }
.fl-pic { overflow: hidden; border-radius: 4px; background: var(--navy-3); }
.fl-pic img { width: 100%; height: 100%; object-fit: cover; }
.fl-text h3 { font-size: 22px; }
.fl-text p { color: var(--muted); margin-top: 4px; }
.fl-text .eyebrow { margin: 0 0 4px; font-size: 14px; color: var(--gold); }

/* ---------- แพ็กเกจเด่น / เกี่ยวกับเรา (ภาพใหญ่ + ข้อความ) ---------- */
.feature-split { background: linear-gradient(180deg, var(--bg), var(--navy) 60%, var(--bg)); }
.fs-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.pic-right .fs-pic { order: 2; }
@media (min-width: 1024px) { .feature-split:not(.is-pkg) .fs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1023px) { .feature-split:not(.is-pkg) .fs-pic { max-width: 600px; } }
.fs-pic { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.fs-pic img { width: 100%; height: 100%; object-fit: cover; }
.fs-text h2 { font-size: clamp(28px, 3.4vw, 44px); color: var(--gold-2); margin-bottom: 18px; }
.fs-text p { color: var(--ivory); margin-bottom: 14px; }
.fs-text p:last-of-type { color: var(--muted); font-size: 15px; }
.fs-text .btn { margin-top: 12px; }
.pkg-price { display: inline-block; padding: 8px 22px; margin-bottom: 20px !important; border: 1px solid var(--gold); border-radius: 4px;
  background: linear-gradient(180deg, rgba(236,212,155,.16), rgba(212,178,106,.04)); color: var(--gold-2) !important;
  font-size: clamp(24px, 2.6vw, 34px) !important; font-weight: 700; line-height: 1.4; }

/* ---------- ขั้นตอนจองรถ ---------- */
.steps { background: var(--navy); border-block: 1px solid var(--line); }
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps-row::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); opacity: .6; }
.steps-row li { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; align-content: start; }
.step-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--gold); color: var(--gold-2); position: relative; z-index: 1; }
.step-ic svg { width: 28px; height: 28px; }
.step-n { font-size: 14px; color: var(--gold); font-weight: 600; letter-spacing: .1em; }
.steps-row h3 { font-size: 18px; }
.steps-row p { font-size: 15px; color: var(--muted); max-width: 240px; }

/* ---------- ผลงานจริง (ไม่ครอป สัดส่วนจริงของรูป) ---------- */
.works { background: linear-gradient(180deg, var(--bg), #091529); }
.works-grid { columns: var(--cols, 3); column-gap: 16px; }
.work { display: block; break-inside: avoid; margin-bottom: 16px; text-decoration: none; position: relative; }
.work-pic { display: block; overflow: hidden; border-radius: 4px; background: var(--navy-3); }
.work-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover .work-pic img { transform: scale(1.03); }
.work-cap { display: block; margin-top: 8px; font-size: 15px; color: var(--gold-2); font-weight: 600; }
.work-desc { display: block; font-size: 14px; color: var(--muted); }
.works-more { text-align: center; margin-top: 32px; }

/* ---------- เหตุผลที่ควรเลือก ---------- */
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.why-head .sec-head { margin-bottom: 24px; }
.why-art { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.fx-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fx-rows li { display: grid; grid-template-columns: 64px 40px 1fr; gap: 16px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.fx-n { font-size: 40px; line-height: 1; color: var(--gold); }
.fx-ic { color: var(--gold-2); padding-top: 4px; }
.fx-ic svg { width: 26px; height: 26px; }
.fx-rows h3 { font-size: 20px; }
.fx-rows p { color: var(--muted); margin-top: 4px; }

/* ---------- ตารางราคา ---------- */
.rate-table { max-width: 860px; margin-inline: auto; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.rate-tr { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 18px 26px; border-top: 1px solid var(--line); align-items: center; }
.rate-tr:nth-child(even) { background: rgba(16,36,68,.55); }
.rate-th { border-top: 0; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy); font-weight: 700; font-size: 16px; padding-block: 12px; }
.rate-price { color: var(--gold-2); font-weight: 700; font-size: 19px; text-align: right; }

/* ---------- เสียงตอบรับ ---------- */
.voice-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.voice { margin: 0; display: grid; gap: 14px; align-content: start; }
/* ภาพแชตจริง: กรอบสูงเท่ากันทุกใบ ภาพอยู่ครบไม่ครอป (contain บนพื้นขาวแบบหน้าจอแชต) */
.voice-shot { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #fff; height: 420px; aspect-ratio: auto !important; }
.voice-shot img { width: 100%; height: 100%; object-fit: contain; }
.voice blockquote { margin: 0; position: relative; padding-left: 26px; }
.q-mark { position: absolute; left: 0; top: -10px; font-size: 44px; color: var(--gold); line-height: 1; }
.voice blockquote p { font-size: 16px; }
.voice figcaption { display: grid; font-size: 14px; color: var(--muted); }
.voice figcaption b { color: var(--gold-2); font-weight: 600; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 4px; background: rgba(11,26,51,.6); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; margin-inline-start: auto; width: 10px; height: 10px; border-right: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold); transform: rotate(45deg); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.q-badge { flex: none; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--gold); border-radius: 3px; padding: 2px 8px; }
.faq-a { padding: 0 18px 18px 64px; color: var(--muted); }

/* ---------- แถบชวนจอง ---------- */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 130px); background: var(--navy); border-block: 1px solid var(--line); }
.cta-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: .55; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,31,.92) 25%, rgba(7,16,31,.35)); }
.cta-in { position: relative; z-index: 1; }
.cta-in h2 { font-size: clamp(26px, 3.4vw, 42px); color: var(--gold-2); max-width: 680px; text-wrap: balance; }
.cta-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.cta-soft { background: var(--navy-2); }

/* ---------- ติดต่อ + ฟอร์ม ---------- */
.contact-sec { background: linear-gradient(180deg, var(--bg), var(--navy)); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-info h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--gold-2); margin-bottom: 12px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.ci { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold-2); }
.ci svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.contact-list a, .contact-list span { font-size: 17px; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--gold-2); }
.contact-list .map-open { display: inline-block; font-size: 15px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; margin-top: 2px; }
.contact-form { background: var(--navy-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); }
.contact-form h3 { font-size: 22px; color: var(--gold-2); margin-bottom: 18px; }
.lead { display: grid; gap: 14px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.lead input, .lead select, .lead textarea { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; border-radius: 4px; border: 1px solid rgba(212,178,106,.35); background: #f8f5ee; color: #0b1a33; }
.lead textarea { min-height: 110px; resize: vertical; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.lead ::placeholder { color: #6b7385; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { min-height: 1.6em; font-size: 15px; }
.msg.ok { color: #9be3b4; }
.msg.bad { color: #ffb4a8; }
.map-wrap { margin-top: 40px; }
.map { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ข้อความอิสระ */
.prose { max-width: 760px; margin-inline: auto; }
.prose.is-wide { max-width: none; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); color: var(--gold-2); margin-bottom: 16px; }
.prose p { margin-bottom: 14px; color: var(--ivory); }

/* จุดเด่นแบบช่อง (ใช้ในหน้าอื่น) */
.perk-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 16px; }
.perk { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy); }
.perk-ic { color: var(--gold-2); }
.perk-ic svg { width: 28px; height: 28px; }
.perk h3 { font-size: 18px; }
.perk p { color: var(--muted); font-size: 15px; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: #050c18; border-top: 1px solid var(--line-2); padding-top: 56px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 36px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 360px; }
.foot-h { font-size: 16px; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.foot-links { display: grid; gap: 6px; }
.foot-links a { text-decoration: none; color: var(--ivory); font-size: 15px; padding-block: 4px; }
.foot-links a:hover { color: var(--gold-2); }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ivory); }
.foot-list li, .foot-list a { display: flex; gap: 8px; align-items: flex-start; text-decoration: none; }
.foot-list svg { color: var(--gold); margin-top: 5px; width: 16px; height: 16px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--gold-2); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 18px; color: var(--muted); font-size: 14px; text-align: center; }

/* ปุ่มลอยมือถือ (LINE + โทร) */
.float-contact { display: none; }

/* กดดูรูปเต็ม */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(4,9,18,.9); }
dialog.light figure { margin: 0; }
dialog.light img { max-width: 94vw; max-height: 84vh; width: auto; margin: auto; border-radius: 4px; }
dialog.light figcaption { color: var(--ivory); text-align: center; margin-top: 10px; font-size: 15px; }
dialog.light button { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; font-size: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--navy); color: var(--gold-2); cursor: pointer; }

/* บทความ (ถ้าเปิดเมนูบทความภายหลัง) */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.card-body { padding: 18px; }
.card-body h2, .card-body h4 { font-size: 19px; }
.card-body a { text-decoration: none; }
.a-wrap { max-width: 820px; }
.a-wrap h1 { font-size: clamp(30px, 4vw, 46px); color: var(--gold-2); margin: 12px 0; }
.a-meta { color: var(--muted); font-size: 15px; }
.a-body p, .a-body ul, .a-body ol { margin: 0 0 16px; }
.a-body h2 { color: var(--gold-2); margin: 28px 0 12px; }
.a-cover, .a-fig { margin: 20px 0; }

/* ---------- ปรากฏตอนเลื่อนถึง ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease) var(--d, 0ms), transform .55s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- จอแคบ ---------- */
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .fleet-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-row li { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .trust-row li:nth-child(-n+2) { border-top: 0; }
  .trust-row li:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-row li:first-child { padding-left: 16px; }
  .why-grid, .faq-grid, .contact-grid, .fs-grid { grid-template-columns: 1fr; }
  .pic-right .fs-pic { order: 0; }
  .steps-row { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps-row::before { display: none; }
  .fl-row { grid-template-columns: 44px 110px 1fr; }
  .fl-cta { grid-column: 3; }
}
@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .topbar .wrap { gap: 14px; justify-content: space-between; }
  .tb-hide { display: none !important; }
  .nav .wrap { min-height: 68px; gap: 12px; }
  .logo-img { width: 48px; height: 48px; }
  .logo-txt b { font-size: 18px; }
  .logo-txt small { font-size: 14px; max-width: 52vw; }
  .hx-luxe { height: 70vh; height: 70svh; min-height: 480px; max-height: 640px; }
  .hx-slide img { object-position: 70% 50%; }
  .hx-slide::after { background: linear-gradient(0deg, rgba(7,16,31,.97) 0%, rgba(7,16,31,.8) 42%, rgba(7,16,31,.15) 75%); }
  .hx-copy { justify-content: flex-end; padding-bottom: 76px; }
  .hx-actions .btn { flex: 1 1 100%; }
  .hx-phone { display: none; }
  .hx-ctrl { justify-content: center; bottom: 12px; }
  .hx-arrow { display: none; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .car-body { padding: 12px 12px 14px; gap: 6px; }
  .car h3 { font-size: 16px; }
  .car p { font-size: 14px; }
  .card-link { font-size: 14px; }
  .trust-row li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 14px; }
  .trust-row .num { font-size: 28px; }
  .works-grid { columns: 2; column-gap: 10px; }
  .work { margin-bottom: 10px; }
  .work-cap { font-size: 14px; }
  .steps-row { grid-template-columns: 1fr; row-gap: 0; }
  .steps-row li { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .steps-row li .step-n { display: none; }
  .step-ic { width: 52px; height: 52px; }
  .fx-rows li { grid-template-columns: 48px 1fr; }
  .fx-ic { display: none; }
  .fx-n { font-size: 32px; }
  .faq-a { padding-left: 18px; }
  .f2 { grid-template-columns: 1fr; }
  .rate-tr { padding: 14px 16px; }
  .rate-price { font-size: 17px; }
  .fl-row { grid-template-columns: 90px 1fr; gap: 14px; }
  .fl-n { display: none; }
  .fl-cta { grid-column: 2; }
  .fl-text h3 { font-size: 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .perk-grid { grid-template-columns: 1fr; }
  .voice-strip { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; gap: 12px; }
  .voice { scroll-snap-align: start; }
  .voice-shot { height: 380px; }
  .float-contact { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(5,12,24,.96); border-top: 1px solid var(--line-2); }
  .float-contact .btn { flex: 1; min-height: 48px; padding-inline: 10px; font-size: 15px; }
  .map { height: 280px; }
  .sec-head h2 { gap: 12px; }
}
@media (max-width: 380px) {
  .logo-txt small { display: none; }
  .btn { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- ปรับหลังตรวจ (ขนาดจุดกด 44px · ภาพแบนเนอร์คอมชิดขวาให้คมบนจอ retina) ---------- */
.skip { min-height: 44px; display: inline-flex; align-items: center; }
.topbar a, .topbar span { min-height: 44px; }
.hero-dots button { width: 44px; }
.hero-dots button::before { left: 8px; right: 8px; }
.contact-list a, .contact-list .map-open { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list small { margin-bottom: -8px; }
.foot-links a { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
.foot-links { gap: 0; }
.foot-list a { min-height: 44px; align-items: center; }
.foot-list a svg { margin-top: 0; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs { align-items: center; }
@media (min-width: 1024px) {
  .hx-luxe { background: radial-gradient(120% 90% at 15% 40%, #12264a 0%, var(--bg) 70%); }
  .hx-slide picture { left: auto; right: 0; width: 62%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
  .hx-slide picture img { object-position: 50% 55%; }
  .hx-slide::after { background: linear-gradient(0deg, rgba(7,16,31,.75) 0%, transparent 30%); }
}
/* ข้อความไทยต้อง line-height ≥ 1.4 (สระบน-ล่างไม่ชน) */
h1, h2, h3, h4 { line-height: 1.45; }
.hx-title { line-height: 1.4; }
.logo-txt { line-height: 1.45; }
.contact-list small { line-height: 1.45; }
@media (min-width: 1024px) {
  .hx-luxe { height: min(80vh, 700px); }
  .hx-slide picture { width: min(60%, 880px); }
}
/* หัวหน้ารอง + แถบชวนจอง บนคอม: ภาพชิดขวาจางเข้าพื้นกรมท่า (ภาพต้นฉบับกว้างสุด 1,600px จะได้คมบนจอ retina) */
@media (min-width: 1024px) {
  .hx-page .hx-bg, .cta-art { left: auto; right: 0; width: min(58%, 860px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
  .hx-page .hx-bg img { opacity: .5; }
  .cta-art { opacity: .7; }
  .hx-page::after { background: linear-gradient(90deg, rgba(7,16,31,.9) 30%, rgba(7,16,31,.2)); }
  .cta-band::after { background: linear-gradient(90deg, rgba(7,16,31,.9) 35%, rgba(7,16,31,.1)); }
}

/* ---------- แก้ด่วน 25/11: ข้อความภาพเปิดหน้าเด่นขึ้น + รูปหน้ารถในตารางราคา ---------- */
.hx-title { font-weight: 700; filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
.hx-copy .eyebrow { color: var(--gold-2); font-size: 16px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.hx-sub { font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
@media (max-width: 767px) {
  .hx-slide::after { background: linear-gradient(0deg, rgba(7,16,31,.97) 0%, rgba(7,16,31,.9) 45%, rgba(7,16,31,.68) 75%, rgba(7,16,31,.45) 100%); }
  .hx-title { font-size: clamp(34px, 9.4vw, 44px); }
}
.rate-name { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rate-pic { flex: none; width: 150px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); background: var(--navy); }
/* รูปรถกดได้ = เปิดโปสเตอร์ตัวเต็มของรุ่นนั้น */
.rate-pic-link { flex: none; position: relative; display: block; border-radius: 8px; transition: transform .2s ease; }
.rate-pic-link .rate-pic { display: block; }
.rate-pic-link::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(7,16,31,.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9c97a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 15px no-repeat; }
@media (hover: hover) { .rate-pic-link:hover { transform: scale(1.03); } }
.rate-pic-link:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
@media (max-width: 767px) {
  .rate-name { gap: 12px; }
  .rate-pic { width: 104px; border-radius: 6px; }
  .rate-tr { gap: 12px; }
}
