/*
Theme Name: Maibahe B2B
Theme URI: https://maroon-jaguar-996350.hostingersite.com
Author: Maibahe
Description: Multilingual B2B landing theme (EN/ES/FR/DE/NO) powered by Polylang.
Version: 2.0.0
Requires at least: 6.0
*/
/* ============================================================
   Maibahe B2B — style.css
   Design tokens from Maibahe Ardot design system
   Base layout 1440 → fluid up to 1920, responsive below
   ============================================================ */

:root {
  /* Colors */
  --bg-page: #FDF9F1;
  --bg-alt: #F5EDE2;
  --card: #FFFFFF;
  --ink: #2E221A;
  --ink-2: #5E4E34;
  --muted: #7C6A48;
  --border: #E4DCC8;
  --wheat: #A88640;
  --wheat-deep: #8A6C28;
  --wheat-deep-hover: #6E5420;
  --wheat-light: #E4C46C;
  --green: #487248;
  --dark: #1A1410;
  --dark-card: #2E221A;
  --dark-icon-bg: #3C2F24;
  --dark-border: #4A3C28;
  --cream: #FAF4E8;
  --on-dark-muted: #B8A484;
  --footer-dim: #8A7A5E;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", "Helvetica Neue", system-ui, sans-serif;

  /* Rhythm */
  --section-pad: clamp(56px, 6.1vw, 88px);
  --radius-card: 16px;
  --radius-inner: 14px;
  --shadow-form: 0 12px 32px -8px rgba(46, 34, 26, 0.08);

  --header-h: 78px;

  /* Motion — soft, premium deceleration */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container { width: 86.67%; max-width: 1664px; margin-inline: auto; }

/* Anchor offset for sticky header */
section[id], div[id="main"] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark); color: var(--cream);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--wheat); outline-offset: 2px; border-radius: 4px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  color: var(--wheat-deep);
}
.eyebrow-dash { width: 30px; height: 2px; background: var(--wheat); flex: none; }
.eyebrow-light { color: var(--wheat-light); }
.eyebrow-light .eyebrow-dash { background: var(--wheat-light); }

.section { padding-block: var(--section-pad); }
.section-header { max-width: 760px; display: grid; gap: 14px; margin-bottom: clamp(32px, 3vw, 44px); }
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 2.64vw, 48px); line-height: 1.21;
  color: var(--ink);
}
.section-sub { font-size: 15px; line-height: 1.6; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--wheat-deep); color: #fff; }
.btn-primary:hover { background: var(--wheat-deep-hover); }
.btn-ghost { border: 1.5px solid rgba(250, 244, 232, .7); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(250, 244, 232, .08); }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-header { padding: 12px 24px; font-size: 14px; }
.btn-block { width: 100%; }

.icon-wrap {
  width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-radius: 999px; color: var(--ink-2);
}
.icon-wrap svg { width: 24px; height: 24px; }
.icon-wrap-dark { background: var(--dark-icon-bg); color: var(--wheat-light); }
.icon-wrap-white { background: var(--card); }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); padding-block: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-msg { font-size: 12px; font-weight: 500; color: var(--cream); }
.topbar-tags { font-size: 12px; font-weight: 600; color: var(--wheat-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--card); border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(46, 34, 26, .18); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: grid; gap: 1px; margin-right: auto; }
.brand-wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; letter-spacing: 3px; color: var(--ink); line-height: 1.1;
}
.brand-subline { font-size: 10px; font-weight: 500; letter-spacing: 2px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding-block: 6px; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--wheat); transition: right .25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background-color .22s ease, box-shadow .22s ease;
}
/* 状态 2 · hover：轻微放大 + 品牌色底 + 线条变色 */
.nav-toggle:hover {
  transform: scale(1.08);
  background-color: rgba(168, 134, 64, .14);
  box-shadow: 0 2px 10px rgba(138, 108, 40, .18);
}
.nav-toggle:hover span { background: var(--wheat-deep); }
/* 状态 3 · active(按下)：回弹压缩 */
.nav-toggle:active {
  transform: scale(.92);
  transition-duration: .12s;
}
/* 状态 4 · open(菜单激活)：线条变 X + 保持品牌色底 */
body.nav-open .nav-toggle { background-color: rgba(168, 134, 64, .16); }
body.nav-open .nav-toggle span { background: var(--wheat-deep); }
/* 键盘可达性焦点环 */
.nav-toggle:focus-visible {
  outline: 2px solid var(--wheat-deep);
  outline-offset: 2px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink);
  margin-block: 5px; border-radius: 2px;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease, background-color .22s ease;
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; list-style: none; user-select: none;
  transition: border-color .2s ease, color .2s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--wheat); color: var(--ink); }
