:root {
  --p9: #2e1065;
  --p8: #44178f;
  --p7: #5b21b6;
  --p6: #6d28d9;
  --p4: #a78bfa;
  --p2: #e4d8fb;
  --p1: #f3edff;
  --gold: #f5b301;
  --line: #06c755;
  --ink: #1f1235;
  --muted: #5f5278;
  --border: #e3d9f6;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(46, 16, 101, 0.28);
  --head: 'Kanit', sans-serif;
  --body: 'IBM Plex Sans Thai', 'Kanit', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--head); line-height: 1.25; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 500; font-size: 16px;
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn-call { background: var(--gold); color: var(--p9); }
.btn-line { background: var(--line); color: #fff; }
.btn-outline { border: 1.5px solid var(--p7); color: var(--p7); background: transparent; }
.btn-sm { padding: 8px 18px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------- แถบบน + เมนู ---------- */
.topbar { background: var(--p9); color: var(--p2); font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--head); line-height: 1.05; }
.brand-name b { display: block; font-size: 23px; font-weight: 700; color: var(--p7); }
.brand-name span { display: block; font-size: 10px; letter-spacing: .3em; font-weight: 500; color: var(--ink); margin-top: 3px; }

.nav { display: flex; gap: 26px; font-family: var(--head); font-size: 15.5px; }
.nav a { padding: 6px 0; color: var(--ink); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--p7); border-color: var(--p4); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--p7); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(167, 139, 250, .45), transparent 60%),
    linear-gradient(135deg, var(--p9) 0%, var(--p7) 60%, var(--p6) 100%);
  padding: 64px 0 120px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  padding: 5px 14px; border-radius: 999px; font-size: 14px; margin-bottom: 18px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: 18px; color: var(--p2); margin-top: 16px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--p2); }
.hero-points li::before { content: '✓'; color: var(--gold); font-weight: 700; margin-right: 7px; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }

.quote-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.quote-card h2 { font-size: 22px; color: var(--p7); }
.quote-card > p { font-size: 14px; color: var(--muted); margin: 2px 0 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--p1);
}
.field input:focus, .field select:focus { border-color: var(--p6); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- แถบความมั่นใจ ---------- */
.trust { margin-top: -56px; position: relative; z-index: 2; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-item .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--p1); color: var(--p7); }
.trust-item b { display: block; font-family: var(--head); font-weight: 600; line-height: 1.3; }
.trust-item span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; }

/* ---------- Section ทั่วไป ---------- */
.section { padding: 84px 0; }
.section.tint { background: var(--p1); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker { font-family: var(--head); font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--p6); text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; color: var(--p9); margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------- บริการ ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service {
  grid-column: span 2; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:nth-child(n+4) { grid-column: span 3; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--p4); }
.service .icon { width: 56px; height: 56px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--p6), var(--p8)); color: #fff; margin-bottom: 18px; }
.service h3 { font-size: 20px; font-weight: 600; color: var(--p9); }
.service p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.service a { display: inline-block; margin-top: 14px; font-family: var(--head); font-weight: 500; color: var(--p6); }
.service a:hover { text-decoration: underline; }

/* ---------- เส้นทาง ---------- */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.route {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.route-info { flex: 1; min-width: 0; }
.route-info b { font-family: var(--head); font-size: 18px; font-weight: 600; color: var(--p9); display: block; line-height: 1.3; }
.route-info span { font-size: 13.5px; color: var(--muted); }
.route .btn { padding: 8px 14px; font-size: 13.5px; }
.routes-note { text-align: center; margin-top: 26px; color: var(--muted); font-size: 15px; }
.routes-note a { color: var(--p6); font-weight: 600; text-decoration: underline; }

/* ---------- วิธีเรียกรถ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--p1); border-radius: var(--radius); padding: 30px 26px 26px; counter-increment: step; }
.step::before {
  content: counter(step); font-family: var(--head); font-weight: 700; font-size: 22px;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--p7); color: #fff; margin-bottom: 16px; box-shadow: 0 0 0 6px var(--p2);
}
.step h3 { font-size: 19px; font-weight: 600; color: var(--p9); }
.step p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.member-note {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
  margin-top: 28px; padding: 20px 26px; border-radius: var(--radius);
  border: 1.5px dashed var(--p4); background: #fff;
}
.member-note b { font-family: var(--head); color: var(--p7); font-size: 17px; }
.member-note p { color: var(--muted); font-size: 14.5px; }
.badge { display: inline-block; background: var(--gold); color: var(--p9); font-family: var(--head); font-size: 12px; font-weight: 600; border-radius: 6px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }

/* ---------- แกลเลอรี่ ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--p2), var(--p4));
  display: grid; place-items: center; color: var(--p8); font-family: var(--head); font-size: 14.5px; text-align: center; padding: 10px;
}
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- รีวิว ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.review .stars { color: var(--gold); letter-spacing: 3px; }
.review p { margin: 10px 0 14px; }
.review cite { font-style: normal; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; border-radius: 14px;
  font-family: var(--head); font-size: 17.5px; font-weight: 500; color: var(--p9);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--p6); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--p4); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--p7), var(--p9)); color: #fff; text-align: center; padding: 72px 0; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.cta p { color: var(--p2); margin-top: 8px; font-size: 18px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--p9); color: #cbb9f5; padding: 60px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.footer .brand-name b { color: #fff; }
.footer .brand-name span { color: var(--p4); }
.footer-about { margin-top: 16px; max-width: 30em; }
.footer h3 { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding: 18px 0; font-size: 13.5px; text-align: center; }

/* ---------- แถบปุ่มลอยมือถือ ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:nth-child(n+4) { grid-column: auto; }
  .routes { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }

  .nav-toggle { display: block; }
  .header .btn-line { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .hero { padding: 40px 0 100px; }
  .hero-actions .btn { flex: 1; }
  .section { padding: 60px 0; }
  .trust-item { padding: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .services, .routes, .steps, .footer-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 20px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
  .mobile-bar .btn { padding: 11px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
