/* =====================================================================
   Firsttech Design Co., Ltd. — 2026 redesign
   ===================================================================== */

:root {
  --c-ink: #0b1220;
  --c-ink-2: #111a2e;
  --c-ink-3: #18243d;
  --c-line: rgba(255, 255, 255, 0.08);
  --c-line-dark: rgba(11, 18, 32, 0.08);
  --c-text: #cfd6e4;
  --c-text-dim: #8b97ad;
  --c-on-light: #1f2937;
  --c-on-light-dim: #4b5563;
  --c-brand: #00ca64;
  --c-brand-2: #00a655;
  --c-accent: #38bdf8;
  --c-accent-2: #0ea5e9;
  --c-warn: #f59e0b;
  --c-gold: #d4af37;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-2: 0 18px 48px rgba(11, 18, 32, 0.18);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 18px 40px rgba(56, 189, 248, 0.18);
  --max: 1240px;
  --font: 'Kanit', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-on-light);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 500; line-height: 1.2; color: var(--c-ink); margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* ----- Layout helpers ----- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.dark { background: var(--c-ink); color: var(--c-text); }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.tint { background: linear-gradient(180deg, #f6f9fc 0%, #fff 100%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-brand);
  padding: 6px 14px; border: 1px solid currentColor; border-radius: var(--r-pill);
  background: rgba(0, 202, 100, 0.06);
}
.section.dark .eyebrow { color: var(--c-accent); background: rgba(56, 189, 248, 0.1); }
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--c-on-light-dim); font-size: 1.06rem; }
.section.dark .section-head p { color: var(--c-text); }

