/* ==========================================================================
   Zhili Storefront — design system
   1. Tokens
   2. Reset & base
   3. Layout primitives
   4. Buttons & links
   5. Header
   6. Hero
   7. Collection
   8. Capability
   9. Process
   10. About
   11. Enquiry
   12. Footer
   13. Product detail
   14. Catalogue
   15. Forms (Fluent Forms)
   16. Utility pages
   17. Reveal & responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand marks sampled from the original logo. */
  --blue:       #0E339D;
  --blue-2:     #0A2A80;
  --red:        #C74140;
  --red-2:      #A83231;

  /* Neutrals derived from the brand blue so nothing fights it. */
  --ink:        #0A1733;
  --ink-2:      #0E2A6B;
  --ink-3:      #33456B;
  --ink-4:      #5A6B8C;
  --line:       #C9D4E8;
  --line-soft:  #DCE3F0;
  --paper:      #F6F7FB;
  --paper-2:    #E9EDF6;
  --tint:       #E8EEF9;
  --white:      #FFFFFF;

  /* Action colour. Every primary button is a quote action, so the accent
     stays reserved for exactly that. */
  --accent:     #C74140;
  --accent-2:   #A83231;

  --serif: "Instrument Serif", "Noto Serif SC", Georgia, serif;
  --sans:  "Inter", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: 40px;
  --section-y: clamp(72px, 9vw, 132px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -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; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 18px; background: var(--blue); color: #FFFFFF;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Chinese typography */
html[lang="zh-CN"] body { font-family: "Noto Sans SC", var(--sans); line-height: 1.85; }
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] .display { font-family: "Noto Serif SC", var(--serif); letter-spacing: .01em; }
html[lang="zh-CN"] h1 { line-height: 1.28; }
html[lang="zh-CN"] h2 { line-height: 1.32; }
html[lang="zh-CN"] .kicker { letter-spacing: .12em; }
html[lang="zh-CN"] .btn { letter-spacing: .1em; }

