/* ============================================================
   ELE Intertrade — Design C "Distributor"
   Shared design system
   ============================================================ */

/* ---------- LINE Seed Sans TH (Latin + Thai) ---------- */
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('fonts/LINESeedSansTH-Thin.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('fonts/LINESeedSansTH-Regular.woff2') format('woff2'),
       url('fonts/LINESeedSansTH-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('fonts/LINESeedSansTH-Bold.woff2') format('woff2'),
       url('fonts/LINESeedSansTH-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('fonts/LINESeedSansTH-ExtraBold.woff2') format('woff2'),
       url('fonts/LINESeedSansTH-ExtraBold.woff') format('woff');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('fonts/LINESeedSansTH-Heavy.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  /* Brand */
  --red: #e3211c;
  --red-dark: #b3160f;
  --red-darker: #8f0f09;
  --charcoal: #211a19;
  --charcoal-2: #2c2423;
  --gray-bg: #f3f6f9;
  --ink: #1b2733;
  --muted: #5d6b7a;
  --border: #e2e7ec;
  --white: #ffffff;
  --line-green: #06c755;

  /* Type */
  --font: 'LINE Seed Sans TH', 'IBM Plex Sans', system-ui, sans-serif;
  --font-th: 'LINE Seed Sans TH', 'Noto Sans Thai', system-ui, sans-serif;
  --font-plex: 'IBM Plex Sans', 'Noto Sans Thai', system-ui, sans-serif;
  --font-plex-th: 'Noto Sans Thai', 'IBM Plex Sans', system-ui, sans-serif;

  /* Geometry */
  --radius: 7px;
  --radius-sm: 5px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(27, 39, 51, 0.06);
  --shadow: 0 6px 24px rgba(27, 39, 51, 0.08);
  --shadow-lg: 0 18px 50px rgba(27, 39, 51, 0.16);

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(th), [lang="th"], .th { font-family: var(--font-th); }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.18; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--gray { background: var(--gray-bg); }
.section--tight { padding: 52px 0; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255,255,255,0.92); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.muted { color: var(--muted); }
.th-line { font-family: var(--font-th); }
.en-line { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  line-height: 1.1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: #f3f3f3; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: var(--red); border-color: transparent; padding-left: 4px; padding-right: 4px; }
.btn--ghost:hover { color: var(--red-dark); }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.quote-card form .btn--block { margin-top: 8px; }
.btn--block { width: 100%; justify-content: center; }
.btn .arw { transition: transform .15s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}
.topbar a { color: rgba(255,255,255,0.82); }
.topbar a:hover { color: #fff; }
.topbar__in {
  display: flex; align-items: center; gap: 20px;
  min-height: 40px; padding: 6px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.topbar__tag { font-family: var(--font-th); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__item svg { width: 14px; height: 14px; opacity: .8; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,0.28); border-radius: 5px; overflow: hidden; }
.lang-toggle button {
  background: transparent; color: rgba(255,255,255,0.7); border: 0; cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 4px 10px; line-height: 1.2;
}
.lang-toggle button.active { background: var(--red); color: #fff; }

/* ---------- Sticky chrome (topbar + header pin together) ---------- */
#site-top {
  position: sticky; top: 0; z-index: 60;
}
/* ---------- Header ---------- */
.header {
  position: relative; z-index: 1;
  background: #fff; border-bottom: 1px solid var(--border);
}
.header__in {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px; padding: 10px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; color: var(--ink); font-size: 14.5px; font-weight: 500;
  padding: 8px 11px; border-radius: 5px; white-space: nowrap;
}
html[data-lang="th"] .nav a { font-family: var(--font-th); font-size: 14px; }
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px;
  height: 2.5px; background: var(--red); border-radius: 2px;
}
.nav__group { position: relative; display: inline-flex; }
.nav__group > a { display: inline-flex; align-items: center; }
.nav__caret { width: 13px; height: 13px; margin-left: 4px; transition: transform .2s ease; }
.nav__group:hover .nav__caret { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--border); border-radius: 11px;
  box-shadow: var(--shadow); padding: 7px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(7px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__sub::before { content: ""; position: absolute; top: -9px; left: 0; right: 0; height: 9px; }
.nav__group:hover .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.nav__sub a:hover { background: var(--gray-bg); color: var(--red); }
.nav__sub a.active { color: var(--red); font-weight: 600; }
.nav__sub a.active::after { display: none; }
.mobile-nav__sub { padding-left: 26px !important; font-size: 14px; opacity: .82; position: relative; }
.mobile-nav__sub::before { content: "—"; position: absolute; left: 10px; color: var(--muted); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: transparent; border: 1px solid var(--border); border-radius: 6px; width: 42px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 20px; height: 20px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { display: inline-flex; gap: 2.5px; flex: none; }
.logo__sq {
  width: 32px; height: 39px; background: var(--red); border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: Georgia, 'Times New Roman', 'Noto Serif', serif;
  font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: -0.01em;
}
.logo__img { height: 40px; width: auto; display: block; flex: none; }
.logo__txt { line-height: 1; }
.logo__name { font-weight: 700; font-size: 22px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.logo__name b { color: var(--red); }
.logo__sub { font-size: 12px; color: var(--muted); letter-spacing: .03em; margin-top: 3px; white-space: nowrap; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  /* Neutral dark base = no red flash before the hero photo paints */
  background: #26252a;
  color: #fff;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; display: none;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero.has-bg .hero__bg { display: block; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; display: none;
  background: linear-gradient(120deg, rgba(15,15,17,0.62) 0%, rgba(15,15,17,0.30) 42%, rgba(15,15,17,0) 100%);
}
.hero.has-bg .hero__scrim { display: block; }
.hero.has-bg::before, .hero.has-bg::after { opacity: 0.4; }
.hero__bgctrl {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: inline-flex; gap: 6px;
}
.hero__bgbtn, .hero__bgreset {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; flex: 0 0 auto;
  color: #fff; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%; cursor: pointer; opacity: 0.55;
  backdrop-filter: blur(4px); transition: opacity .15s ease, background .15s ease;
}
.hero__bgbtn:hover, .hero__bgreset:hover { opacity: 1; background: rgba(0,0,0,0.4); }
.hero__bgbtn svg, .hero__bgreset svg { width: 16px; height: 16px; }
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 42%;
  background: rgba(255,255,255,0.05);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero__in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 70px var(--gutter) 78px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .05em;
  background: #fff; border: 1px solid #fff; color: var(--red);
  padding: 9px 17px 9px 11px; border-radius: 999px; margin-bottom: 22px;
  text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,0.30);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero__eyebrow::before {
  content: "✓"; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
a.hero__eyebrow:hover { transform: translateY(-1px); box-shadow: 0 11px 28px rgba(0,0,0,0.38); }
.hero__authdist {
  grid-column: 1 / -1; justify-self: center;
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  text-decoration: none; color: rgba(255,255,255,0.78);
  margin-top: 44px; text-align: center;
}
.hero__authdist-logo {
  width: 96px; height: 26px; flex: 0 0 auto;
}
.hero__authdist strong { color: #fff; font-size: 14.5px; font-weight: 700; }
.hero__authdist-sep { color: rgba(255,255,255,0.45); }
.hero__authdist-txt { font-size: 14px; }
.hero__authdist:hover .hero__authdist-txt { color: #fff; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin-bottom: 8px; }
.hero h1 .en { display: block; font-weight: 600; }
.hero h1 .th { font-family: var(--font-th); }
.hero__sub { font-family: var(--font-th); font-size: 19px; font-weight: 500; color: rgba(255,255,255,0.95); margin-bottom: 14px; }
.hero__lead { font-size: 16.5px; color: rgba(255,255,255,0.9); max-width: 52ch; margin-bottom: 28px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero quote card */
.quote-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px 26px 24px; border: 1px solid rgba(255,255,255,0.5);
}
.quote-card h3 { font-size: 19px; margin-bottom: 3px; }
.quote-card__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,33,28,0.12);
}
.field__note { font-size: 11.5px; color: var(--muted); margin-top: 9px; }

/* ---------- Badges row ---------- */
/* ---------- Why choose us (split) ---------- */
.whyx-sec { overflow: hidden; }
.whyx { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.whyx__left { min-width: 0; }
.whyx__eyebrow {
  display: inline-block; position: relative; padding-left: 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-dark); margin-bottom: 18px;
}
.whyx__eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 2px; background: var(--red);
}
.whyx__title { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 0 0 16px; }
.whyx__intro { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 30px; max-width: 460px; }

.whyx__grid { display: grid; grid-template-columns: 1fr 1fr; }
.whyx__item { position: relative; padding: 26px 26px 26px 0; }
.whyx__item:nth-child(odd) { padding-right: 30px; }
.whyx__item:nth-child(even) { padding-left: 30px; }
/* divider lines between the 2x2 quadrants */
.whyx__grid { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 4px 30px; }
.whyx__item::after {
  content: ""; position: absolute; background: var(--border);
}
.whyx__item:nth-child(odd)::after { right: 0; top: 26px; bottom: 26px; width: 1px; }
.whyx__item:nth-child(-n+2)::after { display: none; }
.whyx__item:nth-child(n+3)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border);
}
.whyx__item:nth-child(odd):nth-child(n+3)::before { right: -30px; }
.whyx__item:nth-child(even):nth-child(n+3)::before { left: -30px; }
.whyx__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 14px;
  background: linear-gradient(150deg, #fdecec, #fbdedc); color: var(--red);
  transition: transform .18s ease;
}
.whyx__ic svg { width: 24px; height: 24px; }
.whyx__item:hover .whyx__ic { transform: translateY(-3px); }
.whyx__item h4 {
  font-size: 15.5px; font-weight: 800; line-height: 1.3; margin: 0 0 7px;
  display: flex; flex-direction: column; gap: 2px; color: var(--ink);
}
.whyx__en {
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  color: var(--muted); text-transform: uppercase;
}
.whyx__item p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }

/* right visual */
.whyx__right { position: relative; }
.whyx__media {
  position: relative; z-index: 1; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4;
}
.whyx__media image-slot { width: 100%; height: 100%; }
.whyx__arc {
  position: absolute; z-index: 0; right: -46px; top: 14%; width: 120px; height: 64%;
  border: 18px solid var(--red); border-left: 0;
  border-radius: 0 130px 130px 0; opacity: .9;
}
.whyx__badge {
  position: absolute; z-index: 2; left: 24px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 13px;
  background: #fff; border-radius: 14px; padding: 13px 20px;
  box-shadow: var(--shadow-lg); text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.whyx__badge:hover { transform: translateY(-2px); }
.whyx__badge-logo { display: block; width: 92px; height: 30px; flex: none; }
.whyx__badge-ic {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: #fdecec; color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
}
.whyx__badge-ic svg { width: 23px; height: 23px; }
.whyx__badge-txt { display: flex; flex-direction: column; line-height: 1.25; }
.whyx__badge-txt strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.whyx__badge-txt span { font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column;
  grid-template-rows: repeat(3, auto); column-gap: 52px;
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:nth-child(1), .faq__item:nth-child(4) { border-top: 1px solid var(--border); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; padding: 24px 6px;
  font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.4;
  transition: color .15s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--red-dark); }
.faq__item summary::after {
  content: ""; flex: none; width: 22px; height: 22px; position: relative;
  background:
    linear-gradient(var(--red),var(--red)) center/2px 100% no-repeat,
    linear-gradient(var(--red),var(--red)) center/100% 2px no-repeat;
  transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__a {
  padding: 0 6px 24px; color: var(--muted); font-size: 15px; line-height: 1.75;
  max-width: 94%; text-wrap: pretty;
}
/* ---------- Card grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* Horizontal project cards (image left, details right) */
.grid--projects { grid-template-columns: 1fr; gap: 28px; }
.grid--projects .card { grid-template-columns: 42% 1fr; display: grid; align-items: stretch; border: 1.5px solid #d4dce4; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.grid--projects .card:hover { box-shadow: var(--shadow); border-color: #b9c4cf; }
.grid--projects .card__media { aspect-ratio: auto; height: 100%; min-height: 230px; }
.grid--projects .card__body { justify-content: center; padding: 26px 28px; }
@media (max-width: 620px) {
  .grid--projects .card { grid-template-columns: 1fr; }
  .grid--projects .card__media { aspect-ratio: 16 / 10; min-height: 0; }
  .faq { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .faq__item:nth-child(4) { border-top: none; }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d7dde4; }
.card__media { position: relative; aspect-ratio: 16 / 10; }
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 18px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 1px; }
.card__en { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
.card__body p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.card__foot { margin-top: auto; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--red); background: #fdecec;
  padding: 4px 9px; border-radius: 4px;
}
.tag--char { color: #fff; background: var(--charcoal); }
.tag--ghost { color: var(--muted); background: var(--gray-bg); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }

/* ---------- Placeholder imagery ---------- */
.ph--img { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.ph--img .ph__label { display: none !important; }
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, #e7ecf1 0 12px, #eef2f6 12px 24px);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.ph--red {
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 12px, rgba(0,0,0,0.02) 12px 24px), var(--red);
  color: rgba(255,255,255,0.92);
}
.ph--char {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 12px, rgba(255,255,255,0.02) 12px 24px), var(--charcoal);
  color: rgba(255,255,255,0.78);
}
.ph__label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .03em; padding: 6px 12px;
  background: rgba(255,255,255,0.82); border-radius: 5px; color: #495766;
  display: inline-flex; align-items: center; gap: 6px;
}
.ph--red .ph__label, .ph--char .ph__label { background: rgba(0,0,0,0.28); color: rgba(255,255,255,0.92); }
.ph__label::before { content: "▦"; opacity: .6; }

/* ---------- Feature / benefit cards ---------- */
.feat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: box-shadow .15s ease, transform .15s ease;
}
.feat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
a.feat { color: inherit; display: block; }
a.feat:hover { color: inherit; }
.feat__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--red); font-weight: 600; font-size: 14px; }
a.feat:hover .feat__more { color: var(--red-dark); }
a.feat:hover .feat__more .arw { transform: translateX(3px); }
.feat__more .arw { transition: transform .15s ease; }
.feat__ic {
  width: 48px; height: 48px; border-radius: 10px; background: #fdecec; color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feat__ic svg { width: 25px; height: 25px; }
.feat h3 { font-size: 17.5px; margin-bottom: 6px; }
.feat .th { font-family: var(--font-th); }
.feat p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Comparison table ---------- */
.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.cmp thead th { background: var(--charcoal); color: #fff; font-weight: 600; font-size: 14px; }
.cmp thead th:first-child { background: var(--charcoal); color: #fff; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:nth-child(even) { background: #fafbfc; }
.cmp td:first-child, .cmp th:first-child { font-weight: 600; color: var(--ink); }
.cmp .col-fabric { background: #fdecec33; }
.cmp thead th.col-fabric { background: var(--red-dark); color: #fff; }
.cmp .yes { color: #1f8a4c; font-weight: 600; }
.cmp .no { color: var(--muted); }
.cmp .ic { display: inline-flex; vertical-align: -3px; margin-right: 6px; }

/* ---------- Benefit bullets ---------- */
.bullets { list-style: none; display: grid; gap: 14px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.bullets .chk {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fdecec; color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.bullets .chk svg { width: 14px; height: 14px; }
.bullets b { color: var(--ink); }
.bullets span { color: var(--muted); }

/* ---------- Applications tiles ---------- */
.apptile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; }
.apptile .ph { transition: transform .3s ease; }
.apptile:hover .ph { transform: scale(1.05); }
.apptile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px;
  background: linear-gradient(to top, rgba(33,26,25,0.85), rgba(33,26,25,0));
  color: #fff;
}
.apptile__cap .en { font-weight: 600; font-size: 17px; }
.apptile__cap .th { font-family: var(--font-th); font-size: 14px; opacity: .9; display: block; }

/* Applications carousel */
.appcarousel { position: relative; }
.appcarousel__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px; margin: -4px; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
}
.appcarousel__track::-webkit-scrollbar { display: none; }
.appcarousel__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.appcarousel__track.is-dragging .apptile { pointer-events: none; }
.appcarousel__track .apptile { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; }
.appcarousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.appcarousel__nav:hover { background: var(--red); color: #fff; border-color: var(--red); }
.appcarousel__nav svg { width: 22px; height: 22px; }
.appcarousel__nav--prev { left: -18px; }
.appcarousel__nav--next { right: -18px; }
.appcarousel__nav[disabled] { opacity: 0; pointer-events: none; }

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logocell {
  flex: 0 1 152px; height: 86px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 14px 18px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.logocell:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.logocell img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logostrip__chip {
  height: 64px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #9aa7b3; letter-spacing: .04em;
}

/* ---------- CTA band ---------- */
.ctaband { background: var(--red); color: #fff; }
.ctaband__in {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 48px var(--gutter); max-width: var(--maxw); margin: 0 auto;
}
.ctaband h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; font-family: var(--font-th); }
.ctaband p { color: rgba(255,255,255,0.9); margin: 0; }

/* ---------- Page hero (inner) ---------- */
.pagehero {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: #fff; position: relative; overflow: hidden;
}
.pagehero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 24px);
}
.pagehero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 38%;
  background: rgba(255,255,255,0.05); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.pagehero__in { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 54px var(--gutter) 58px; }
.crumb { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a, .crumb > span { white-space: nowrap; }
.crumb a { color: rgba(255,255,255,0.85); }
.crumb a:hover { color: #fff; }
.crumb span { opacity: .6; }
.pagehero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.pagehero h1 .th { font-family: var(--font-th); }
.pagehero__lead { font-size: 17.5px; color: rgba(255,255,255,0.92); max-width: 64ch; margin: 0; }

/* ---------- Misc content ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 12px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose p { font-size: 16px; color: #38475a; }
.prose ul.dot { list-style: none; display: grid; gap: 10px; margin: 0 0 18px; }
.prose ul.dot li { position: relative; padding-left: 24px; color: #38475a; }
.prose ul.dot li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--media-r { grid-template-columns: 1.05fr 0.95fr; }
.media-box { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.media-box--tall { aspect-ratio: 3/4; }

.statline { display: flex; flex-wrap: wrap; gap: 36px; }
.stat b { display: block; font-size: 38px; color: var(--red); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--muted); }

/* Application case rows */
.appcase { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; }
.appcase .ph { min-height: 230px; }
@media (max-width: 720px) {
  .appcase { grid-template-columns: 1fr; }
  .appcase .ph { min-height: 180px; aspect-ratio: 16/9; }
  .appcase .card__body { padding: 24px !important; }
}

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.chip {
  font-size: 13.5px; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer;
  transition: all .12s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Article list */
.article {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: stretch;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.article:hover { box-shadow: var(--shadow); border-color: #d7dde4; }
.article__media { position: relative; }
.article__body { padding: 24px 26px 24px 0; display: flex; flex-direction: column; }
.article__meta { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; margin-bottom: 8px; }
.article__body h3 { font-size: 21px; margin-bottom: 8px; }
.article__body p { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.tl b { color: var(--red); font-size: 15px; }
.tl h4 { font-size: 17px; margin: 2px 0 4px; }
.tl p { font-size: 14px; color: var(--muted); margin: 0; }

/* Value cards */
.value { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.value__n { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--red); font-weight: 600; }
.value h4 { font-size: 17px; margin: 8px 0 5px; }
.value p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Info rows (contact) */
.inforow { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.inforow:last-child { border-bottom: 0; }
.inforow__ic { flex: none; width: 40px; height: 40px; border-radius: 9px; background: #fdecec; color: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.inforow__ic svg { width: 20px; height: 20px; }
.inforow h4 { font-size: 14px; margin: 0 0 2px; }
.inforow p { font-size: 14px; color: var(--muted); margin: 0; }

/* Note / flag callout */
.flag {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #f3e0a8; border-radius: var(--radius);
  padding: 12px 14px; font-size: 13px; color: #7a5d00; margin: 18px 0;
}
.flag svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.72); }
.footer a { color: rgba(255,255,255,0.72); }
.footer a:hover { color: #fff; }
.footer__in { max-width: var(--maxw); margin: 0 auto; padding: 56px var(--gutter) 30px; }
.footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li { font-size: 14px; }
.footer__brand p { font-size: 14px; color: rgba(255,255,255,0.66); margin: 14px 0 14px; max-width: 32ch; }
.footer__tag { display: inline-block; font-size: 12px; font-family: var(--font-th); color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); padding: 6px 11px; border-radius: 5px; }
.footer__logo .logo__img { background: #fff; padding: 5px 7px; border-radius: 6px; height: 46px; }
.footer__logo .logo__name { color: #fff; }
.footer__logo .logo__sub { color: rgba(255,255,255,0.6); }
.footer__contact li { display: flex; gap: 9px; align-items: flex-start; color: rgba(255,255,255,0.72); }
.footer__contact svg { flex: none; width: 16px; height: 16px; margin-top: 3px; opacity: .7; }
.footer__bar {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,0.55);
}

/* ---------- Floating buttons ---------- */
.floats { position: fixed; right: 20px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); cursor: pointer; border: 0; color: #fff; transition: transform .12s ease;
}
.fab:hover { transform: translateY(-2px) scale(1.04); }
.fab svg { width: 27px; height: 27px; }
.fab--line { background: #00B900; box-shadow: var(--shadow-lg); overflow: hidden; }
.fab--line img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fab--quote { background: var(--red); }
.fab__tip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: var(--charcoal); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.fab-wrap { position: relative; display: inline-flex; }
.fab-wrap:hover .fab__tip { opacity: 1; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 100; background: rgba(33,26,25,0.5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px);
  background: #fff; padding: 22px; transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__panel a { color: var(--ink); font-size: 16px; font-weight: 500; padding: 13px 10px; border-radius: 6px; border-bottom: 1px solid var(--border); }
.mobile-nav__panel a.active { color: var(--red); }
.mobile-nav__close { align-self: flex-end; background: transparent; border: 0; cursor: pointer; padding: 6px; }
.mobile-nav__close svg { width: 24px; height: 24px; }

/* ---------- Lang visibility (toggle) ---------- */
html[data-lang="en"] .only-th { display: none; }
html[data-lang="th"] .only-en { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .logocell { flex-basis: 132px; height: 78px; }
}
@media (max-width: 920px) {
  .hero__in { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 54px; }
  .hero::after { width: 100%; opacity: .5; }
  .whyx { grid-template-columns: 1fr; gap: 40px; }
  .whyx__right { order: -1; max-width: 560px; }
  .appcarousel__track .apptile { flex: 0 0 calc((100% - 22px) / 2); }
  .whyx__intro { max-width: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--media-r { grid-template-columns: 1fr; gap: 30px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__cta .btn--quote-desktop { display: none; }
  .article { grid-template-columns: 1fr; }
  .article__media { aspect-ratio: 16/9; }
  .article__body { padding: 22px 24px; }
}
@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .whyx__grid { grid-template-columns: 1fr; padding: 4px 22px; }
  .whyx__item:nth-child(odd), .whyx__item:nth-child(even) { padding: 24px 0; }
  .whyx__item::after { display: none !important; }
  .whyx__item:not(:first-child)::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border); }
  .whyx__arc { display: none; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: 1fr 1fr; }
  .appcarousel__track .apptile { flex: 0 0 85%; }
  .appcarousel__nav { display: none; }
  .logocell { flex-basis: 120px; height: 68px; padding: 12px 14px; }
  .topbar__tag { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
  .ctaband__in { flex-direction: column; align-items: flex-start; }
  .statline { gap: 24px; }
}

/* ---------- Tweaks panel mount ---------- */
#tweaks-root { position: fixed; z-index: 200; }
