/* ═══════════════════════════════════════════════════════════
  Gera Sourcing — Design system v1.0
  Source: docs/DESIGN_SYSTEM.md (2026-09-26 finalised) 
  Position: "clean and premium" = restrained colour + generous whitespace + a precise type scale + one accent
  🔴 Zero dependencies: no external fonts, no JS libraries, no icon font
  ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Neutral skeleton (85%)── */
  --ink:        #0B1220;
  --ink-2:      #1C2536;
  --body:       #4A5568;
  --muted:      #8A94A6;
  --line:       #E4E7EC;
  --surface:    #F7F8FA;
  --white:      #FFFFFF;

  /* ── Accent colour (<=10%)── */
  --accent:      #0E5FFF;
  --accent-deep: #0A46C2;
  --accent-wash: #EEF3FF;

  /* ── Semantic colours (status only)── */
  --ok:   #0F7B4F;
  --warn: #B45309;
  --stop: #B42318;

  /* ── Spacing (8px rhythm)── */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* ── Radius / shadow (only 2 each)── */
  --r-sm: 6px;
  --r-md: 14px;
  --shadow-1: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-2: 0 12px 32px -8px rgba(16,24,40,.10);

  /* ── \u6392\u7248 ── */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "Noto Sans", "Noto Sans SC", sans-serif;
  --font-num:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1280px;
  --content:   760px;
}

/* ── Base reset ── */
* { box-sizing: border-box; }

body.gera {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.gera a { color: var(--accent); text-decoration: none; }
body.gera a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ── Headings: 7 fixed steps, weights 400/500/600 only ── */
body.gera h1, body.gera h2, body.gera h3, body.gera h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  margin: 0 0 var(--s3);
  letter-spacing: -0.02em;
}
body.gera h1 { font-size: 56px; line-height: 1.08; font-weight: 600; }
body.gera h2 { font-size: 36px; line-height: 1.2;  font-weight: 600; letter-spacing: -0.01em; }
body.gera h3 { font-size: 24px; line-height: 1.3;  font-weight: 600; letter-spacing: -0.005em; }
body.gera h4 { font-size: 18px; line-height: 1.4;  font-weight: 600; letter-spacing: 0; }

body.gera p { margin: 0 0 var(--s3); }
body.gera strong, body.gera b { font-weight: 600; color: var(--ink); }
body.gera small { font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--muted); }

