/*
 * DESIGN TOKENS — KIM HENG CHIANG
 * Source: CI deck "(D) Color" and "(C) Typography".
 * Do not add new brand colours here; use these tokens everywhere.
 */

:where(:root) {
  /* Brand colours (CI deck p.17) */
  --khc-red: #a81d1d;          /* KCH Red — main / accent */
  --khc-white: #ffffff;        /* White — main */
  --khc-copper: #d5c6a1;       /* Copper — accent */
  --khc-ink: #1e1c19;          /* Accent black */
  --khc-grey: #757575;         /* Accent grey */
  --khc-silver: #cecece;       /* Accent light grey */

  /* Tints and shades derived only from the palette above */
  --khc-red-deep: color-mix(in srgb, var(--khc-red) 82%, var(--khc-ink));
  --khc-mist: color-mix(in srgb, var(--khc-silver) 30%, var(--khc-white)); /* section background */
  --khc-line: color-mix(in srgb, var(--khc-silver) 70%, var(--khc-white)); /* hairlines */
  --khc-copper-soft: color-mix(in srgb, var(--khc-copper) 35%, var(--khc-white));

  /* Gradient accents (CI deck p.17 "Gradient Accents", p.22) — use sparingly */
  --khc-gradient-red: linear-gradient(100deg, #8f1b1b 0%, #b84a44 18%, var(--khc-red) 36%, #a82a26 58%, #c0524d 76%, #8f1b1b 100%);
  --khc-gradient-copper: linear-gradient(100deg, #b9a77d 0%, var(--khc-copper) 35%, #efe6cf 55%, var(--khc-copper) 75%, #b9a77d 100%);

  /* Typography
   * CI fonts: Trust 1A (Latin) and Sukhumvit Set (Thai) — not licensed for web use.
   * Web substitutes: Lato (also used in the CI deck) and Noto Sans Thai (also used in the CI deck).
   * next/font sets --font-latin and --font-thai on <html>; these are fallbacks.
   */
  --font-latin: "Lato";
  --font-thai: "Noto Sans Thai";
  --font-sans: var(--font-latin), var(--font-thai), "Helvetica Neue", Arial, sans-serif;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-bold: 700;
  --weight-xbold: 900;

  --leading-heading: 1.2;     /* CI: leading 120% of font size */
  --leading-sub: 1;           /* CI: subheader size = leading */
  --leading-body: 1.6;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --text-3xl: clamp(2.125rem, 1.3rem + 3.2vw, 4rem);
  --text-display: clamp(2.5rem, 1rem + 6vw, 6.5rem);

  /* Spacing and layout */
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1360px;
  --section: clamp(56px, 7vw, 112px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-pill: 0 3px 6px rgb(30 28 25 / 0.22);
  --shadow-card: 0 1px 2px rgb(30 28 25 / 0.06), 0 8px 24px rgb(30 28 25 / 0.06);

  --header-h: 84px;
  --focus: 0 0 0 3px var(--khc-white), 0 0 0 5px var(--khc-red);
}


/* ===================================================================
   BASE
   =================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--khc-white);
  color: var(--khc-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--leading-heading);
  font-weight: var(--weight-bold);
}
/* Thai stacks tone marks above and vowels below — give headings a little more room. */
:lang(th) h1, :lang(th) h2, :lang(th) h3, :lang(th) h4 { line-height: 1.4; }
:lang(th) body { line-height: 1.75; }

p { margin: 0; }
h1, h2, h3, .hero__title, .statement__text, .quote-bar { text-wrap: balance; }
:lang(th) .eyebrow, :lang(th) .supply-panel__group h3, :lang(th) .footer-col h2, :lang(th) .contact-list dt, :lang(th) .btn { letter-spacing: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--khc-red); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* Phone numbers, emails and account numbers never split across two lines. */
.nowrap, a[href^="tel:"], .payment dd:last-of-type { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--khc-red); color: var(--khc-white);
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--khc-white); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--mist { background: var(--khc-mist); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* Uppercase headers per CI "Primary header & logo guidelines" */
.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--khc-red);
}
.heading-xl {
  font-size: var(--text-3xl);
  font-weight: var(--weight-xbold);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.heading-lg {
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.heading-md {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}
.section-title { text-align: center; margin-bottom: clamp(28px, 4vw, 56px); }
.lead {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  color: var(--khc-ink);
  max-width: 62ch;
}
.muted { color: var(--khc-grey); }

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px;
  padding: 10px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--khc-red); color: var(--khc-white); }
.btn--primary:hover { background: var(--khc-red-deep); color: var(--khc-white); }
.btn--outline { border-color: var(--khc-red); color: var(--khc-red); background: var(--khc-white); }
.btn--outline:hover { background: var(--khc-red); color: var(--khc-white); }
.btn--light { background: var(--khc-white); color: var(--khc-red); }
.btn--light:hover { background: var(--khc-copper-soft); color: var(--khc-red-deep); }
.btn--ghost-light { border-color: var(--khc-white); color: var(--khc-white); }
.btn--ghost-light:hover { background: var(--khc-white); color: var(--khc-red); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Pill with red arrow circle — "REQUEST A QUOTE" in the mock-up */
.btn-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 26px 6px 6px;
  border: 1.5px solid var(--khc-red);
  border-radius: var(--radius-pill);
  background: var(--khc-white);
  color: var(--khc-red);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-arrow:hover { color: var(--khc-red-deep); background: var(--khc-copper-soft); }
.btn-arrow .arrow-dot { width: 44px; height: 44px; }

.arrow-dot {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--khc-red); color: var(--khc-white);
}
.arrow-dot svg { width: 46%; height: 46%; }
.arrow-dot--light { background: var(--khc-white); color: var(--khc-red); }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--khc-white) 96%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--khc-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { height: 46px; width: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: clamp(20px, 3vw, 52px); list-style: none; }
.main-nav a {
  position: relative;
  display: inline-block; padding-block: 8px;
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--khc-ink);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--khc-red); transform: scaleX(0); transition: transform 0.2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--khc-red); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: var(--text-base); text-transform: uppercase; }
.lang-switch a { text-decoration: none; padding: 6px 2px; color: var(--khc-grey); }
.lang-switch a[aria-current="true"] { color: var(--khc-ink); font-weight: var(--weight-bold); }
.lang-switch span { color: var(--khc-silver); }
.header-quote { display: none; }