/* ----- Top navigation ----- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.topbar-inner {
  display: flex; align-items: center; gap: 24px; padding: 12px 24px;
  max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 0.95rem; font-weight: 400; color: var(--c-on-light);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover, .nav a.active { background: rgba(0, 202, 100, 0.08); color: var(--c-brand-2); }
.nav-cta {
  margin-left: 10px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--c-ink); color: #fff !important;
  font-weight: 400; transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--c-brand-2) !important; color: #fff !important; transform: translateY(-1px); }
.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: var(--r-pill);
  background: #eef2f7; gap: 2px;
}
.lang-toggle button {
  padding: 6px 12px; border: 0; background: transparent;
  font-size: 0.82rem; font-weight: 500; color: var(--c-on-light-dim);
  border-radius: var(--r-pill); transition: all 0.2s;
}
.lang-toggle button.is-active { background: #fff; color: var(--c-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--c-ink); }

/* ----- Hero ----- */
.hero {
  position: relative;
  background: var(--c-ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(56, 189, 248, 0.35), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(0, 202, 100, 0.25), transparent 70%),
    linear-gradient(180deg, #0b1220 0%, #0e1b34 50%, #0b1220 100%);
  z-index: -2;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: 0.34; filter: saturate(120%) contrast(105%);
  mix-blend-mode: lighten;
}
.hero-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 16vw, 180px) 24px clamp(80px, 12vw, 140px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero h1 { color: #fff; font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 24px; }
.hero h1 .grad {
  background: linear-gradient(120deg, #38bdf8 0%, #00ca64 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.18rem; line-height: 1.65; color: #d4dceb; margin-bottom: 36px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--c-brand); color: #08291a !important; box-shadow: 0 12px 28px rgba(0, 202, 100, 0.35); }
.btn-primary:hover { transform: translateY(-2px); background: #28dd80; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-dark { background: var(--c-ink); color: #fff; }
.btn-dark:hover { background: var(--c-brand-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--c-ink); border-color: rgba(15, 23, 42, 0.18); }
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.btn .icon { width: 16px; height: 16px; }

.hero-art {
  position: relative;
  aspect-ratio: 4/3.2;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.hero-art .tile {
  border-radius: var(--r-md); background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.hero-art .tile::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; padding: 5px 9px;
  background: rgba(11, 18, 32, 0.75); border-radius: 6px;
  backdrop-filter: blur(6px);
}
.hero-trust {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  font-size: 0.82rem; color: #a8b3c6;
  max-width: var(--max); margin: 0 auto;
}
.hero-trust .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e9f1; font-weight: 400;
}
.hero-trust .pill.gold { background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05)); border-color: rgba(212, 175, 55, 0.55); color: #e9d175; }

/* ----- Stats strip ----- */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--c-line-dark);
  padding: 56px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.stat .n {
  font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 600; color: var(--c-ink);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.stat .n .plus { color: var(--c-brand); font-size: 0.7em; }
.stat .l { font-size: 0.92rem; color: var(--c-on-light-dim); }

/* ----- Solutions grid ----- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sol-card {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(0, 202, 100, 0.4); }
.sol-card .media { aspect-ratio: 16/10; background-size: cover; background-position: center; position: relative; }
.sol-card .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 18, 32, 0.55) 100%);
}
.sol-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.sol-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 202, 100, 0.1); color: var(--c-brand);
  margin-bottom: 14px;
}
.sol-card h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--c-ink); }
.sol-card .en { color: var(--c-on-light-dim); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; font-weight: 400; }
.sol-card p { font-size: 0.95rem; color: var(--c-on-light-dim); flex: 1; }
.sol-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-size: 0.9rem; font-weight: 500; color: var(--c-brand-2);
}
.sol-card .more svg { transition: transform 0.2s; }
.sol-card:hover .more svg { transform: translateX(4px); }

/* ----- Service blocks (alternating) ----- */
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  margin-bottom: 88px;
}
.svc-row:nth-child(even) .svc-art { order: 1; }
.svc-row:nth-child(even) .svc-text { order: 2; }
.svc-row:last-child { margin-bottom: 0; }
.svc-art {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden;
  background: #e8eef7; box-shadow: var(--shadow-2);
}
.svc-art img { width: 100%; height: 100%; object-fit: cover; }
.svc-art .badge {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(11, 18, 32, 0.78); color: #fff;
  backdrop-filter: blur(8px); font-size: 0.8rem; font-weight: 400;
}
.svc-text h2 { margin-bottom: 18px; }
.svc-text .tag {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-brand); font-weight: 500; margin-bottom: 12px;
}
.svc-list {
  list-style: none; padding: 0; margin: 18px 0 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.svc-list li {
  position: relative; padding-left: 22px; font-size: 0.95rem;
}
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-brand); box-shadow: 0 0 0 4px rgba(0, 202, 100, 0.15);
}

/* ----- Projects gallery ----- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-card {
  position: relative; aspect-ratio: 4/3.2;
  border-radius: var(--r-lg); overflow: hidden;
  background: #1a2542; color: #fff;
  isolation: isolate;
}
.proj-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  z-index: -1;
}
.proj-card:hover img { transform: scale(1.06); filter: saturate(115%); }
.proj-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 18, 32, 0.95) 100%);
}
.proj-card .info {
  position: absolute; left: 22px; right: 22px; bottom: 20px;
}
.proj-card .info .loc {
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--c-accent); font-weight: 500; margin-bottom: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}
.proj-card .info h3 { color: #fff; font-size: 1.08rem; margin: 0; line-height: 1.3; }
.proj-card .info .tag {
  position: absolute; right: 0; top: -34px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(0, 202, 100, 0.92); color: #08291a; font-size: 0.72rem; font-weight: 500;
}

/* ----- Partners marquee ----- */
.partners {
  background: #fff;
  border-top: 1px solid var(--c-line-dark);
  border-bottom: 1px solid var(--c-line-dark);
  padding: 56px 0 56px;
  overflow: hidden;
}
.partners h2 { text-align: center; font-size: 1.1rem; font-weight: 500; color: var(--c-on-light-dim); margin-bottom: 28px; letter-spacing: 0.04em; text-transform: uppercase; }
.partners-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px 36px;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.partner-logo {
  height: 56px; display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 14px;
  filter: grayscale(100%) opacity(0.78);
  transition: filter 0.3s, transform 0.3s;
}
.partner-logo:hover { filter: none; transform: translateY(-2px); }
.partner-logo img { max-height: 100%; max-width: 140px; }
.partner-chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px;
  border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 12px;
  font-weight: 500; font-size: 1.05rem; color: var(--c-ink);
  filter: grayscale(60%) opacity(0.82); transition: filter 0.3s, transform 0.3s, border-color 0.3s;
}
.partner-chip:hover { filter: none; transform: translateY(-2px); border-color: var(--c-brand); }
.partner-chip.advantech { color: #e60012; }
.partner-chip.qnap { color: #1d6da8; }
.partner-chip.axis-gold { position: relative; background: linear-gradient(135deg, #fdf6e3, #f0e2a8); border-color: #d4af37; color: #6b5104; }
.partner-chip.axis-gold::after {
  content: "GOLD"; position: absolute; top: -8px; right: -8px;
  background: var(--c-gold); color: #fff; font-size: 0.62rem; padding: 2px 7px;
  border-radius: var(--r-pill); letter-spacing: 0.12em;
}

/* ----- Trust / Certifications strip ----- */
.trust { background: var(--c-ink-2); color: var(--c-text); padding: 36px 0; }
.trust-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 18px 36px;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.cert {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
}
.cert .seal {
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #d4af37 60%, #8a6d11 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #1b1402; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.02em; text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.cert .meta strong { display: block; font-weight: 500; color: #fff; font-size: 1rem; }
.cert .meta span { color: var(--c-text-dim); font-size: 0.85rem; }

/* ----- About / why-us ----- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  padding: 28px 26px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.07);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.why-card:hover { border-color: var(--c-brand); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.why-card .ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #fff;
  margin-bottom: 18px;
}
.why-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { color: var(--c-on-light-dim); font-size: 0.95rem; margin: 0; }

/* ----- CTA banner ----- */
.cta-banner {
  background: linear-gradient(125deg, #0b1220 0%, #16284e 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 56px 56px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(56, 189, 248, 0.35), transparent 70%);
}
.cta-banner h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; position: relative; }
.cta-banner p { color: #c4cee0; margin: 0; position: relative; }
.cta-banner .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; position: relative; }

/* ----- Footer ----- */
footer.site-footer {
  background: var(--c-ink);
  color: var(--c-text);
  padding: 72px 0 24px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px;
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.foot-brand img { height: 56px; margin-bottom: 18px; background: rgba(255,255,255,0.95); padding: 8px 14px; border-radius: 8px; }
.foot-brand p { color: var(--c-text-dim); font-size: 0.92rem; }
.foot-col h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { font-size: 0.94rem; color: var(--c-text-dim); transition: color 0.2s; }
.foot-col a:hover { color: var(--c-brand); }
.foot-bottom {
  max-width: var(--max); margin: 48px auto 0; padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.84rem; color: var(--c-text-dim);
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-dim); transition: all 0.2s;
}
.socials a:hover { background: var(--c-brand); color: var(--c-ink); }

/* ----- Inner page header ----- */
.page-hero {
  background: var(--c-ink);
  color: #fff;
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 70% 0%, rgba(56, 189, 248, 0.3), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(0, 202, 100, 0.2), transparent 70%);
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .crumb { font-size: 0.82rem; color: var(--c-text-dim); margin-bottom: 14px; }
.page-hero .crumb a { color: var(--c-text); }
.page-hero p.lead { color: #c4cee0; font-size: 1.1rem; max-width: 680px; margin-top: 14px; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info .row {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px;
  padding-bottom: 22px; border-bottom: 1px solid var(--c-line-dark);
}
.contact-info .row:last-child { border-bottom: 0; }
.contact-info .ico {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: rgba(0, 202, 100, 0.1); color: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-info h4 { font-size: 0.94rem; margin: 0 0 4px; color: var(--c-ink); }
.contact-info p { margin: 0; color: var(--c-on-light-dim); font-size: 0.96rem; line-height: 1.55; }
.contact-form {
  padding: 32px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-1);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; color: var(--c-on-light-dim); margin-bottom: 6px; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(15, 23, 42, 0.16); font-family: inherit; font-size: 1rem; color: var(--c-ink);
  background: #f8fafc; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(0, 202, 100, 0.16); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.map-wrap { aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ----- i18n display: shown / hidden ----- */
[data-lang-en], [data-lang-th] { display: none; }
html[lang="th"] [data-lang-th] { display: revert; }
html[lang="en"] [data-lang-en] { display: revert; }

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-on { opacity: 1; transform: translateY(0); }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 110px; padding-bottom: 90px; }
  .hero-art { max-width: 480px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .svc-row:nth-child(even) .svc-art { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-banner { grid-template-columns: 1fr; padding: 36px; text-align: center; }
  .cta-banner .actions { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sol-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; gap: 12px; padding: 10px 16px; }
  .wrap, .wrap-sm { padding: 0 16px; }
  .page-hero { padding: 110px 0 56px; }
}

/* ----- Mobile drawer ----- */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(11, 18, 32, 0.7); backdrop-filter: blur(6px);
  display: none; opacity: 0; transition: opacity 0.3s;
}
.drawer.open { display: block; opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88%);
  background: #fff; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform 0.3s;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a {
  display: block; padding: 12px 14px; border-radius: var(--r-sm);
  font-weight: 500; color: var(--c-ink);
}
.drawer-panel a:hover { background: rgba(0, 202, 100, 0.08); color: var(--c-brand-2); }
.drawer-panel .close { align-self: flex-end; background: none; border: 0; padding: 6px; color: var(--c-ink); }
.drawer-panel .lang-toggle { margin-top: 18px; align-self: flex-start; }

/* ----- Misc ----- */
.muted { color: var(--c-on-light-dim); }
.center { text-align: center; }
.kicker { font-weight: 500; color: var(--c-brand-2); font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; }
.divider { height: 1px; background: var(--c-line-dark); margin: 24px 0; }
.dark .divider { background: rgba(255, 255, 255, 0.08); }
