/* ============================================================
   Globalliance (Thailand) — Conversion-optimized design system
   Vanilla CSS, mobile-first, no dependencies.
   ============================================================ */

:root {
  /* Brand palette — fresh bright-blue primary */
  --ink: #0A2540;          /* deep navy — headings, dark text */
  --ink-2: #14365c;        /* navy gradient stop */
  --brand: #0096C7;        /* link/accent blue (fresh, readable on white) */
  --brand-600: #0077B6;
  --gold: #00B4D8;         /* MAIN bright-blue accent (buttons, tags, highlights) */
  --gold-dark: #0077B6;    /* readable blue for small text on white & hovers */
  --price: #12A150;        /* green for prices/numbers */
  --wa: #25D366;           /* WhatsApp green */
  --wa-dark: #1ebe5a;

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #F4F8FC;
  --bg-soft-2: #EAF1F8;
  --line: #e2e8f0;
  --text: #2b3a4a;
  --muted: #5b6b7b;
  --white: #ffffff;

  /* System */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(10,37,64,.08), 0 1px 2px rgba(10,37,64,.06);
  --shadow: 0 10px 30px -12px rgba(10,37,64,.25);
  --shadow-lg: 0 24px 60px -20px rgba(10,37,64,.35);
  --container: 1180px;
  --ease: cubic-bezier(.4,0,.2,1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { color: var(--muted); }
strong { color: var(--text); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section-sm { padding: 52px 0; }
.section.soft { background: var(--bg-soft); }
.section.ink { background: linear-gradient(160deg, #0086bd, #00a6cf); color: #eefaff; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section.ink p { color: #dcecf8; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
}
.section.ink .eyebrow { color: #cfeeff; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin: 0 auto 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap; text-align: center;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(200,162,74,.8); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(37,211,102,.8); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #48CAE4;
  transition: box-shadow .2s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 20px -8px rgba(7,55,90,.30); }
/* Homepage only: white header */
body.home .site-header { background: #fff; border-bottom: 1px solid var(--line); }
body.home .site-header.scrolled { box-shadow: 0 6px 20px -8px rgba(7,55,90,.18); }
body.home .topbar { background: #fff; border-bottom: 1px solid var(--line); }
body.home .site-header .hamburger { background: #fff; border-color: var(--line); }
/* Colored logo + dark nav on the light-cyan header */
.site-header .brand-name { color: var(--ink); }
.site-header .brand-name small { color: var(--brand-600); }
.site-header .nav-links a.nav-link { color: var(--ink); }
.site-header .nav-links a.nav-link:hover,
.site-header .nav-links li.open > a.nav-link { background: rgba(10,37,64,.10); color: var(--brand-600); }
.site-header .hamburger { background: rgba(255,255,255,.55); border-color: rgba(10,37,64,.2); color: var(--ink); }
.topbar { background: #48CAE4; color: var(--ink); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: var(--ink); font-weight: 700; }
.topbar svg { color: var(--brand-600); }
.topbar .topbar-left { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .topbar-left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }
.topbar .topbar-right { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.mn-logo { height: 40px; width: auto; display: block; }
.footer-logo { height: 54px; width: auto; display: block; margin-bottom: 6px; }
.brand-name { font-weight: 800; color: var(--ink); font-size: 1.18rem; letter-spacing: -.02em; line-height: 1.1; }
.brand-name small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 12px; border-radius: 9px;
  color: var(--ink); font-weight: 600; font-size: .96rem; transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links a.nav-link:hover, .nav-links li.open > a.nav-link { background: var(--bg-soft); color: var(--brand); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-links li.open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-links li.has-dropdown:hover .dropdown,
.nav-links li.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 9px; color: var(--ink);
}
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a .di {
  width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--bg-soft-2); color: var(--brand);
  display: grid; place-items: center;
}
.dropdown a .di svg { width: 18px; height: 18px; }
.dropdown a b { display: block; font-size: .94rem; font-weight: 700; }
.dropdown a span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle { display: none; }
.hamburger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; cursor: pointer; padding: 0; place-items: center; color: var(--ink);
}
.hamburger svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #48CAE4 0%, #48CAE4 60%, #cdeef6 82%, #ffffff 100%);
  color: var(--ink);
}
.hero::before { content: none; }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center;
  padding-top: 70px; padding-bottom: 84px;
}
.hero h1 { color: var(--ink); }
.hero h1 .hl { color: var(--brand-600); }
.hero .lead { color: #143b63; font-size: 1.18rem; margin: 22px 0 30px; max-width: 560px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--ink);
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85);
  padding: 8px 14px; border-radius: 999px;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--brand-600); }
.hero-trust { margin-top: 30px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust .t-num { font-size: 1.7rem; font-weight: 800; color: var(--ink); font-family: var(--serif); }
.hero-trust .t-lbl { font-size: .82rem; color: #143b63; }
.hero .btn-ghost { background: rgba(255,255,255,.45); color: var(--ink); border-color: rgba(10,37,64,.25); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.75); }

/* Hero lead card */
.lead-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 28px; color: var(--text); border: 1px solid rgba(255,255,255,.6);
}
.lead-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.lead-card .sub { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.form-row { display: grid; gap: 12px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .96rem; color: var(--text); background: #fff; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,95,168,.14);
}
.field textarea { resize: vertical; min-height: 92px; }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 12px; }
.form-note svg { width: 13px; height: 13px; vertical-align: -2px; color: var(--wa); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 22px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--brand); flex: none; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Overflow safety: allow grid/flex items to shrink below their content's
   intrinsic width so wide children (e.g. scrollable tables) don't force
   the whole page wider than the viewport. */
.grid > *, .split > *, .hero-grid > *, .footer-grid > *, .stat-box .grid > * { min-width: 0; }
.card, .plan, .lead-card { min-width: 0; }
.ptable-wrap { max-width: 100%; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--bg-soft-2), #fff); color: var(--brand);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.card .icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { font-size: .96rem; margin-bottom: 16px; flex: 1; }
.card .price { font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 14px; }
.card .price b { color: var(--price); }
.card .card-link { font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .15s; }
.card:hover .card-link svg { transform: translateX(4px); }
.card.feature { border-color: var(--gold); box-shadow: 0 12px 30px -16px rgba(200,162,74,.5); position: relative; }
.card .tag {
  position: absolute; top: -12px; right: 20px; background: var(--gold); color: var(--ink);
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}

/* ---------- Feature list / checks ---------- */
.checks { display: grid; gap: 12px; }
.checks.cols-2 { grid-template-columns: 1fr 1fr; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); font-size: .98rem; }
.checks li svg { width: 21px; height: 21px; color: var(--wa); flex: none; margin-top: 1px; }
.section.ink .checks li { color: #d7e6f5; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.steps.grid-3 { grid-template-columns: repeat(3,1fr); }
.steps.grid-2 { grid-template-columns: repeat(2,1fr); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--gold);
  display: inline-block; margin-bottom: 10px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .92rem; }

/* ---------- Pricing table ---------- */
.ptable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.ptable { width: 100%; border-collapse: collapse; min-width: 0; background: #fff; }
table.ptable th, table.ptable td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.ptable thead th { background: var(--ink); color: #fff; font-weight: 700; }
table.ptable thead th.pop { background: var(--gold); color: var(--ink); }
table.ptable tbody tr:nth-child(even) { background: var(--bg-soft); }
table.ptable td.tick { text-align: center; color: var(--wa); }
table.ptable td.dash { text-align: center; color: #cbd5e1; }
table.ptable .pcell { font-weight: 800; color: var(--price); }
table.ptable td:first-child { font-weight: 600; color: var(--ink); }

/* Pricing cards */
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; position: relative;
  display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.popular { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan .ptag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 14px; border-radius: 999px; }
.plan .pname { font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.plan .pprice { font-size: 2rem; font-weight: 800; color: var(--price); font-family: var(--serif); margin: 8px 0 2px; }
.plan .pprice small { font-size: .9rem; font-weight: 600; color: var(--muted); font-family: var(--font); }
.plan .pdesc { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.plan .checks { margin-bottom: 22px; flex: 1; }
.plan .checks li { font-size: .92rem; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.acc-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-size: 1.03rem; font-weight: 700; color: var(--ink); font-family: var(--font);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-q .pm { width: 24px; height: 24px; flex: none; position: relative; transition: transform .25s; }
.acc-q .pm::before, .acc-q .pm::after { content: ""; position: absolute; background: var(--brand); border-radius: 2px; }
.acc-q .pm::before { top: 11px; left: 4px; right: 4px; height: 2px; }
.acc-q .pm::after { left: 11px; top: 4px; bottom: 4px; width: 2px; transition: transform .25s; }
.acc-item.open .acc-q .pm::after { transform: scaleY(0); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #0082ba, #11abda); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(200,162,74,.25), transparent 40%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #cfe0f0; position: relative; max-width: 600px; margin: 12px auto 26px; }
.cta-band .btn-row { position: relative; justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #48CAE4 0%, #48CAE4 72%, #d3f0f7 88%, #ffffff 100%); color: var(--ink); padding: 56px 0 64px; position: relative; overflow: hidden; }
.page-hero::before { content: none; }
.page-hero .container { position: relative; }
.breadcrumb { font-size: .85rem; color: #143b63; margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--brand-600); font-weight: 600; }
.breadcrumb a:hover { color: var(--ink); }
.page-hero h1 { color: var(--ink); max-width: 800px; }
.page-hero p { color: #143b63; max-width: 680px; margin-top: 16px; font-size: 1.12rem; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero .btn-ghost { background: rgba(255,255,255,.45); color: var(--ink); border-color: rgba(10,37,64,.25); }
.page-hero .btn-ghost:hover { background: rgba(255,255,255,.75); }

/* ---------- Split / content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.narrow { grid-template-columns: 1.1fr .9fr; }
.media-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.stat-box { background: linear-gradient(150deg, #0082ba, #18b2e0); color: #fff; border-radius: var(--radius-lg); padding: 40px; }
.stat-box .grid { gap: 28px; }
.stat-box .t-num { font-size: 2.2rem; font-weight: 800; font-family: var(--serif); color: #fff; }
.stat-box .t-lbl { font-size: .9rem; color: #bcd4ec; }

/* Visa accordion-style detail cards */
.detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail summary {
  list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.detail summary::-webkit-details-marker { display: none; }
.detail summary .d-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.detail summary .d-price { font-size: .85rem; font-weight: 700; color: var(--price); white-space: nowrap; }
.detail summary .pm { width: 22px; height: 22px; flex: none; position: relative; }
.detail summary .pm::before, .detail summary .pm::after { content:""; position:absolute; background: var(--brand); border-radius:2px; }
.detail summary .pm::before { top:10px; left:3px; right:3px; height:2px; }
.detail summary .pm::after { left:10px; top:3px; bottom:3px; width:2px; transition: transform .2s; }
.detail[open] summary .pm::after { transform: scaleY(0); }
.detail .d-body { padding: 4px 24px 24px; border-top: 1px solid var(--line); }
.detail .d-body p { font-size: .96rem; margin-bottom: 14px; }
.detail .d-body h4 { color: var(--ink); font-size: .98rem; margin: 16px 0 8px; }

/* ---------- Floating contact buttons ---------- */
.fab-wa {
  position: fixed; right: 20px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  animation: fabpulse 2.6s infinite; transition: transform .2s;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 32px; height: 32px; }
.fab-wa .fab-label {
  position: absolute; right: 72px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: .2s; pointer-events: none;
  box-shadow: var(--shadow);
}
.fab-wa:hover .fab-label { opacity: 1; transform: translateX(0); }
@keyframes fabpulse { 0%{ box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, #0a4d76, #093a5b); color: #c2d6e8; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #aebfd2; font-size: .95rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .f-links li { margin-bottom: 9px; }
.site-footer .brand-name { color: #fff; }
.site-footer .f-about p { font-size: .95rem; color: #97abc2; margin: 14px 0; max-width: 340px; }
.f-contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; font-size: .95rem; }
.f-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8298b2; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfe0f0; }
.f-social a:hover { background: var(--gold); color: var(--ink); }
.f-social svg { width: 18px; height: 18px; }

/* ---------- Misc ---------- */
.disclaimer { font-size: .82rem; color: var(--muted); background: var(--bg-soft); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 8px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--bg-soft-2); color: var(--ink); font-weight: 600; font-size: .88rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; transition: .3s; font-weight: 600; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .lead-card { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
/* Switch to the hamburger menu whenever the full horizontal nav
   won't fit on one line (before it would wrap or overflow). */
@media (max-width: 1180px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: grid; }
}
@media (max-width: 860px) {
  .split, .split.narrow { grid-template-columns: 1fr; gap: 32px; }
  .steps.grid-3, .steps.grid-2 { grid-template-columns: 1fr; }
  .checks.cols-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .topbar .topbar-left { display: none; }
  .topbar .container { justify-content: center; }
  body { font-size: 16px; }
  .btn { width: 100%; }
  .hero .btn-row .btn, .page-hero .btn-row .btn { width: 100%; }
  table.ptable th, table.ptable td { padding: 10px 9px; font-size: .84rem; }
  .stat-box { padding: 28px; }
  .cta-band h2 { font-size: 1.5rem; }
}

/* ---------- Mobile nav panel ---------- */
.mobile-nav {
  display: block; position: fixed; inset: 0; z-index: 200; background: rgba(7,32,59,.62);
  opacity: 0; visibility: hidden; transition: opacity .25s; overflow: hidden;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 86vw); background: #fff;
  box-shadow: var(--shadow-lg); padding: 22px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease);
}
.mobile-nav.open .mobile-nav-panel { transform: none; }
.mn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mn-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.mn-close svg { width: 22px; height: 22px; }
.mn-links a { display: block; padding: 13px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mn-links a:hover { background: var(--bg-soft); }
.mn-links .mn-sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); padding: 14px 12px 6px; font-weight: 700; }
.mn-cta { margin-top: 20px; display: grid; gap: 12px; }

/* ---------- Language switcher + Thai typography ---------- */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid rgba(10,37,64,.25); border-radius: 999px; overflow: hidden; flex: none; }
.lang-switch a { padding: 7px 12px; font-size: .8rem; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: .02em; }
.lang-switch a.active { background: var(--brand-600); color: #fff; }
.lang-switch a:hover:not(.active) { background: rgba(10,37,64,.08); }
.nav-cta .lang-switch { margin-right: 6px; }
/* On the white mobile-menu panel the switch needs dark styling */
.mn-cta .lang-switch { width: 100%; justify-content: center; border-color: var(--line); margin-bottom: 4px; }
.mn-cta .lang-switch a { color: var(--ink); flex: 1; text-align: center; }
.mn-cta .lang-switch a.active { background: var(--brand); color: #fff; }

/* Thai pages: use a Thai-capable font for body + headings (Fraunces/Inter lack Thai glyphs) */
body.lang-th { font-family: "Noto Sans Thai", "Inter", -apple-system, BlinkMacSystemFont, sans-serif; }
body.lang-th h1, body.lang-th h2, body.lang-th h3, body.lang-th h4,
body.lang-th .brand-name, body.lang-th .lead, body.lang-th .eyebrow,
body.lang-th button, body.lang-th input, body.lang-th select, body.lang-th textarea,
body.lang-th .d-title, body.lang-th .pname { font-family: "Noto Sans Thai", "Inter", sans-serif; }
/* Thai text is taller — relax line-height a touch for headings */
body.lang-th h1, body.lang-th h2 { line-height: 1.3; }

/* ---------- Inline form "sent" confirmation ---------- */
.form-sent { text-align: center; padding: 26px 12px; animation: fadeUp .35s var(--ease); }
.form-sent .fs-icon {
  width: 66px; height: 66px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 10px 26px -8px rgba(37,211,102,.7);
}
.form-sent .fs-icon svg { width: 34px; height: 34px; }
.form-sent h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-sent p { color: var(--muted); max-width: 380px; margin: 0 auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