/* Mobile menu (works without JavaScript) */
.mobile-menu { position: static; }
.mobile-menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--khc-ink); border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu__icon { width: 18px; height: 12px; position: relative; }
.mobile-menu__icon::before, .mobile-menu__icon::after, .mobile-menu__icon span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.mobile-menu__icon::before { top: 0; }
.mobile-menu__icon span { top: 5px; }
.mobile-menu__icon::after { bottom: 0; }
.mobile-menu[open] > summary { background: var(--khc-ink); color: var(--khc-white); }
.mobile-menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--khc-white);
  border-bottom: 1px solid var(--khc-line);
  box-shadow: 0 16px 32px rgb(30 28 25 / 0.12);
  padding: 8px var(--gutter) 24px;
}
.mobile-menu__panel ul { list-style: none; }
.mobile-menu__panel li + li { border-top: 1px solid var(--khc-line); }
.mobile-menu__panel a:not(.btn) {
  display: block; padding: 14px 0;
  font-size: var(--text-lg); text-transform: uppercase; text-decoration: none;
}
.mobile-menu__panel a[aria-current="page"] { color: var(--khc-red); font-weight: 700; }
.mobile-menu__panel .btn { width: 100%; margin-top: 16px; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .mobile-menu { display: none; }
  .header-quote { display: inline-flex; min-height: 42px; padding: 8px 20px; }
}
@media (max-width: 420px) {
  .site-header__logo img { height: 38px; }
  .lang-switch { font-size: var(--text-sm); }
}

