/* =========================================================
   KONDOH DAQIAN — corporate site
   Colors taken from the company brochures (cover blue #007DDD,
   header steel blue #3E6796). No external fonts/CDNs so the site
   loads fast in mainland China as well as Thailand.
   ========================================================= */
:root {
  --blue: #007ddd;
  --blue-600: #0067b8;
  --blue-50: #eaf4fd;
  --steel: #3e6796;
  --navy: #12325a;
  --navy-900: #0b2140;
  --ink: #17212f;
  --text: #34404f;
  --muted: #667385;
  --line: #dde5ef;
  --bg: #ffffff;
  --bg-alt: #f3f7fb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(18, 50, 90, .08);
  --shadow-lg: 0 24px 60px rgba(18, 50, 90, .16);
  --header-h: 76px;
  --wrap: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
:lang(zh) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif; }
:lang(th) { --font: -apple-system, BlinkMacSystemFont, "Sukhumvit Set", "Thonburi", "Leelawadee UI", "Noto Sans Thai", "Tahoma", "Segoe UI", sans-serif; }
:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
:lang(th) body, body:lang(th) { line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.45; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 60px; height: auto; color: var(--blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .06em; color: var(--navy); white-space: nowrap; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink);
  font-size: 15px; font-weight: 600; white-space: nowrap;
}
.main-nav a:hover { background: var(--blue-50); text-decoration: none; color: var(--blue-600); }
.main-nav a[aria-current="page"] { color: var(--blue-600); background: var(--blue-50); }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font: 600 14px var(--font); cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue-600); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  list-style: none; display: none;
}
.lang.open .lang-menu { display: block; }
.lang-menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer;
  font: 500 15px var(--font); color: var(--ink); text-align: left;
}
.lang-menu button:hover { background: var(--blue-50); }
.lang-menu button[aria-checked="true"] { color: var(--blue-600); font-weight: 700; }
.lang-menu .code { font-size: 12px; color: var(--muted); font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .brand-sub { display: none; }
  .main-nav a { padding: 8px 9px; font-size: 14.5px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 16px 20px; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 16px; }
  .lang { margin-left: auto; }
}
@media (max-width: 480px) {
  .brand-mark { width: 48px; }
  .brand-name { font-size: 15px; }
  .lang-btn .lang-current { display: none; }
  .lang-btn { padding: 0 11px; }
  .site-header .wrap { gap: 10px; }
}

/* ---------- Generic sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 64px 0; }
.section--navy { background: var(--navy); color: #c9d6e8; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17.5px; color: var(--muted); margin: 0; }
.lead { font-size: 18px; color: var(--text); }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px;
  border-radius: 999px; font: 700 15.5px var(--font); border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--blue); color: var(--blue-600); background: transparent; }
.btn-outline:hover { background: var(--blue-50); }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 72px 0; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 0 rgba(18,50,90,.03);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon-badge svg { width: 28px; height: 28px; }

/* ---------- Home hero (dual) ----------
   Grid: row 1 = headline across both columns, row 2 = the two bases.
   Photos fill each column behind both rows, so text can never overlap. */
