/* GOGO Solutions — สไตล์เดียวทั้ง 6 หน้า */
:root {
  --red: #d32029; --red-d: #a8121a; --blue: #1565d8; --blue-d: #0b3a8a;
  --green: #1e9e5a; --orange: #f08a00;
  --ink: #111827; --muted: #4b5563; --line: #ececf1; --soft: #fff5f5; --bg: #fff;
  --c: var(--red); --cd: var(--red); /* --c สีประจำส่วน (ไอคอน/พื้น), --cd เฉดเข้มสำหรับตัวอักษรและพื้นปุ่ม (ผ่าน AA กับสีขาว) */
  --radius: 16px; --shadow: 0 6px 24px rgba(17, 24, 39, .07);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.65 Sarabun, "Noto Sans Thai", sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
h1, h2, h3, .font-head { font-family: Prompt, sans-serif; line-height: 1.25; margin: 0 0 .5em; }
h1, h2, h3, p, .card, .hero__title, summary, .chip, .btn, .stat b, .fee b, .foot a { overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--soft { background: var(--soft); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.section-title em { font-style: normal; color: var(--cd); }
.section-sub { color: var(--muted); margin-top: -.4em; }
.center { text-align: center; }
.red { --c: var(--red); --cd: var(--red); } .blue { --c: var(--blue); --cd: var(--blue); } .green { --c: var(--green); --cd: #157a44; } .orange { --c: var(--orange); --cd: #a85a00; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.6em; border-radius: 999px; background: var(--cd); color: #fff; font: 600 1rem Prompt, sans-serif; text-decoration: none; border: 2px solid var(--cd); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.btn--lg { font-size: 1.15rem; padding: .9em 2em; }
.btn--outline { background: #fff; color: var(--cd); }
.btn--white { background: #fff; color: var(--red); border-color: #fff; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { width: 56px; height: 56px; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 28px; font-family: Prompt, sans-serif; font-weight: 500; }
.nav__links > a, .nav__drop > a { text-decoration: none; padding: 8px 0; }
.nav__links a:hover, .nav__drop > a.is-active { color: var(--red); }
.nav__drop { position: relative; }
.nav__drop > a.is-active { border-bottom: 2px solid var(--red); }
.nav__drop i { font-size: .7em; }
.nav__menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 260px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { display: block; }
.nav__menu a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.nav__menu a:hover, .nav__menu a[aria-current] { background: var(--soft); color: var(--red); }
.nav__cta { --cd: var(--red); padding: .55em 1.3em; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; padding: 8px; cursor: pointer; }
.crumb { font-size: .85rem; color: var(--muted); padding-top: 12px; }
.crumb a { text-decoration: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 0; background: linear-gradient(120deg, #fff 45%, color-mix(in srgb, var(--c) 10%, #fff)); }
.hero__in { position: relative; z-index: 1; min-height: 420px; display: flex; align-items: center; }
.hero__text { max-width: 54%; padding: 44px 0 52px; }
.hero__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.hero__icon { width: 88px; height: 88px; flex: none; border-radius: 22px; background: var(--cd); color: #fff; display: grid; place-items: center; font-size: 2.6rem; box-shadow: var(--shadow); }
.hero .hero__h { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.hero .hero__h .gogo { display: block; color: var(--red); font-size: .55em; }
.hero .hero__h .accent { color: var(--cd); white-space: nowrap; }
.hero .hero__h small { display: block; font-size: .35em; color: var(--cd); font-weight: 700; }
.hero__title { font: 700 clamp(1.3rem, 2.6vw, 1.85rem)/1.35 Prompt, sans-serif; margin: 14px 0 10px; }
.hero__sub { color: var(--muted); font-size: 1.08rem; }
.hero__img { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: right 18%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); }
.hero__feats { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 18px 0 24px; padding: 0; list-style: none; }
.hero__feats li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.hero__feats i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-size: 1.15rem; flex: none; }

/* แถบสถิติ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-top: 20px; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat i { font-size: 1.8rem; color: var(--red); }
.stat b { display: block; font: 700 1.35rem Prompt, sans-serif; color: var(--red); }
.stat span { font-size: .88rem; color: var(--muted); }

/* การ์ด */
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--5 { grid-template-columns: repeat(5, 1fr); } .card-grid--4 { grid-template-columns: repeat(4, 1fr); } .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--6 { grid-template-columns: repeat(6, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cd); color: #fff; display: grid; place-items: center; font-size: 1.4rem; margin: -46px 0 10px; border: 4px solid #fff; position: relative; }
.card h3 { font-size: 1.2rem; color: var(--cd); font-weight: 800; }
.card p { color: var(--muted); font-size: .95rem; }
.card .btn { margin-top: auto; justify-content: center; }
.card--tile { padding: 22px 16px; text-align: center; align-items: center; }
.card--tile i { font-size: 2rem; color: var(--c); margin-bottom: 10px; }
.card--tile h3 { font-size: 1.05rem; }
.card--tile p { margin: 0; font-size: .9rem; }

/* รายการติ๊ก */
.checklist { list-style: none; padding: 0; margin: 0 0 18px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; font-size: .95rem; }
.checklist li::before { content: "\f058"; font: 900 1em "Font Awesome 6 Free"; color: var(--c); position: absolute; left: 0; top: .2em; }
.checklist--2 { columns: 2 200px; column-gap: 28px; }

/* ขั้นตอน */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--5 { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; background: color-mix(in srgb, var(--c) 6%, #fff); border-radius: var(--radius); padding: 22px 16px 18px; text-align: center; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--cd); color: #fff; font: 700 1rem/30px Prompt, sans-serif; }
.step > i { font-size: 2.2rem; color: var(--c); margin: 8px 0 12px; }
.step img { border-radius: 12px; margin: 0 auto 12px; aspect-ratio: 4 / 3; object-fit: cover; }
.step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (min-width: 1024px) { .step:not(:last-child)::after { content: "›"; position: absolute; right: -14px; top: 45%; color: var(--c); font-size: 1.6rem; } }

/* เหมาะสำหรับใคร */
.who { text-align: center; }
.who img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 10px; }
.who h3 { font-size: 1.1rem; margin-bottom: .2em; }
.who p { font-size: .9rem; color: var(--muted); margin: 0; }

/* แถวโลโก้ / ป้าย */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.logo-row img { height: 46px; width: auto; object-fit: contain; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; }
.chip i { font-size: 1.4rem; }

/* ค่าบริการ */
.fee-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.fee { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.fee i { font-size: 2rem; color: var(--red); }
.fee small { color: var(--blue); display: block; }
.fee b { font: 800 1.6rem Prompt, sans-serif; color: var(--red); display: block; }
.fee span { font-size: .85rem; color: var(--muted); }
.fee-note { font-size: .8rem; color: var(--muted); margin: 0; }

/* รีวิว */
.quote { display: flex; gap: 14px; }
.quote img { width: 88px; height: 104px; object-fit: cover; border-radius: 12px; flex: none; }
.quote p { font-size: .92rem; margin-bottom: .4em; }
.quote b { display: block; }
.quote small { color: var(--muted); }
.quote .stars { color: #f5a623; font-size: .85rem; }

/* แถบเลื่อนแนวนอน (มือถือ) */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.scroller > * { scroll-snap-align: start; }
.thumb { text-align: center; font-size: .9rem; }
.thumb img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 6px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* แบนเนอร์ท้ายหน้า */
.cta-banner { background: linear-gradient(100deg, var(--red-d), var(--red)); color: #fff; overflow: hidden; }
.cta-banner__in { display: grid; grid-template-columns: 300px 1fr auto; gap: 28px; align-items: center; }
.cta-banner__img { align-self: stretch; object-fit: cover; height: 100%; min-height: 150px; }
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .2em; }
.cta-banner p { margin: 0; opacity: .92; }
.cta-banner .btn { margin: 24px 0; }

/* กล่องสองคอลัมน์ทั่วไป */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.dark { background: linear-gradient(120deg, var(--blue-d), var(--blue)); color: #fff; }
.dark .section-title { color: #fff; }

/* footer */
.foot { background: #fff; color: var(--muted); border-top: 1px solid var(--line); padding: 40px 0 20px; }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot img { border-radius: 12px; }
.foot a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 6px; }
.foot a:hover { color: var(--red); }
.foot__h { font-size: 1rem; color: var(--ink); }
.foot__tag { margin-top: 12px; max-width: 320px; }
.foot__social { display: flex; gap: 12px; margin-top: 8px; }
.foot .foot__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin: 0; color: #fff; font-size: 1.2rem; background: #111827; }
.foot__social a:nth-child(1) { background: #1877f2; } .foot__social a:nth-child(2) { background: #06c755; } .foot__social a:nth-child(3) { background: #ff0033; }
.foot .foot__social a:hover { color: #fff; filter: brightness(1.1); }
.foot__copy { font-size: .8rem; color: #9ca3af; margin-top: 28px; }

/* มือถือ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .hero__in { min-height: 0; }
  .hero__text { max-width: none; padding: 24px 0 36px; }
  .hero__img { position: static; width: 100%; height: 260px; }
  .hero__img img { -webkit-mask-image: none; mask-image: none; object-position: center 25%; }
  .cta-banner__in { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .cta-banner__img { display: none; }
  .cta-banner__in > div { padding-top: 28px; }
  .foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 1060px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav-open .nav__links { display: flex; }
  .nav__links > a, .nav__drop > a { padding: 12px 0; border-bottom: 1px solid var(--line); display: block; }
  .nav__drop > a.is-active { border-bottom: 1px solid var(--line); }
  .nav__menu { display: block; position: static; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
  .nav__links > a.nav__cta { margin-top: 12px; display: flex; justify-content: center; border-bottom: 0; }
}
@media (max-width: 860px) {
  .section { padding: 40px 0; }
  .hero__icon { width: 64px; height: 64px; font-size: 1.9rem; border-radius: 16px; }
}

/* block editor: แถวหลายคอลัมน์ + grid ตามจำนวนคอลัมน์ที่แอดมินเลือก */
.hero .hero__h { margin: 0; }
.row { display: grid; gap: 32px; align-items: start; }
.row > div { min-width: 0; }
.row--half { grid-template-columns: 1fr 1fr; }
.row--third { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1024px) {
  .card-grid--n { grid-template-columns: repeat(var(--cols), 1fr); }
  .card-grid--n[data-one] { grid-template-columns: 1fr; }
  .steps--n { grid-template-columns: repeat(var(--cols), 1fr); }
}
@media (min-width: 640px) and (max-width: 1023px) { .card-grid--n[data-one] { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .row--half, .row--third { grid-template-columns: 1fr; } }
.stats--lift { margin-top: -24px; position: relative; }
.preview-bar { background: #111827; color: #fde68a; text-align: center; padding: 8px 16px; font: 600 .95rem Prompt, sans-serif; }

/* กริดหลายคอลัมน์ภายในแถว half/third: ให้ปรับตามความกว้างจริงของคอลัมน์ ไม่บีบเหลือไม่กี่ px */
@media (min-width: 1024px) {
  .row .card-grid--n, .row .steps--n { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .row--third .split { grid-template-columns: 1fr; }
}

/* รูปแบบเพิ่มเติมของ block: tiles / who / steps-box / วงกลม / FAQ แบบ Q1 */
.tiles--soft .card--tile { background: color-mix(in srgb, var(--c) 7%, #fff); border: 0; box-shadow: none; }
.tiles--strip { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 8px; gap: 0; }
.tiles--strip .card--tile { border: 0; box-shadow: none; border-radius: 0; background: transparent; }
.tiles--circle .card--tile { border: 0; box-shadow: none; background: transparent; }
.tiles--circle .card--tile > i { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); font-size: 1.7rem; margin-bottom: 10px; }
@media (min-width: 1024px) { .tiles--strip .card--tile + .card--tile { border-left: 1px solid var(--line); } }

.who--overlay .who__pic { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.who--overlay .who__pic img { margin: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.who--overlay .who__pic h3 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 22px 8px 8px; color: #fff; font-size: 1rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.who--overlay .who__pic h3 i { color: #fff !important; }

.steps-layout { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 1024px) { .steps-layout { grid-template-columns: 1fr 300px; } }
.steps-box { position: relative; min-height: 190px; background: linear-gradient(120deg, var(--red-d), var(--red)); color: #fff; border-radius: var(--radius); padding: 22px; overflow: hidden; }
.steps-box > div { max-width: 64%; }
.steps-box .btn { white-space: nowrap; padding: .6em 1.1em; font-size: .95rem; }
.steps-box h3 { font-size: 1.35rem; margin-bottom: .8em; }
.steps-box__img { position: absolute; right: 10px; bottom: 0; width: 104px; height: auto; border-radius: 12px 12px 0 0; }
@media (max-width: 1023px) { .steps-box > div { max-width: 70%; } }

.thumbs-circle { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 12px; }
.thumbs-circle .thumb img { max-width: 110px; margin: 0 auto 6px; display: block; }

.faq--2 { counter-reset: q; }
.faq--2 details { counter-increment: q; }
.faq--2 summary { justify-content: flex-start; }
.faq--2 summary::before { content: "Q" counter(q); color: var(--cd); font-weight: 700; flex: none; margin-right: 6px; }
.faq--2 summary::after { margin-left: auto; }
@media (min-width: 1024px) { .row .tiles--circle { grid-template-columns: repeat(var(--cols), 1fr); } }

.hero__stats { position: relative; z-index: 1; padding-bottom: 28px; }
.hero__stats .stats { margin-top: 0; }
.card .btn { white-space: nowrap; padding: .6em .7em; font-size: .9rem; }
.stats--feats .stat b { font-size: 1.05rem; color: var(--ink); }
.stats--feats { margin-top: 0; }
.panel__img { width: 100%; border-radius: 12px; margin-bottom: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.tiles--circle h3 { font-size: .95rem; }
.chip { flex-direction: column; text-align: center; padding: 12px 18px; min-width: 96px; }
.chip > span:first-child { font-size: 2.2rem; line-height: 1; }
.fee-promo { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, var(--red-d), var(--red)); color: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.fee-promo > i { font-size: 1.6rem; flex: none; }
.fee-promo b { display: block; font-family: Prompt, sans-serif; font-size: 1.05rem; }
.fee-promo small { display: block; opacity: .9; margin-top: 2px; }
.hero__title em, .hero__sub em { font-style: normal; color: var(--cd); }
.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; }
.rich { max-width: 820px; }
.rich--center { margin: 0 auto; text-align: center; }
.rich p { color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* เมนูบนสุดมี 6+ รายการ: ลดช่องไฟบนจอกลาง; แถบเลือกภาษา; ตัวอักษรจีน */
.nav__links { gap: 20px; }
.nav__links > a.is-active { color: var(--red); border-bottom: 2px solid var(--red); }
.nav__lang > a { white-space: nowrap; }
.nav__lang .nav__menu { left: auto; right: 0; min-width: 140px; }
.nav__menu a[aria-current="true"] { background: var(--soft); color: var(--red); }
body.lang-cn, body.lang-cn h1, body.lang-cn h2, body.lang-cn h3, body.lang-cn .btn, body.lang-cn .nav__links { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
@media (max-width: 1060px) { .nav__lang .nav__menu { right: auto; left: 0; } .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .foot__in { grid-template-columns: 1fr; } }
