/* ==========================================================================
   LANXANG sole Co., Ltd. - site stylesheet
   Tokens, then shared parts (top bar, header, buttons, cards, footer), then
   the page layouts, then script-specific typography and the breakpoints.
   ========================================================================== */

:root {
  --red: #c8102e;
  --red-hover: #a50d26;
  --red-tint: #fbeff1;
  --red-on-dark: #f0566c;

  --ink: #16191e;
  --ink-2: #394150;
  --muted: #5f6977;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --line: #e1e4e8;
  --line-strong: #c8cdd4;

  --dark: #16191e;
  --on-dark: #c4c9d0;
  --on-dark-muted: #8b929c;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* The product photos sit on a studio backdrop that is dark at the sides and
     light in the middle. This matches it, so letterboxed photos blend in. */
  --photo-bg: linear-gradient(90deg, #8f9192, #bdbfc0 25%, #e4e6e6 50%, #bdbfc0 75%, #8f9192);

  /* Plex and Barlow cover Latin and Vietnamese; Lao and Chinese glyphs fall
     through to the Noto faces. */
  --sans: "IBM Plex Sans", "Noto Sans Lao", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Semi Condensed", "Noto Sans Lao", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --content: 1240px;
  /* Side padding that keeps content inside --content without wrapper divs. */
  --inline: max(var(--gutter), calc((100% - var(--content)) / 2));
  --header-h: 68px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body:lang(lo) { line-height: 1.75; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.icon { width: 1.15em; height: 1.15em; flex: none; display: block; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--red); color: #fff; padding: 12px 20px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Small uppercase heading used for list and panel labels. */
.label {
  font-family: var(--display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 36px; padding: 0 var(--inline);
  background: var(--dark); color: var(--on-dark); font-size: 13px;
}
.topbar-info { display: flex; gap: 22px; }
.topbar-info span, .topbar-links a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar .icon { width: 14px; height: 14px; opacity: 0.75; }
.topbar-links { display: flex; align-items: center; gap: 22px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-phone { font-weight: 600; color: #fff !important; }

.topbar-langs ul { display: flex; }
.topbar-langs li + li { border-left: 1px solid var(--line-dark); }
.topbar-langs a { display: block; padding: 0 9px; line-height: 20px; }
.topbar-langs li:last-child a { padding-right: 0; }
.topbar-langs a[aria-current] { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 36px;
  height: var(--header-h); padding: 0 var(--inline);
  background: #fff; border-bottom: 1px solid var(--line);
}

.logo {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  flex: none; text-decoration: none; line-height: 1;
}
.logo img { height: 30px; width: auto; }
.logo-legal { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

.main-nav {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: flex-end; gap: 24px;
}
.nav-links { display: flex; }
.nav-links a {
  position: relative; display: flex; align-items: center;
  height: var(--header-h); padding: 0 14px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 3px; background: var(--red);
}

.header-search {
  display: flex; align-items: center; width: min(340px, 100%);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
}
.header-search:focus-within { border-color: var(--ink-2); }
.header-search > .icon { display: none; }
.header-search input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  border: 0; outline: 0; background: transparent; font-size: 15px;
  -webkit-appearance: none; appearance: none;
}
.header-search button {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 40px; border: 0; border-left: 1px solid var(--line);
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.header-search button:hover { color: var(--red); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; margin-left: auto;
  width: 44px; height: 44px; background: none; cursor: pointer; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon + .icon, .nav-toggle[aria-expanded="true"] .icon:first-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon + .icon { display: block; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-secondary .icon { color: var(--red); }
.btn[hidden] { display: none; }

.button-row { display: flex; flex-wrap: wrap; gap: 8px; }

.more-link {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 15px; font-weight: 600; color: var(--red); text-decoration: none; white-space: nowrap;
}
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-link .icon { width: 17px; height: 17px; }

/* ---------- Sections ---------- */

.section { padding: 56px var(--inline); }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt + .section, .section + .section-alt { margin-top: 0; }
.section-alt + .section-alt { border-top: 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 24px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.section-head h2 { font-size: clamp(24px, 2.6vw, 30px); }

/* ---------- Home: hero ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
  padding: 56px var(--inline) 64px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(36px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -0.01em;
  max-width: 12em; margin-bottom: 20px; text-wrap: balance;
}
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }

.finder {
  display: flex; align-items: center; max-width: 620px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.finder:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 25, 30, 0.08); }
.finder > .icon { width: 20px; height: 20px; margin-left: 16px; color: var(--muted); }
.finder input {
  flex: 1; min-width: 0; height: 56px; padding: 0 14px;
  border: 0; outline: 0; background: transparent;
  font-size: 17px; /* 16px or more stops iOS zooming in on focus */
  -webkit-appearance: none; appearance: none;
}
.finder input::placeholder { color: var(--muted); }
.finder button {
  flex: none; align-self: stretch; margin: 5px; padding: 0 26px;
  border: 0; border-radius: 3px; background: var(--red); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.finder button:hover { background: var(--red-hover); }

.finder-common {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px;
  font-size: 14.5px; color: var(--muted);
}
.finder-common a {
  color: var(--ink-2); text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.finder-common a:hover { color: var(--red); text-decoration-color: var(--red); }

.quote {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  padding: 24px 26px 22px;
}
.quote h2 { font-size: 26px; margin-bottom: 8px; }
.quote > p { font-size: 15px; color: var(--ink-2); }
.quote-list { counter-reset: step; margin: 14px 0 20px; border-top: 1px solid var(--line); }
.quote-list li {
  counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr);
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.quote-list li::before {
  content: counter(step); font-family: var(--display); font-weight: 700; color: var(--red);
}
.quote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quote-actions .btn-primary { grid-column: 1 / -1; min-height: 50px; font-size: 17px; }
.quote-actions .btn-secondary { padding: 0 10px; min-width: 0; }
.quote-actions a[href^="mailto"] { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.quote-hours { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.quote-hours .icon { width: 15px; height: 15px; }

/* ---------- Home: category tiles ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat-tile {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 14px;
  height: 100%; padding: 8px 12px 8px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color 0.15s;
}
.cat-thumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--photo-bg); border-radius: 2px;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.cat-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.cat-count { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.cat-tile-all { background: var(--ink); border-color: var(--ink); }
.cat-tile-all .cat-thumb { background: rgba(255, 255, 255, 0.08); }
.cat-tile-all .cat-thumb .icon { width: 26px; height: 26px; color: #fff; }
.cat-tile-all .cat-name { color: #fff; }
.cat-tile-all .cat-count { color: var(--on-dark); }

/* ---------- Product cards ---------- */

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; }
.card[hidden] { display: none; }
.card > a {
  display: flex; flex-direction: column; width: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color 0.15s;
}
.card-img { display: block; aspect-ratio: 520 / 381; overflow: hidden; background: var(--photo-bg); }
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03); /* crops the thin frame baked into the photos */
}

/* Long parts (shafts, racks, shock absorbers) come as wide strips. Show the whole
   strip on the studio backdrop instead of cropping the ends off. */
.card-img.wide, .photo.wide { display: flex; align-items: center; }
:is(.card-img, .photo).wide img {
  height: auto;
  -webkit-mask-image: linear-gradient(transparent 2%, #000 18%, #000 82%, transparent 98%);
  mask-image: linear-gradient(transparent 2%, #000 18%, #000 82%, transparent 98%);
}

.card-body { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 12px 14px 14px; }
.card-ref {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card-name { font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.card-cat { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }

/* Hover effects only where there is a real pointer, so taps on phones and
   iPads do not leave cards stuck in their hover state. */
@media (hover: hover) {
  .card > a:hover, .cat-tile:hover { border-color: var(--ink-2); }
  .card > a:hover .card-name, .cat-tile:hover .cat-name { color: var(--red); }
  .cat-tile-all:hover { border-color: var(--red); background: var(--red); }
  .cat-tile-all:hover .cat-name { color: #fff; }
  .cat-tile-all:hover .cat-count { color: #fff; }
}

/* ---------- Home: brands ---------- */

.brands .label { margin-bottom: 12px; }
.logo-grid + .label { margin-top: 36px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
/* Every tile has its own border; the negative margins collapse the shared edges. */
.logo-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 96px; margin: 0 -1px -1px 0; padding: 14px 10px; border: 1px solid var(--line);
}
.logo-tile img { width: 100%; max-width: 104px; height: 34px; object-fit: contain; opacity: 0.85; }
/* The MASUMA wordmark is an orange raster; draw it in ink like the rest. */
.logo-tile img[src$=".png"] { filter: brightness(0); opacity: 0.8; }
.logo-tile span { font-size: 12.5px; color: var(--muted); }
.logo-tile.name-only span {
  font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-2);
}

/* ---------- Home: showroom ---------- */

.showroom {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px;
  align-items: stretch;
}
.showroom-text h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 12px; }
.showroom-text > p { font-size: 16px; color: var(--ink-2); margin-bottom: 20px; max-width: 40em; }
.showroom-text .facts { margin-bottom: 24px; }

.facts { border-top: 1px solid var(--line); }
.facts > div {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.facts a, .spec a, .range a {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.facts a:hover, .spec a:hover, .range a:hover { color: var(--red); text-decoration-color: var(--red); }

.map { min-height: 380px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Inner page header ---------- */

.page-head { padding: 22px var(--inline) 32px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head-slim { padding-bottom: 14px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 10px; }
.page-lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; }
.page-head-logo { width: 160px; height: auto; margin: 4px 0 16px; }

.crumbs ol { display: flex; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.page-head-slim .crumbs ol { margin-bottom: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Catalogue: sidebar + grid ---------- */

.catalogue {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start;
  padding: 32px var(--inline) 64px;
}
.cat-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.cat-nav .label { margin-bottom: 10px; }
.cat-nav ul { position: relative; border-top: 1px solid var(--line); }
.cat-nav a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 10px 7px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
  font-size: 14.5px; line-height: 1.4; color: var(--ink-2); text-decoration: none;
}
.cat-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.cat-nav a[aria-current] { border-left-color: var(--red); background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.cat-nav .count { font-size: 13px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }

.catalogue-main .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.catalogue-search { position: relative; margin-bottom: 12px; }
.catalogue-search > .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--muted); pointer-events: none;
}
.catalogue-search input {
  width: 100%; height: 50px; padding: 0 16px 0 46px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
}
.catalogue-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 25, 30, 0.08); }
.catalogue-search input::placeholder { color: var(--muted); }
.catalogue-count { margin-bottom: 16px; font-size: 14px; color: var(--muted); }

.catalogue-more { margin-top: 28px; text-align: center; }
.catalogue-more .btn { min-width: 200px; }

.catalogue-empty { padding: 32px 0; font-size: 15px; color: var(--muted); }
.catalogue-empty[hidden] { display: none; }
.catalogue-empty-title { margin-bottom: 4px; font-size: 18px; font-weight: 600; color: var(--ink); }
.catalogue-empty .button-row { margin-top: 20px; }

/* ---------- Product page ---------- */

.product {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start;
  padding: 32px var(--inline) 56px;
}
.product-photo .photo {
  aspect-ratio: 520 / 381; overflow: hidden; background: var(--photo-bg); border: 1px solid var(--line);
}
.product-photo .photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.product-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

.product-main h1 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 20px; }

.spec { width: 100%; margin-bottom: 24px; border-collapse: collapse; border-top: 1px solid var(--line); }
.spec th, .spec td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 42%; padding-right: 16px; font-size: 14.5px; font-weight: 400; color: var(--muted); }
.spec td { font-weight: 500; }
.ref { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }

.ask {
  margin-bottom: 28px; padding: 20px 22px;
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--red);
}
.ask h2 { font-size: 21px; margin-bottom: 6px; }
.ask p { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }

.names .label { margin-bottom: 8px; }
.names dl { border-top: 1px solid var(--line); }
.names dl > div {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.names dt { color: var(--muted); }

/* ---------- About and MASUMA ---------- */

.doc {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start;
  padding: 44px var(--inline) 72px;
}
.prose { max-width: 68ch; }
.prose h2 { font-size: 26px; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-weight: 600; text-decoration: none;
}
.prose-link a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose-link .icon { width: 16px; height: 16px; }
.prose .grid { margin-top: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.aside-box {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: 22px 24px 24px; border: 1px solid var(--line); border-top: 3px solid var(--ink);
}
.aside-box h2 { font-size: 21px; margin-bottom: 14px; }
.aside-box .facts > div { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
.aside-box .facts dd { font-size: 14.5px; }
.aside-actions { display: grid; gap: 8px; margin-top: 20px; }

.range { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.range th { padding: 0 0 8px; text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); }
.range td { padding: 6px 0; border-top: 1px solid var(--line); }
.range tfoot td { border-top: 2px solid var(--ink); padding-top: 9px; font-weight: 600; }
.range .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Contact page ---------- */

.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start;
  padding: 40px var(--inline) 72px;
}
.contact-list { border-top: 1px solid var(--line); }
.contact-list li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.contact-list li > .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--red); }
.contact-list .label-text { display: block; font-size: 13.5px; color: var(--muted); }
.contact-list .value {
  font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.contact-list a.value:hover { color: var(--red); }
.contact-company { margin-top: 12px; font-size: 14px; color: var(--muted); }

.checklist { margin-top: 28px; padding: 20px 24px; background: var(--bg-soft); border: 1px solid var(--line); }
.checklist h2 { font-size: 21px; margin-bottom: 10px; }
.checklist ol { padding-left: 22px; list-style: decimal; }
.checklist li { padding: 3px 0; font-size: 15.5px; color: var(--ink-2); }
.checklist li::marker { color: var(--red); font-weight: 600; }

.contact-map .label { margin-bottom: 10px; }
.contact-map .map, .contact-map iframe { min-height: 440px; }
.contact-map .button-row { margin-top: 12px; }

/* ---------- Contact band (above the footer) ---------- */

.contact-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px;
  padding: 40px var(--inline); background: var(--bg-soft); border-top: 1px solid var(--line);
}
.contact-band-text { flex: 1 1 360px; }
.contact-band h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.contact-band p { max-width: 60ch; font-size: 15px; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */

.site-footer { padding: 52px var(--inline) 28px; background: var(--dark); color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 32px; width: auto; }
.footer-legal-name { margin-top: 8px; font-size: 12px; color: var(--on-dark-muted); }
.footer-brand p:not(.footer-legal-name) { margin-top: 16px; max-width: 34ch; font-size: 14px; line-height: 1.65; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: var(--on-dark); text-decoration: none; font-size: 14px;
}
.social-btn:hover { color: #fff; border-color: #fff; }

.footer-col h2 {
  margin-bottom: 14px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}
.footer-col address { font-style: normal; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-contact span { font-size: 14px; color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 15px; height: 15px; color: var(--red-on-dark); }

.footer-bottom {
  display: grid; gap: 6px; padding-top: 22px;
  border-top: 1px solid var(--line-dark); font-size: 12.5px; color: var(--on-dark-muted);
}

/* ---------- 404 ---------- */

.nf-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.nf-header { position: static; }
.nf { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.nf-code {
  margin-bottom: 32px; font-size: clamp(88px, 14vw, 140px); line-height: 1;
  color: var(--red); text-align: center;
}
.nf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nf-block {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 22px 24px; border: 1px solid var(--line); border-top: 3px solid var(--ink);
}
.nf-block h2 { font-size: 22px; }
.nf-block p { flex: 1; font-size: 15px; color: var(--muted); }
.nf-block .button-row { margin-top: 8px; }
.nf-footer { padding: 22px var(--inline); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Lao, Chinese and Vietnamese typography ----------
   Lao and Chinese headings fall through to Noto, which has no condensed cut, so
   they are set a little smaller. Negative tracking pulls Lao marks away from
   their consonants, and Lao and Vietnamese stack marks above and below, so they
   need more leading. */

:is(h1, h2, h3):is(:lang(lo), :lang(zh)) { letter-spacing: normal; }
:is(h1, h2, h3):lang(lo) { line-height: 1.45; }
:is(h1, h2, h3):lang(zh) { line-height: 1.3; }
:is(h1, h2, h3):lang(vi) { line-height: 1.25; }
.hero h1:lang(lo) { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.4; }
.hero h1:lang(zh) { font-size: clamp(32px, 4vw, 50px); line-height: 1.25; }
.hero h1:lang(vi) { line-height: 1.12; }
.page-head h1:is(:lang(lo), :lang(zh)) { font-size: clamp(26px, 3vw, 38px); }
.product-main h1:is(:lang(lo), :lang(zh)) { font-size: clamp(26px, 3vw, 36px); }
.label:is(:lang(lo), :lang(zh)), .footer-col h2:is(:lang(lo), :lang(zh)) { letter-spacing: 0.02em; }

/* ---------- Responsive ----------
   Phones up to 640px, iPad portrait 744-834px, iPad landscape 1024-1366px. */

@media (max-width: 1200px) {
  .catalogue-main .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .doc { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .site-header { gap: 20px; }
  .nav-links a { padding: 0 10px; }
  .nav-links a[aria-current]::after { left: 10px; right: 10px; }
  .header-search { width: 240px; }
}

@media (max-width: 1000px) {
  .topbar-info span + span { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }

  /* Burger menu: links and search drop down under the header. */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 4px var(--gutter) 18px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(22, 25, 30, 0.1);
  }
  .main-nav.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { height: auto; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a[aria-current] { color: var(--red); }
  .nav-links a[aria-current]::after { display: none; }
  .header-search { width: 100%; }
  .header-search input { height: 46px; font-size: 16px; }
  .header-search button { height: 46px; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 40px; padding-bottom: 48px; }
  .quote { max-width: 620px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showroom { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  /* The category list turns into one row that scrolls sideways. */
  .catalogue { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .cat-nav { position: static; margin: 0 calc(-1 * var(--gutter)); }
  .cat-nav .label { display: none; }
  .cat-nav ul {
    display: flex; gap: 6px; overflow-x: auto; border: 0;
    padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cat-nav ul::-webkit-scrollbar { display: none; }
  .cat-nav li { flex: none; }
  .cat-nav a {
    gap: 6px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
    white-space: nowrap; font-size: 14px;
  }
  .cat-nav a[aria-current] { border-color: var(--ink); background: var(--ink); color: #fff; }
  .cat-nav a[aria-current] .count { color: var(--on-dark); }
  .catalogue-main .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .product { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; }
  .aside-box { position: static; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; }
}

@media (max-width: 640px) {
  .topbar { font-size: 12.5px; }
  .topbar-info, .topbar .topbar-email { display: none; }
  .topbar-links { flex: 1; justify-content: space-between; }

  .logo img { height: 25px; }
  .logo-legal { font-size: 9.5px; }

  .hero { padding-top: 32px; padding-bottom: 40px; }
  .hero-lead { font-size: 16px; margin-bottom: 22px; }
  .finder { flex-wrap: wrap; }
  .finder > .icon { display: none; }
  .finder input { flex: 1 1 100%; height: 52px; font-size: 16px; }
  .finder button { flex: 1 1 100%; min-height: 46px; margin: 0 5px 5px; }
  .quote { padding: 20px 18px; }

  .section { padding-top: 40px; padding-bottom: 40px; }
  .grid, .catalogue-main .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 11px 12px; }
  .card-name { font-size: 14px; }
  .card-ref { font-size: 10.5px; letter-spacing: 0.04em; }
  .cat-grid { gap: 8px; }
  .cat-tile { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 6px 8px 6px 6px; }
  .cat-name { font-size: 13.5px; }
  .cat-count { font-size: 12px; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-tile { min-height: 84px; padding: 12px 6px; }
  .logo-tile img { height: 28px; }
  .logo-tile.name-only span { font-size: 18px; }

  .facts > div, .aside-box .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .map, .map iframe, .contact-map .map, .contact-map iframe { min-height: 300px; }
  .button-row .btn, .contact-actions .btn { flex: 1 1 100%; }
  .quote-actions { grid-template-columns: minmax(0, 1fr); }

  .page-head { padding-top: 16px; padding-bottom: 24px; }
  .page-lead { font-size: 16px; }
  .spec th { width: 45%; }
  .ask { padding: 18px; }
  .prose p { font-size: 16px; }

  .contact-band { padding-top: 32px; padding-bottom: 32px; }
  .contact-actions { width: 100%; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nf-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Bigger tap targets on touch screens. */
@media (pointer: coarse) {
  .footer-col ul { gap: 2px; }
  .footer-col a, .footer-contact span { padding: 8px 0; }
  .topbar-langs a { padding-top: 8px; padding-bottom: 8px; }
}
