/* ============================================================
   Sanqiu Bamboo — design system
   Warm paper, deep bamboo green, ochre accent. Generous whitespace.
   ============================================================ */

:root {
  --paper: #f7f4ec;
  --paper-2: #fcfaf5;
  --paper-3: #efeade;
  --ink: #1c221b;
  --ink-2: #46503f;
  --ink-3: #77806f;
  --bamboo: #2f4a2c;
  --bamboo-2: #3f5d38;
  --bamboo-soft: #e6ead9;
  --ochre: #a8792f;
  --ochre-soft: #f0e4cd;
  --line: rgba(28, 34, 27, 0.13);
  --line-soft: rgba(28, 34, 27, 0.07);

  --font-display: Georgia, "Songti SC", "Noto Serif SC", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { 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(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--bamboo); color: var(--paper-2); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ochre);
}

.lede { font-size: 1.06rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.86rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--bamboo);
  background: var(--bamboo);
  color: var(--paper-2);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--bamboo-2); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); }

.btn--light {
  background: transparent;
  color: var(--paper-2);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--light:hover { background: var(--paper-2); color: var(--ink); border-color: var(--paper-2); }

.btn--sm { padding: 11px 20px; font-size: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 14px; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 20px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease),
    box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-2);
}
.is-stuck .brand, .site-header:not(.on-dark) .brand { color: var(--ink); }

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}
.brand-name { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: 0.01em; line-height: 1.1; }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.25s var(--ease);
}
.is-stuck .nav a, .site-header:not(.on-dark) .nav a { color: var(--ink-2); }
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: #fff; }
.is-stuck .nav a:hover, .site-header:not(.on-dark) .nav a:hover { color: var(--ink); }

.header-tools { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  overflow: hidden;
}
.is-stuck .lang-toggle, .site-header:not(.on-dark) .lang-toggle { border-color: var(--line); }
.lang-toggle button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.is-stuck .lang-toggle button, .site-header:not(.on-dark) .lang-toggle button { color: var(--ink-3); }
.lang-toggle button[aria-pressed="true"] {
  background: var(--paper-2);
  color: var(--bamboo);
}
.is-stuck .lang-toggle button[aria-pressed="true"],
.site-header:not(.on-dark) .lang-toggle button[aria-pressed="true"] {
  background: var(--bamboo);
  color: var(--paper-2);
}

.header-cta { display: inline-flex; }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--paper-2);
  align-items: center;
  justify-content: center;
}
.is-stuck .burger, .site-header:not(.on-dark) .burger { color: var(--ink); }
.burger span { display: block; width: 16px; height: 1px; background: currentColor; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: currentColor;
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--paper-2);
  overflow: hidden;
  background: #2a2f26;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 22s ease-out forwards;
}
@keyframes heroDrift {
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 22, 15, 0.88) 0%,
    rgba(16, 22, 15, 0.5) 42%,
    rgba(16, 22, 15, 0.22) 72%,
    rgba(16, 22, 15, 0.4) 100%
  );
}
.hero-body {
  position: relative;
  z-index: 2;
  padding: 0 0 56px;
  width: 100%;
}
.hero h1 { max-width: 20ch; margin-bottom: 26px; }
.hero p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.72); }
.hero .eyebrow::before { background: rgba(255, 255, 255, 0.5); }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin-top: 46px;
}
.hero-stats div {
  padding: 22px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stats div:last-child { border-right: 0; }
.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}
.hero-stats b span { font-size: 0.85rem; opacity: 0.6; margin-left: 3px; }
.hero-stats small {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding: 150px 0 66px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.page-hero h1 { margin-bottom: 18px; }
.crumbs {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: 0.5; }

/* ---------- sections ---------- */

section { padding: 104px 0; }
.section--tight { padding: 74px 0; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--bamboo); color: var(--paper-2); }
.section--dark .lede { color: rgba(255, 255, 255, 0.78); }
.section--dark .eyebrow { color: var(--ochre-soft); }
.section--dark .eyebrow::before { background: var(--ochre-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 22ch; }
.section-head .lede { max-width: 42ch; }

/* ---------- category cards ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-grid .cat-card:first-child { grid-column: span 2; }

.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-3);
  min-height: 340px;
  color: var(--paper-2);
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.cat-card:hover img { transform: scale(1.05); }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 22, 15, 0.82), rgba(16, 22, 15, 0.05) 62%);
  transition: opacity 0.4s var(--ease);
}
.cat-card-body {
  position: relative;
  z-index: 2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 340px;
}
.cat-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.cat-card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}
.cat-card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), margin 0.4s var(--ease);
}
.cat-card:hover .cat-card-desc { max-height: 130px; opacity: 1; margin-top: 4px; }

/* ---------- product grid ---------- */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 26px;
}

.prod-card { display: block; }
.prod-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
  margin-bottom: 16px;
}
.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.prod-card:hover .prod-media img { transform: scale(1.045); }
.prod-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--paper-2);
  color: var(--bamboo);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.prod-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 8px;
}
.prod-name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.prod-card:hover .prod-name { color: var(--bamboo); }
.prod-short {
  font-size: 0.88rem;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- filter bar ---------- */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  padding: 8px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-radius: 100px;
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--bamboo);
  border-color: var(--bamboo);
  color: var(--paper-2);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  min-width: 230px;
}
.search-box input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  width: 100%;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box svg { flex: none; opacity: 0.45; }

.result-count { font-size: 0.8rem; color: var(--ink-3); }

/* ---------- product detail ---------- */