/* ===================================================================
   HERO (follows CI mock-up p.23)
   =================================================================== */
.hero { padding-top: clamp(20px, 4vw, 64px); overflow: hidden; }
.hero__wordmark {
  display: flex; justify-content: flex-end;
  padding-right: clamp(0px, 4vw, 72px);
  position: relative; z-index: 1;
}
.hero__wordmark img { width: min(48vw, 640px); height: auto; }
.hero__visual {
  position: relative;
  margin-top: clamp(-110px, -6.5vw, -24px);
  container-type: inline-size;
}
.hero__visual img { width: 100%; height: auto; border-radius: 0 0 var(--radius) var(--radius); }
.hero__copy { padding-top: 28px; }
@media (max-width: 759px) { .hero__visual { margin-top: 10px; } .hero__wordmark img { width: min(62vw, 360px); } }
.hero__title {
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.5rem);
  font-weight: var(--weight-light);
  text-transform: uppercase;
  line-height: var(--leading-heading);
}
.hero__lead { margin-top: 14px; font-weight: var(--weight-light); font-size: var(--text-lg); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (min-width: 760px) {
  .hero__copy {
    position: absolute;
    right: 2.2cqw; top: 34cqw;
    width: 52cqw;
    padding: 0;
    text-align: right;
    color: var(--khc-white);
  }
  .hero__title { font-size: 3.3cqw; text-shadow: 0 1px 12px rgb(30 28 25 / 0.25); }
  .hero__lead { margin-left: auto; font-size: max(15px, 1.3cqw); max-width: 40cqw; text-shadow: 0 1px 8px rgb(30 28 25 / 0.35); }
  .hero__actions { justify-content: flex-end; margin-top: 2.4cqw; }
  .hero__actions .btn--outline { background: transparent; border-color: var(--khc-white); color: var(--khc-white); }
  .hero__actions .btn--outline:hover { background: var(--khc-white); color: var(--khc-red); }
  .hero__actions .btn--primary { background: var(--khc-white); color: var(--khc-red); }
  .hero__actions .btn--primary:hover { background: var(--khc-copper-soft); }
}

/* Statement — "KIM HENG CHIANG — since 1988" */
.statement { padding-block: clamp(56px, 8vw, 140px) clamp(40px, 5vw, 80px); }
.statement__text {
  margin-left: auto;
  max-width: 1080px;
  text-align: right;
  font-size: clamp(1.75rem, 1rem + 3vw, 3.75rem);
  font-weight: var(--weight-regular);
  line-height: var(--leading-heading);
}
.statement__text strong { font-weight: var(--weight-xbold); text-transform: uppercase; }
.statement__rule { display: inline-block; width: 1.5em; height: 0.06em; background: currentColor; vertical-align: middle; margin: 0 0.45em; }
.statement__body { display: block; margin-top: 0.15em; font-weight: var(--weight-light); }

/* Metal pills */
.metals { padding-bottom: clamp(48px, 6vw, 96px); text-align: center; }
.metals__title { font-size: var(--text-2xl); font-weight: var(--weight-regular); text-transform: uppercase; }
.metals__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  max-width: 1200px; margin: clamp(24px, 3vw, 44px) auto 0; list-style: none;
}
@media (min-width: 760px) { .metals__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.metal-pill {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--khc-white);
  box-shadow: var(--shadow-pill);
  font-size: var(--text-lg); text-transform: uppercase; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.metal-pill:hover, .metal-pill--active { background: var(--khc-red); color: var(--khc-white); }

/* ===================================================================
   PRODUCTS GRID (home + listing)
   =================================================================== */
.products-head {
  background: var(--khc-white); border-radius: var(--radius-sm);
  padding: 10px clamp(16px, 2vw, 32px); margin-bottom: 16px;
}
.products-head h2 { font-size: var(--text-2xl); font-weight: var(--weight-regular); }
.products-layout { display: grid; gap: 16px; }
@media (min-width: 1024px) { .products-layout { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }
.product-stack { display: grid; gap: 16px; list-style: none; }
.product-grid { display: grid; gap: 16px; list-style: none; }
@media (min-width: 680px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1180px) { .product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.product-card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(200px, 22vw, 300px);
  border-radius: var(--radius-sm);
  background: var(--khc-white);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--khc-line);
  transition: box-shadow 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-card); color: inherit; }
