/* Shared styles for every page outside the homepage:
   /services/…, /th/services/… and /search/.

   These tokens mirror the :root blocks in index.html so the whole site runs
   one monochrome system — near-black accent in light, near-white in dark,
   with violet reserved for hover states and mint for ticks and highlights.
   Change a token here and change it there too. */
:root{
  --bg:#fbfaf8;--bg-sunk:#f0f0f0;--surface:#ffffff;--surface-2:#f7f7f7;
  --text:#0c0c0c;--text-soft:#404040;--text-muted:#6b6b6b;
  --line:#e5e5e5;--line-strong:#d4d4d4;
  --accent:#0c0c0c;--accent-ink:#ffffff;
  --violet:#4f46e5;--violet-soft:#eef0ff;   /* hover accent, not a fill */
  --mint:#14b8a6;
  --grad:linear-gradient(100deg,#0c0c0c 0%,#333333 100%);
  --band:linear-gradient(120deg,#0c0c0c 0%,#262626 100%);   /* always dark, always white text */
  --r-lg:24px;--r-sm:10px;
  --shadow-sm:0 1px 2px rgba(19,17,24,.06),0 2px 8px rgba(19,17,24,.04);
  --shadow-md:0 2px 4px rgba(19,17,24,.05),0 12px 32px -8px rgba(19,17,24,.14);
  --shadow-lg:0 4px 8px rgba(19,17,24,.06),0 32px 64px -16px rgba(19,17,24,.22);
  --pad:clamp(1.25rem,5vw,2.5rem);
  --shell:1180px;
  --ease:cubic-bezier(.22,1,.36,1);
  --font:"Inter","Inter var",ui-sans-serif,system-ui,-apple-system,"Segoe UI Variable Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --display:"Space Grotesk","Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0c0c0c;--bg-sunk:#050505;--surface:#161616;--surface-2:#1f1f1f;
  --text:#f0f0f0;--text-soft:#d4d4d4;--text-muted:#a3a3a3;
  --line:#262626;--line-strong:#404040;
  --accent:#f0f0f0;--accent-ink:#0c0c0c;
  --violet:#6366f1;--violet-soft:#1a1a2e;
  --mint:#2dd4bf;
  --grad:linear-gradient(100deg,#f0f0f0 0%,#a3a3a3 100%);
  --shadow-sm:0 1px 2px rgba(0,0,0,.5);
  --shadow-md:0 2px 4px rgba(0,0,0,.4),0 16px 40px -12px rgba(0,0,0,.7);
  --shadow-lg:0 4px 8px rgba(0,0,0,.4),0 40px 80px -20px rgba(0,0,0,.85);
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0c0c0c;--bg-sunk:#050505;--surface:#161616;--surface-2:#1f1f1f;
  --text:#f0f0f0;--text-soft:#d4d4d4;--text-muted:#a3a3a3;
  --line:#262626;--line-strong:#404040;
  --accent:#f0f0f0;--accent-ink:#0c0c0c;
  --violet:#6366f1;--violet-soft:#1a1a2e;
  --mint:#2dd4bf;
  --grad:linear-gradient(100deg,#f0f0f0 0%,#a3a3a3 100%);
  --shadow-sm:0 1px 2px rgba(0,0,0,.5);
  --shadow-md:0 2px 4px rgba(0,0,0,.4),0 16px 40px -12px rgba(0,0,0,.7);
  --shadow-lg:0 4px 8px rgba(0,0,0,.4),0 40px 80px -20px rgba(0,0,0,.85);
  color-scheme:dark;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:var(--font);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit}
.shell{max-width:var(--shell);margin-inline:auto;padding-inline:var(--pad)}
.skip{position:absolute;left:50%;top:0;translate:-50% -140%;z-index:200;background:var(--text);color:var(--bg);padding:.7rem 1.2rem;border-radius:0 0 12px 12px;font-size:.875rem;font-weight:600;text-decoration:none;transition:translate .25s var(--ease)}
.skip:focus{translate:-50% 0}
.progress{position:fixed;inset:0 auto auto 0;height:2px;width:100%;transform-origin:0 50%;scale:0 1;background:var(--grad);z-index:120}

.header{position:sticky;top:0;z-index:100;border-bottom:1px solid transparent;transition:border-color .3s var(--ease),background-color .3s var(--ease)}
.header[data-stuck]{background:color-mix(in oklab,var(--bg) 82%,transparent);backdrop-filter:blur(16px) saturate(1.6);-webkit-backdrop-filter:blur(16px) saturate(1.6);border-bottom-color:var(--line)}
.bar{display:flex;align-items:center;gap:1rem;height:4.5rem}

.brand{display:inline-flex;align-items:center;gap:.55rem;font-family:var(--display);font-weight:600;letter-spacing:-.02em;font-size:1.0625rem;margin-inline-end:auto;white-space:nowrap;text-decoration:none}
.brand-name{display:inline-flex;flex-direction:column;align-items:center;line-height:1.08;text-transform:uppercase;letter-spacing:.04em}
.brand-sub{color:var(--text-muted);font-weight:500;font-size:.6em;letter-spacing:.68em;padding-inline-start:.68em;text-transform:uppercase;margin-top:1px}
.mark{width:2rem;height:2rem;border-radius:0;background:none;display:grid;place-items:center}
.mark svg{width:1.9rem;height:1.9rem}
.mark .v-body{fill:var(--text)}
.mark .v-pulse{fill:none;stroke:var(--bg);stroke-width:5.5;stroke-linejoin:miter}

.nav{display:flex;align-items:center;gap:.25rem}
.nav a{padding:.45rem .7rem;border-radius:100px;font-size:.9rem;font-weight:520;color:var(--text-soft);text-decoration:none;transition:color .2s,background-color .2s}
.nav a:hover{color:var(--text);background:var(--surface-2)}
.nav a[aria-current="true"]{color:var(--text);font-weight:600}
.nav-login{border:1px solid var(--line-strong);border-radius:100px}
.nav-login:hover{border-color:var(--violet);color:var(--violet)!important;background:transparent!important}
.nav-search{display:none}

/* Order matters: these two selectors have the same specificity, so the generic
   one has to come first or it turns the in-menu pill back on and the header
   shows the language switch twice. */
.lang-switch{display:inline-flex;gap:.15rem;padding:.2rem;border:1px solid var(--line);border-radius:100px;background:var(--surface-2)}
.lang-switch--nav{display:none}
.lang-opt{font:inherit;font-size:.8rem;font-weight:600;line-height:1;color:var(--text-muted);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;padding:.35rem .6rem;border:0;border-radius:100px;background:transparent;transition:color .2s,background .2s,box-shadow .2s}
.lang-opt:hover{color:var(--text)}
.lang-opt.is-active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}

.burger{display:none}
.header .btn{border:1px solid transparent;transition:translate .3s var(--ease),box-shadow .3s var(--ease)}
.header .btn:hover{translate:0 -2px;box-shadow:var(--shadow-md)}
.header .btn--sm{padding:.55rem 1rem;font-size:.875rem;font-weight:580;letter-spacing:-.01em;gap:.55rem}
.header .btn--primary{background:var(--accent);color:var(--accent-ink);box-shadow:0 8px 24px -10px color-mix(in oklab,var(--accent) 70%,transparent)}
.header .btn svg{width:1em;height:1em;flex:none}
.header .arrow{transition:translate .3s var(--ease)}
.header .btn:hover .arrow{translate:3px 0}

@media (max-width:880px){
  .nav{position:fixed;inset:4.5rem 0 auto;flex-direction:column;align-items:stretch;gap:.125rem;background:var(--bg);border-bottom:1px solid var(--line);padding:.75rem var(--pad) 1.5rem;box-shadow:var(--shadow-lg);display:none}
  .nav[data-open]{display:flex}
  .nav a{padding:.8rem .75rem;font-size:1.05rem}
  .nav-search{display:block}
  .burger{display:grid}
  #search-link{display:none}
  .bar .btn--primary{display:none}
}
.pill{display:inline-flex;gap:.15rem;padding:.2rem;border:1px solid var(--line);border-radius:100px;background:var(--surface-2)}
.pill a{font:inherit;font-size:.8rem;font-weight:600;color:var(--text-muted);text-decoration:none;cursor:pointer;padding:.35rem .55rem;border:0;border-radius:100px;background:transparent;display:inline-flex;align-items:center}
.pill a:hover{color:var(--text)}
.pill .on{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}
.crumb{font-size:.82rem;color:var(--text-muted);padding-block:1.4rem .2rem}
.crumb a{color:var(--text-muted)}
.hero{padding-block:2.4rem 1.6rem}
.eyebrow{font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted)}
h1,h2,h3{font-family:var(--display)}
h1{font-size:clamp(2.1rem,1.4rem+3vw,3.4rem);line-height:1.08;letter-spacing:-.03em;font-weight:720;margin-block:.7rem}
h1 .grad{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.lede{font-size:1.12rem;color:var(--text-soft);max-width:44rem}
.btn{display:inline-flex;align-items:center;gap:.5rem;font-weight:560;text-decoration:none;padding:.72rem 1.15rem;border-radius:100px;font-size:.95rem}
.btn--primary{background:var(--accent);color:var(--accent-ink);box-shadow:0 8px 24px -10px color-mix(in oklab,var(--accent) 70%,transparent)}
.btn--ghost{border:1px solid var(--line-strong);color:var(--text)}
.cta-row{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.4rem}
section.block{padding-block:2.2rem}
section.block:nth-of-type(even){background:var(--bg-sunk);border-block:1px solid var(--line)}
h2{font-size:clamp(1.5rem,1.2rem+1.4vw,2rem);letter-spacing:-.01em;margin-bottom:.4rem}
.block>.shell>p{color:var(--text-soft);max-width:46rem}
.grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(15rem,100%),1fr));margin-top:1.3rem}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:1.4rem;box-shadow:var(--shadow-sm)}
.card h3{font-size:1.02rem;margin-bottom:.35rem}
.card p{font-size:.92rem;color:var(--text-soft)}
.feat{list-style:none;display:grid;gap:.6rem;margin-top:1.2rem}
.feat li{display:grid;grid-template-columns:1.2rem 1fr;gap:.6rem;color:var(--text-soft)}
.feat svg{width:1.2rem;height:1.2rem;color:var(--mint);margin-top:.3rem}
.prose p{color:var(--text-soft);margin-top:.9rem;max-width:46rem}
.faq details{border:1px solid var(--line);border-radius:var(--r-sm);padding:.9rem 1.1rem;margin-top:.7rem;background:var(--surface)}
.faq summary{font-weight:600;cursor:pointer}
.faq p{color:var(--text-soft);margin-top:.5rem}
.cta{margin-block:2.5rem;background:var(--band);border-radius:var(--r-lg);padding:clamp(1.6rem,4vw,2.6rem);text-align:center;color:#fff}
.cta h2{color:#fff}.cta p{color:rgba(255,255,255,.9);margin:.4rem auto 1.2rem;max-width:34rem}
.cta .btn{background:#fff;color:#0c0c0c}
.cta .cta-channels{margin:1.1rem auto 0;max-width:34rem;font-size:.85rem;color:rgba(255,255,255,.85)}
.cta .cta-channels a{color:#fff;text-decoration:underline;text-underline-offset:3px}
/* Click-to-call. The button stays hidden until voice-widget.js confirms this
   browser can place a call, so the tel: line above is always the fallback. */
[data-voice-call][hidden]{display:none!important}
.cta-actions{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}
.cta button.btn{font:inherit;cursor:pointer;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.45)}
.cta button.btn:hover{background:rgba(255,255,255,.12)}
.cta button.btn svg{width:1.05rem;height:1.05rem}
@media(max-width:560px){.cta-actions{flex-direction:column;align-items:stretch}.cta-actions .btn{width:100%;justify-content:center}}
footer{border-top:1px solid var(--line);padding-block:1.8rem;margin-top:1rem;color:var(--text-muted);font-size:.9rem}
footer a{color:var(--text-soft)}
.icon-btn{width:2.375rem;height:2.375rem;border:1px solid var(--line);border-radius:100px;background:var(--surface);display:grid;place-items:center;cursor:pointer;color:var(--text);transition:background-color .2s,border-color .2s}
.icon-btn:hover{background:var(--surface-2);border-color:var(--line-strong)}
.icon-btn svg{width:1.05rem;height:1.05rem}
.icon-sun{display:none}:root[data-theme="dark"] .icon-sun{display:block}:root[data-theme="dark"] .icon-moon{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .icon-sun{display:block}:root:not([data-theme="light"]) .icon-moon{display:none}}
/* .hide is retired — the burger menu handles narrow screens now. */

/* ── Search (/search/ and /th/search/) ───────────────────────────────────── */
.search-main{padding-block:2.4rem 3rem;min-height:60vh}
.search-main h1{font-size:clamp(1.9rem,1.4rem+2vw,2.6rem);margin-bottom:1.2rem}
.search-form{position:relative;max-width:42rem}
.search-form svg{position:absolute;left:1.05rem;top:50%;translate:0 -50%;width:1.15rem;height:1.15rem;color:var(--text-muted);pointer-events:none}
.search-form input{
  width:100%;font:inherit;font-size:1.05rem;color:var(--text);
  padding:.95rem 1.1rem .95rem 3rem;
  background:var(--surface);border:1px solid var(--line-strong);border-radius:100px;
  box-shadow:var(--shadow-sm);transition:border-color .2s,box-shadow .2s;
}
.search-form input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in oklab,var(--accent) 18%,transparent)}
.search-form input::-webkit-search-cancel-button{cursor:pointer}
.search-status{color:var(--text-muted);font-size:.9rem;margin-block:1.1rem .4rem;max-width:42rem}
.search-results{display:grid;gap:.9rem;max-width:46rem}
/* The whole card is one click target: the title link stretches an invisible
   ::after over the card, so there is still exactly one link for a screen
   reader and for the keyboard. Section links opt back out via z-index. */
.sr{
  position:relative;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:1.2rem 2.6rem 1.2rem 1.3rem;box-shadow:var(--shadow-sm);
  cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s
}
.sr:hover{border-color:color-mix(in oklab,var(--violet) 45%,var(--line));box-shadow:0 6px 22px -12px color-mix(in oklab,var(--violet) 45%,transparent);transform:translateY(-2px)}
.sr:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in oklab,var(--accent) 18%,transparent)}
.sr__go{position:absolute;top:1.15rem;right:1.1rem;color:var(--text-muted);display:grid;place-items:center;transition:color .2s,translate .2s}
.sr__go svg{width:1.05rem;height:1.05rem}
.sr:hover .sr__go{color:var(--violet);translate:3px 0}
.sr__title{font-size:1.08rem;letter-spacing:-.01em;margin:0}
.sr__title a{text-decoration:none;outline:none}
.sr__title a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.sr:hover .sr__title a{color:var(--violet)}
.sr__url{font-size:.78rem;color:var(--text-muted);margin-top:.15rem;word-break:break-word}
.sr__excerpt{font-size:.93rem;color:var(--text-soft);margin-top:.6rem}
.sr__excerpt mark{background:color-mix(in oklab,var(--mint) 26%,transparent);color:inherit;border-radius:3px;padding:0 .12em}
.sr__subhead{font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin-top:1rem}
.sr__subs{list-style:none;display:grid;gap:.3rem;margin-top:.45rem}
.sr__subs li{justify-self:start}
.sr__subs a{position:relative;z-index:1;font-size:.9rem;color:var(--text-soft);text-decoration:none;display:inline-block;padding:.15rem 0}
.sr__subs a::before{content:"↳ ";color:var(--text-muted)}
.sr__subs a:hover{color:var(--violet)}
@media (max-width:640px){
  .search-form input{font-size:1rem;padding:.85rem 1rem .85rem 2.8rem}
  .sr{padding:1rem 2.2rem 1rem 1.05rem;border-radius:var(--r-sm)}
  .sr__go{top:.95rem;right:.85rem}
}