/* 3. Layout primitives ----------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.section { padding-block: var(--section-y); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { font-weight: 400; }
h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.9vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.lede { color: var(--ink-3); font-size: 1.0625rem; max-width: 34em; }
.small { font-size: .875rem; color: var(--ink-3); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(36px, 4vw, 58px);
}
.section-head .kicker { margin-bottom: 18px; }
.section-head h2 { max-width: 15em; }
.section-head-side {
  max-width: 24em; color: var(--ink-3);
  font-size: .9375rem; padding-bottom: 6px;
}

/* 4. Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 15px 26px;
  background: var(--red); color: #FFFFFF;
  border: 1px solid var(--red);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--red-2); border-color: var(--red-2); }
.btn svg { transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--blue); color: var(--blue); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8125rem; font-weight: 600;
  border-bottom: 1px solid var(--ink-4); padding-bottom: 3px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--blue); color: var(--blue); gap: .9em; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 34px; height: auto; object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-text strong {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.brand-text span {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-4); margin-top: 2px;
}
html[lang="zh-CN"] .brand-text span { letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a {
  position: relative; font-size: .8125rem; font-weight: 500;
  color: var(--ink-2); padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-quote { display: none; }

.header-tools { display: flex; align-items: center; gap: 18px; flex: none; }
.lang-switch { border: 1px solid var(--line); }
.lang-switch a {
  display: block; padding: 7px 11px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em;
  color: var(--ink-3);
  transition: background .25s, color .25s;
}
.lang-switch a:hover { background: var(--blue); color: #FFFFFF; }
.header-cta { padding: 11px 18px; font-size: .6875rem; }

.menu-toggle {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.menu-toggle span { display: block; width: 16px; height: 1px; background: var(--ink); position: relative; }
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--ink);
}
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  padding-block: clamp(48px, 6vw, 84px) clamp(56px, 7vw, 96px);
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.hero-grid { align-items: center; row-gap: 48px; }
.hero-copy { grid-column: 1 / 6; }
.hero-plate { grid-column: 7 / 13; }

.eyebrow-line { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.eyebrow-line::before { content: ""; width: 34px; height: 1px; background: var(--ink-4); flex: none; }

h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.35rem);
  line-height: 1.02; letter-spacing: -.022em; text-wrap: balance;
}
h1 em { font-style: italic; }
.hero-lede { margin-top: 26px; max-width: 30em; color: var(--ink-3); font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 38px; }

.spec-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px; border-top: 1px solid var(--line); padding-top: 22px;
}
.spec { padding-right: 18px; }
.spec + .spec { border-left: 1px solid var(--line); padding-left: 22px; }
.spec b {
  display: block; font-family: var(--serif); font-size: clamp(1.15rem, 1.55vw, 1.6rem);
  font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums;
  white-space: nowrap; letter-spacing: -.01em; color: var(--blue);
}
.spec span {
  display: block; margin-top: 6px; font-size: .6875rem;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-4);
}
html[lang="zh-CN"] .spec span { letter-spacing: .06em; text-transform: none; font-size: .75rem; }

.plate {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 0; overflow: hidden; isolation: isolate;
}
.plate img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.plate:hover img { transform: scale(1.025); }
.plate-tag {
  position: absolute; top: 0; left: 0;
  display: flex; align-items: baseline; gap: 10px;
  padding: 13px 16px;
  font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(246, 247, 251, .94);
  backdrop-filter: blur(4px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plate-tag b { font-weight: 600; color: var(--ink); }
.plate-caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--ink-3);
  background: var(--white);
}
.plate-caption strong { min-width: 0; font-weight: 500; color: var(--ink); }
.plate-caption span { flex: none; white-space: nowrap; }
.plate-specs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 22px;
  padding: 13px 18px 15px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.plate-spec { display: inline-flex; align-items: baseline; gap: 7px; }
.plate-spec b {
  font-family: var(--serif); font-size: .9rem; font-weight: 400;
  line-height: 1.2; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plate-spec span { font-size: .6875rem; color: var(--ink-4); }
html[lang="zh-CN"] .plate-spec span { font-size: .75rem; }

/* 7. Collection ------------------------------------------------------------ */
.collection { border-top: 1px solid var(--line); background: var(--white); }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.product { display: block; }
.product-figure {
  position: relative; overflow: hidden;
  background: #E4E9F1; border: 1px solid var(--line);
  aspect-ratio: 1;
}
.product-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product:hover .product-figure img { transform: scale(1.055); }
.product-index {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  font-size: .6875rem; letter-spacing: .16em; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.product-meta {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding-top: 18px;
}
.product-name { display: flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 500; }
.swatch {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(14, 26, 36, .16); flex: none;
}
.product-desc { margin-top: 5px; font-size: .8125rem; color: var(--ink-4); }
.product-arrow {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-3); flex: none;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.product:hover .product-arrow { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }

.collection-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--ink-3);
}

