/* ==========================================================================
   KB Samui Private Transfer & City Tour
   โทนน้ำเงิน น่าเชื่อถือ ตามบรีฟลูกค้า — ฟอนต์ IBM Plex Sans Thai
   ========================================================================== */

:root {
  --navy:      #06203f;
  --navy-2:    #0a2d57;
  --blue:      #0f5fb8;
  --blue-dark: #0a4a94;
  --blue-tint: #e9f1fb;
  --gold:      #e0a93c;
  --ink:       #14243a;
  --muted:     #5b6e88;
  --line:      #dbe5f1;
  --bg:        #ffffff;
  --tint:      #f4f8fd;
  --ok:        #0f7a52;
  --warn:      #b45309;
  --err:       #c02626;

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

  --sh-1: 0 1px 2px rgba(10, 35, 70, .06), 0 2px 8px rgba(10, 35, 70, .05);
  --sh-2: 0 2px 4px rgba(10, 35, 70, .07), 0 10px 26px rgba(10, 35, 70, .09);
  --sh-3: 0 4px 10px rgba(10, 35, 70, .10), 0 20px 46px rgba(10, 35, 70, .14);

  --wrap: 1180px;
  --gut: 16px;
  --hd-h: 64px;
}

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

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

body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  /* เว้นที่ให้ปุ่มลอยล่างจอ ไม่ให้ทับเนื้อหาท้ายหน้า */
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

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

