/* ==========================================================================
   Step Out Study and Travel
   มาตรฐานดีไซน์ 1Day1Deaw — ฟอนต์ไทย IBM Plex Sans Thai, ไอคอนเส้นอย่างเดียว,
   โทนน้ำเงินตามสีแบรนด์ #007acc, ไม่ใช้สีเหลืองและเขียวตามที่ลูกค้าระบุ
   ========================================================================== */

:root {
  --blue:        #007acc;
  --blue-600:    #0069b4;
  --blue-700:    #005793;
  --blue-800:    #0b3f68;
  --navy:        #0b2e4f;
  --ink:         #24384d;
  --muted:       #5f758c;
  --line:        #dbe7f2;
  --line-soft:   #eaf2fa;
  --tint:        #eef6fd;
  --tint-2:      #f7fbfe;
  --white:       #ffffff;
  --danger:      #c0392b;
  --danger-bg:   #fdf0ee;

  --shadow-sm:   0 1px 2px rgba(11, 46, 79, .06), 0 2px 6px rgba(11, 46, 79, .05);
  --shadow-md:   0 2px 4px rgba(11, 46, 79, .06), 0 10px 24px rgba(11, 46, 79, .08);
  --shadow-lg:   0 4px 8px rgba(11, 46, 79, .07), 0 18px 40px rgba(11, 46, 79, .10);

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

  --gut:  16px;   /* ระยะขอบจอบนมือถือ */
  --gap:  10px;   /* ระยะห่างช่องรูปบนมือถือ 8-12px ตามมาตรฐาน */
  --wrap: 1180px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; border: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.75rem, 6.4vw, 2.25rem); line-height: 1.4; }
h2 { font-size: clamp(1.5rem, 4.6vw, 1.875rem); }
h3 { font-size: 1.125rem; line-height: 1.45; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

.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;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 200; background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 780px; }

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

/* ---------------------------------------------------------------- ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.4;
  text-align: center; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm  { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.btn-lg  { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-md); }

.btn-line { background: var(--navy); color: #fff; }
.btn-line:hover { background: var(--blue-800); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); color: var(--navy); border-color: var(--blue); }

.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* -------------------------------------------------------- แถบบนและหัวเว็บ */
.topbar {
  background: var(--navy); color: #cfe3f4;
  font-size: .875rem; line-height: 1.5;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.topbar-contacts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* พื้นที่กดทุกจุดอย่างน้อย 44px ตามมาตรฐานการเข้าถึง */
.topbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; color: #cfe3f4; }
.topbar a:hover { color: #fff; }
.social { display: flex; align-items: center; gap: 2px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; color: #cfe3f4;
}
.social a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease);
}
.site-head.is-stuck { box-shadow: var(--shadow-sm); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }

.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: auto; height: 38px; }

.nav { display: none; }
.nav-toggle {
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  color: var(--navy); cursor: pointer;
}
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

.nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 8px var(--gut) 20px;
}
.nav.is-open ul { display: flex; flex-direction: column; }
.nav.is-open li + li { border-top: 1px solid var(--line-soft); }
.nav.is-open ul a {
  display: flex; align-items: center; min-height: 44px; padding: 10px 4px;
  color: var(--navy); font-weight: 600; font-size: 1.0625rem;
}
.nav.is-open ul a[aria-current="page"] { color: var(--blue); }
.nav-cta { display: flex; gap: 10px; margin-top: 16px; }
.nav-cta .btn { flex: 1; }