.product-card__body { padding: clamp(18px, 2.4vw, 44px); padding-right: 8px; display: flex; flex-direction: column; gap: 10px; z-index: 1; }
.product-card__title {
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.5rem);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  line-height: 1.2;
}
.product-card__summary { font-size: var(--text-sm); color: var(--khc-grey); max-width: 34ch; }
.product-card__media { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; }
.product-card__media img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; object-position: right center; mix-blend-mode: multiply; }
.product-card .arrow-dot { position: absolute; right: clamp(14px, 1.8vw, 32px); bottom: clamp(14px, 1.8vw, 32px); width: clamp(44px, 3.4vw, 60px); height: clamp(44px, 3.4vw, 60px); }
.product-card:hover .arrow-dot { background: var(--khc-ink); }
.product-card--red { background: var(--khc-red); color: var(--khc-white); }
.product-card--red:hover { color: var(--khc-white); }
.product-card--red .product-card__summary { color: color-mix(in srgb, var(--khc-white) 85%, var(--khc-red)); }
.product-card--red .arrow-dot { background: var(--khc-white); color: var(--khc-red); }
.product-card--red:hover .arrow-dot { background: var(--khc-ink); color: var(--khc-white); }
.product-card--red .product-card__media img { object-fit: cover; object-position: left center; mix-blend-mode: normal; }

/* Dark supply list panel */
.supply-panel {
  position: relative;
  border-radius: var(--radius-sm);
  padding: clamp(24px, 3vw, 48px);
  color: var(--khc-white);
  background:
    radial-gradient(120% 60% at 90% 10%, rgb(255 255 255 / 0.10), transparent 60%),
    radial-gradient(90% 50% at 10% 90%, rgb(255 255 255 / 0.06), transparent 60%),
    linear-gradient(160deg, #3a3835 0%, var(--khc-ink) 55%, #0f0e0c 100%);
  overflow: hidden;
}
@media (min-width: 1024px) { .supply-panel { position: sticky; top: calc(var(--header-h) + 20px); } }
.supply-panel__title {
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.15;
  margin-bottom: clamp(20px, 2.4vw, 40px);
}
.supply-panel__group + .supply-panel__group { margin-top: clamp(18px, 2vw, 30px); }
.supply-panel__group h3 { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--khc-copper); font-weight: 700; margin-bottom: 8px; }
.supply-panel__group h3 a { text-decoration: none; }
.supply-panel__group h3 a:hover { color: var(--khc-white); }
.supply-panel ul { list-style: none; display: grid; gap: 8px; }
.supply-panel li { font-weight: var(--weight-bold); text-transform: uppercase; font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem); line-height: 1.35; }
:lang(th) .supply-panel li { text-transform: none; font-weight: 500; }

/* CTA band — "Don't find what you were looking for?" */
.cta-band {
  margin-top: clamp(20px, 2.4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--khc-silver);
  border: 1.5px solid var(--khc-white);
  padding: clamp(24px, 3vw, 40px);
}
.cta-band h2 { font-size: var(--text-3xl); font-weight: var(--weight-regular); letter-spacing: -0.01em; }
.cta-band p { font-size: var(--text-lg); margin-top: 8px; max-width: 46ch; }
.cta-band .btn-arrow { margin-top: 24px; }