.hero-dual {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  min-height: min(86vh, 860px); background: var(--navy-900); color: #fff; overflow: hidden;
}
.hero-bg { position: relative; grid-row: 1 / 3; overflow: hidden; isolation: isolate; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 6s ease; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,33,64,.86) 0%, rgba(11,33,64,.62) 45%, rgba(11,33,64,.92) 100%);
}
.bg-cn { grid-column: 1; }
.bg-th { grid-column: 2; border-left: 1px solid rgba(255,255,255,.35); }
.hero-dual:has(.hb-cn:hover) .bg-cn img, .hero-dual:has(.hb-th:hover) .bg-th img { transform: scale(1.04); }
.hero-center {
  grid-row: 1; grid-column: 1 / 3; z-index: 1; align-self: center; justify-self: center;
  width: min(1120px, 92%); text-align: center; padding: clamp(48px, 8vh, 96px) 0 48px;
}
.hero-center .eyebrow { color: #8fd0ff; }
.hero-center h1 { color: #fff; font-size: clamp(34px, 5vw, 62px); line-height: 1.12; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.25); text-wrap: balance; }
.hero-center p { color: rgba(255,255,255,.88); font-size: clamp(16px, 1.5vw, 19px); max-width: 720px; margin: 0 auto 28px; text-wrap: pretty; }
.hero-center .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-base { grid-row: 2; z-index: 1; display: block; color: #fff; padding: 0 clamp(24px, 4vw, 56px) 56px; }
.hero-base:hover { text-decoration: none; }
.hb-cn { grid-column: 1; }
.hb-th { grid-column: 2; }
.base-chip {
  color: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); font-size: 13.5px; font-weight: 700;
  letter-spacing: .04em; backdrop-filter: blur(6px);
}
.base-chip .cc { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.hero-base h2 { color: #fff; font-size: clamp(20px, 2.1vw, 26px); margin: 14px 0 6px; }
.hero-base p { color: rgba(255,255,255,.82); max-width: 470px; margin: 0 0 14px; font-size: 15.5px; }
.hero-base .link-arrow { color: #fff; }
/* Thai visitors see Thailand first — both bases are equal, order follows the reader. */
html[lang="th"] .bg-th, html[lang="th"] .hb-th { grid-column: 1; }
html[lang="th"] .bg-cn, html[lang="th"] .hb-cn { grid-column: 2; }
html[lang="th"] .bg-th { border-left: 0; }
html[lang="th"] .bg-cn { border-left: 1px solid rgba(255,255,255,.35); }
html[lang="th"] .dual-order { direction: rtl; }
html[lang="th"] .dual-order > * { direction: ltr; }

/* Thai script runs wider and taller: smaller headings so lines don't break awkwardly */
:lang(th) .hero-center h1 { font-size: clamp(28px, 3.5vw, 48px); line-height: 1.4; }
:lang(th) .hero-center p { font-size: clamp(15px, 1.3vw, 17px); }
:lang(th) .hero-base h2 { font-size: clamp(18px, 1.8vw, 23px); }
:lang(th) .page-hero h1 { font-size: clamp(28px, 3.6vw, 44px); }
:lang(th) .section-head h2, :lang(th) .split h2 { font-size: clamp(24px, 2.7vw, 34px); }

@media (max-width: 860px) {
  .hero-dual { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .hero-center { grid-column: 1; grid-row: 1; width: 100%; padding: 56px 20px 40px; }
  .bg-cn, .hb-cn { grid-column: 1; grid-row: 2; }
  .bg-th, .hb-th { grid-column: 1; grid-row: 3; }
  .bg-th, html[lang="th"] .bg-cn { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
  html[lang="th"] .bg-th, html[lang="th"] .hb-th { grid-column: 1; grid-row: 2; }
  html[lang="th"] .bg-cn, html[lang="th"] .hb-cn { grid-column: 1; grid-row: 3; }
  .hero-base { padding: 200px 20px 32px; }
  html[lang="th"] .dual-order { display: flex; flex-direction: column-reverse; }
}

/* ---------- Page hero ---------- */
.page-hero { position: relative; color: #fff; padding: 112px 0 88px; isolation: isolate; overflow: hidden; background: var(--navy); }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11,33,64,.92) 0%, rgba(11,33,64,.72) 55%, rgba(0,103,184,.45) 100%); }
.page-hero .eyebrow { color: #8fd0ff; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 12px; }
.page-hero p { max-width: 680px; font-size: 18px; color: rgba(255,255,255,.86); margin: 0; }
.crumbs { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.85); }

/* ---------- Stats band ---------- */
.stats { background: var(--blue); color: #fff; }
.stats .grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 40px 24px; text-align: center; border-left: 1px solid rgba(255,255,255,.22); }
.stat:first-child { border-left: 0; }
.stat .num { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .num small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat .label { font-size: 15px; opacity: .9; margin-top: 6px; }
@media (max-width: 760px) {
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
}

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }
.check-list { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Base cards (equal) ---------- */
.bases { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .bases { grid-template-columns: 1fr; } }
html[lang="th"] .bases.dual-order { direction: rtl; }
@media (max-width: 860px) { html[lang="th"] .bases.dual-order { display: flex; flex-direction: column-reverse; } }
.base-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.base-card .media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.base-card .media img { width: 100%; height: 100%; object-fit: cover; }
.base-card .media .base-chip { position: absolute; left: 18px; top: 18px; color: #fff; background: rgba(11,33,64,.55); }
.base-card .body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.base-card .local { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.base-card h3 { font-size: 21px; margin-bottom: 10px; }
.base-card .since { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue-600); background: var(--blue-50); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.base-card p { color: var(--text); }
.fact-list { list-style: none; display: grid; gap: 8px; margin: 4px 0 22px; }
.fact-list li { display: flex; gap: 10px; font-size: 15px; }
.fact-list li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: .7em; border-radius: 50%; background: var(--blue); }
.base-card .foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.addr { display: flex; gap: 10px; font-size: 14.5px; color: var(--muted); }
.addr svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--blue); }

/* ---------- Capability tiles ---------- */
.cap-tile { position: relative; }
.cap-tile .where { position: absolute; right: 22px; top: 24px; display: flex; gap: 4px; }
.where span { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--steel); background: var(--bg-alt); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; }

/* ---------- Product tiles ---------- */
.prod-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; color: inherit; }
.prod-tile:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.prod-tile .img { aspect-ratio: 3/2; overflow: hidden; background: #fff; }
.prod-tile .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prod-tile:hover .img img { transform: scale(1.05); }
.prod-tile .txt { padding: 20px 22px 24px; }
.prod-tile h3 { font-size: 18px; margin-bottom: 4px; }
.prod-tile p { font-size: 14.5px; color: var(--muted); margin: 0; }
.share { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--blue-600); margin-bottom: 6px; letter-spacing: .04em; }

/* ---------- Certs ---------- */
.cert { text-align: center; }
.cert button { all: unset; cursor: zoom-in; display: block; }
.cert img { width: 100%; aspect-ratio: 7/10; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.cert h3 { font-size: 18px; margin: 18px 0 2px; }
.cert p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.partners span {
  display: grid; place-items: center; height: 68px; padding: 0 12px; text-align: center; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font-weight: 800; font-size: 15px; color: var(--steel); letter-spacing: .02em;
}

/* ---------- CTA ---------- */
.cta { background: linear-gradient(110deg, var(--navy) 0%, var(--blue-600) 100%); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.86); margin: 0; font-size: 17px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; padding: 36px 26px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.spec th, table.spec td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:nth-child(even) td { background: #fafcfe; }
table.spec td.num { font-weight: 800; color: var(--blue-600); white-space: nowrap; }
table.spec td.strong { font-weight: 700; color: var(--ink); }
table.kv { min-width: 0; }
table.kv th { width: 34%; background: var(--bg-alt); color: var(--ink); font-weight: 700; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin-bottom: 36px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: none; border-radius: 999px; padding: 11px 22px; font: 700 15px var(--font); color: var(--muted); cursor: pointer;
  display: inline-flex; gap: 8px; align-items: center;
}
.tabs button .cc { font-size: 11px; font-weight: 800; border: 1.5px solid currentColor; border-radius: 6px; padding: 0 5px; }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.tab-panel[hidden] { display: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; }
.gallery button { all: unset; cursor: zoom-in; display: block; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.gallery .tall img { aspect-ratio: 3/4; }
@media (max-width: 900px) { .gallery, .gallery.g3 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(6,16,32,.92); display: none; z-index: 300; padding: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 8px; background: #fff; }
.lightbox .cap { color: #fff; font-weight: 600; }
.lightbox .close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; display: grid; gap: 28px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--blue); }
.timeline .yr { font-size: 22px; font-weight: 800; color: var(--blue-600); line-height: 1.2; }
.timeline p { margin: 4px 0 0; }

/* ---------- Vision / Mission ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm .card { padding: 40px; position: relative; overflow: hidden; }
.vm .card .tag { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.vm .card h3 { font-size: 26px; margin: 6px 0 14px; }
.vm .card p { font-size: 19px; color: var(--ink); font-weight: 600; line-height: 1.55; }
.vm .card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--blue-50); z-index: 0; }
.vm .card > * { position: relative; z-index: 1; }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }

/* ---------- Strength list ---------- */
.strengths { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.strength { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.strength .letter { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--steel); margin-bottom: 14px; font-size: 18px; }
.strength:nth-child(2) .letter { background: #4a78ad; }
.strength:nth-child(3) .letter { background: #5a8ac2; }
.strength:nth-child(4) .letter { background: #6d9ad0; }
.strength:nth-child(5) .letter { background: #82acdc; }
.strength h3 { font-size: 17px; margin-bottom: 6px; }
.strength p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .strengths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .strengths { grid-template-columns: 1fr; } }

/* ---------- Group network ---------- */
.network-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.network-list li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.network-list .n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--bg-alt); color: var(--steel); display: grid; place-items: center; font-weight: 800; }
.network-list .t { font-weight: 700; color: var(--ink); line-height: 1.35; }
.network-list .c { font-size: 13px; color: var(--muted); }
.network-list li.us { border-color: var(--blue); background: var(--blue-50); }
.network-list li.us .n { background: var(--blue); color: #fff; }

/* ---------- Base detail (network page) ---------- */
.base-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .base-detail { grid-template-columns: 1fr; } }
.base-detail h3 { font-size: 20px; }
.area-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: area; }
.area-list li { counter-increment: area; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--bg-alt); font-weight: 600; color: var(--ink); font-size: 15px; }
.area-list li::before { content: counter(area); flex: 0 0 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--steel); color: #fff; font-size: 13px; font-weight: 800; }
.access-list { list-style: none; display: grid; gap: 0; }
.access-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.access-list li span:first-child { font-weight: 600; color: var(--ink); }
.access-list li span:nth-child(2) { color: var(--muted); }
.access-list li span:last-child { font-weight: 700; color: var(--blue-600); min-width: 84px; text-align: right; }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.map-links a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); background: #fff; }
.map-links a:hover { border-color: var(--blue); color: var(--blue-600); text-decoration: none; }

/* ---------- Share bars ---------- */
.bars { display: grid; gap: 14px; }
.bar .row { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.bar .track { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--blue); }

/* ---------- Policy pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar .top { background: var(--steel); color: #fff; padding: 26px 28px; }
.pillar:nth-child(2) .top { background: #4a78ad; }
.pillar:nth-child(3) .top { background: var(--blue-600); }
.pillar .top .en { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.pillar .top h3 { color: #fff; font-size: 24px; margin: 4px 0 0; }
.pillar ol { margin: 0; padding: 22px 28px 26px 48px; display: grid; gap: 10px; }
.pillar li { font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact-line { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }
.contact-line .k { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.contact-line .v { color: var(--ink); font-weight: 600; word-break: break-word; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid #cdd8e5; border-radius: 10px; padding: 13px 14px; font: 16px var(--font); color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,125,221,.15); }
.form textarea { min-height: 160px; resize: vertical; }
.form .note { font-size: 13.5px; color: var(--muted); }
.form .req { color: #d14; }
@media (max-width: 680px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9b9cf; padding: 72px 0 28px; font-size: 15px; }
.site-footer a { color: #d4e0ef; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr 1fr .8fr; gap: 40px; }
.footer-brand .brand-mark { color: #fff; width: 72px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .06em; margin-bottom: 14px; }
.foot-base .cc { display: inline-block; font-size: 11px; font-weight: 800; border: 1.5px solid #6f8fb8; color: #cfe0f5; border-radius: 6px; padding: 0 6px; margin-right: 6px; }
.foot-base p { margin: 0 0 6px; }
.foot-base .nm { color: #fff; font-weight: 700; }
.foot-links { list-style: none; display: grid; gap: 8px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }
html[lang="th"] .footer-top .foot-bases { display: contents; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-bg img { transition: none; }
}

/* Avoid flash of untranslated text before the language is applied */
.i18n-pending [data-i18n], .i18n-pending [data-i18n-html] { visibility: hidden; }

/* Stacked pairs (galleries, equipment blocks): visitor's own country first */
.dual-stack { display: flex; flex-direction: column; gap: 64px; }
html[lang="th"] .dual-stack { flex-direction: column-reverse; }
.where { display: inline-flex; gap: 4px; }

/* Filter bar (products) */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font: 700 14.5px var(--font); color: var(--muted); cursor: pointer; }
.filter button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-cat][hidden] { display: none; }
.cat-block h3 { font-size: 22px; display: flex; align-items: baseline; gap: 12px; }
.cat-block h3 .share { margin: 0; }
.cat-block p.muted { margin-bottom: 18px; }
.cat-block + .cat-block { margin-top: 56px; }
.prod-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prod-gallery button { all: unset; cursor: zoom-in; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.prod-gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .35s; }
.prod-gallery button:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .prod-gallery { grid-template-columns: 1fr; } }

/* Simple list inside cards */
.dot-list { list-style: none; display: grid; gap: 10px; }
.dot-list li { display: flex; gap: 10px; }
.dot-list li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: .6em; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }

/* Korean: break lines between words, not inside them */
:lang(ko) body, body:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
