/* =========================================================
   Greenology v2 — clean, minimal industrial catalog
   ========================================================= */
:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --tile: #F1F2EE;
  --soft: #F3F4EF;
  --ink: #0F1712;
  --ink-2: #2B342E;
  --muted: #5D6861;
  --faint: #8C958F;
  --line: #E3E6DF;
  --line-2: #D5D9D1;
  --brand: #76BC21;
  --brand-ink: #3E6E0E;
  --brand-soft: #EEF5E3;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { flex-shrink: 0; }
.hide-mobile { display: inline-flex; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26302A; }
.btn-brand { background: var(--brand); color: var(--ink); }
.btn-brand:hover { background: #86CB33; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.chip-lg { height: 36px; padding: 0 16px; font-size: 14px; }
.chip-brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.chip-muted { background: transparent; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.kicker-light { color: var(--brand); }
.signature { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--faint); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: auto; }
.brand-name { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a { font-size: 15px; color: var(--muted); transition: color .2s ease; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--line-2); }
.lang-switch button { padding: 4px 4px; color: var(--faint); letter-spacing: .04em; transition: color .2s ease; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav .container { display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 24px; }
.mobile-nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 20px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13.5px; color: var(--muted); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
/* Sized from the column width so each Thai line stays on one line (Thai can't break at spaces) */
.hero h1 { font-size: min(3.1rem, calc((100vw - 112px) / 22.3)); line-height: 1.18; letter-spacing: -0.02em; }
.hero h1 span { display: block; }
html[lang="th"] .hero h1 span { white-space: nowrap; }
html[lang="en"] .hero h1 span { display: inline; }
.hero h1 .accent { color: var(--brand-ink); }
.lead { margin-top: 24px; font-size: 17.5px; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .signature { margin-top: 28px; }

.hero-mosaic { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 190px 190px 150px; gap: 12px; }
.hero-tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--tile); isolation: isolate;
}
.hero-tile.tile-1 { grid-row: span 2; }
.hero-tile.tile-4 { grid-column: span 2; }
.hero-tile img { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.hero-tile:hover img { transform: scale(1.04); }
.tile-label {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  font-size: 13px; font-weight: 500; color: var(--ink);
}

.fit-contain { object-fit: contain; padding: 12%; mix-blend-mode: multiply; }
.fit-cover { object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-value { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); max-width: 20ch; letter-spacing: -0.02em; }
.section-text { max-width: 42ch; color: var(--muted); font-size: 16.5px; }

/* ---------- product categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  grid-column: span 2; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card.cat-1, .cat-card.cat-2 { grid-column: span 3; }
.cat-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(15, 23, 18, .35); }
.cat-media { position: relative; aspect-ratio: 4 / 3; background: var(--tile); overflow: hidden; isolation: isolate; }
.cat-1 .cat-media, .cat-2 .cat-media { aspect-ratio: 16 / 9; }
.cat-media img { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.04); }
.cat-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.cat-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cat-body h3 { font-size: 21px; }
.cat-body p { color: var(--muted); font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--brand-ink); }
.link .icon { transition: transform .25s var(--ease); }
.cat-card:hover .link .icon { transform: translateX(4px); }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; }
.value-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); flex-shrink: 0; }
.value h3 { font-size: 18px; margin-top: 22px; }
.value p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 30px; background: var(--surface); }
.service-top { display: flex; align-items: center; justify-content: space-between; }
.service h3 { font-size: 20px; margin-top: 22px; }
.service p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.02em; margin-bottom: 24px; max-width: 18ch; }
.about-copy > p:not(.kicker) { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; max-width: 58ch; }
.small-title { font-size: 15px; font-weight: 600; margin: 36px 0 14px; }
.mission { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.mission h3 { font-size: 20px; margin-bottom: 8px; }
.mission li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.mission li:last-child { border-bottom: 0; padding-bottom: 0; }
.mission .num { font-size: 14px; font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; padding-top: 2px; }
.mission h4 { font-size: 17px; }
.mission li p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px;
  background: var(--ink); color: #fff; border-radius: 28px; padding: 64px;
}
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.02em; max-width: 16ch; }
.contact-text { margin-top: 18px; color: rgba(255, 255, 255, .66); font-size: 16px; max-width: 46ch; }
.contact-list { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: 3px; }
.contact-list small { display: block; font-size: 13px; color: rgba(255, 255, 255, .5); }
.contact-list a, .contact-list span { font-size: 16px; color: #fff; }
.contact-list a:hover { color: var(--brand); }

.quote-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.quote-form h3 { font-size: 22px; margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D6861' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.field input.is-invalid, .field select.is-invalid { border-color: #C2410C; }
.quote-form .btn { margin-top: 6px; }
.form-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); font-size: 14.5px; }
.form-status[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 30ch; }
.footer-brand .signature { margin-top: 10px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--muted); }
.footer-col h4 { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }

/* ---------- catalog overlay ---------- */
.catalog {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  opacity: 0; transform: translateY(24px);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.catalog.is-open { opacity: 1; transform: none; }
.catalog[hidden] { display: none; }
.catalog-bar {
  position: sticky; top: 0; z-index: 2;
  background: rgba(250, 250, 247, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.catalog-bar-inner { height: 68px; display: flex; align-items: center; gap: 16px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; transition: border-color .2s ease; }
.icon-btn:hover { border-color: var(--ink); }
.catalog-close { width: 42px; padding: 0; justify-content: center; }
.cat-pills { flex: 1; display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
.cat-pill:hover { color: var(--ink); }
.cat-pill[aria-current="true"] { background: var(--ink); color: #fff; }

.catalog-body { padding-top: 56px; padding-bottom: 96px; }
.panel-head { max-width: 820px; margin-bottom: 56px; }
.panel-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.02em; }
.panel-intro { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 68ch; }
.panel-head .chips { margin-top: 24px; }

.p-group + .p-group { margin-top: 64px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.group-head h3 { font-size: 22px; }
.group-head span { font-size: 14px; color: var(--faint); white-space: nowrap; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.p-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--tile); overflow: hidden; isolation: isolate; cursor: zoom-in; }
.p-media img { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.p-media:hover img { transform: scale(1.04); }
.p-badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s var(--ease); }
.p-media:hover .zoom-hint, .p-media:focus-visible .zoom-hint { opacity: 1; transform: none; }
.p-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.p-body h4 { font-size: 18px; }
.p-sub { margin-top: 2px; font-size: 14px; color: var(--brand-ink); font-weight: 500; }
.p-desc { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.p-list { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.p-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.p-list .icon { color: var(--brand-ink); margin-top: 4px; }
.p-specs { margin: 18px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.p-specs div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.p-specs div:last-child { border-bottom: 0; padding-bottom: 0; }
.p-specs dt { font-size: 12.5px; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.p-specs dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.p-tech { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.p-tech span { padding: 4px 10px; border-radius: 8px; background: var(--soft); font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.filter-extra { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 56px; }
.panel-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel-box h3 { font-size: 19px; margin-bottom: 18px; }
.scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.scope-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.scope-list .icon { color: var(--brand-ink); margin-top: 4px; }
.note { margin-top: 18px; font-size: 13px; color: var(--faint); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-table th { font-weight: 500; color: var(--muted); padding-right: 20px; width: 46%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table td { color: var(--ink); }

.iso-box { display: flex; align-items: flex-start; gap: 20px; margin-top: 56px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.iso-box h3 { font-size: 18px; }
.iso-box p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.iso-box .note { margin-top: 8px; }
.iso-box .chip { margin-left: auto; }

.panel-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 72px; padding: 36px 40px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.panel-cta h3 { font-size: 22px; }
.panel-cta p { margin-top: 4px; color: rgba(255, 255, 255, .66); }


/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: min(3.1rem, calc((100vw - 48px) / 11.4)); }
  .hero-mosaic { grid-template-rows: 200px 200px 160px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-card { grid-template-columns: 1fr; gap: 48px; }
  .contact-card { padding: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-extra { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .section { padding: 80px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .hero { padding-top: 40px; }
  .eyebrow { font-size: 12px; padding: 5px 12px 5px 9px; gap: 8px; margin-bottom: 22px; }
  .hero-mosaic { grid-template-rows: 150px 150px 120px; gap: 10px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .stat, .stat + .stat { padding: 22px 12px 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat-value { font-size: 28px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card, .cat-card.cat-1, .cat-card.cat-2 { grid-column: auto; }
  .cat-1 .cat-media, .cat-2 .cat-media { aspect-ratio: 4 / 3; }
  .values, .services { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 22px; border-radius: 22px; }
  .quote-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .mission { padding: 28px 22px; }
  .p-grid { grid-template-columns: 1fr; }
  .cat-pills { justify-content: flex-start; }
  .scope-list { grid-template-columns: 1fr; }
  .iso-box { flex-direction: column; }
  .iso-box .chip { margin-left: 0; }
  .panel-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .catalog-body { padding-top: 36px; }
}
.catalog:focus { outline: none; }

/* ===== v6 additions ===== */

/* Header logo with tagline (ref: logo lock-up) */
.site-header .brand { gap: 10px; }
.site-header .brand img { width: 49px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-header .brand-name { font-weight: 700; font-size: 23.4px; letter-spacing: .02em; text-transform: uppercase; color: #1F5AA6; }
.brand-tag { margin-top: 4px; font-size: 12.35px; font-weight: 600; letter-spacing: .085em; text-transform: uppercase; color: #4F8A12; white-space: nowrap; }

.section-head--center { display: block; text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head--center h2 { max-width: none; }
.section-head--center .section-text { margin: 14px auto 0; }
/* Abrasives catalog: four cards per row */
.cat-panel[data-cat="abrasives"] .p-grid { grid-template-columns: repeat(4, 1fr); }
.cat-panel[data-cat="abrasives"] .p-body { padding: 18px 18px 22px; }
.cat-panel[data-cat="abrasives"] .p-body h4 { font-size: 17px; }
.cat-panel[data-cat="abrasives"] .p-desc { font-size: 14px; line-height: 1.65; }
.cat-panel[data-cat="abrasives"] .p-specs dt { font-size: 12.5px; }
.cat-panel[data-cat="abrasives"] .p-specs dd { font-size: 13.5px; }

/* Feature labels in tape cards */
.p-list b { display: block; font-weight: 600; color: var(--ink); }

@media (max-width: 1099px) {
  .cat-panel[data-cat="abrasives"] .p-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
}
@media (max-width: 760px) {
  .cat-panel[data-cat="abrasives"] .p-grid { grid-template-columns: 1fr; }
  .site-header .brand img { width: 44px; }
  .site-header .brand-name { font-size: 20.8px; }
  .brand-tag { font-size: 11px; letter-spacing: .06em; }
  .section-head--center { text-align: left; margin-bottom: 36px; }
}

/* v7 hero: v5-style faded fiber-roll photo on the right, no product mosaic */
.hero { position: relative; overflow: hidden; padding: 0; background: linear-gradient(180deg, #E4F0D8 0%, #F2F8EC 62%, var(--bg) 100%); }
.hero-grid { display: block; padding-top: 96px; padding-bottom: 104px; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, #000 40%); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, transparent 26%); }
@media (max-width: 960px) {
  .hero-grid { padding-top: 56px; padding-bottom: 300px; }
  .hero-copy { max-width: none; }
  .hero-photo { width: 100%; top: auto; height: 300px; }
  .hero-photo img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%); mask-image: linear-gradient(180deg, transparent 0%, #000 34%); }
}

/* v7 intro block (from v4): ruled headline, copy, 4 feature icons, phone pill */
.center { text-align: center; }
.section.intro { background: var(--bg); padding: 96px 0 88px; }
.intro .narrow { max-width: 880px; }
.intro-lead { font-weight: 500; font-size: 17px; color: var(--ink); }
.ruled { margin: 18px 0 0; padding: 18px 0 20px; border-top: 3px solid var(--brand-ink); border-bottom: 3px solid var(--brand-ink); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.25; letter-spacing: .01em; text-transform: uppercase; color: var(--brand-ink); }
html[lang="th"] .ph { white-space: nowrap; }
.intro-text { margin-top: 26px; color: var(--muted); font-size: 17px; }
.intro-assure { margin-top: 26px; font-weight: 500; font-size: 18px; color: var(--brand-ink); }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px auto 0; max-width: 780px; }
.feat { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 12px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; line-height: 1.4; }
.feat + .feat { border-left: 1px solid var(--line-2); }
.feat .icon { color: #3C4440; }
.phone-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 44px; padding: 12px 28px; border-radius: 999px; background: var(--brand-ink); color: #fff; font-weight: 600; font-size: 17px; letter-spacing: .04em; transition: background-color .2s ease; }
.phone-pill:hover { background: #2D5509; }
@media (max-width: 760px) {
  .section.intro { padding: 64px 0 60px; }
  .feats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .feat:nth-child(3) { border-left: 0; }
}

/* small phones: keep the enlarged logo from pushing the menu button off-screen */
@media (max-width: 420px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand img { width: 40px; }
  .site-header .brand-name { font-size: 18.5px; }
  .brand-tag { font-size: 9.2px; letter-spacing: .04em; }
  .site-header .container { padding-left: 16px; padding-right: 16px; }
  .header-actions { gap: 12px; }
}


/* v7 services: 5 cards with photo header (from draft v10.1) */
.services { grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service { grid-column: span 2; display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: box-shadow .25s ease, transform .25s var(--ease); }
.service.svc-wide { grid-column: span 3; }
.service:hover { box-shadow: 0 10px 30px rgba(15, 23, 18, .09); transform: translateY(-2px); }
.svc-media { position: relative; height: 200px; overflow: hidden; background: var(--tile); border-bottom: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service:hover .svc-media img { transform: scale(1.04); }
.svc-badge { position: absolute; top: 12px; right: 12px; padding: 3px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--svc, #0F766E); }
.svc-body { padding: 22px 24px 8px; flex: 1; }
.svc-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--svc, #0F766E); background: var(--svc-soft, #E6F4F1); }
.service .svc-body h3 { font-size: 19px; margin-top: 16px; }
.service .svc-body p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.svc-foot { padding: 14px 24px 24px; }
.svc-tag { display: inline-block; padding: 4px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--svc, #0F766E); background: var(--svc-soft, #E6F4F1); }
.svc-teal { --svc: #0F766E; --svc-soft: #E3F3F0; }
.svc-blue { --svc: #1F5AA6; --svc-soft: #E8EFF9; }
.svc-green { --svc: #3E7D0E; --svc-soft: #EAF4DD; }
.svc-amber { --svc: #B45309; --svc-soft: #FDF1DD; }
.svc-purple { --svc: #7E3FD1; --svc-soft: #F0E8FB; }
@media (max-width: 1099px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service.svc-wide { grid-column: auto; }
  .service.svc-wide:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .service.svc-wide:last-child { grid-column: auto; }
  .svc-media { height: 190px; }
}

/* v7 services: clickable cards + photo gallery popup */
.service[data-gallery-card] { cursor: pointer; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.svc-more { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--surface); transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.service:hover .svc-more, .svc-more:hover { border-color: var(--svc, var(--brand-ink)); color: var(--svc, var(--brand-ink)); background: var(--svc-soft, var(--brand-soft)); }
.svc-more .icon { flex: none; }

.gallery { border: 0; padding: 0; border-radius: var(--radius); background: var(--surface); width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
.gallery[open] { display: flex; flex-direction: column; }
.gallery::backdrop { background: rgba(15, 23, 18, .66); backdrop-filter: blur(6px); }
.gallery-close { position: absolute; top: 12px; right: 12px; width: 42px; padding: 0; justify-content: center; z-index: 3; background: rgba(255, 255, 255, .92); }
.gallery-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1; background: #F3F4EF; }
.gallery-img { display: block; width: 100%; height: min(62vh, 560px); object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(15, 23, 18, .2); color: var(--ink); transition: background-color .2s ease; }
.gallery-nav:hover { background: #fff; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-info { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 24px 6px; }
.gallery-title { font-weight: 600; font-size: 17px; }
.gallery-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: flex; gap: 10px; padding: 8px 24px 20px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 92px; height: 62px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .6; background: var(--tile); transition: opacity .2s ease, border-color .2s ease; }
.gallery-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brand-ink); }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery.is-single .gallery-nav, .gallery.is-single .gallery-thumbs, .gallery.is-single .gallery-count { display: none; }
.gallery.is-single .gallery-info { padding-bottom: 18px; }
@media (max-width: 760px) {
  .gallery-img { height: 46vh; }
  .gallery-nav { width: 40px; height: 40px; }
  .gallery-prev { left: 8px; } .gallery-next { right: 8px; }
  .gallery-info, .gallery-thumbs { padding-left: 16px; padding-right: 16px; }
  .gallery-thumbs button { width: 76px; height: 52px; }
}

/* v7 gallery: larger popup, swipe-friendly */
.gallery { width: min(1400px, 96vw); height: min(92vh, 940px); max-height: none; }
.gallery[open] { display: flex; flex-direction: column; }
.gallery-stage { flex: 1 1 auto; min-height: 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.gallery-stage.is-dragging { cursor: grabbing; }
.gallery-img { width: 100%; height: 100%; max-height: none; object-fit: contain; -webkit-user-drag: none; pointer-events: none; transition: opacity .25s ease; }
.gallery-img.is-switching { opacity: 0; }
.gallery-nav { width: 54px; height: 54px; z-index: 2; }
.gallery-prev { left: 20px; } .gallery-next { right: 20px; }
.gallery-info { flex: none; padding: 16px 28px 6px; }
.gallery-title { font-size: 18px; }
.gallery-thumbs { flex: none; padding: 8px 28px 22px; }
.gallery-thumbs button { width: 112px; height: 76px; }
@media (max-width: 760px) {
  .gallery { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .gallery-nav { width: 44px; height: 44px; }
  .gallery-prev { left: 8px; } .gallery-next { right: 8px; }
  .gallery-info, .gallery-thumbs { padding-left: 16px; padding-right: 16px; }
  .gallery-thumbs button { width: 84px; height: 58px; }
}


/* v8 product & service groups (layout after the reference: 3 + 2 cards) */
.groups { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.group-card { grid-column: span 2; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 18, .04); transition: box-shadow .3s ease, transform .3s var(--ease), border-color .3s ease; }
.group-card:hover, .group-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 18, .10); border-color: var(--line-2); }
.group-card.group-wide { grid-column: span 3; flex-direction: row; }
.group-media { position: relative; display: block; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); isolation: isolate; }
.group-media img { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.group-media.is-cutout img { object-fit: contain; padding: 7%; mix-blend-mode: multiply; }
.group-media.is-photo img { object-fit: cover; }
.group-card:hover .group-media img { transform: scale(1.045); }
.group-wide .group-media { width: 46%; aspect-ratio: auto; min-height: 280px; }
.group-num { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.group-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 26px; }
.group-wide .group-body { justify-content: center; }
.group-body h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.3; }
.group-body h3 .icon { flex: none; color: var(--brand-ink); }
.group-body p { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.group-go { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.group-body .group-go { margin-top: 20px; padding: 9px 18px; border-radius: 999px; background: var(--brand-ink); color: #fff; font-size: 14px; font-weight: 600; transition: background-color .2s ease; }
.group-card:hover .group-go { background: #2D5509; }
.group-go .icon { transition: transform .25s var(--ease); }
.group-card:hover .group-go .icon { transform: translateX(4px); }
.group-card:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; }
@media (max-width: 1099px) {
  .groups { grid-template-columns: 1fr 1fr; }
  .group-card, .group-card.group-wide { grid-column: auto; }
  .group-card.group-wide { flex-direction: column; }
  .group-wide .group-media { width: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .group-card:last-child { grid-column: 1 / -1; flex-direction: row; }
  .group-card:last-child .group-media { width: 46%; aspect-ratio: auto; min-height: 260px; }
}
@media (max-width: 760px) {
  .groups { grid-template-columns: 1fr; gap: 16px; }
  .group-card:last-child { flex-direction: column; grid-column: auto; }
  .group-card:last-child .group-media { width: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .group-body { padding: 20px 20px 22px; }
}

/* product cards: photo-count chip, wider contain padding for cut-out photos */
.p-count { position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: rgba(15, 23, 18, .72); color: #fff; font-size: 12px; font-weight: 500; }
.fit-contain.fit-wide { padding: 5%; }

/* gallery opened from a product card: white stage so white-background cut-outs sit cleanly */
.gallery.is-product .gallery-stage { background: #fff; }
.gallery.is-product .gallery-img { mix-blend-mode: multiply; }
.gallery.is-product .gallery-thumbs button { background: #fff; border-color: var(--line); }
.gallery.is-product .gallery-thumbs button[aria-current="true"] { border-color: var(--brand-ink); }
.gallery.is-product .gallery-thumbs img { object-fit: contain; mix-blend-mode: multiply; }


/* CMS: product without a photo yet */
.p-media--empty { cursor: default; }
.p-media--empty::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(15, 23, 18, .03) 14px 28px); }


/* quote form: consent, honeypot, Turnstile, error message */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.check-field input { margin-top: 4px; width: 17px; height: 17px; flex: none; accent-color: var(--brand-ink); }
.check-field input.is-invalid { outline: 2px solid #C2410C; outline-offset: 1px; }
.check-field a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.ts-box { min-height: 0; }
.ts-box:not(:empty) { min-height: 65px; }
.form-error { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: #FDECE4; color: #9A3412; font-size: 14.5px; line-height: 1.55; }
.form-error[hidden] { display: none; }
.quote-form .btn[disabled] { opacity: .65; cursor: progress; }
.check-field a { margin-left: .3em; }