.lang-switch summary svg { width: 16px; height: 16px; }
.lang-switch .lang-chevron { width: 13px; height: 13px; transition: transform .25s ease; }
.lang-switch[open] .lang-chevron { transform: rotate(180deg); }
.lang-switch[open] summary { border-color: var(--wheat); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
  min-width: 148px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 40px -16px rgba(46, 34, 26, .22);
  padding: 6px; display: grid; gap: 2px;
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.lang-menu a:hover { background: var(--bg-alt); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--wheat-deep); font-weight: 600; }
.lang-menu a[aria-current="true"]::after {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--wheat);
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(660px, 92svh); display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(26, 20, 16, .9) 0%,
    rgba(26, 20, 16, .55) 52%,
    rgba(26, 20, 16, .12) 100%);
}
.hero-content { position: relative; z-index: 1; display: grid; gap: 22px; padding-block: 72px; max-width: none; }
.hero-content > * { max-width: 640px; }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 3.75vw, 68px); line-height: 1.15;
  color: var(--cream); text-wrap: balance;
}
.hero-sub { font-size: clamp(15px, 1.11vw, 16.5px); line-height: 1.63; color: var(--border); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-chips { font-size: 12.5px; font-weight: 500; color: var(--wheat-light); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); padding-block: 44px; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: grid; gap: 4px; align-content: center; padding-inline: 40px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 2.78vw, 46px); line-height: 1.1; color: var(--wheat-deep);
}
.stat-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ---------- Products ---------- */
.products { background: var(--bg-page); }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 2px 6px -2px rgba(46, 34, 26, .05), 0 10px 28px -18px rgba(46, 34, 26, .08);
  transition: transform .55s var(--ease-soft), box-shadow .75s var(--ease-soft);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px -4px rgba(46, 34, 26, .07), 0 26px 56px -24px rgba(46, 34, 26, .18);
}
.product-card img {
  width: 100%; aspect-ratio: 230 / 168; object-fit: cover;
  transition: transform .9s var(--ease-soft);
  will-change: transform;
}
.product-card:hover img { transform: scale(1.045); }
.product-body { padding: 18px; display: grid; gap: 8px; }
.product-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); }
.product-body p { font-size: 12.5px; line-height: 1.52; color: var(--muted); }
.product-tags { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--wheat-deep); }

/* ---------- Why ---------- */
.why { background: var(--bg-alt); }
.why-inner { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 64px; align-items: start; }
.why-intro { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--wheat-deep);
}
.text-link svg { transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 26px; display: grid; gap: 12px; align-content: start;
}
.value-card h3 { font-size: 17px; font-weight: 600; color: var(--ink); }
.value-card p { font-size: 13px; line-height: 1.54; color: var(--muted); }

/* ---------- Origins ---------- */
.origins { background: var(--dark); }
.origins .section-title { color: var(--cream); }
.origins .section-sub { color: var(--border); }
.origin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.origin-card {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: var(--radius-card); padding: 24px; display: grid; gap: 10px; align-content: start;
}
.origin-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--cream); }
.origin-meta { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--wheat-light); }
.origin-desc { font-size: 12.5px; line-height: 1.52; color: var(--on-dark-muted); }