/* 8. Capability ------------------------------------------------------------ */
.capability { background: var(--ink-2); color: #DCE6F7; overflow: hidden; }
.capability .kicker { color: #93A6C9; }
.capability h2 { color: #FFFFFF; }
.capability-grid { align-items: start; row-gap: 56px; }
.capability-copy { grid-column: 1 / 6; }
.capability-copy h2 { margin-bottom: 24px; max-width: 11em; }
.capability-copy > p { color: #C3D1EC; max-width: 27em; font-size: .9375rem; }
.capability-copy .kicker { margin-bottom: 18px; }

.cap-list { margin-top: 46px; border-top: 1px solid rgba(255, 255, 255, .18); }
.cap-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 4px 16px;
  padding: 19px 0; border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.cap-item > span {
  font-size: .6875rem; letter-spacing: .12em; color: #93A6C9;
  padding-top: 4px; font-variant-numeric: tabular-nums;
}
.cap-item h3 { font-size: .9375rem; font-weight: 500; color: #FFFFFF; letter-spacing: .01em; }
.cap-item p { grid-column: 2; font-size: .8125rem; color: #B9C7E4; margin-top: 3px; }

.samples {
  grid-column: 7 / 13;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start;
}
.sample { background: #FFFFFF; padding: 12px 12px 14px; border: 1px solid rgba(255,255,255,.14); }
.sample img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sample-info {
  display: flex; align-items: center; gap: 7px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #E1E7F2;
}
.sample-info b { min-width: 0; font-size: .75rem; font-weight: 500; color: var(--ink); }
.sample-info small {
  flex: none; white-space: nowrap;
  font-size: .6875rem; color: var(--ink-4); margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.sample--custom {
  background: transparent; border: 1px dashed rgba(255, 255, 255, .30);
  display: flex; flex-direction: column; justify-content: space-between;
}
.sample--custom .plus {
  flex: 1; display: grid; place-items: center;
  font-family: var(--serif); font-size: 2rem; color: #8FA4CC; font-weight: 300;
}
.sample--custom span {
  font-size: .6875rem; color: #B9C7E4; letter-spacing: .05em;
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18);
}

/* 9. Process --------------------------------------------------------------- */
#process { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.step { padding: 0 26px 0 0; }
.step + .step { border-left: 1px solid var(--line); padding-left: 26px; }
.step-num {
  display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1;
  color: var(--blue); font-variant-numeric: tabular-nums; margin-bottom: 26px;
}
.step h3 { font-size: .9375rem; font-weight: 500; margin-bottom: 8px; }
.step p { font-size: .8125rem; color: var(--ink-3); max-width: 17em; }

/* 10. About ---------------------------------------------------------------- */
.about-grid { align-items: center; row-gap: 48px; }
.about-copy { grid-column: 1 / 6; }
.about-media { grid-column: 7 / 13; }
.about-copy h2 { margin: 16px 0 24px; max-width: 12em; }
.about-copy p { color: var(--ink-3); max-width: 30em; }
.about-facts { margin-top: 34px; border-top: 1px solid var(--line); }
.about-facts div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .8125rem;
}
.about-facts span { color: var(--ink-4); }
.about-facts b { font-weight: 500; }

/* Workshop gallery */
.factory { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.factory-gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 20px; margin-top: 14px;
}
.factory-shot { background: transparent; overflow: hidden; }
.factory-shot img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 1s var(--ease);
}
.factory-shot:hover img { transform: scale(1.025); }
.factory-shot figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line);
  font-size: .75rem; color: var(--ink-3);
}
.factory-shot figcaption b { font-weight: 500; }
.factory-shot figcaption small {
  font-size: .625rem; letter-spacing: .14em; color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

/* Compliance & verification (FAQ) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-family: var(--serif); font-size: 1.4rem;
  line-height: 1; color: var(--blue); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 24px; color: var(--ink-3); font-size: .9375rem; max-width: 46em; }
.faq-answer p { margin: 0; }

/* 11. Enquiry -------------------------------------------------------------- */
.enquiry { background: var(--paper-2); border-top: 1px solid var(--line); }
.enquiry-grid { align-items: start; row-gap: 44px; }
.enquiry-copy { grid-column: 1 / 6; }
.enquiry-copy h2 { margin: 16px 0 22px; max-width: 11em; }
.enquiry-copy p { color: var(--ink-3); max-width: 26em; }
.contact-lines { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-lines div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .8125rem;
}
.contact-lines span { color: var(--ink-4); }
.form-card {
  grid-column: 7 / 13; background: var(--white);
  border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px);
}
.form-note { font-size: .6875rem; color: var(--ink-4); margin-top: 16px; line-height: 1.6; }

/* 12. Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink-2); color: #C6D3EA; padding-block: 68px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.brand--footer .brand-text strong { color: #FFFFFF; }
.brand--footer .brand-text span { color: #93A6C9; }
.footer-brand p { margin-top: 20px; font-size: .8125rem; color: #B9C7E4; max-width: 22em; line-height: 1.7; }
.footer-col h4 {
  font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase;
  color: #93A6C9; font-weight: 600; margin-bottom: 18px;
}
html[lang="zh-CN"] .footer-col h4 { letter-spacing: .1em; }
.footer-col a {
  display: block; font-size: .8125rem; color: #C6D3EA;
  padding-block: 5px; transition: color .25s;
}
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .6875rem; color: #93A6C9;
}
.footer-bottom-links a { color: #C6D3EA; }
.footer-bottom-links span { margin-inline: 6px; }

/* 13. Product detail ------------------------------------------------------- */
.page-head { padding-block: clamp(36px, 4vw, 56px) 0; }
.breadcrumb {
  display: flex; gap: 8px; font-size: .75rem; color: var(--ink-4);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--ink); }

.product-detail { padding-block: 40px var(--section-y); }
.product-detail-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.product-gallery { display: grid; gap: 12px; }
.product-gallery-main {
  background: #FFFFFF; border: 1px solid var(--line);
  aspect-ratio: 1; overflow: hidden; isolation: isolate;
}
.product-gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product-thumb {
  padding: 0; background: #FFFFFF; border: 1px solid var(--line);
  cursor: pointer; overflow: hidden; aspect-ratio: 1;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb[aria-pressed="true"] { border-color: var(--ink-2); }

.product-info h1 { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.12; }
.product-info .kicker { margin-bottom: 14px; }
.product-summary { margin-top: 20px; color: var(--ink-3); max-width: 30em; }
.product-colours { margin-top: 30px; }
.product-colours h2 {
  font-family: var(--sans); font-size: .6875rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px;
}
.colour-row { display: flex; flex-wrap: wrap; gap: 10px; }
.colour-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line);
  font-size: .75rem; color: var(--ink-2); background: var(--white);
}
.colour-chip i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(14,26,36,.16); }
.product-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.product-specs { margin-top: 40px; border-top: 1px solid var(--line); }
.product-specs dl { margin: 0; }
.product-specs div {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .8125rem;
}
.product-specs dt { color: var(--ink-4); }
.product-specs dd { color: var(--ink); margin: 0; }
.product-spec-links {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 20px; font-size: .75rem;
}