/* Why choose us */
.why__grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.why-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  height: 100%;
  padding: clamp(22px, 2.6vw, 40px) 16px clamp(20px, 2vw, 32px);
  border-radius: var(--radius);
  background: var(--khc-red); color: var(--khc-white);
}
.why-tile svg { width: clamp(52px, 5vw, 84px); height: auto; margin-bottom: clamp(14px, 1.6vw, 24px); }
.why-tile h3 { font-size: clamp(0.9375rem, 0.8rem + 0.5vw, 1.3rem); font-weight: var(--weight-regular); text-transform: uppercase; letter-spacing: 0.01em; }
.why-tile p { margin-top: 8px; font-size: var(--text-xs); color: color-mix(in srgb, var(--khc-white) 86%, var(--khc-red)); line-height: 1.5; }
.why__note { margin-top: 16px; text-align: center; font-size: var(--text-xs); color: var(--khc-grey); }

/* Brand promise band */
.promise {
  position: relative; overflow: hidden;
  background: var(--khc-gradient-red);
  color: var(--khc-white);
}
.promise__inner { display: grid; align-items: center; gap: 24px; padding-block: clamp(48px, 6vw, 96px); }
@media (min-width: 860px) { .promise__inner { grid-template-columns: auto 1fr; gap: clamp(32px, 5vw, 80px); } }
.promise__horse { width: clamp(110px, 14vw, 200px); height: auto; }
.promise h2 { font-size: var(--text-display); font-weight: var(--weight-xbold); text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; }
.promise__body { margin-top: 14px; font-size: var(--text-xl); font-weight: var(--weight-bold); text-transform: uppercase; color: var(--khc-white); }
:lang(th) .promise__body { text-transform: none; }
.promise__note { margin-top: 10px; font-weight: var(--weight-light); max-width: 56ch; }

/* Payment */
.payment { display: grid; gap: 28px; }
@media (min-width: 860px) { .payment { grid-template-columns: auto 1fr; align-items: end; gap: 64px; } }
.payment__tag {
  display: inline-block; padding: 8px 28px;
  border: 1.5px solid var(--khc-red); border-radius: var(--radius-pill);
  color: var(--khc-red); font-size: var(--text-xl); text-transform: uppercase;
}
.payment dl { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: var(--text-lg); }
.payment dt { font-weight: var(--weight-light); }
.payment dd { margin: 0; font-weight: var(--weight-bold); }
.payment__fax { margin-top: 16px; font-weight: var(--weight-light); }
.payment__thanks { font-size: var(--text-3xl); font-weight: var(--weight-regular); line-height: 1.15; }

/* ===================================================================
   INNER PAGES
   =================================================================== */
.page-hero { padding-block: clamp(40px, 6vw, 96px) clamp(32px, 4vw, 64px); border-bottom: 1px solid var(--khc-line); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: var(--text-sm); color: var(--khc-grey); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--khc-silver); }
.breadcrumbs a { text-decoration: none; }
.page-hero h1 { margin-top: 18px; font-size: var(--text-3xl); font-weight: var(--weight-xbold); text-transform: uppercase; }
.page-hero .lead { margin-top: 18px; padding-left: 18px; border-left: 4px solid var(--khc-red); }