/* ---------- Quality ---------- */
.quality { background: var(--bg-page); }
.quality-inner { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; gap: 64px; align-items: start; }
.quality-intro { display: grid; gap: 18px; }
.research-note {
  display: flex; gap: 14px; align-items: center;
  background: var(--bg-alt); border-radius: var(--radius-card); padding: 20px;
}
.research-note h3 { font-size: 14px; font-weight: 600; color: var(--ink); }
.research-note p { font-size: 12.5px; line-height: 1.52; color: var(--muted); }
.cert-list { display: grid; gap: 12px; }
.cert-item {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-inner); padding: 16px 20px;
}
.cert-item .icon-wrap { width: 40px; height: 40px; }
.cert-item .icon-wrap svg { width: 20px; height: 20px; }
.cert-item h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.cert-item p { font-size: 12.5px; color: var(--muted); }

/* ---------- Process ---------- */
.process { background: var(--bg-alt); }
.step-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; counter-reset: step; }
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-inner); padding: 20px; display: grid; gap: 8px; align-content: start;
}
.step-num { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--wheat-deep); line-height: 1; }
.step-card h3 { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.step-card p { font-size: 12px; line-height: 1.5; color: var(--muted); }

/* ---------- Serve band ---------- */
.serve-band { background: var(--card); border-block: 1px solid var(--border); padding-block: 36px; }
.serve-inner { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.serve-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--muted); flex: none; }
.serve-list { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.serve-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.serve-list svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }

/* ---------- Inquiry ---------- */
.inquiry { background: var(--bg-page); }
.inquiry-inner { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 64px; align-items: start; }
.inquiry-intro { display: grid; gap: 18px; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); flex-wrap: wrap; }
.contact-list svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.contact-list a { color: var(--wheat-deep); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-note { color: var(--muted); font-weight: 400; }
.divider { border: none; border-top: 1px solid var(--border); }
.next-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); }
.next-list { display: grid; gap: 10px; }
.next-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.next-list svg { width: 16px; height: 16px; flex: none; color: var(--ink-2); }

.inquiry-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: clamp(22px, 2.2vw, 32px);
  box-shadow: var(--shadow-form);
  display: grid; gap: 16px;
}
.form-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--ink); }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 13px; color: var(--ink);
  background: var(--bg-page); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.46; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--wheat);
  box-shadow: 0 0 0 3px rgba(168, 134, 64, .15);
}
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap svg {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-2); pointer-events: none;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-privacy { font-size: 11.5px; color: var(--muted); text-align: center; }
.form-status { font-size: 13px; font-weight: 500; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #B05A3C; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 860px; display: grid; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-inner); padding: 20px 24px;
}
.faq-item[open] { border-color: var(--wheat); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); transition: transform .25s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { margin-top: 10px; font-size: 13.5px; line-height: 1.56; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); padding-top: 72px; }
.footer-top { display: grid; grid-template-columns: minmax(280px, 340px) repeat(3, 1fr); gap: 64px; padding-bottom: 48px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: 24px; letter-spacing: 2px; color: var(--cream);
}
.footer-tagline { font-size: 13px; line-height: 1.54; color: var(--on-dark-muted); }
.footer-cert { font-size: 10.5px; font-weight: 600; letter-spacing: 2px; color: var(--wheat-light); }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h3 { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--wheat-light); }
.footer-col a { font-size: 13px; color: var(--border); width: fit-content; }
.footer-col a:hover { color: var(--wheat-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--dark-border);
  padding-block: 24px 40px;
  font-size: 11.5px; color: var(--footer-dim);
}