/* หัวข้อไทยใช้ 1.4 ขึ้นไป เพื่อไม่ให้สระบนกับวรรณยุกต์ชนกับบรรทัดบน */
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 6.4vw, 52px); }
h2 { font-size: clamp(24px, 4.6vw, 38px); }
h3 { font-size: clamp(19px, 2.6vw, 23px); }
p  { margin: 0 0 1em; }
a  { color: var(--blue-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; top: 0; left: 0; z-index: 200;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { width: auto; height: auto; overflow: visible; clip: auto; }

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

.ic { flex: none; }
.ic-brand { flex: none; }

/* ---------------------------------------------------------------- ส่วนหัว */
.hd {
  position: sticky; top: 0; z-index: 90;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.hd-in { display: flex; align-items: center; gap: 12px; min-height: var(--hd-h); }
.hd-logo { display: block; flex: none; line-height: 0; }
.hd-logo img { width: 148px; height: auto; }

.hd-nav { display: none; }
.hd-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.hd-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-sm); color: #fff; cursor: pointer;
}

.btn-call {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: #24303f; font-weight: 700;
  padding: 9px 14px; border-radius: 999px; text-decoration: none; font-size: 15px;
}
.btn-call span { display: none; }

@media (min-width: 560px) { .btn-call span { display: inline; } }

@media (min-width: 1024px) {
  .hd-in { min-height: 76px; gap: 24px; }
  .hd-logo img { width: 186px; }
  .hd-nav { display: flex; gap: 4px; margin-left: 8px; }
  .hd-nav a {
    color: #dbe7f6; text-decoration: none; font-weight: 600; font-size: 16px;
    padding: 9px 13px; border-radius: var(--r-sm);
    transition: background .2s, color .2s;
  }
  .hd-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .hd-nav a[aria-current="page"] { color: #fff; background: rgba(224, 169, 60, .18); }
  .hd-burger { display: none; }
  .btn-call { font-size: 16px; padding: 11px 18px; }
}

/* เมนูมือถือ */
@media (max-width: 1023px) {
  .hd-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-2); padding: 8px var(--gut) 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .hd-nav.open a {
    color: #e3ecf8; text-decoration: none; font-weight: 600;
    padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .hd-nav.open a[aria-current="page"] { color: var(--gold); }
}

/* ---------------------------------------------------------------- แบนเนอร์ */
/* มือถือ: รูปอยู่บน ข้อความอยู่ล่างบนพื้นน้ำเงิน — ทั้งรูปและข้อความอ่านได้เต็มที่
   จอใหญ่: ข้อความทับบนรูปแบบเดิม */
.hero { position: relative; background: var(--navy); }
.hero-track { position: relative; height: min(46vh, 330px); }

.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.on { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 18, 36, .55) 0%, rgba(4, 18, 36, .12) 45%,
                              rgba(4, 18, 36, .30) 100%);
}
.hero-body { position: static; padding: 20px 0 30px; color: #fff; }
.hero-body h1 { color: #fff; margin-bottom: 10px; text-wrap: balance; max-width: 17ch; }
.hero-sub {
  color: #cfe0f4; font-size: clamp(15px, 3.4vw, 19px); margin: 0 0 16px;
  max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-dots {
  position: absolute; right: calc(var(--gut) - 12px); bottom: 2px;
  display: flex; gap: 0; z-index: 3;
}
/* จุดที่เห็นเล็ก แต่พื้นที่กดจริง 44x44 ตามมาตรฐานการแตะบนมือถือ */
.hero-dots button {
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-dots button::before {
  content: ''; width: 10px; height: 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .85); background: transparent;
  transition: background .2s ease, border-color .2s ease;
}
.hero-dots button[aria-current="true"]::before { background: var(--gold); border-color: var(--gold); }

@media (min-width: 768px) {
  .hero-track { height: min(76vh, 600px); }
  .hero-body {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 46px;
  }
  /* ไล่สีสองชั้น: จากล่างขึ้นบน และจากซ้ายไปขวา ให้ตัวหนังสือฝั่งซ้ายอ่านชัดเสมอ
     ไม่ว่ารูปที่ลูกค้าเปลี่ยนมาจะสว่างแค่ไหน */
  .hero-shade {
    background:
      linear-gradient(to right, rgba(4, 18, 36, .82) 0%, rgba(4, 18, 36, .55) 42%,
                      rgba(4, 18, 36, .12) 75%, rgba(4, 18, 36, .30) 100%),
      linear-gradient(to top, rgba(4, 18, 36, .88) 0%, rgba(4, 18, 36, .45) 45%,
                      rgba(4, 18, 36, .10) 78%, rgba(4, 18, 36, .34) 100%);
  }
  .hero-dots { bottom: 34px; }
}

/* ---------------------------------------------------------------- ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 48px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #23303f; box-shadow: var(--sh-2); }
.btn-primary:hover { background: #edbe55; box-shadow: var(--sh-3); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--sh-2); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn-line { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-wide { width: 100%; }

/* ---------------------------------------------------------------- ส่วนเนื้อหา */
.sec { padding: 46px 0; }
.sec-tint { background: var(--tint); }
.sec-navy { background: var(--navy); color: #e7eefa; }
.sec-navy h2 { color: #fff; }
@media (min-width: 768px) { .sec { padding: 68px 0; } }

.sec-head { max-width: 62ch; margin-bottom: 26px; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-navy .sec-head p { color: #b9cce4; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.sec-navy .eyebrow { color: var(--gold); }

/* ---------------------------------------------------------------- จุดเด่น */
.hl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .hl { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 768px) { .hl { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.hl-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 15px; box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hl-item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.hl-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue-dark); margin-bottom: 10px;
}
.hl-item h3 { font-size: 16px; margin: 0 0 4px; }
.hl-item p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------------------------------------------------------------- การ์ดบริการ */
/* align-items:start — การ์ดสูงตามเนื้อหาจริง ไม่ยืดตามการ์ดที่สูงที่สุดในแถว
   เพราะรูปแต่ละใบคงสัดส่วนเดิมของไฟล์ ความสูงจึงไม่เท่ากันโดยตั้งใจ */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start;
}
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-1); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #c3d6ec; }
.card-media { position: relative; aspect-ratio: var(--ar, 4 / 3); background: var(--navy-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.side-img { width: 100%; height: auto; border-radius: var(--r); display: block; }
/* ไม่มีรูปจริง — ใช้แผ่นสีแบรนด์ ไม่ใส่รูปปลอม */
.card-media.blank {
  display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(120% 120% at 20% 10%, #12406f 0%, var(--navy) 70%);
}
.card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.62; }
.card-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14.5px; color: var(--blue-dark);
}
.card:hover .card-more .ic { transform: translateX(3px); }
.card-more .ic { transition: transform .2s ease; }

@media (min-width: 768px) {
  .card-body { padding: 20px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 15.5px; }
}

/* ---------------------------------------------------------------- ตาราง */
.table-wrap { width: 100%; max-width: 100%; border-radius: var(--r); }
/* ตารางมีพื้นหลังขาวของตัวเอง จึงต้องกำหนดสีตัวอักษรเองด้วย
   ห้ามปล่อยให้รับสีมาจากแถบที่ครอบอยู่ ไม่งั้นวางในแถบสีเข้มแล้วจะอ่านไม่ออก */
table.rate {
  width: 100%; border-collapse: collapse;
  background: #fff; color: var(--ink); font-size: 15px;
}
table.rate th, table.rate td {
  padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line);
}
table.rate thead th {
  background: var(--navy); color: #fff; font-weight: 600; font-size: 14.5px;
  white-space: nowrap;
}
table.rate thead .sub { color: #c7d8ee; }
/* วางบนแถบน้ำเงิน หัวตารางต้องอ่อนกว่าพื้นแถบ ไม่งั้นกลืนกันจนดูเหมือนตารางไม่มีหัว */
.sec-navy table.rate thead th { background: var(--navy-2); }
table.rate tbody tr:last-child td { border-bottom: 0; }
table.rate tbody tr:nth-child(even) { background: #fafcfe; }
table.rate td.num { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.rate .row-head { font-weight: 700; }
table.rate .sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.table-note { font-size: 14.5px; color: var(--muted); margin-top: 12px; }

/* ---------------------------------------------------------------- ตารางบนมือถือ
   จอแคบเรียงเป็นการ์ดทีละรายการ ไม่ต้องเลื่อนซ้าย-ขวาเพื่ออ่านราคา */
@media (max-width: 719px) {
  table.rate { display: block; background: transparent; }
  table.rate caption { display: none; }
  table.rate thead { display: none; }
  table.rate tbody { display: block; }
  table.rate tbody tr {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r); margin-bottom: 10px; overflow: hidden;
  }
  table.rate tbody tr:nth-child(even) { background: #fff; }
  table.rate tbody tr:last-child { margin-bottom: 0; }
  table.rate th.row-head {
    display: block; padding: 13px 15px 11px; border-bottom: 1px solid var(--line);
    background: var(--tint); font-size: 16px; line-height: 1.45;
  }
  table.rate th.row-head .sub { margin-top: 2px; }
  table.rate td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 10px 15px; border-bottom: 1px solid #eef3f9; text-align: right;
  }
  table.rate tbody tr td:last-child { border-bottom: 0; }
  table.rate td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--muted); text-align: left; flex: none;
  }
  table.rate td.num { font-size: 16px; }
  .table-hint { display: none; }
}

/* ---------------------------------------------------------------- ตัวเช็กราคา */
/* มีพื้นหลังขาวของตัวเอง จึงกำหนดสีตัวอักษรเอง ไม่รับมาจากแถบที่ครอบอยู่ */
.finder {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); padding: 22px;
}
.finder h3 { color: var(--ink); }
@media (min-width: 768px) { .finder { padding: 30px; } }
.finder h3 { font-size: clamp(20px, 3.4vw, 26px); margin: 0 0 6px; }
.finder-lead { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.finder-grid { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 640px) { .finder-grid { grid-template-columns: 1.4fr 1fr; } }
.finder-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; cursor: pointer; margin-bottom: 18px; min-height: 44px;
}
.finder-check input {
  width: 22px; height: 22px; margin-top: 11px; flex: none;
  font-size: 16px; accent-color: var(--blue);
}
.finder-check span { padding-top: 10px; }
.finder-out {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  background: var(--navy); color: #fff; border-radius: var(--r);
  padding: 16px 20px; margin-bottom: 14px;
}
.finder-label { font-size: 15px; color: #b9cce4; font-weight: 600; }
.finder-out strong {
  font-size: clamp(26px, 6vw, 36px); line-height: 1.2; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.finder-note { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }

.table-note a { display: inline-block; padding: 11px 2px; }
.ft-btm a { display: inline-block; padding: 10px 2px; }
/* บอกให้รู้ว่าตารางเลื่อนดูทางขวาได้ — ขึ้นเฉพาะจอแคบที่ตารางล้น */
.table-hint {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--muted); margin: 8px 0 0;
}
.sec-navy .table-hint { color: #a8c0dc; }
@media (min-width: 700px) { .table-hint { display: none; } }

/* ---------------------------------------------------------------- แกลเลอรี (คงสัดส่วนจริง ไม่ครอป) */
.gal { column-count: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { column-count: 3; column-gap: 12px; } }
@media (min-width: 1024px) { .gal { column-count: 4; column-gap: 14px; } }

.gal figure { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 480px) { .gal figure { margin-bottom: 12px; } }
@media (min-width: 1024px) { .gal figure { margin-bottom: 14px; } }

.gal img { display: block; width: 100%; height: auto; border-radius: 12px; }
.gal figcaption { font-size: 14px; color: var(--muted); padding: 6px 2px 0; line-height: 1.5; }

/* ---------------------------------------------------------------- รีวิว */
.quotes { display: grid; gap: 14px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--sh-1);
}
.stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 10px; }
.stars .ic { fill: currentColor; stroke: none; }
.quote blockquote { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; }
.quote cite { font-style: normal; font-weight: 700; font-size: 15px; display: block; }
.quote .who { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- คำถามที่พบบ่อย */
.faq { max-width: 860px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 10px; box-shadow: var(--sh-1);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  font-weight: 700; font-size: 16.5px; display: flex; gap: 12px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-left: auto; margin-top: 3px; transition: transform .25s ease; color: var(--blue); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .ans { padding: 0 18px 18px; color: #2f4058; font-size: 15.5px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- ฟอร์ม */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 20px;
}
@media (min-width: 768px) { .form-card { padding: 30px; } }

.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.f-full { grid-column: 1 / -1; }

.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .req { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit;
  font-size: 16px; /* ห้ามต่ำกว่า 16px ไม่งั้น iOS ซูมเอง */
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); min-height: 48px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6e88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 95, 184, .16);
}
.field .err-msg { display: none; color: var(--err); font-size: 14px; margin-top: 5px; font-weight: 600; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--err); background: #fffafa; }
.field.has-err .err-msg { display: block; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 5px; }

.form-msg { border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 16px; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e7f6ef; color: var(--ok); border: 1px solid #b6e2ce; }
.form-msg.bad { background: #fdecec; color: var(--err); border: 1px solid #f4c4c4; }

/* การ์ดขอราคาที่ทับแบนเนอร์ */
.quote-band { background: linear-gradient(to bottom, var(--navy) 0 76px, var(--tint) 76px 100%); }
@media (min-width: 992px) {
  .quote-band { background: var(--tint); }
  .quote-lift { margin-top: -96px; position: relative; z-index: 4; }
}

/* ---------------------------------------------------------------- ป้ายและกล่องข้อความ */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--blue-tint); border: 1px solid #c6ddf5;
  border-radius: var(--r); padding: 15px 17px; color: #22405f; font-size: 15px;
}
.note .ic { color: var(--blue-dark); margin-top: 2px; }
.note p:last-child { margin-bottom: 0; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks .ic { color: var(--ok); margin-top: 4px; }
.sec-navy .ticks .ic { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14.5px; font-weight: 600; color: #2b405c;
}

/* ---------------------------------------------------------------- 2 คอลัมน์ */
.split { display: grid; gap: 26px; }
/* กันลูกที่กว้าง (เช่น ตาราง) ดันคอลัมน์จนหน้าเว็บเลื่อนซ้าย-ขวาได้ */
.split > *, .cards > *, .quotes > *, .hl > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; } }
.prose { max-width: 68ch; }
.prose p { font-size: 16.5px; line-height: 1.78; }

/* ---------------------------------------------------------------- แผนที่ */
.map-frame {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh-1); line-height: 0; background: var(--tint);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }
@media (min-width: 768px) { .map-frame iframe { height: 420px; } }

/* ---------------------------------------------------------------- เส้นทางลัด (breadcrumb) */
.crumb { font-size: 14px; color: var(--muted); padding: 14px 0 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue-dark); text-decoration: underline; }
.crumb .ic { vertical-align: -3px; }

.page-head { background: var(--navy); color: #fff; padding: 26px 0 34px; }
.page-head h1 { color: #fff; margin-bottom: 8px; }
.page-head p { color: #c3d6ee; max-width: 62ch; margin: 0; font-size: 16.5px; }
.page-head .crumb, .page-head .crumb a { color: #a6c0dd; }

/* ---------------------------------------------------------------- ส่วนท้าย */
.ft { background: var(--navy); color: #c3d4e8; padding: 40px 0 0; margin-top: 0; }
.ft-in { display: grid; gap: 30px; }
@media (min-width: 768px) { .ft-in { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; } }
.ft-brand img { width: 190px; height: auto; }
.ft-tag { font-size: 15px; color: #9fb8d4; margin: 12px 0 16px; max-width: 38ch; }
.ft h2 { font-size: 16px; color: #fff; margin: 0 0 14px; letter-spacing: .02em; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ft a { color: #c3d4e8; text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; }
/* พื้นที่กดสูงอย่างน้อย 44px ตามมาตรฐานการแตะบนมือถือ */
.ft-col ul a { display: inline-flex; align-items: center; min-height: 46px; min-width: 48px; padding: 0 2px; }
.ft-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.ft-contact li a { display: inline-flex; align-items: center; min-height: 44px; }
.ft-contact .ic { margin-top: 13px; color: var(--gold); }
.ft-contact li:has(span:only-of-type) .ic, .ft-contact li > span:not(:has(a)) ~ .ic { margin-top: 3px; }
.ft-social { display: flex; gap: 10px; }
.ft-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.ft-social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.ft-btm {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding-block: 16px;
  font-size: 14px; color: #8fa8c6;
}
.ft-btm p { margin: 0; }

/* ---------------------------------------------------------------- ปุ่มลอยล่างจอ (มือถือ) */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: 60px; background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(10, 35, 70, .12);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-bar a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 16px;
}
/* คงสีเขียวประจำแบรนด์ไว้ให้จำได้ แต่ใช้ตัวอักษรสีเข้ม
   เพราะตัวอักษรขาวบนเขียวสว่างมีคอนทราสต์แค่ 2:1 อ่านยากกลางแดด */
.sb-call { background: var(--navy); color: #fff; }
.sb-line { background: #06c755; color: var(--navy); }
.sb-wa { background: #25d366; color: var(--navy); }
@media (min-width: 768px) { .sticky-bar { display: none; } }

/* ---------------------------------------------------------------- อนิเมชัน */
/* ซ่อนไว้ก่อนเฉพาะเมื่อ JS ทำงาน ถ้า JS ไม่ทำงาน เนื้อหาต้องเห็นตามปกติ */
.js .rise { opacity: 0; transform: translateY(20px); }
.js .rise.seen {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .68, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .rise.seen { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
  .btn, .card, .hl-item, .ft-social a { transition: none; }
  .card:hover, .hl-item:hover, .btn:hover { transform: none; }
}

/* ---------------------------------------------------------------- อื่นๆ */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- พื้นที่กดบนมือถือ
   ลิงก์ที่อยู่ในบรรทัดข้อความต้องมีพื้นที่แตะอย่างน้อย 44px ตามมาตรฐาน */
.ticks li a,
.crumb a,
.faq .ans a,
.note a {
  display: inline-block;
  min-height: 44px;
  min-width: 48px;
  line-height: 44px;
  padding-inline: 2px;
}
.ticks li a { line-height: 1.55; padding-block: 11px; min-height: 0; }
.ft-btm a, .table-note a { min-height: 44px; }
.skip { min-width: 44px; min-height: 44px; }
