/* ===========================
   Unitelasting / ALM Global
   Stylesheet
   =========================== */

:root {
  --c-primary: #0046BE;
  --c-primary-dark: #003388;
  --c-primary-light: #3366CC;
  --c-accent: #00B8D4;
  --c-accent-dark: #0088A0;
  --c-dark: #0F172A;
  --c-gray-900: #1E293B;
  --c-gray-700: #334155;
  --c-gray-500: #64748B;
  --c-gray-300: #CBD5E1;
  --c-gray-100: #F1F5F9;
  --c-gray-50: #F8FAFC;
  --c-white: #FFFFFF;
  --c-success: #16A34A;
  --c-warning: #F59E0B;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --container: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--c-gray-700);
  background: var(--c-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }
ul { list-style: none; }

/* ---- Layout helpers ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--gray { background: var(--c-gray-50); }
.section--dark { background: var(--c-dark); color: var(--c-gray-300); }
.text-center { text-align: center; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--c-dark); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-white); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(0,70,190,.08);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--c-accent); background: rgba(0,184,212,.12); }
.lead { font-size: 1.12rem; color: var(--c-gray-500); max-width: 700px; }
.section--dark .lead { color: var(--c-gray-300); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }

/* ---- Header / Nav ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-gray-300);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--c-dark);
}
.nav__logo-mark {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 1.05rem;
}
.nav__logo-text small {
  font-size: .68rem;
  color: var(--c-gray-500);
  font-weight: 500;
}
/* ---- Language switcher ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--c-gray-300);
  border-radius: 30px;
  overflow: hidden;
  margin-left: 8px;
}
.lang-switch a {
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--c-gray-500);
  border-radius: 0;
  transition: all .2s;
}
.lang-switch a.active {
  background: var(--c-primary);
  color: var(--c-white);
}
.lang-switch a:hover:not(.active) {
  background: var(--c-gray-100);
  color: var(--c-dark);
}
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { color: var(--c-gray-700); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--c-primary); }
.nav__links a.active { color: var(--c-primary); }
.nav__cta { margin-left: 12px; }
.nav__toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--c-dark); }
@media (max-width: 860px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--c-white);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--c-gray-300);
    box-shadow: var(--shadow);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: 0; width: 100%; text-align: center; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn--primary:hover { background: var(--c-primary-dark); color: var(--c-white); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--ghost:hover { background: var(--c-primary); color: var(--c-white); }
.btn--white {
  background: var(--c-white);
  color: var(--c-primary);
}
.btn--white:hover { background: var(--c-gray-100); transform: translateY(-1px); }
.btn--outline-white {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.4);
}
.btn--outline-white:hover { background: rgba(255,255,255,.12); color: var(--c-white); }
.btn--lg { padding: 15px 36px; font-size: 1rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-primary-dark) 50%, var(--c-primary) 100%);
  color: var(--c-white);
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,184,212,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--c-white); }
.hero h1 span { color: var(--c-accent); }
.hero p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-top: 20px; max-width: 520px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 500;
}
.hero__actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__image img { width: 100%; height: auto; }
.hero__stat-overlay {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(15,23,42,.88);
  backdrop-filter: blur(8px);
  padding: 16px 22px;
  border-radius: var(--radius);
  color: var(--c-white);
}
.hero__stat-overlay .num { font-size: 2rem; font-weight: 800; color: var(--c-accent); }
.hero__stat-overlay .label { font-size: .8rem; color: rgba(255,255,255,.7); }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
}

/* ---- Stats bar ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-gray-300);
}
.stat-item {
  text-align: center;
  padding: 36px 20px;
  border-right: 1px solid var(--c-gray-100);
}
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 2.2rem; font-weight: 800; color: var(--c-primary); }
.stat-item .label { font-size: .88rem; color: var(--c-gray-500); margin-top: 4px; }
@media (max-width: 700px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

/* ---- Product card ---- */
.product-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-gray-100);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 24px; }
.product-card__body h3 { margin-bottom: 8px; }
.product-card__body p { font-size: .92rem; color: var(--c-gray-500); }
.product-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-accent-dark);
  background: rgba(0,184,212,.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ---- Feature block ---- */
.feature {
  display: flex;
  gap: 18px;
}
.feature__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,70,190,.08);
  border-radius: var(--radius);
  font-size: 1.4rem;
}
.feature__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature__body p { font-size: .92rem; color: var(--c-gray-500); }

