/* รถสไลด์24ชม.com — แลนดิ้งแบบองค์กร โทนดำพรีเมียม เน้นแดงตามโลโก้ */
:root {
  --ink: #0b0c0e;
  --ink-2: #15171a;
  --ink-3: #22252a;
  --steel: #c9cdd2;
  --muted: #5d636b;
  --paper: #f3f3f1;
  --white: #ffffff;
  --red: #e1251b;
  --red-d: #b81a12;
  --line: #e2e3e5;
  --radius: 14px;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Prompt', 'Noto Sans Thai', sans-serif; font-size: 17px; line-height: 1.7;
  color: var(--ink); background: var(--white); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.red { color: var(--red); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 17px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px -10px rgba(225, 37, 27, .7); }
.btn-red:hover { background: var(--red-d); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--red); margin-bottom: 12px; }
.dash { width: 22px; height: 4px; background: var(--red); transform: skewX(-24deg); display: inline-block; box-shadow: 7px 0 0 var(--red); margin-right: 8px; }
.sec-head { max-width: 680px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(28px, 5.4vw, 46px); }
.sec-head p { color: var(--muted); margin-top: 12px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
section { padding: 72px 0; }

/* แถบบน */
.topbar { background: var(--ink); color: var(--steel); font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ic { width: 16px; height: 16px; color: var(--red); }
.topbar a { color: #fff; font-weight: 600; }

/* หัวเว็บ — ห้าม backdrop-filter/transform เพราะเมนูมือถืออยู่นอกหัวเว็บอยู่แล้ว แต่กันไว้ */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.head-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { width: 150px; height: auto; }
.nav-desk { display: none; margin-left: auto; gap: 28px; }
.nav-desk a { color: #fff; font-size: 16px; position: relative; padding: 6px 0; }
.nav-desk a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-desk a:hover::after { transform: scaleX(1); }
.head-cta { display: none; }
.burger { margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; color: #fff; cursor: pointer; }
.burger .ic { width: 24px; height: 24px; }

.mnav { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 80px 28px 40px; }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { color: #fff; font-size: 24px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mnav .btn { margin-top: 24px; }
.mnav-close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; color: #fff; cursor: pointer; }
.mnav-close .ic { width: 24px; height: 24px; }
body.nav-open { overflow: hidden; }

/* hero แบบแบ่งครึ่ง */
.hero { position: relative; background: var(--ink); color: #fff; padding: 0; overflow: hidden; }
.hero-media { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 52vh; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 55%; }
.hero-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--ink)); }
.hero-grid { position: relative; padding-top: 4px; padding-bottom: 48px; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(34px, 8.6vw, 64px); line-height: 1.22; letter-spacing: -.01em; }
.hero .lead { margin-top: 16px; color: var(--steel); font-size: 17px; max-width: 520px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* แถบสถิติ */
.stats { background: var(--ink-2); color: #fff; padding: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 24px 12px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .08); padding-left: 0; }
.stat b { font-size: 38px; line-height: 1; font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.stat b small { font-size: 16px; font-weight: 600; color: var(--red); }
.stat span { font-size: 14px; color: var(--steel); line-height: 1.6; }

/* บริการ */
.services { background: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.svc {
  background: #fff; border-radius: var(--radius); padding: 22px 16px; border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(11, 12, 14, .45); border-color: transparent; }
.svc-ic { width: 44px; height: 44px; fill: none; stroke: var(--red); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.svc h3 { font-size: 17px; }
.svc p { font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ขนาดรถ */
.fleet-grid { display: grid; gap: 32px; }
.fleet-media { margin: 0 -20px; }
.fleet-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fleet-copy h2 { font-size: clamp(28px, 5.4vw, 44px); margin-bottom: 24px; }
.fleet-list { counter-reset: f; border-top: 1px solid var(--line); }
.fleet-list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fleet-list .no { grid-row: span 2; font-weight: 700; color: var(--red); font-size: 15px; padding-top: 2px; }
.fleet-list b { font-size: 18px; }
.fleet-list li > span:last-child { color: var(--muted); font-size: 15px; }
.fleet-promo { display: flex; align-items: center; gap: 14px; margin: -8px 0 20px; padding: 14px 18px; background: var(--ink); color: #fff; border-radius: 14px; }
.fleet-promo .ic { width: 34px; height: 34px; color: var(--red); flex: none; }
.fleet-promo span { display: flex; flex-direction: column; font-size: 15px; color: var(--steel); }
.fleet-promo b { color: #fff; font-size: 17px; }
.fleet-promo i { font-style: normal; }
.fleet-promo strong { color: var(--red); font-size: 22px; font-weight: 700; }
.fleet-list .tag { display: inline-block; margin-left: 6px; padding: 0 10px; font-style: normal; font-size: 13px; font-weight: 600; color: #fff; background: var(--red); border-radius: 999px; vertical-align: 2px; }
.note { margin: 20px 0; padding: 14px 16px; background: var(--paper); border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--ink-3); }

/* มาตรฐานความปลอดภัย */
.safety { background: var(--paper); }
.safety-grid { display: grid; gap: 36px; }
.safety-copy h2 { font-size: clamp(28px, 5.4vw, 44px); }
.safety-copy > p { color: var(--muted); margin-top: 14px; }
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 14px; padding: 16px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.checks .ic { width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.checks b { display: block; font-size: 17px; }
.checks span { font-size: 15px; color: var(--muted); line-height: 1.6; }
.safety-media { margin: 0 -20px; }
.safety-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ขั้นตอน */
.step-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.step-row li { position: relative; padding: 22px 16px; border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; gap: 6px; }
.step-no { font-weight: 700; font-size: 14px; color: #fff; background: var(--red); border-radius: 6px; padding: 0 8px; align-self: flex-start; transform: skewX(-10deg); }
.step-row .ic { width: 30px; height: 30px; margin: 8px 0 4px; }
.step-row b { font-size: 17px; line-height: 1.4; }
.step-row span:last-child { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ผลงาน */
.works { background: var(--ink); color: #fff; }
.works .sec-head p { color: var(--steel); }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--ink-2); }
.g img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s var(--ease); }
.g:hover img { transform: scale(1.03); }
.g span { position: absolute; left: 10px; top: 10px; background: rgba(11, 12, 14, .82); color: #fff; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.g-big { grid-column: span 2; }

/* คำถาม */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: 24px; }
.faq .sec-head { margin-bottom: 0; }
.faq .sec-head .btn { margin-top: 20px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-weight: 600; font-size: 17px; min-height: 56px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { color: var(--red); transition: transform .25s var(--ease); }
.faq-list details[open] summary .ic { transform: rotate(45deg); }
.faq-list details p { padding: 0 18px 18px; color: var(--muted); font-size: 16px; }

/* แบนเนอร์ปิดท้าย */
.cta-band { background: var(--ink); color: #fff; }
.cta-in { display: grid; gap: 28px; align-items: center; }
.cta-banner { display: block; margin: 0 -20px; }
.cta-banner img { width: 100%; aspect-ratio: 2 / 1; }
.cta-copy h2 { font-size: clamp(28px, 5.4vw, 42px); }
.cta-copy p { color: var(--steel); margin: 10px 0 24px; }

/* ติดต่อ */
.contact { background: var(--ink-2); color: #fff; }
.contact-grid { display: grid; gap: 28px; }
.contact h2 { font-size: clamp(28px, 5.4vw, 42px); }
.c-list { display: grid; gap: 10px; }
.c-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--ink-3); border-radius: 12px; }
.c-list .ic { width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.c-list span { display: block; font-size: 14px; color: var(--steel); }
.c-list a, .c-list b { font-size: 18px; font-weight: 600; color: #fff; }
.c-list a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }

/* ท้ายเว็บ */
.foot { background: var(--ink); color: var(--steel); padding: 56px 0 96px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; }
.foot img { width: 160px; margin-bottom: 12px; }
.foot h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.foot li { padding: 3px 0; }
.foot a:hover { color: #fff; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* ปุ่มโทรลอยบนมือถือ */
.fab-call {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red); color: #fff; font-weight: 600; font-size: 17px; border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(225, 37, 27, .8);
  right: 84px;
}

/* ปุ่มไลน์ */
.btn-line { background: #06c755; color: #fff; box-shadow: 0 8px 24px -10px rgba(6, 199, 85, .7); }
.btn-line:hover { background: #05a647; }
.mnav .btn + .btn { margin-top: 10px; }
.cta-copy .btn { margin: 0 10px 10px 0; }
@media (max-width: 479px) { .cta-copy .btn { width: 100%; margin-right: 0; } }
.fab-line {
  position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  width: 60px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: #06c755; color: #fff; border-radius: 999px; font-weight: 600; font-size: 16px; gap: 8px;
  box-shadow: 0 12px 30px -10px rgba(6, 199, 85, .8);
}
.fab-line .ic { width: 28px; height: 28px; }
.fab-line span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 1024px) {
  .fab-line { right: 24px; bottom: 24px; width: auto; height: 56px; padding: 0 22px; }
  .fab-line span { position: static; width: auto; height: auto; clip: auto; }
}

/* ดูภาพใหญ่ */
.lb { position: fixed; inset: 0; z-index: 95; background: rgba(5, 6, 7, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 12px; }
.lb[hidden] { display: none; }
.lb img { max-height: 80vh; width: auto; max-width: 100%; border-radius: 8px; }
.lb p { color: #fff; }
.lb-x { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; color: #fff; cursor: pointer; }

/* ปรากฏตอนเลื่อนถึง */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .svc.reveal.in:hover { transform: translateY(-3px); }

/* พื้นที่กดอย่างน้อย 44px + line-height ข้อความไทย */
h1, h2, h3 { line-height: 1.4; }
.hero h1 { line-height: 1.4; }
.stat b { line-height: 1.4; }
.btn { line-height: 1.5; }
.topbar a { min-height: 44px; }
.topbar-in { padding-top: 0; padding-bottom: 0; align-items: center; }
.c-list a, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot li { padding: 0; min-height: 30px; }
.g span { font-size: 14px; }
.step-no { line-height: 1.6; }

@media (max-width: 479px) {
  .hide-sm { display: none !important; }
  .hero-btns .btn { flex: 1 1 100%; }
}
.topbar span .hide-sm { display: inline; }
@media (max-width: 767px) { .topbar span .hide-sm, .topbar-in > .hide-sm { display: none !important; } }

@media (min-width: 480px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  section { padding: 96px 0; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .svc { padding: 28px 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .08); padding: 32px 24px; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
  .step-row { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gal { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .g-big { grid-column: span 2; grid-row: span 2; }
  .fleet-media, .safety-media, .cta-banner { margin: 0; }
  .fleet-media img, .safety-media img { border-radius: 18px; }
  .cta-banner img { border-radius: 14px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .nav-desk { display: flex; }
  .head-cta { display: inline-flex; }
  .burger { display: none; }
  .head-in { height: 80px; }
  .brand img { width: 170px; }
  .fab-call { display: none; }
  .foot { padding-bottom: 40px; }
  .hero { min-height: 600px; display: flex; align-items: center; }
  .hero-media { position: absolute; inset: 0 0 0 36%; width: auto; max-height: none; aspect-ratio: auto; }
  .hero-media img { object-position: 25% 60%; }
  .hero-media::after { inset: 0; height: auto; background: linear-gradient(90deg, var(--ink) 0%, rgba(11, 12, 14, .55) 28%, transparent 60%); }
  .hero-grid { padding-top: 88px; padding-bottom: 88px; }
  .hero-copy { max-width: 560px; }
  .fleet-grid, .safety-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .faq .sec-head { position: sticky; top: 120px; }
  .cta-in { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
  .c-list { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
