/* GSCTEX — colours and fonts carried over from the old Salient WordPress theme */
:root {
  --blue: #3452ff;
  --blue-dark: #2238c9;
  --cyan: #2ac4ea;
  --ink: #333333;
  --ink-soft: #5b6066;
  --dark: #232323;
  --darker: #1a1c1e;
  --light: #f6f6f6;
  --line-green: #06c755;
  --border: #e4e4e4;
  --radius: 6px;
  --wrap: 1180px;
  --font-body: "Open Sans", "Sarabun", system-ui, sans-serif;
  --font-head: "Roboto", "Sarabun", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #fff; line-height: 1.7; font-size: 16px; }
[lang="th"] { font-family: "Sarabun", var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: #111; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); font-weight: 400; }
.sep { color: var(--cyan); margin: 0 .35em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.logo img { width: 200px; height: auto; }
.site-header nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-header nav a { display: block; padding: 10px 14px; font-family: var(--font-head); font-weight: 500; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; color: #222; text-decoration: none; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--cyan); }
.nav-toggle, .nav-toggle-label { display: none; }
@media (max-width: 860px) {
  .nav-toggle-label { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: #222; content: ""; }
  .nav-toggle-label span { top: 21px; }
  .nav-toggle-label span::before { top: -7px; left: 0; }
  .nav-toggle-label span::after { top: 7px; left: 0; }
  .site-header nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); }
  .nav-toggle:checked ~ nav { display: block; }
  .site-header nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .logo img { width: 160px; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--dark) var(--hero) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20, 24, 60, .86), rgba(20, 24, 60, .55)); }
.hero-inner { position: relative; padding: 110px 20px 100px; }
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .02em; max-width: 900px; }
.hero h1 .en { display: block; }
.hero h1 .th { display: block; font-size: .62em; font-weight: 400; text-transform: none; color: var(--cyan); margin-top: .35em; }
.hero-sub { font-size: 1.12rem; margin: .3em 0; opacity: .95; }
.hero-sub [lang="th"] { opacity: .9; }

/* Bilingual heading */
.en + .th { display: block; font-weight: 400; color: var(--ink-soft); font-size: .72em; margin-top: .2em; }
.page-head { background: var(--light); border-bottom: 3px solid var(--cyan); padding: 56px 0 40px; }
.page-head h1 { margin-bottom: .3em; }
.page-head h1 [lang="th"] { display: block; font-size: .6em; font-weight: 400; color: var(--ink-soft); }

/* Bands */
.band { padding: 64px 0; }
.band-light { background: var(--light); }
.band-dark { background: var(--dark); color: #e9e9e9; }
.band-dark h2 { color: #fff; }
.band-dark h2 [lang="th"] { color: var(--cyan); font-weight: 400; margin-left: .3em; }
.lead { font-size: 1.12rem; }
.section-title { text-align: center; margin-bottom: 32px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.btn-row.left { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 40px; font-weight: 600; text-decoration: none; font-size: .98rem; border: 2px solid transparent; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05a849; color: #fff; }
.btn-line .sep { color: rgba(255, 255, 255, .7); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--blue); background: transparent; }
.band-dark .btn-outline { color: #fff; }
.text-link { font-weight: 600; text-decoration: none; }

/* Home tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 4/3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.05); }
.tile-text { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); display: flex; flex-direction: column; }
.tile-text strong { font-family: var(--font-head); font-size: 1.1rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 24px; }
.card-link { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .2s; }
.card-link:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); color: var(--ink); }
.card-link strong { font-family: var(--font-head); color: #111; font-size: 1.08rem; line-height: 1.35; }
.card-link [lang="th"] { color: var(--ink-soft); font-size: .95rem; }
.card-link.with-img { padding: 0; overflow: hidden; }
.card-link.with-img img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.card-text .summary { font-size: .92rem; color: var(--ink-soft); margin-top: 6px; }
.kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; }
.cat { margin-top: 12px; }

/* About stats */
.stats { list-style: none; padding: 0; margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; }
.stats li { text-align: center; padding: 28px 16px; background: var(--light); border-radius: var(--radius); display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-head); font-size: 2rem; color: var(--blue); }
.stats span { font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* Products */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jump a { font-size: .88rem; padding: 6px 12px; border: 1px solid var(--border); border-radius: 30px; background: #fff; text-decoration: none; color: var(--ink); }
.jump a:hover { border-color: var(--blue); color: var(--blue); }
.product { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--border); }
.product:first-child { padding-top: 8px; }
.product:last-child { border-bottom: 0; }
.product-media { display: grid; gap: 12px; align-content: start; }
.product-media.two { grid-template-columns: 1fr 1fr; }
.product-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-media.two img { aspect-ratio: 3/4; }
.product h2 [lang="th"] { font-size: .8em; font-weight: 400; color: var(--ink-soft); }
.learn { margin-top: 18px; font-size: .95rem; }
.learn span { font-weight: 700; }
.learn ul { margin: 4px 0 0; padding-left: 20px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 20px; } }

/* Tables */
.specs { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { width: 38%; font-weight: 600; background: var(--light); }
.contact-table { margin-top: 28px; }
.table-scroll { overflow-x: auto; margin: 18px 0 8px; }
.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
.data th, .data td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.data thead th { background: var(--blue); color: #fff; font-weight: 600; }
.data tbody th { background: var(--light); font-weight: 600; white-space: nowrap; }

/* Knowledge article */
.k-head .crumbs { font-size: .9rem; margin-bottom: 8px; }
.k-head .crumbs a { text-decoration: none; }
.k-head .meta { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.k-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.summary-box { margin: 36px 0 24px; padding: 20px 22px; border-left: 4px solid var(--cyan); background: #f1fbfe; border-radius: 0 var(--radius) var(--radius) 0; }
.summary-box p:last-child { margin-bottom: 0; }
.toc { padding: 16px 22px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; font-size: .95rem; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.k-section { padding-top: 28px; }
.k-section h2 { border-bottom: 2px solid var(--light); padding-bottom: 8px; }
.k-th { margin: 8px 0 4px; padding: 14px 18px 4px; background: var(--light); border-radius: var(--radius); }
.k-th h3 { font-family: "Sarabun", var(--font-head); color: var(--ink); }
.faq { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq summary [lang="th"] { font-weight: 400; color: var(--ink-soft); }
.faq[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.k-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 64px; padding-top: 24px; border-top: 1px solid var(--border); }
.k-aside h2 { font-size: 1.05rem; }
.k-aside ul { padding-left: 20px; margin: 0; }
@media (max-width: 640px) { .k-aside { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--darker); color: #b9bcc0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 32px; padding: 56px 20px 32px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-logo { background: #fff; padding: 8px 10px; border-radius: 4px; margin-bottom: 14px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid #2c2f33; padding: 18px 20px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .muted { color: #8d9196; }
@media (max-width: 520px) {
  .btn-line .sep, .btn-line [lang="th"] { display: none; }
  .btn { white-space: nowrap; }
}