/* Product detail */
.detail { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) { .detail { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.detail__media {
  display: grid; place-items: center;
  min-height: clamp(260px, 32vw, 460px);
  border-radius: var(--radius);
  background: var(--khc-white);
  box-shadow: var(--shadow-card);
  padding: 24px; overflow: hidden;
}
.detail__media--red { background: var(--khc-red); padding: 0; }
.detail__media img { width: 100%; max-height: 420px; object-fit: contain; mix-blend-mode: multiply; }
.detail__media--red img { height: 100%; max-height: none; object-fit: cover; mix-blend-mode: normal; }
.detail__overview { font-size: var(--text-lg); font-weight: var(--weight-light); margin-top: 18px; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.detail-sections { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 960px) { .detail-sections { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.detail-stack { display: grid; gap: clamp(20px, 3vw, 32px); }
.panel {
  background: var(--khc-white);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 40px);
  box-shadow: var(--shadow-card);
}
.panel h2 { font-size: var(--text-xl); font-weight: var(--weight-bold); text-transform: uppercase; margin-bottom: 18px; }
.forms-list { list-style: none; counter-reset: forms; }
.forms-list li {
  counter-increment: forms;
  display: grid; grid-template-columns: 44px 1fr; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--khc-line);
}
.forms-list li:first-child { border-top: 0; padding-top: 0; }
.forms-list li::before {
  content: counter(forms, decimal-leading-zero);
  font-weight: var(--weight-xbold); color: var(--khc-red); font-size: var(--text-lg); line-height: 1.4;
}
.forms-list strong { display: block; font-weight: var(--weight-bold); }
.forms-list small { display: block; color: var(--khc-grey); font-size: var(--text-sm); }
.uses-list { list-style: none; display: grid; gap: 10px; }
.uses-list li { position: relative; padding-left: 22px; }
.uses-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 2px; background: var(--khc-red); }
.panel__note { margin-top: 16px; font-size: var(--text-sm); color: var(--khc-grey); }
.panel--spec { background: var(--khc-ink); color: var(--khc-white); }
.panel--spec p { font-weight: var(--weight-light); }
.panel--spec .btn { margin-top: 22px; }

/* Buyer-guide blocks on a product page (e.g. copper busbar / flat bar) */
.guide-grid { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 960px) { .guide-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.guide p + p { margin-top: 12px; }
.guide__facts { margin-top: 20px; border-top: 1px solid var(--khc-line); }
.guide__facts > div { display: grid; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--khc-line); }
@media (min-width: 560px) { .guide__facts > div { grid-template-columns: minmax(10rem, 38%) 1fr; } }
.guide__facts dt { color: var(--khc-grey); font-size: var(--text-sm); }
.guide__facts dd { margin: 0; }
.guide__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: var(--text-sm); }
.guide__links a { color: var(--khc-red); font-weight: var(--weight-bold); text-decoration: underline; text-underline-offset: 3px; }

/* About */
.story { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; align-items: start; } .story figure { position: sticky; top: calc(var(--header-h) + 24px); } }
.story__text p + p { margin-top: 16px; }
.story__block + .story__block { margin-top: clamp(28px, 3vw, 40px); }
.story__block h2 { margin-bottom: 14px; }
.story figure { margin: 0; }
.story img { border-radius: var(--radius); width: 100%; }
.story figcaption { margin-top: 10px; font-size: var(--text-sm); color: var(--khc-grey); }
.quote-bar {
  border-left: 4px solid var(--khc-red);
  padding-left: clamp(16px, 2vw, 28px);
  font-size: var(--text-2xl); font-weight: var(--weight-xbold); text-transform: uppercase; color: var(--khc-red);
  line-height: var(--leading-heading);
}
:lang(th) .quote-bar { font-weight: var(--weight-bold); }
.quote-sub { margin-top: 14px; padding-left: calc(4px + clamp(16px, 2vw, 28px)); font-size: var(--text-lg); font-weight: var(--weight-light); }
.values { display: grid; gap: 16px; list-style: none; margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { padding: clamp(20px, 2.4vw, 32px); border-radius: var(--radius); background: var(--khc-white); border-top: 4px solid var(--khc-red); box-shadow: var(--shadow-card); }
.values h3 { font-size: var(--text-xl); font-weight: var(--weight-xbold); text-transform: uppercase; color: var(--khc-red); }
.values p { margin-top: 8px; }
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--khc-silver); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--khc-red); border: 3px solid var(--khc-white); box-shadow: 0 0 0 1px var(--khc-red); }
.timeline strong { display: block; font-size: var(--text-xl); font-weight: var(--weight-xbold); }

/* Applications */
.apps { list-style: none; display: grid; gap: 16px; }
.app {
  display: grid; gap: 14px;
  padding: clamp(22px, 3vw, 40px);
  background: var(--khc-white); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
@media (min-width: 860px) { .app { grid-template-columns: 90px 1fr 1fr; gap: 32px; align-items: start; } }
.app__num { font-size: var(--text-3xl); font-weight: var(--weight-xbold); color: var(--khc-red); line-height: 1; }
.app h2 { font-size: var(--text-xl); font-weight: var(--weight-bold); text-transform: uppercase; }
.app p { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 8px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--khc-red); color: var(--khc-red); text-decoration: none; font-size: var(--text-sm); }
.chip:hover { background: var(--khc-red); color: var(--khc-white); }
.note-box { margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--khc-white); border-left: 4px solid var(--khc-copper); font-size: var(--text-sm); color: var(--khc-grey); }