/* ------------------------------------------------------------ แบนเนอร์หลัก */
.hero {
  background: linear-gradient(170deg, var(--tint) 0%, #fdfeff 62%);
  display: flex; flex-direction: column;
}
/* บนมือถือให้ภาพขึ้นก่อน เป็นแบนเนอร์ภาพใหญ่ แล้วข้อความตามลงมา */
.hero-media { order: -1; }
.hero-text { padding: 28px var(--gut) 32px; }
.hero-text-in { max-width: 620px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 14px; padding: 6px 14px 6px 11px;
  background: rgba(0, 122, 204, .09); color: var(--blue-700);
  border-radius: 999px; font-size: .875rem; font-weight: 600;
}

.hero h1 { margin-bottom: .35em; }
.hero-slogan {
  margin: 0 0 14px;
  color: var(--blue); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-sub { color: var(--ink); font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .btn { flex: 1 1 100%; }

.hero-chips { margin-top: 24px; display: grid; gap: 10px; }
.hero-chips li {
  display: flex; align-items: flex-start; gap: 9px;
  color: var(--blue-800); font-size: .9375rem; line-height: 1.6;
}
.hero-chips .ic { margin-top: 4px; color: var(--blue); }

/* โซนแบนเนอร์: ชนขอบจอ ไม่มีกรอบ ไม่มีมุมโค้ง กำหนดจุดโฟกัสเอง */
.hero-media { width: 100%; }
.hero-img { width: 100%; aspect-ratio: 16 / 12; max-height: 70vh; }

/* --------------------------------------------------------------- จุดเด่น */
.stats { background: var(--navy); color: #dce9f5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px;
  padding-top: 26px; padding-bottom: 26px;
}
.stat { text-align: center; padding: 12px 6px; }
.stat-ic { display: inline-grid; place-items: center; color: #7bc0ee; margin-bottom: 4px; }
.stat strong { display: block; color: #fff; font-size: 1.625rem; line-height: 1.4; }
.stat-label { display: block; font-size: .875rem; line-height: 1.55; color: #b7d2e8; }

/* ---------------------------------------------------------------- section */
.section { padding: 52px 0; }
.section-services { background: var(--white); }
.section-promo    { background: var(--tint-2); }
.section-why      { background: var(--white); }
.section-steps    { background: var(--tint-2); }
.section-reviews  { background: var(--white); }
.section-faq      { background: var(--tint-2); }
.section-form     { background: var(--white); }
.section-body     { background: var(--white); }
.section-bullets  { background: var(--tint-2); }
.section-countries{ background: var(--white); }
.section-other    { background: var(--tint-2); }
.section-contact  { background: var(--white); }

.sec-head { max-width: 720px; margin: 0 0 30px; }
.sec-head h2 { margin-bottom: .35em; }
.sec-head p { color: var(--muted); font-size: 1.0625rem; }

/* ------------------------------------------------------- การ์ดบริการ 2 คอลัมน์ */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.svc-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 16px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bcd9f0; color: var(--ink); }
.svc-ic {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px;
  background: var(--tint); color: var(--blue); border-radius: 12px;
}
.svc-card h3 { margin: 0; color: var(--navy); }
.svc-en { margin: 0; color: var(--blue); font-size: .875rem; font-weight: 600; letter-spacing: .03em; }
.svc-sum { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.svc-more {
  display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 12px;
  color: var(--blue); font-weight: 600; font-size: .9375rem;
}
.svc-card:hover .svc-more .ic { transform: translateX(3px); }
.svc-more .ic { transition: transform .2s var(--ease); }

/* -------------------------------------------------------------- โปรโมชั่น */
.promo-grid { display: grid; gap: 18px; }
.promo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* รูปโปรโมชั่นเป็นแบนเนอร์สำเร็จ ใช้สัดส่วนเดิม 2.4:1 ไม่ครอป */
.promo-img { width: 100%; }
.promo-body { padding: 16px 18px 18px; }
.promo-body h3 { margin: 0 0 4px; }
.promo-body p { margin: 0; color: var(--muted); font-size: .9375rem; }
.promo-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  color: var(--blue); font-weight: 600; font-size: .9375rem;
}
.promo-link:hover .ic { transform: translateX(3px); }
.promo-link .ic { transition: transform .2s var(--ease); }

/* ------------------------------------------------------------ ทำไมต้องเรา */
.why-grid { display: grid; gap: 26px; }
.why-img { width: 100%; border-radius: var(--r-lg); }
.why-list { display: grid; gap: 12px; margin-top: 20px; }
.why-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.65; }
.why-list .ic { margin-top: 5px; color: var(--blue); }

/* ---------------------------------------------------------------- ขั้นตอน */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
}
.step-no {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--blue); color: #fff; border-radius: 50%;
  font-weight: 700; font-size: 1rem;
}
.step h3 { margin: 2px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ----------------------------------------------- แกลเลอรีรีวิว แบบไม่ครอป */
.masonry { columns: 2; column-gap: var(--gap); }
.rev-item {
  break-inside: avoid; margin: 0 0 var(--gap);
  display: flex; flex-direction: column;
}
/* ห้ามใส่กรอบ เส้นขอบ หรือเงารอบรูป ให้รูปลอยบนพื้นหลัง */
.rev-img { width: 100%; border-radius: var(--r-sm); }
.rev-item figcaption { padding: 8px 2px 0; }
.rev-quote { margin: 0 0 4px; color: var(--ink); font-size: .875rem; line-height: 1.6; }
.rev-meta { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.rev-meta strong { color: var(--navy); }

/* -------------------------------------------------------------------- FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  color: var(--navy); font-weight: 600; font-size: 1.0625rem; line-height: 1.55;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { color: var(--blue); transition: transform .25s var(--ease); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-answer { padding: 0 18px 18px; color: var(--ink); }
.faq-answer p { margin-bottom: .75em; }

/* ------------------------------------------------------------------- ฟอร์ม */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 18px; box-shadow: var(--shadow-sm);
}
.form-head { margin-bottom: 18px; }
.form-head h2 { margin-bottom: .3em; }
.form-head p { margin: 0; color: var(--muted); font-size: 1rem; }
.form-grid { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--navy); font-weight: 600; font-size: .9375rem; }
.req { color: var(--danger); }

.field input, .field select, .field textarea {
  width: 100%;
  /* ต้องไม่ต่ำกว่า 16px ไม่งั้น iOS ซูมเข้าเอง */
  font: inherit; font-size: 16px; line-height: 1.6;
  color: var(--ink); background: #fff;
  padding: 12px 14px; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 116px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23007acc' stroke-width='1.5' 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: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 204, .16);
}
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--danger); }
.field-err {
  display: flex; align-items: flex-start; gap: 6px; margin: 0;
  color: var(--danger); font-size: .875rem; line-height: 1.5;
}
.field-err .ic { margin-top: 3px; }