/* ---------- Reveal on scroll (soft + staggered) ---------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
/* Stagger siblings inside grids so cards cascade gently */
.product-grid > .reveal:nth-child(2), .why-grid > .reveal:nth-child(2),
.origin-grid > .reveal:nth-child(2), .cert-list > .reveal:nth-child(2),
.step-grid > .reveal:nth-child(2) { transition-delay: .07s; }
.product-grid > .reveal:nth-child(3), .why-grid > .reveal:nth-child(3),
.origin-grid > .reveal:nth-child(3), .cert-list > .reveal:nth-child(3),
.step-grid > .reveal:nth-child(3) { transition-delay: .14s; }
.product-grid > .reveal:nth-child(4), .why-grid > .reveal:nth-child(4),
.origin-grid > .reveal:nth-child(4), .cert-list > .reveal:nth-child(4),
.step-grid > .reveal:nth-child(4) { transition-delay: .21s; }
.product-grid > .reveal:nth-child(5), .origin-grid > .reveal:nth-child(5),
.cert-list > .reveal:nth-child(5), .step-grid > .reveal:nth-child(5) { transition-delay: .28s; }
.step-grid > .reveal:nth-child(6) { transition-delay: .35s; }

/* ============================================================
   Responsive
   ============================================================ */

/* ≤ 1200 : small desktop / tablet landscape */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .origin-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(3, 1fr); }
  .why-inner, .quality-inner, .inquiry-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-intro { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ≤ 992 : tablet portrait — hamburger nav */
@media (max-width: 992px) {
  .nav-toggle { display: block; order: 3; }
  .btn-header { display: none; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 8px 6.67% 16px;
    display: flex;
    /* 收起态：透明 + 上移 + 隐藏 + 不可点 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transform-origin: top center;
    pointer-events: none;
    box-shadow: 0 18px 34px rgba(46, 34, 26, .10);
    transition: opacity .28s ease, transform .32s cubic-bezier(.34, 1.56, .64, 1), visibility 0s .34s;
  }
  .main-nav.open {
    /* 展开态：弹簧弹出 */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .3s ease, transform .42s cubic-bezier(.34, 1.56, .64, 1), visibility 0s 0s;
  }
  .main-nav a {
    padding: 14px 8px; border-bottom: 1px solid var(--bg-alt); font-size: 15px;
    /* 菜单项默认隐藏（stagger 前态） */
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .3s ease, transform .34s cubic-bezier(.34, 1.56, .64, 1), background-color .18s ease, color .18s ease;
  }
  .main-nav.open a { opacity: 1; transform: translateX(0); }
  /* 菜单项逐条进入（stagger） */
  .main-nav.open a:nth-child(1) { transition-delay: .05s; }
  .main-nav.open a:nth-child(2) { transition-delay: .10s; }
  .main-nav.open a:nth-child(3) { transition-delay: .15s; }
  .main-nav.open a:nth-child(4) { transition-delay: .20s; }
  .main-nav.open a:nth-child(5) { transition-delay: .25s; }
  .main-nav.open a:nth-child(6) { transition-delay: .30s; }
  /* 菜单项 hover/active 反馈 */
  .main-nav a:hover { background: var(--bg-alt); color: var(--wheat-deep); padding-left: 14px; }
  .main-nav a:active { transform: translateX(2px); }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a::after { display: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(odd) { padding-left: 0; border-left: none; }
  .hero-content { padding-block: 56px; }
}

/* ≤ 768 : large phone */
@media (max-width: 768px) {
  .topbar-tags { display: none; }
  .topbar-inner { justify-content: center; text-align: center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .serve-inner { gap: 18px 28px; }
  .serve-list { gap: 14px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: flex-start; }
  .hero { min-height: 560px; }
}

/* ≤ 520 : phone */
@media (max-width: 520px) {
  .container { width: 90%; }
  .product-grid, .origin-grid, .step-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-inline: 0 16px; }
  .stat:nth-child(even) { border-left: none; padding-left: 0; }
  .hero-cta .btn { width: 100%; }
  .inquiry-form { border-radius: 16px; }
  .faq-item { padding: 16px 18px; }
}

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

/* --- Polylang switcher integration --- */
.lang-menu a.current-lang { color: var(--wheat-deep); font-weight: 600; }
.lang-menu a.current-lang::after {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--wheat);
}
.lang-menu .lang-item { list-style: none; }

/* ---------- Screen-reader only (a11y heading fix) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Contact FAB: single button → springy expand ----------
 * Collapsed: one compact WhatsApp button (badge shows option count).
 * Hover / .wa-open: options fan out above with springy overshoot easing.
 * Extensible: append more .wa-option elements — stack auto-grows upward. */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* --- collapsed main button --- */
.wa-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .38);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease, background .2s ease;
}
.wa-main > svg:not(.wa-chev) {
  width: 28px;
  height: 28px;
}
.wa-chev {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 11px;
  height: 11px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  transform: rotate(0deg);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.wa-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink, #2E221A);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* --- expandable options stack (sits above main) --- */
.wa-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.wa-option {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px 0 7px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(34px) scale(.35);
  transform-origin: bottom right;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition:
    opacity .3s ease,
    transform .42s cubic-bezier(.34, 1.56, .64, 1);
}
.wa-option:nth-child(1) { transition-delay: .02s; }
.wa-option:nth-child(2) { transition-delay: .07s; }
.wa-option:nth-child(3) { transition-delay: .12s; }
.wa-option:nth-child(4) { transition-delay: .17s; }
.wa-option:nth-child(5) { transition-delay: .22s; }
.wa-opt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}
.wa-opt-icon svg {
  width: 20px;
  height: 20px;
}
.wa-opt-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.wa-option-1 { background: #25D366; }
.wa-option-2 { background: #128C7E; }

/* --- expanded state: hover (desktop) or .wa-open (tap) --- */
.wa-float:hover .wa-option,
.wa-float.wa-open .wa-option {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-float:hover .wa-main,
.wa-float.wa-open .wa-main {
  background: #1FAF5B;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .5);
}
.wa-float:hover .wa-chev,
.wa-float.wa-open .wa-chev {
  transform: rotate(180deg);
}

/* --- entrance pulse on collapsed badge --- */
@keyframes wa-pulse {
  0%   { box-shadow: 0 6px 20px rgba(37, 211, 102, .38), 0 0 0 0 rgba(37, 211, 102, .35); }
  70%  { box-shadow: 0 6px 20px rgba(37, 211, 102, .38), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 20px rgba(37, 211, 102, .38), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-main { animation: wa-pulse 2.6s ease-out 1; }

/* --- mobile --- */
@media (max-width: 768px) {
  .wa-float { right: 14px; bottom: 14px; gap: 10px; }
  .wa-main { width: 50px; height: 50px; }
  .wa-main > svg:not(.wa-chev) { width: 25px; height: 25px; }
  .wa-option { height: 42px; padding: 0 15px 0 6px; gap: 8px; }
  .wa-opt-icon { width: 31px; height: 31px; }
  .wa-opt-label { font-size: 13px; }
}

/* --- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .wa-main, .wa-chev, .wa-option { transition: none; animation: none; }
  /* 导航动效降级：直接切换，无过渡 */
  .nav-toggle, .nav-toggle span, .main-nav, .main-nav a { transition: none !important; }
  .main-nav a { transition-delay: 0s !important; }
}

/* Footer legal entity line (added 2026-09-08) */
.footer-bottom .footer-entity {
  font-size: 12.5px;
  opacity: .78;
  letter-spacing: .01em;
}

/* ---------- About: facilities gallery (2026-09-12) ---------- */
.facilities { background: var(--bg-page); }
.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.facility-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-form);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.facility-card:hover { transform: translateY(-3px); }
.facility-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.facility-card figcaption {
  padding: 13px 18px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .01em;
}
.facility-card figcaption::before {
  content: "";
  display: inline-block;
  width: 16px; height: 2px;
  background: var(--wheat);
  margin-right: 9px;
  vertical-align: middle;
}
@media (max-width: 860px) {
  .facility-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- About page value cards: full-width grid (no intro column) ----------
 * .why-inner 是为「左介绍 + 右卡片」两栏设计的；About 页没有介绍块，
 * 且 sr-only 标题是 position:absolute 不占网格位 → 卡片会掉进 400px 窄列。
 * .why-full 让卡片改用整容器宽度。 */
.why-full { grid-template-columns: 1fr; gap: 0; }
.why-full .why-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) {
  .why-full .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-full .why-grid { grid-template-columns: 1fr; }
}