/* Contact */
.contact-grid { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.25fr; } }
.contact-list { display: grid; gap: 18px; margin: 0; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--khc-grey); font-weight: 700; }
.contact-list dd { margin: 0; font-size: var(--text-lg); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-sm); background: var(--khc-mist); }
.map-link { display: inline-block; margin-top: 10px; font-size: var(--text-sm); }

/* Form */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 680px) { .form__row--2 { grid-template-columns: 1fr 1fr; } .form__row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: var(--text-sm); font-weight: var(--weight-bold); }
.field .req { color: var(--khc-red); font-weight: 700; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--khc-silver);
  border-radius: var(--radius-sm);
  background: var(--khc-white);
  font: inherit; color: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--khc-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--khc-red) 20%, transparent); }
.field small { font-size: var(--text-xs); color: var(--khc-grey); }
.field [aria-invalid="true"] { border-color: var(--khc-red); background: color-mix(in srgb, var(--khc-red) 4%, var(--khc-white)); }
.field__error { font-size: var(--text-sm); color: var(--khc-red); font-weight: 700; }
.field--check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--khc-red); }
.field--check label { font-weight: var(--weight-regular); }
.field--check .field__error { grid-column: 2; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { padding: 16px 20px; border-radius: var(--radius-sm); border-left: 4px solid; }
.form-status strong { display: block; }
.form-status--success { background: color-mix(in srgb, var(--khc-copper) 25%, var(--khc-white)); border-color: var(--khc-copper); }
.form-status--error { background: color-mix(in srgb, var(--khc-red) 7%, var(--khc-white)); border-color: var(--khc-red); }
.form-status--info { background: var(--khc-mist); border-color: var(--khc-grey); }
.form-status .btn { margin-top: 12px; }
.form-status__contact { margin-top: 8px; font-weight: 700; }
.form-status__contact > span { display: block; }

/* ===================================================================
   PRODUCT CATALOGUE AND DETAIL (expanded product section)
   =================================================================== */
.cat-nav { margin-bottom: clamp(20px, 3vw, 32px); }
.cat-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.cat-nav a {
  display: inline-block; padding: 8px 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--khc-silver);
  background: var(--khc-white); text-decoration: none; font-size: var(--text-sm);
}
.cat-nav a:hover { border-color: var(--khc-red); color: var(--khc-red); }
.cat-nav a[aria-current="page"] { background: var(--khc-red); border-color: var(--khc-red); color: var(--khc-white); }

.catalog { display: grid; gap: clamp(16px, 2vw, 24px); }
.catalog-entry {
  display: grid; overflow: hidden;
  background: var(--khc-white); border: 1px solid var(--khc-line); border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 900px) { .catalog-entry { grid-template-columns: minmax(240px, 0.75fr) 1.7fr; } }