/* ── Layout container ── */
body.gera .gera-wrap  { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
body.gera .gera-narrow{ max-width: var(--content);   margin: 0 auto; }
body.gera .gera-sec   { padding: var(--s7) 0; }
body.gera .gera-sec--surface { background: var(--surface); }
body.gera .gera-sec--ink     { background: var(--ink); }
body.gera .gera-sec--ink h2,
body.gera .gera-sec--ink h3,
body.gera .gera-sec--ink h4,
body.gera .gera-sec--ink p,
body.gera .gera-sec--ink li  { color: #fff; }
body.gera .gera-sec--ink p,
body.gera .gera-sec--ink li  { color: #C9D2E0; }
body.gera .gera-sec--ink a   { color: #8FB4FF; }

/* Constrain paragraph width (comfortable reading)*/
body.gera .gera-lead { font-size: 18px; line-height: 1.65; color: var(--body); max-width: var(--content); }
body.gera .gera-eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s2);
}

/* ── Buttons: only 1 primary button per screen ── */
body.gera .gera-btn,
body.gera .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px;
  font-size: 16px; font-weight: 500; font-family: var(--font-sans);
  border-radius: var(--r-sm);
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  text-decoration: none; cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
body.gera .gera-btn:hover,
body.gera .wp-block-button__link:hover {
  background: var(--accent-deep); border-color: var(--accent-deep);
  color: #fff; text-decoration: none;
}
body.gera .gera-btn--ghost,
body.gera .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--ink); border-color: var(--line);
}
body.gera .gera-btn--ghost:hover,
body.gera .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
body.gera .gera-btn--light { background: #fff; color: var(--ink); border-color: #fff; }
body.gera .gera-btn--light:hover { background: #E9EEF6; border-color: #E9EEF6; color: var(--ink); }

/* ── \u5361\u7247 ── */
body.gera .gera-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s4);
  box-shadow: var(--shadow-1);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
body.gera .gera-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
body.gera .gera-card h3 { font-size: 24px; }
body.gera .gera-card p:last-child { margin-bottom: 0; }

body.gera .gera-grid { display: grid; gap: var(--s3); }
body.gera .gera-grid--2 { grid-template-columns: repeat(2, 1fr); }
body.gera .gera-grid--3 { grid-template-columns: repeat(3, 1fr); }
body.gera .gera-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Stat block (trust core)── */
body.gera .gera-stat { border-top: 2px solid var(--accent); padding-top: var(--s3); }
body.gera .gera-stat .n {
  font-family: var(--font-num); font-size: 40px; line-height: 1.1;
  font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
body.gera .gera-stat .l {
  font-size: 13px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-top: var(--s1);
}
body.gera .gera-sec--ink .gera-stat .n { color: #fff; }
body.gera .gera-sec--ink .gera-stat .l { color: #8A94A6; }

/* ── Table (MOQ / lead time / carton)── */
body.gera table.gera-table {
  width: 100%; border-collapse: collapse; font-size: 16px;
  border: 0;
}
body.gera table.gera-table th,
body.gera table.gera-table td {
  border: 0; border-bottom: 1px solid var(--line);
  padding: 0 var(--s2); height: 52px; text-align: left; vertical-align: middle;
}
body.gera table.gera-table th {
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
body.gera table.gera-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
body.gera table.gera-table tbody tr:nth-child(even) { background: var(--surface); }

/* ── List (pain points / commitments)── */
body.gera .gera-list { list-style: none; padding: 0; margin: 0; }
body.gera .gera-list li {
  position: relative; padding-left: var(--s4); margin-bottom: var(--s2);
}
body.gera .gera-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
body.gera .gera-list--no li::before { background: var(--stop); }

/* ── Notice bar (to confirm / disclaimer)── */
body.gera .gera-note {
  background: var(--accent-wash); border-left: 3px solid var(--accent);
  padding: var(--s3); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 16px; color: var(--ink-2);
}
body.gera .gera-note p:last-child { margin-bottom: 0; }
body.gera .gera-note--warn { background: #FEF6EC; border-left-color: var(--warn); }

/* 🔴 Notice bars inside dark sections must override the text colour, or the inherited white text is invisible on white (hit this in testing) */
body.gera .gera-sec--ink .gera-note,
body.gera .gera-sec--ink .gera-note p,
body.gera .gera-sec--ink .gera-note li { color: var(--ink-2); }
body.gera .gera-sec--ink .gera-note strong { color: var(--ink); }

/* ── Step bar (how we work)── */
body.gera .gera-steps { counter-reset: gs; list-style: none; padding: 0; margin: 0; }
body.gera .gera-steps > li {
  counter-increment: gs; position: relative;
  padding: 0 0 var(--s4) var(--s6); border-left: 1px solid var(--line);
  margin-left: 15px;
}
body.gera .gera-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
body.gera .gera-steps > li::before {
  content: counter(gs);
  position: absolute; left: -16px; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  color: var(--accent); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num);
}
body.gera .gera-steps > li h3 { margin-top: 2px; }

/* ── FAQ ── */
body.gera .gera-faq { border-top: 1px solid var(--line); }
body.gera .gera-faq details {
  border-bottom: 1px solid var(--line); padding: var(--s3) 0;
}
body.gera .gera-faq summary {
  cursor: pointer; font-size: 18px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: var(--s2);
}
body.gera .gera-faq summary::-webkit-details-marker { display: none; }
body.gera .gera-faq summary::after {
  content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1;
}
body.gera .gera-faq details[open] summary::after { content: "–"; }
body.gera .gera-faq details > p { margin: var(--s2) 0 0; }

/* ── Header / footer ── */
body.gera .gera-top {
  border-bottom: 1px solid var(--line); background: #fff;
  position: sticky; top: 0; z-index: 50;
}
body.gera .gera-top .gera-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: var(--s4);
}
body.gera .gera-top .gera-brand {
  font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
body.gera .gera-top .gera-brand:hover { color: var(--ink); text-decoration: none; }
body.gera .gera-top .gera-brand span { color: var(--accent); }
body.gera .gera-nav { display: flex; gap: var(--s4); align-items: center; }
body.gera .gera-nav a { color: var(--body); font-size: 15px; font-weight: 500; }
body.gera .gera-nav a:hover { color: var(--accent); text-decoration: none; }
body.gera .gera-top .gera-btn { height: 40px; padding: 0 18px; font-size: 15px; }

body.gera .gera-foot { background: var(--ink); color: #C9D2E0; padding: var(--s7) 0 var(--s5); }
body.gera .gera-foot h4 { color: #fff; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: var(--s3); }
body.gera .gera-foot a { color: #C9D2E0; font-size: 15px; display: block; margin-bottom: var(--s2); }
body.gera .gera-foot a:hover { color: #fff; text-decoration: none; }
body.gera .gera-foot .gera-colophon {
  border-top: 1px solid #263041; margin-top: var(--s5); padding-top: var(--s3);
  font-size: 13px; color: #8A94A6;
}

/* ── Breadcrumb ── */
body.gera .gera-crumb { font-size: 13px; color: var(--muted); margin-bottom: var(--s3); }
body.gera .gera-crumb a { color: var(--muted); }

/* ── Hero ── */
body.gera .gera-hero { padding: var(--s8) 0 var(--s7); }
body.gera .gera-hero .gera-wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s7); align-items: center;
}
body.gera .gera-hero h1 { font-size: 56px; margin-bottom: var(--s3); }
body.gera .gera-hero .gera-sub {
  font-size: 18px; line-height: 1.65; color: var(--body);
  margin-bottom: var(--s4); max-width: 560px;
}
body.gera .gera-micro {
  font-size: 13px; color: var(--muted); margin-top: var(--s3);
}
body.gera .gera-cta-row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

/* ── Page header (inner pages)── */
body.gera .gera-pagehead { padding: var(--s7) 0 var(--s5); border-bottom: 1px solid var(--line); }
body.gera .gera-pagehead h1 { font-size: 44px; }
body.gera .gera-pagehead .gera-sub { font-size: 18px; color: var(--body); max-width: var(--content); margin: 0; }

/* ── Visual placeholder (geometry tiles, not stock photos)── */
body.gera .gera-visual {
  border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
body.gera .gera-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .55;
}
body.gera .gera-visual .tag {
  position: relative; font-size: 13px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: var(--s1) var(--s2); font-family: var(--font-num);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  body.gera .gera-grid--4 { grid-template-columns: repeat(2, 1fr); }
  body.gera .gera-grid--3 { grid-template-columns: repeat(2, 1fr); }
  body.gera .gera-hero .gera-wrap { grid-template-columns: 1fr; gap: var(--s5); }
  body.gera .gera-hero { padding: var(--s7) 0 var(--s6); }
}
@media (max-width: 768px) {
  body.gera .gera-wrap { padding: 0 20px; }
  body.gera .gera-sec  { padding: var(--s6) 0; }
  body.gera h1, body.gera .gera-hero h1 { font-size: 34px; }
  body.gera h2 { font-size: 26px; }
  body.gera h3 { font-size: 20px; }
  body.gera .gera-pagehead h1 { font-size: 32px; }
  body.gera .gera-grid--2,
  body.gera .gera-grid--3,
  body.gera .gera-grid--4 { grid-template-columns: 1fr; }
  body.gera .gera-nav { display: none; }
}

/* ── Print (quotation-friendly)── */
@media print {
  body.gera .gera-top, body.gera .gera-foot, body.gera .gera-btn { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Language switcher + zero-JS mobile menu   (2026-09-28)
   · Language switcher: plain <a>, shows the current language, highlighted and not clickable
   · Mobile menu: checkbox toggle, zero JS (does not break the <5 inline scripts budget)
   ═══════════════════════════════════════════════════════════ */

body.gera .gera-topright { display: flex; align-items: center; gap: var(--s2); }

body.gera .gera-lang { display: flex; align-items: center; gap: 2px; }
body.gera .gera-lang__a,
body.gera .gera-lang__on {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  padding: 6px 7px; border-radius: var(--r-sm); text-decoration: none;
}
body.gera .gera-lang__a { color: var(--muted); }
body.gera .gera-lang__a:hover { color: var(--accent); background: var(--accent-wash); text-decoration: none; }
body.gera .gera-lang__on { color: var(--ink); background: var(--surface); }

/* The CTA sits top-right on desktop; the copy inside the nav only appears in the mobile menu */
body.gera .gera-nav-cta { display: none; }
body.gera .gera-menu-t,
body.gera .gera-menu-b { display: none; }

@media (max-width: 900px) {
  body.gera .gera-menu-b {
    display: flex; order: 3; width: 40px; height: 40px;
    align-items: center; justify-content: center; cursor: pointer;
    margin-left: var(--s1); border: 1px solid var(--line); border-radius: var(--r-sm);
  }
  body.gera .gera-menu-b span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  body.gera .gera-menu-b span::before,
  body.gera .gera-menu-b span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  }
  body.gera .gera-menu-b span::before { top: -6px; }
  body.gera .gera-menu-b span::after  { top:  6px; }

  body.gera .gera-brand { margin-right: auto; }
  body.gera .gera-topright { order: 2; }
  body.gera .gera-top-cta { display: none; }

  /* Collapsible menu: closed by default, expands when checked; absolutely positioned on the sticky header */
  body.gera .gera-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: var(--s2) 20px var(--s3);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
  }
  body.gera .gera-menu-t:checked ~ .gera-nav { display: flex; }
  body.gera .gera-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  body.gera .gera-nav a:last-child { border-bottom: 0; }
  body.gera .gera-nav-cta { display: inline-flex; justify-content: center; margin-top: var(--s3); }
}