.pd-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  padding: 56px 0 84px;
  align-items: start;
}
.pd-gallery { position: sticky; top: 100px; }
.pd-main-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
  margin-bottom: 12px;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pd-thumbs button {
  padding: 0;
  border: 1px solid transparent;
  background: var(--paper-3);
  aspect-ratio: 1;
  overflow: hidden;
}
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; transition: opacity 0.3s; }
.pd-thumbs button:hover img, .pd-thumbs button[aria-pressed="true"] img { opacity: 1; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--bamboo); }

.pd-info h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 0 0 10px; }
.pd-tagline { color: var(--ochre); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px; }
.pd-desc { color: var(--ink-2); margin: 22px 0 30px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 30px; }
.spec-table tr { border-top: 1px solid var(--line-soft); }
.spec-table tr:first-child { border-top: 1px solid var(--line); }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 0;
  font-size: 0.88rem;
  font-weight: 400;
  vertical-align: top;
}
.spec-table th { color: var(--ink-3); width: 44%; letter-spacing: 0.02em; }
.spec-table td { color: var(--ink); font-weight: 500; }
.spec-table tr:last-child { border-bottom: 1px solid var(--line); }

.pd-feats { list-style: none; padding: 0; margin: 0 0 32px; }
.pd-feats li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.pd-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ochre);
  transform: rotate(45deg);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-bottom: 30px;
}
.trust-strip div { background: var(--paper-2); padding: 16px 14px; }
.trust-strip b { display: block; font-size: 0.9rem; }
.trust-strip small { font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.04em; }

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- long-form content ---------- */

.prose { max-width: 68ch; }
.prose h3 { margin: 40px 0 14px; }
.prose p { color: var(--ink-2); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- process steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
.step { background: var(--paper); padding: 34px 26px 40px; }
.section--paper2 .step { background: var(--paper-2); }
.step-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ochre);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.step h4 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.88rem; color: var(--ink-2); margin: 0; }

/* ---------- values / feature blocks ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 40px; }
.feature h3 { margin-bottom: 12px; font-size: 1.2rem; }
.feature p { font-size: 0.9rem; color: var(--ink-2); }
.feature-idx {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ochre);
  margin-bottom: 14px;
  display: block;
}

/* ---------- cert strip ---------- */

.cert-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.cert { background: var(--paper-2); padding: 26px 20px; text-align: center; }
.cert b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.cert small { font-size: 0.7rem; color: var(--ink-3); line-height: 1.4; display: block; }

/* ---------- CTA band ---------- */

.cta-band { position: relative; overflow: hidden; color: var(--paper-2); background: #232a20; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 84px 0; flex-wrap: wrap; }
.cta-inner h2 { max-width: 26ch; }

/* ---------- forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.92rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bamboo); background: #fff; }
.field input:invalid:not(:placeholder-shown) { border-color: #b4553f; }
.form-note { font-size: 0.78rem; color: var(--ink-3); margin-top: 14px; }
.form-msg {
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 0.88rem;
  border-left: 2px solid var(--bamboo);
  background: var(--bamboo-soft);
  color: var(--bamboo);
  display: none;
}
.form-msg.is-error { border-color: #b4553f; background: #f6e3dc; color: #8f3d2a; }
.form-msg.is-visible { display: block; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- contact layout ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 76px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { border-top: 1px solid var(--line); padding: 22px 0; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.contact-list dd { margin: 0; font-size: 1rem; }
.contact-list dd a:hover { color: var(--bamboo); }

/* ---------- FAQ ---------- */

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
}
.faq-q i { flex: none; font-style: normal; color: var(--ochre); transition: transform 0.3s var(--ease); }
.faq-item.is-open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 24px; color: var(--ink-2); max-width: 74ch; font-size: 0.94rem; }

/* ---------- footer ---------- */

.site-footer { background: #1a2018; color: rgba(255, 255, 255, 0.7); padding: 76px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 0.9rem; transition: color 0.25s; }
.footer-links a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; max-width: 34ch; color: rgba(255, 255, 255, 0.6); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- floating whatsapp ---------- */

.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 13px 18px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.float-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); }
@media (max-width: 640px) { .float-wa span { display: none; } .float-wa { padding: 14px; } }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- language switching ---------- */

html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .pd-layout { grid-template-columns: 1fr; gap: 40px; }
  .pd-gallery { position: static; }
  .split { gap: 44px; }
  .contact-grid { gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid .cat-card:first-child { grid-column: span 2; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .hero { min-height: 88vh; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }

  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    padding: 80px 32px;
    gap: 6px;
    z-index: 95;
  }
  .nav.is-open a { color: var(--ink); font-size: 1.2rem; font-family: var(--font-display); text-transform: none; letter-spacing: 0; }
  .nav.is-open a::after { display: none; }
}

@media (max-width: 640px) {
  .prod-grid, .cat-grid, .feature-grid { grid-template-columns: 1fr; }
  .cat-grid .cat-card:first-child { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
  .page-hero { padding: 120px 0 48px; }
  .trust-strip { grid-template-columns: 1fr; }
}

/* ---------- admin ---------- */

.admin-shell { padding: 130px 0 90px; min-height: 70vh; }
.admin-card { background: var(--paper-2); border: 1px solid var(--line); padding: 34px; }
.admin-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
  white-space: nowrap;
}
.admin-table td { border-bottom: 1px solid var(--line-soft); padding: 14px 12px 14px 0; vertical-align: top; }
.admin-table tr:hover td { background: rgba(47, 74, 44, 0.03); }
.status-pill {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  white-space: nowrap;
}
.status-pill[data-s="new"] { background: var(--ochre-soft); border-color: transparent; color: #7d5718; }
.status-pill[data-s="quoted"] { background: var(--bamboo-soft); border-color: transparent; color: var(--bamboo); }
.status-pill[data-s="closed"] { background: #e8e6e1; border-color: transparent; color: var(--ink-3); }