.catalog-entry__media { display: grid; place-items: center; padding: 20px; min-height: 200px; background: var(--khc-white); border-bottom: 1px solid var(--khc-line); }
@media (min-width: 900px) { .catalog-entry__media { border-bottom: 0; border-right: 1px solid var(--khc-line); } }
.catalog-entry__media img { width: 100%; max-height: 260px; object-fit: contain; mix-blend-mode: multiply; }
.catalog-entry__media--red { background: var(--khc-red); padding: 0; }
.catalog-entry__media--red img { height: 100%; max-height: none; object-fit: cover; mix-blend-mode: normal; }
.catalog-entry__body { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 36px); min-width: 0; }
.catalog-entry__title { font-size: var(--text-xl); font-weight: var(--weight-bold); text-transform: uppercase; }
.catalog-entry__title a { text-decoration: none; }
.catalog-entry__alt { color: var(--khc-grey); font-size: var(--text-sm); margin-top: 2px; }
.catalog-entry__summary { max-width: 70ch; }
.catalog-entry__label { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--khc-red); font-weight: 700; margin-bottom: 8px; }
:lang(th) .catalog-entry__label { letter-spacing: 0; }
.catalog-entry__facts { display: grid; gap: 16px; }
@media (min-width: 680px) { .catalog-entry__facts { grid-template-columns: 1fr 1fr; gap: 28px; } }
.catalog-entry__facts .uses-list { font-size: var(--text-sm); gap: 6px; }
.catalog-entry__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag { padding: 4px 12px; border-radius: var(--radius-pill); background: var(--khc-mist); border: 1px solid var(--khc-line); font-size: var(--text-sm); }

.detail__subhead { margin: 22px 0 10px; font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--khc-red); }
:lang(th) .detail__subhead { letter-spacing: 0; }
.on-page { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: clamp(28px, 3vw, 40px); padding-top: 18px; border-top: 1px solid var(--khc-line); font-size: var(--text-sm); }
.on-page span { color: var(--khc-grey); }
.on-page a { font-weight: 700; color: var(--khc-red); }
#forms, #specs, #applications, #quote { scroll-margin-top: calc(var(--header-h) + 16px); }
.panel__h2-spaced { margin-top: 28px; }

.spec-intro { margin: 10px 0 clamp(20px, 3vw, 32px); color: var(--khc-grey); max-width: 75ch; font-size: var(--text-sm); }
.spec-groups { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 1100px) { .spec-groups { grid-template-columns: 1fr 1fr; align-items: start; } }
.spec-group { background: var(--khc-white); border: 1px solid var(--khc-line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.spec-group h3 { font-size: var(--text-lg); font-weight: var(--weight-bold); text-transform: uppercase; margin-bottom: 12px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--khc-line); }
.spec-table thead th { background: var(--khc-mist); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
:lang(th) .spec-table thead th { letter-spacing: 0; text-transform: none; }
.spec-table tbody th { font-weight: 700; white-space: nowrap; }
.spec-table--pairs tbody th { width: 38%; white-space: normal; color: var(--khc-grey); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
/* Grids with several columns keep readable column widths and scroll sideways on phones. */
.spec-table:not(.spec-table--pairs) { min-width: 34rem; }
.spec-table:not(.spec-table--pairs) tbody th { white-space: normal; min-width: 6.5rem; }
.spec-table--wide { min-width: 46rem; }
.table-hint { display: none; margin-top: 8px; font-size: var(--text-xs); color: var(--khc-grey); }
@media (max-width: 600px) { .table-hint { display: block; } }
.spec-group__note { margin-top: 12px; font-size: var(--text-xs); color: var(--khc-grey); }

.quote-split { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 960px) { .quote-split { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }
.quote-split__contact { margin-top: 16px; font-weight: 700; }
.quote-split__contact a { color: var(--khc-white); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--khc-ink); color: var(--khc-silver); padding-block: clamp(48px, 6vw, 88px) 28px; }
.site-footer a { text-decoration: none; color: var(--khc-white); }
.site-footer a:hover { color: var(--khc-copper); text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1.1fr 1.2fr; } }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { margin-top: 18px; color: var(--khc-copper); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--text-sm); }
.footer-col h2 { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--khc-copper); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; font-size: var(--text-sm); }
.footer-col address { font-style: normal; font-size: var(--text-sm); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(36px, 4vw, 64px); padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--khc-grey) 50%, var(--khc-ink));
  font-size: var(--text-xs); color: var(--khc-silver);
}
.footer-bottom span { color: var(--khc-white); }

/* Not found */
.not-found { text-align: center; padding-block: clamp(80px, 12vw, 180px); }
.not-found img { width: 120px; margin: 0 auto 24px; }
.not-found .btn { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero__actions, .mobile-menu { display: none !important; }
}