.product-body {
  max-width: 46rem; margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line);
  color: var(--ink-3);
}
.product-body h2 { margin-bottom: 18px; color: var(--ink); }
.product-body p { margin-bottom: 18px; }
.related { padding-block: 0 var(--section-y); }

/* 14. Catalogue ------------------------------------------------------------ */
.catalogue-head { padding-block: clamp(40px, 5vw, 72px) 0; }
.catalogue-head h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); }
.catalogue-lede { margin-top: 20px; max-width: 34em; color: var(--ink-3); }
.catalogue { padding-block: clamp(40px, 5vw, 64px) var(--section-y); }
.catalogue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.catalogue-empty {
  padding: 64px 0; border-top: 1px solid var(--line); color: var(--ink-3);
}

/* 15. Forms (Fluent Forms) ------------------------------------------------- */
.fluentform { --ff-primary: var(--ink-2); }
.fluentform .ff-el-group { margin-bottom: 20px; }
.fluentform .ff-el-input--label label,
.fluentform label {
  display: block; font-size: .6875rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
  font-weight: 400;
}
html[lang="zh-CN"] .fluentform label { letter-spacing: .05em; text-transform: none; font-size: .75rem; }
.fluentform .ff-el-form-control,
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform textarea,
.fluentform select {
  width: 100%; padding: 12px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; font-family: inherit; font-size: .9375rem;
  color: var(--ink); box-shadow: none;
  transition: border-color .3s var(--ease);
}
.fluentform .ff-el-form-control:focus,
.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus {
  outline: 0; border-bottom-color: var(--ink); box-shadow: none;
}
.fluentform textarea { min-height: 74px; resize: vertical; border: 0; border-bottom: 1px solid var(--line); }
.fluentform .ff-el-input--content textarea,
.fluentform .ff-el-form-control { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.fluentform textarea:focus { border: 0; border-bottom-color: var(--ink); }
.fluentform .ff-btn-submit {
  width: 100%; display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border: 1px solid var(--red); border-radius: 0;
  background: var(--red); color: #FFFFFF;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: background .35s var(--ease);
}
.fluentform .ff-btn-submit:hover { background: var(--red-2); }
.fluentform .ff-el-is-error .ff-el-form-control { border-bottom-color: var(--accent); }
.fluentform .error { font-size: .75rem; color: var(--accent); margin-top: 6px; }
.fluentform .ff-message-success {
  border: 0; border-left: 2px solid var(--accent);
  background: transparent; padding: 12px 0 12px 16px; color: var(--ink-2);
}
.ff-errors-in-stack { font-size: .8125rem; color: var(--accent); }

.fluentform .form-privacy { margin: 2px 0 10px; font-size: .8125rem; color: var(--ink-4); line-height: 1.6; }
.fluentform .form-privacy a { color: var(--ink-3); border-bottom: 1px solid var(--line); }
.fluentform .ff-el-form-check-label {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .875rem; color: var(--ink-3); line-height: 1.6; cursor: pointer;
  text-transform: none; letter-spacing: 0; font-weight: 400; margin-bottom: 0;
}
.fluentform .ff-el-form-check-input { margin: 4px 0 0; flex: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* 16. Utility pages -------------------------------------------------------- */
.entry-fallback { padding-block: var(--section-y); }
.entry-fallback .entry-content { max-width: 44rem; color: var(--ink-3); }
.entry-fallback h1 { margin-bottom: 24px; }
.entry-content p { margin-bottom: 18px; }
.entry-content a { border-bottom: 1px solid var(--ink-4); }
/* Long-form legal text takes a document heading scale, not the display one. */
.entry-fallback .entry-content h2 {
  font-size: 1.375rem; line-height: 1.3; letter-spacing: -.01em;
  color: var(--ink); margin: 38px 0 10px; text-wrap: pretty;
}
.entry-fallback .entry-content h3 {
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  color: var(--ink); margin: 26px 0 8px;
}
.entry-fallback .entry-content ul,
.entry-fallback .entry-content ol { margin: 0 0 18px; padding-left: 1.2em; }
.entry-fallback .entry-content li { margin-bottom: 6px; }
.not-found { padding-block: clamp(80px, 12vw, 160px); }
.not-found h1 { margin-bottom: 20px; }
.search-form { display: flex; gap: 10px; margin-top: 28px; max-width: 26rem; }
.search-form input[type="search"] {
  flex: 1; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font: inherit; color: var(--ink);
}
.search-form button { padding: 12px 20px; background: var(--blue); color: #FFFFFF; border: 0; cursor: pointer; }

/* 17. Reveal & responsive -------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .header-inner { gap: 20px; }
  .nav { gap: 18px; }
  .hero-copy { grid-column: 1 / 7; }
  .hero-plate { grid-column: 7 / 13; }
}

/* Six nav items plus the quote button need more room than 900px allowed. */
@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .site-header.nav-open .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .nav a {
    display: block; padding: 13px 0; width: 100%;
    border-bottom: 1px solid var(--line-soft);
    font-size: .9375rem;
  }
  .site-header.nav-open .nav .nav-quote { display: block; color: var(--blue); font-weight: 600; }
  .site-header.nav-open .nav a::after { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head-side { padding-bottom: 0; }

  .hero-copy, .hero-plate { grid-column: 1 / -1; }
  h1 { font-size: clamp(2.15rem, 8.4vw, 3rem); }
  .spec-strip { margin-top: 40px; }

  .collection-grid, .catalogue-grid { grid-template-columns: 1fr; gap: 34px; }
  .product-figure { aspect-ratio: 1 / .92; }

  .capability-copy, .samples { grid-column: 1 / -1; }
  .samples { gap: 10px; }

  .process-steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(odd) { padding-right: 20px; }

  .about-copy, .about-media { grid-column: 1 / -1; }
  .about-media { order: -1; }
  .factory-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }

  .enquiry-copy, .form-card { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { order: -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --section-y: 64px; }
  .header-inner { height: 66px; gap: 16px; }
  .brand-mark { width: 28px; height: auto; }
  .brand-text strong { font-size: 1rem; letter-spacing: .12em; }
  .brand-text span { font-size: 8px; }
  .lang-switch a { padding: 6px 8px; }

  .spec-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec { padding: 0 10px 0 0; }
  .spec + .spec { border-left: 1px solid var(--line); padding-left: 12px; }
  .spec b { font-size: clamp(.95rem, 4vw, 1.2rem); letter-spacing: -.02em; white-space: nowrap; }
  .spec span { margin-top: 3px; font-size: .6875rem; letter-spacing: .05em; line-height: 1.4; }

  .hero-actions { gap: 16px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .link-arrow { padding-block: 6px; }
  .plate-tag { padding: 11px 13px; font-size: .6875rem; }
  .collection-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sample--custom { min-height: 170px; }
  .process-steps { grid-template-columns: 1fr; row-gap: 0; }
  .step, .step + .step { border-left: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .step-num { font-size: 1.9rem; margin-bottom: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .factory-gallery { grid-template-columns: 1fr; }
  .footer-brand { margin-bottom: 8px; }
  .product-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-specs div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Related products stay in a fixed track grid so a single item does not
   stretch across the full container. */
.related .collection-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }


.floating-social {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  gap: 8px;
}

.floating-social-link {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 24px;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
}

.floating-social-whatsapp { background: #176b4b; }
.floating-social-facebook { background: #1756aa; }
.floating-social-link:hover { color: #fff; filter: brightness(.9); }
.floating-social-link:focus-visible { outline: 2px solid #182333; outline-offset: 3px; }

.catalogue-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}

.catalogue-filters label {
  display: grid;
  gap: 6px;
  max-width: 100%;
}

.catalogue-filters input,
.catalogue-filters select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  border: 1px solid var(--line);
  background: white;
}

/* 18. Resource pages (shipping, customization) ------------------------------ */
.resource-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.resource-hero h1 { max-width: 16em; margin-top: 16px; }
.resource-intro { max-width: 40em; margin-top: 22px; color: var(--ink-3); font-size: 1.0625rem; }
.resource-intro p { margin-bottom: 14px; }

.process-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.data-table th {
  padding: 0 18px 12px 0; border-bottom: 1px solid var(--line);
  text-align: left; white-space: nowrap;
  font-size: .6875rem; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-4);
}
.data-table td {
  padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-3); white-space: nowrap; vertical-align: top;
}
.data-table td:first-child { color: var(--ink); white-space: normal; min-width: 20em; }
.data-table td:first-child a { border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.data-table td:first-child a:hover { border-bottom-color: var(--ink-4); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--tint) 45%, transparent); }
html[lang="zh-CN"] .data-table th { letter-spacing: .05em; }
.table-note { margin-top: 18px; font-size: .75rem; line-height: 1.7; color: var(--ink-4); max-width: 54em; }
.table-scroll-hint { display: none; margin-bottom: 14px; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }

.doc-list { border-top: 1px solid var(--line); }
.doc-list > div {
  display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, 1fr);
  gap: 28px; padding: 17px 0; border-bottom: 1px solid var(--line);
}
.doc-list dt { font-size: .875rem; font-weight: 500; color: var(--ink); }
.doc-list dd { margin: 0; font-size: .875rem; color: var(--ink-3); max-width: 44em; }

.note-box {
  margin-top: 30px; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--red);
  font-size: .875rem; color: var(--ink-3); max-width: 46em;
}

.option-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.option { background: var(--paper); padding: 28px 30px 30px; }
.option-meta {
  font-size: .6875rem; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
html[lang="zh-CN"] .option-meta { letter-spacing: .05em; }
.option h3 { font-size: .9375rem; font-weight: 500; margin-bottom: 8px; }
.option p { font-size: .8125rem; line-height: 1.7; color: var(--ink-3); max-width: 30em; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; border-top: 1px solid var(--line); padding-top: clamp(34px, 4vw, 52px);
}
.cta-band h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); max-width: 15em; }
.cta-band p { margin-top: 14px; color: var(--ink-3); font-size: .9375rem; max-width: 34em; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; flex: none; }

@media (max-width: 900px) {
  .process-steps--3 { grid-template-columns: 1fr 1fr; }
  .doc-list > div { grid-template-columns: 1fr; gap: 4px; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 26px; }
  .table-scroll-hint { display: block; }
}

@media (max-width: 560px) {
  .process-steps--3 { grid-template-columns: 1fr; row-gap: 0; }
  .option-grid { grid-template-columns: 1fr; }
  .option { padding: 24px 22px 26px; }
  .data-table th, .data-table td { padding-right: 14px; }
  .data-table td:first-child { min-width: 15em; }
  .cta-band { align-items: stretch; }
  .cta-actions { align-items: flex-start; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 720px) {
  /* This table is prose, not numbers: wrap it instead of swiping. */
  .data-table--text td, .data-table--text th { white-space: normal; }
  .data-table--text td:first-child { min-width: 0; width: 5.8em; }
  .data-table--text td:nth-child(2) { width: 3em; white-space: nowrap; }
}

.nowrap { white-space: nowrap; }

/* 19. Buyer guides --------------------------------------------------------- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  padding: 30px 28px 26px;
  background: var(--paper);
  color: var(--ink);
}
.guide-card:hover { background: color-mix(in srgb, var(--tint) 55%, var(--paper)); }
.guide-card .guide-no {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
  color: var(--ink-4); font-variant-numeric: tabular-nums;
}
.guide-card h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.18; max-width: 14em; text-wrap: balance;
}
.guide-card p { font-size: .875rem; line-height: 1.7; color: var(--ink-3); }
.guide-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4);
}
.guide-card-foot .link-arrow { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }

.guide-standfirst {
  max-width: 38em; margin-top: 20px;
  font-size: 1.125rem; line-height: 1.65; color: var(--ink-3);
}
.guide-meta {
  margin-top: 18px;
  font-size: .6875rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4);
}
.guide-section { padding-top: 0; }
.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.guide-toc {
  position: sticky; top: 110px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.guide-toc p {
  margin-bottom: 10px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-4);
}
.guide-toc a {
  display: block; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .8125rem; line-height: 1.45; color: var(--ink-3);
}
.guide-toc a:hover { color: var(--blue); }
.guide-body { max-width: 46em; }
.guide-body > p:first-of-type { font-size: 1.0625rem; color: var(--ink-2); }
.guide-body p { margin-bottom: 18px; line-height: 1.78; color: var(--ink-3); }
.guide-body h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.2; letter-spacing: -.01em;
  margin: 48px 0 14px; scroll-margin-top: 100px;
}
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 {
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  color: var(--ink); margin: 28px 0 8px;
}
.guide-body ul, .guide-body ol { margin: 0 0 20px; padding-left: 1.25em; color: var(--ink-3); }
.guide-body ul { list-style: disc; }
.guide-body ol { list-style: decimal; }
.guide-body li::marker { color: var(--blue); }
.guide-body li { margin-bottom: 8px; line-height: 1.7; }
.guide-body strong { color: var(--ink); font-weight: 500; }
.guide-body a { border-bottom: 1px solid var(--ink-4); }
.guide-body a:hover { color: var(--blue); border-color: var(--blue); }
.guide-body blockquote {
  margin: 30px 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--red);
  color: var(--ink-2);
}
.guide-body blockquote p { margin: 0; font-size: 1.0625rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .guides-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
}