/* ---- Split section ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__img img { width: 100%; height: auto; }

/* ---- Process steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  text-align: center;
  padding: 28px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-gray-300);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 12px;
}
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .85rem; color: var(--c-gray-500); }

/* ---- Market card ---- */
.market-card {
  background: var(--c-white);
  border: 1px solid var(--c-gray-300);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: box-shadow .25s;
}
.market-card:hover { box-shadow: var(--shadow); }
.market-card__icon { font-size: 2rem; margin-bottom: 14px; }
.market-card h3 { margin-bottom: 8px; }
.market-card p { font-size: .92rem; color: var(--c-gray-500); }
.market-card ul { margin-top: 14px; text-align: left; }
.market-card ul li { font-size: .88rem; color: var(--c-gray-500); padding: 4px 0; padding-left: 20px; position: relative; }
.market-card ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }

/* ---- Specs table ---- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.specs-table th, .specs-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-gray-100);
}
.specs-table th {
  background: var(--c-gray-50);
  font-weight: 600;
  color: var(--c-dark);
  white-space: nowrap;
}
.specs-table td:first-child { font-weight: 600; color: var(--c-gray-700); width: 35%; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:hover td { background: var(--c-gray-50); }

/* ---- CTA section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  text-align: center;
  padding: 64px 0;
}
.cta-section h2 { color: var(--c-white); }
.cta-section p { color: rgba(255,255,255,.85); max-width: 600px; margin: 16px auto 0; }
.cta-section .btn { margin-top: 28px; }

/* ---- Footer ---- */
.footer {
  background: var(--c-dark);
  color: var(--c-gray-500);
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer__brand .nav__logo-mark { width: 36px; height: 36px; font-size: .7rem; }
.footer__brand span { font-size: 1.1rem; font-weight: 800; color: var(--c-white); }
.footer p { font-size: .88rem; line-height: 1.6; }
.footer h4 { color: var(--c-white); font-size: .95rem; margin-bottom: 14px; font-weight: 600; }
.footer__links li { padding: 5px 0; }
.footer__links a { font-size: .88rem; color: var(--c-gray-500); }
.footer__links a:hover { color: var(--c-accent); }
.footer__contact li { font-size: .88rem; padding: 5px 0; color: var(--c-gray-500); }
.footer__contact li strong { color: var(--c-gray-300); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}
@media (max-width: 500px) { .footer__bottom { flex-direction: column; gap: 10px; text-align: center; } }

/* ---- Form ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--c-dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--c-gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--c-primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Page header ---- */
.page-header {
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  padding: 72px 0 56px;
  text-align: center;
}
.page-header h1 { color: var(--c-white); }
.page-header p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.5); margin-top: 18px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--c-white); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--c-gray-100); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- Misc ---- */
.divider { height: 1px; background: var(--c-gray-100); margin: 40px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--c-gray-100);
  color: var(--c-gray-700);
}

/* ---- Video container ---- */
.video-section {
  background: var(--c-dark);
  padding: 64px 0;
}
.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-wrapper video {
  width: 100%;
  display: block;
}

/* ---- Trilingual: EN default visible, TH & FR hidden ---- */
[data-lang="th"], [data-lang="fr"] { display: none; }

/* When TH active */
body.lang-th [data-lang="en"], body.lang-th [data-lang="fr"] { display: none; }
body.lang-th [data-lang="th"] { display: block; }
body.lang-th [data-lang="th"].hero__badge { display: inline-flex; }

/* When FR active */
body.lang-fr [data-lang="en"], body.lang-fr [data-lang="th"] { display: none; }
body.lang-fr [data-lang="fr"] { display: block; }
body.lang-fr [data-lang="fr"].hero__badge { display: inline-flex; }

/* Thai font */
body.lang-th {
  font-family: 'Inter', 'Sukhumvit Set', 'Noto Sans Thai', 'Leelawadee UI', system-ui, sans-serif;
}

/* French font */
body.lang-fr {
  font-family: 'Inter', system-ui, sans-serif;
}