@media (max-width:640px){
  /* 38px was under every platform's minimum touch target. */
  .icon-btn{width:2.625rem;height:2.625rem}
  .icon-btn svg{width:1.15rem;height:1.15rem}
  section.block{padding-block:1.7rem}
  .hero{padding-block:1.8rem 1.2rem}
  .lede{font-size:1.02rem}
  .cta{margin-block:1.8rem;padding:1.8rem 1.2rem}
  .cta-row{gap:.6rem}
  .cta-row .btn{flex:1 1 100%;justify-content:center}
  /* .cta is a text-align:center block, not flex — width, not flex-basis. */
  .cta .btn{width:100%;max-width:22rem;justify-content:center}
  .card{padding:1.15rem}
  .faq details{padding:.85rem 1rem}
  /* Long words — URLs, emails, Thai compounds — must not widen the page. */
  .lede,.card p,.prose p,.faq p,.block>.shell>p{overflow-wrap:break-word}
}

@media (max-width:560px){
  /* Brand + language + theme + burger will not fit side by side, so the
     language pill moves into the burger menu and .nav's offset follows. */
  .bar{gap:.5rem;height:4rem}
  .bar>.lang-switch{display:none}
  .brand{font-size:.95rem;gap:.45rem}
  .mark{width:1.75rem;height:1.75rem}
  .mark svg{width:1.7rem;height:1.7rem}
  .nav{inset:4rem 0 auto}
  .lang-switch--nav{display:inline-flex;align-self:flex-start;margin-block-start:.75rem}
  .nav .lang-opt{padding:.45rem .85rem;font-size:.875rem;border-radius:100px}
  .nav .lang-opt:hover{background:transparent}
  .nav .lang-opt.is-active{background:var(--surface)}
}

@media (prefers-reduced-motion:reduce){.sr,.sr__go{transition:none}.sr:hover{transform:none}.sr:hover .sr__go{translate:none}}