.form-alert {
  margin: 0 0 14px; padding: 12px 14px;
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid #f2c9c2; border-radius: var(--r-sm);
  font-size: .9375rem;
}
.form-card .btn-block { margin-top: 18px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.7; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form input, .lead-form select, .lead-form textarea { font-size: 16px; }

.form-done { text-align: center; padding: 14px 0 6px; }
.form-done-mark {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px;
  background: var(--tint); color: var(--blue); border-radius: 50%;
}
.form-done p { color: var(--muted); }
.form-done .btn { margin-top: 18px; }

.is-busy { opacity: .7; pointer-events: none; }

/* ---------------------------------------------------------------- แถบ CTA */
.cta-band { background: linear-gradient(135deg, var(--blue-700), var(--navy)); color: #fff; }
.cta-in { display: grid; gap: 20px; padding: 40px 0; }
.cta-in h2 { color: #fff; margin-bottom: .4em; }
.cta-in p { color: #cfe3f4; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn { flex: 1 1 100%; }
.cta-band .btn-line { background: #fff; color: var(--navy); }
.cta-band .btn-line:hover { background: #eaf3fb; color: var(--navy); }

/* ------------------------------------------------------------- หน้าบริการ */
.page-hero { background: linear-gradient(170deg, var(--tint) 0%, #fdfeff 100%); padding: 20px 0 44px; }
.page-hero-slim { padding-bottom: 36px; }
.crumbs {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  margin-bottom: 12px; color: var(--muted); font-size: .875rem;
}
.crumbs a, .crumbs > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.crumbs .ic { color: #9fb6ca; }
.service-banner { padding: 0 0 6px; background: linear-gradient(180deg, #fdfeff 0%, var(--white) 100%); }
/* แบนเนอร์ของหน้าบริการเป็นภาพที่มีข้อความอยู่ในรูป จึงต้องแสดงเต็มใบด้วยสัดส่วนเดิม ห้ามครอป */
.service-banner-img { width: 100%; border-radius: var(--r-lg); }
.service-banner .wrap { max-width: 960px; }
/* ในรูปแบนเนอร์มีปุ่มวาดไว้อยู่แล้ว จึงทำให้ทั้งใบกดได้ ไม่ให้เป็นปุ่มหลอก */
.service-banner-link { display: block; border-radius: var(--r-lg); }
.promo-img-link { display: block; }
.page-hero-ic {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px;
  background: #fff; color: var(--blue); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.page-hero-en { margin: -.3em 0 .8em; color: var(--blue); font-weight: 600; letter-spacing: .04em; }
.page-hero-intro { color: var(--ink); font-size: 1.0625rem; margin-bottom: 22px; max-width: 760px; }
.notfound { text-align: center; padding: 30px 0 10px; }
.notfound .contact-actions { justify-content: center; }

.prose h2 { margin-bottom: .6em; }
.prose p { color: var(--ink); }

.bullet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.bullet-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 16px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: .9375rem; line-height: 1.6;
}
.bullet-card .ic { margin-top: 3px; color: var(--blue); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li {
  padding: 8px 16px; background: var(--tint); color: var(--blue-800);
  border-radius: 999px; font-size: .9375rem; font-weight: 500;
}

/* -------------------------------------------------------------- หน้าติดต่อ */
.contact-grid { display: grid; gap: 28px; }
.contact-list { display: grid; gap: 16px; margin-bottom: 22px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.ci-ic {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--tint); color: var(--blue); border-radius: 12px;
}
.ci-line { background: var(--navy); color: #fff; }
.ci-label { display: block; color: var(--muted); font-size: .875rem; line-height: 1.5; }
/* เจาะเฉพาะข้อความในคอลัมน์ขวา ไม่ให้ไปทับสีไอคอนในกล่องซ้าย */
.contact-list a, .contact-list div > span:not(.ci-label) { color: var(--navy); font-weight: 600; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list a:hover { color: var(--blue); }
.contact-list li > div { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-section { line-height: 0; }
.map-section iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ------------------------------------------------------------------ ท้ายเว็บ */
.site-foot { background: var(--navy); color: #b7d2e8; padding: 44px 0 0; margin-bottom: 68px; }
.foot-grid { display: grid; gap: 30px; }
.foot-brand img { width: auto; height: 42px; margin-bottom: 14px; }
.foot-brand p { color: #b7d2e8; font-size: .9375rem; }
.social-foot { margin-top: 16px; }
.social-foot a { background: rgba(255, 255, 255, .08); }
.foot-col h2 { color: #fff; font-size: 1.0625rem; margin-bottom: .8em; }
.foot-col ul { display: grid; gap: 2px; }
/* ลิงก์ในลิสต์ท้ายเว็บกินเต็มความกว้างคอลัมน์ ป้ายสั้นอย่าง "วีซ่า" จะได้มีพื้นที่กดพอ */
.foot-col a { display: flex; align-items: center; min-height: 44px; color: #b7d2e8; font-size: .9375rem; }
.foot-col a:hover { color: #fff; }
.foot-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; line-height: 1.6; }
.foot-contact li > span { padding: 10px 0; }
.foot-contact .ic, .foot-contact .ic-brand { margin-top: 14px; color: #7bc0ee; }
.foot-map {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; min-height: 44px;
  color: #7bc0ee; font-weight: 600; font-size: .9375rem;
}
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  margin-top: 34px; padding-top: 18px; padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #8fb3cf; font-size: .875rem; line-height: 1.7;
}
.foot-bottom p { margin: 0; }

/* ------------------------------------------ ปุ่มลอยล่างจอ เฉพาะมือถือ สูง 60px */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 1fr;
  height: 60px; padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(11, 46, 79, .08);
}
.mcta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem;
}
.mcta-line { background: var(--navy); color: #fff; }
.mcta-line:hover { color: #fff; }
.mcta-call { background: var(--blue); color: #fff; }
.mcta-call:hover { color: #fff; }

/* ============================ อนิเมชัน ============================
   1. เนื้อหาปรากฏตอนเลื่อนถึง  ขยับขึ้น 20px + จางเข้า 520ms
   2. การ์ดขยับตอนชี้           ยกขึ้น 3px 200ms (อยู่ในแต่ละ component)
   3. แบนเนอร์ขยับช้ากว่าการเลื่อน  ไม่เกิน 18% (site.js)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .52s var(--ease), transform .52s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .svc-card:hover, .promo-card:hover { transform: none; }
}

/* ============================ จอกว้างขึ้น ============================ */

@media (min-width: 480px) {
  :root { --gut: 22px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .masonry { columns: 3; }
  .hero-actions .btn, .cta-actions .btn { flex: 0 1 auto; }
}

@media (min-width: 640px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 768px) {
  :root { --gap: 14px; --gut: 28px; }
  body { font-size: 17px; }
  .section { padding: 68px 0; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .bullet-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: .85fr 1fr; align-items: center; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: start; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
  .form-card { padding: 30px 28px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .field-full { grid-column: 1 / -1; }
  .cta-in { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 52px 0; }
  .cta-actions { justify-content: flex-end; }
  .page-hero { padding: 26px 0 44px; }
}

@media (min-width: 1180px) {
  .nav { display: flex; align-items: center; gap: 14px; }
  .nav ul { display: flex; align-items: center; gap: 0; }
  /* ชื่อเมนูยาวขึ้นแล้วแต่ยังมีที่เหลือพอสำหรับปุ่มไลน์ จึงคงไว้
     (วัดจริงที่ 1180px ใช้ไป 1059 จาก 1180px) */
  /* ปุ่มไลน์ในเมนูเหลือเฉพาะโลโก้เพื่อประหยัดที่ ตัวอักษรยังอยู่ให้โปรแกรมอ่านหน้าจอ
     จึงต้องซ่อนแบบ sr-only ไม่ใช่ display:none ที่จะทำให้ปุ่มไม่มีชื่อเลย */
  .nav-cta .btn-line { display: inline-flex; padding: 8px 12px; }
  .nav-cta .btn-line span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .nav ul a {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 8px 9px; border-radius: 8px;
    color: var(--navy); font-weight: 500; font-size: .875rem;
    white-space: nowrap;
    transition: color .18s var(--ease), background-color .18s var(--ease);
  }
  .nav ul a:hover { color: var(--blue); background: var(--tint); }
  .nav ul a[aria-current="page"] { color: var(--blue); font-weight: 600; }
  .nav-cta { margin-top: 0; }
  .nav-cta .btn { flex: none; }
  .nav-toggle { display: none; }
  .brand img { height: 44px; }
  .head-in { min-height: 74px; }
}

@media (min-width: 1360px) {
  .nav { gap: 20px; }
  .nav ul { gap: 2px; }
  .nav ul a { padding: 8px 11px; }
}

@media (min-width: 900px) {
  /* แบนเนอร์เต็มจอ ชนขอบ ไม่มี margin ไม่มีมุมโค้ง */
  .hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch; }
  .hero-media { order: 0; }
  .hero-text { display: flex; align-items: center; padding: 60px 40px 60px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
  .hero-text-in { margin: 0; }
  .hero h1 { font-size: clamp(2.5rem, 3.4vw, 3.25rem); }
  .hero-sub { font-size: 1.125rem; }
  .hero-media { overflow: hidden; }
  .hero-img { height: 100%; min-height: 540px; aspect-ratio: auto; max-height: none; }
  .hero-chips { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  :root { --gap: 16px; }
  .section { padding: 84px 0; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .masonry { columns: 4; }
  .sec-head { margin-bottom: 38px; }
  .svc-card { padding: 24px 22px 20px; }
  .step { padding: 22px 20px; }
}

@media (min-width: 1100px) {
  /* ปุ่มลอยล่างจอมีเฉพาะมือถือ */
  .mobile-cta { display: none; }
  .site-foot { margin-bottom: 0; }
}

@media (max-width: 767px) {
  /* ต้องเจาะจงกว่า .topbar a ไม่งั้นซ่อนไม่ลง */
  .topbar .only-lg, .only-lg { display: none; }
}
