/* ==========================================================================
   Jewelives Corporate Website — Business Design System
   Navy · White · Light Gray · Brand Orange  |  Professional B2B manufacturing
   ========================================================================== */

:root {
  /* Brand */
  --primary: #ee7b1e;
  --primary-dark: #d1600c;
  --primary-hover: #f28a38;
  --primary-light: #fff2e6;
  --primary-line: #f6c9a3;

  /* Navy (business base) */
  --navy: #112337;
  --navy-2: #1a3550;
  --navy-deep: #0c1a2b;

  /* Neutrals */
  --ink: #1c2530;
  --ink-soft: #45505c;
  --muted: #6b7683;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-warm: #faf7f2;
  --border: #e4e7eb;
  --border-strong: #cdd3da;

  --success: #1a9c53;
  --danger: #d33a2c;

  --radius: 3px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(17, 35, 55, 0.06);
  --shadow: 0 12px 32px rgba(17, 35, 55, 0.10);
  --shadow-lg: 0 24px 60px rgba(17, 35, 55, 0.18);

  --max-w: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 36px;
}
.topbar-left { display: flex; align-items: center; gap: 13px; letter-spacing: 0.02em; }
.topbar-left a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.topbar-left a:hover { color: var(--primary-hover); }
.topbar-left svg { width: 14px; height: 14px; flex: none; }
.topbar-sep { color: rgba(255, 255, 255, 0.24); }
.topbar-right { letter-spacing: 0.08em; text-align: right; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-stack {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 20px; width: 100%;
}
.footer-logo-mark {
  height: 68px; width: auto; display: block; object-fit: contain;
}
.footer-logo-wordmark {
  height: 26px; width: auto; display: block; object-fit: contain;
}
/* Footer brand column: stacked logo centred, text centred underneath */
.footer-brand { align-items: center; text-align: center; }
.footer-brand p { margin-left: auto; margin-right: auto; }
.footer-brand .footer-social { justify-content: center; }

.main-nav { display: flex; gap: 2px; height: 100%; align-items: stretch; margin-left: 12px; }
.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0 18px;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: -1px;
  height: 2px;
  background: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switcher { display: flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 6px 9px; font-size: 0.76rem; font-weight: 600;
  color: var(--muted); letter-spacing: 0.04em;
  font-family: inherit;
}
.lang-btn:hover { background: var(--bg-soft); color: var(--ink); }
.lang-btn.active { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none; border: none; background: none; font-size: 1.4rem;
  cursor: pointer; color: var(--ink); padding: 4px 8px;
}

.user-menu { display: flex; align-items: center; gap: 10px; }
.user-email {
  font-size: 0.82rem; color: var(--muted); max-width: 150px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 12px 24px;
  transition: all 0.18s; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(238, 123, 30, 0.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 0.95rem; }
.btn-white { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); transform: translateY(-1px); }
.btn-onhero { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-onhero:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Hero (photo + navy overlay) ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 116px 0 0;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(17, 35, 55, 0.95) 0%, rgba(17, 35, 55, 0.86) 36%, rgba(17, 35, 55, 0.5) 70%, rgba(17, 35, 55, 0.28) 100%),
    linear-gradient(to top, rgba(12, 26, 43, 0.92) 0%, rgba(12, 26, 43, 0.05) 58%);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--primary-hover);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-kicker::before {
  content: ""; display: block; width: 34px; height: 2px; background: var(--primary);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.14; font-weight: 800; letter-spacing: -0.02em;
  max-width: 780px; margin-bottom: 22px;
}
.hero h1 .accent-word { color: var(--primary-hover); }
.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  max-width: 620px; color: rgba(255, 255, 255, 0.78);
  margin-bottom: 38px; line-height: 1.78;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; flex-wrap: wrap;
  margin-top: 66px; padding: 30px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stat { flex: 1; min-width: 150px; padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.hero-stat:first-child { padding-left: 0; border-left: none; }
.hero-stat .num {
  font-size: 2.3rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stat .num::after {
  content: ""; display: block;
  width: 22px; height: 2px; background: var(--primary); margin-top: 12px;
}
.hero-stat .label { font-size: 0.76rem; color: rgba(255, 255, 255, 0.62); margin-top: 12px; letter-spacing: 0.06em; }

/* ---------- Section ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-soft); }
/* Factory-bases section now ends right above the products section:
   collapse the doubling so the two blocks read as one flow */
.section.section-bases { padding-bottom: 60px; }
.section.section-follow { padding-top: 0; }
.eyebrow {
  display: inline-block; color: var(--primary-dark); font-weight: 700;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.24; color: var(--navy);
}
.section-head p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- Product card ---------- */
.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.22s; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); border-color: var(--primary-line); transform: translateY(-3px); }
.product-media {
  aspect-ratio: 16 / 9; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: var(--primary-line); overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); letter-spacing: -0.01em; }
.product-body p { color: var(--ink-soft); font-size: 0.9rem; flex: 1; line-height: 1.7; }
.product-tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 18px;
  color: var(--primary-dark); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid var(--primary-line);
  padding-bottom: 2px;
}
.product-tag:hover { color: var(--primary); }

/* ---------- Capability cards (SVG icons) ---------- */
.cap-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cap-card:hover { border-color: var(--primary-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.cap-icon {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; border: 1px solid var(--primary-line);
}
.cap-icon svg { width: 24px; height: 24px; }
.cap-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); letter-spacing: -0.01em; }
.cap-card p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; }

/* ---------- Factory / manufacturing section ---------- */
.factory-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px;
  padding-bottom: 28px; margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.factory-head .eyebrow {
  display: block; color: var(--primary-dark); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px;
}
.factory-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.24; max-width: 620px; color: var(--navy);
}
.factory-head-desc {
  color: var(--ink-soft); font-size: 0.93rem; max-width: 330px;
  line-height: 1.7; padding-bottom: 4px;
}

.factory-showcase {
  display: grid; grid-template-columns: 1.62fr 1fr; gap: 24px;
  align-items: stretch;
}

.factory-lead { position: relative; margin: 0; overflow: hidden; background: var(--navy); min-height: 420px; }
.factory-lead img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.factory-lead:hover img { transform: scale(1.035); }
.factory-lead figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 110px 30px 28px;
  background: linear-gradient(to top, rgba(12, 26, 43, 0.88) 0%, rgba(12, 26, 43, 0.45) 48%, transparent 100%);
  color: #fff; display: flex; flex-direction: column; gap: 5px;
}
.cap-index {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--primary-hover); margin-bottom: 2px;
}
.cap-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.cap-desc { font-size: 0.84rem; color: rgba(255, 255, 255, 0.75); }

/* Plant panel (navy data block, orange accent) */
.plant-panel {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 30px 28px 26px;
  display: flex; flex-direction: column;
  border-top: 3px solid var(--primary);
}
.plant-panel-head { padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.pp-title { display: block; font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; color: #fff; }
.pp-sub {
  display: block; margin-top: 4px; font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5); letter-spacing: 0.14em; text-transform: uppercase;
}
.plant-list { list-style: none; flex: 1; }
.plant-list li {
  display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px;
  padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  align-items: baseline;
}
.pl-num {
  grid-row: span 2; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--primary-hover); padding-top: 2px;
}
.pl-name { font-size: 0.88rem; color: #fff; font-weight: 600; line-height: 1.4; }
.pl-meta { font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); }
.plant-total { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding-top: 20px; }
.plant-total strong {
  display: block; font-size: 1.6rem; font-weight: 800;
  color: var(--primary-hover); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plant-total span { display: block; margin-top: 6px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); }

/* Timeline: two-column grid on desktop */
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.timeline-grid .timeline { padding-left: 30px; }

/* Revenue chart */
.rev-chart { display: flex; flex-direction: column; gap: 12px; }
.rev-row { display: grid; grid-template-columns: 52px 1fr 76px; align-items: center; gap: 14px; }
.rev-year { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.02em; }
.rev-track { height: 14px; background: #e9e6e1; border-radius: 2px; overflow: hidden; }
.rev-bar {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-hover), var(--primary));
}
.rev-row:last-child .rev-bar { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.rev-val { font-size: 0.86rem; font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }

/* Lab equipment chips */
.lab-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lab-chip {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 15px; font-size: 0.84rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.lab-chip::before { content: "◆"; color: var(--primary); font-size: 0.6rem; }

/* Exhibition list */
.exhib-list { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.exhib-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.exhib-item:last-child { border-bottom: none; }
.exhib-name { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.exhib-year { font-size: 0.82rem; font-weight: 700; color: var(--primary-dark); letter-spacing: 0.04em; white-space: nowrap; }

/* Workshop grid: 3 + 2 rhythm on a 6-col grid */
.workshop-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
  margin-top: 24px;
}
.workshop-item { margin: 0; grid-column: span 2; }
.workshop-item.wide { grid-column: span 3; }
.ws-media {
  position: relative; overflow: hidden; background: #e9e6e1;
  aspect-ratio: 3 / 2;
}
.workshop-item.wide .ws-media { aspect-ratio: 16 / 9; }
.ws-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.workshop-item:hover .ws-media img { transform: scale(1.05); }
.workshop-item figcaption {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 0 0; border-top: 1px solid var(--border); margin-top: 16px;
}
.ws-num {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; color: var(--primary-dark);
}
.workshop-item h4 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.workshop-item p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ---------- About page ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col .text h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800;
  margin-bottom: 18px; letter-spacing: -0.02em; color: var(--navy);
}
.two-col .text p { color: var(--ink-soft); margin-bottom: 14px; font-size: 0.97rem; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border-strong);
}
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary);
}
.timeline-item .year {
  font-weight: 700; color: var(--primary-dark); font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.timeline-item h4 { font-weight: 700; margin: 4px 0 5px; font-size: 1rem; color: var(--navy); }
.timeline-item p { color: var(--ink-soft); font-size: 0.9rem; }

.cert-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.cert-badge {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 20px; font-weight: 600; color: var(--navy); font-size: 0.88rem;
  display: flex; align-items: center; gap: 9px;
}
.cert-badge::before { content: "✓"; color: var(--primary); font-weight: 800; }

/* ---------- About photos / plant cards ---------- */
.about-banner { line-height: 0; background: var(--navy); }
.about-banner img { width: 100%; height: auto; display: block; }
.about-photo {
  margin: 0; overflow: hidden; box-shadow: var(--shadow); position: relative;
  background: #e9e6e1;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; }
.about-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 20px 16px;
  background: linear-gradient(to top, rgba(12, 26, 43, 0.85), transparent);
  color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
}

.plant-card {
  background: #fff; border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.plant-card:hover { border-color: var(--primary-line); box-shadow: var(--shadow); }
.plant-card .pc-media { overflow: hidden; background: #e9e6e1; aspect-ratio: 16 / 10; }
.plant-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; display: block; }
.plant-card:hover .pc-media img { transform: scale(1.04); }
.plant-card .pc-body { padding: 22px 24px 26px; border-top: 2px solid var(--primary); }
.plant-card .pc-kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--primary-dark); text-transform: uppercase;
}
.plant-card h3 { font-size: 1rem; font-weight: 700; margin: 8px 0 8px; letter-spacing: -0.01em; line-height: 1.4; color: var(--navy); }
.plant-card p { color: var(--ink-soft); font-size: 0.86rem; }

/* ---------- Certifications band (navy) ---------- */
.cert-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}
.cert-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 20%, rgba(238, 123, 30, 0.16) 0, transparent 55%);
}
.cert-band .container { position: relative; z-index: 1; }
.cert-band-inner {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center;
}
.cert-band .eyebrow { color: var(--primary-hover); }
.cert-band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.25; color: #fff;
}
.cert-band p { color: rgba(255, 255, 255, 0.7); font-size: 0.96rem; margin-top: 14px; max-width: 420px; }
.cert-band .cert-grid { align-content: center; }
.cert-band .cert-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.cert-band .cert-badge:hover { border-color: var(--primary); background: rgba(238, 123, 30, 0.12); }
.cert-band .cert-badge::before { color: var(--primary-hover); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.faq-q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px;
  font-weight: 700; font-size: 1rem; color: var(--navy);
  letter-spacing: -0.01em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 1.4rem; font-weight: 400; color: var(--primary);
  flex: none; transition: transform 0.25s; line-height: 1;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 26px 22px;
  color: var(--ink-soft); font-size: 0.93rem; line-height: 1.75;
}

/* ---------- CTA band (orange) ---------- */
.cta-band {
  background: linear-gradient(120deg, #f08a24 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 78px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.18) 0, transparent 55%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: 1.02rem; max-width: 620px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.cta-mail {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px; padding: 10px 20px;
  color: #fff; font-weight: 600; font-size: 0.92rem;
  transition: background 0.2s, border-color 0.2s;
}
.cta-mail:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.cta-mail svg { width: 16px; height: 16px; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.form-group input, .form-group textarea, .form-group select {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 12px 14px; font-size: 0.94rem; font-family: inherit;
  transition: border 0.15s, box-shadow 0.15s; background: #fff;
  color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(238, 123, 30, 0.14);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Contact detail list — thin icon + multi-line value (no labels) */
.contact-list {
  --cl-icon: var(--primary-dark);
  --cl-text: var(--ink);
  --cl-link: var(--ink);
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
}
.contact-row { display: flex; align-items: flex-start; gap: 15px; }
.contact-row .cr-icon {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
  color: var(--cl-icon);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .cr-icon svg { width: 19px; height: 19px; }
.contact-row .cr-body { font-size: 0.95rem; line-height: 1.75; color: var(--cl-text); }
.contact-row .cr-body a {
  display: block; color: var(--cl-link);
  transition: color 0.15s; word-break: break-word;
}
.contact-row .cr-body a:hover { color: var(--primary); }
.contact-list-lg { gap: 26px; }
.contact-list-lg .contact-row { gap: 16px; }
.contact-list-lg .contact-row .cr-icon { width: 22px; height: 22px; margin-top: 3px; }
.contact-list-lg .contact-row .cr-icon svg { width: 21px; height: 21px; }
.contact-list-lg .contact-row .cr-body { font-size: 0.98rem; line-height: 1.8; }
.contact-note { margin-top: 24px; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- Footer (navy) ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  padding: 72px 0 0;
  border-top: 3px solid var(--primary);
}
.footer-grid { display: grid; grid-template-columns: 2fr 0.9fr 0.9fr 1.55fr; gap: 48px; padding-bottom: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 {
  color: #fff; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px;
}
.footer-col a { color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--primary-hover); }
.footer-col span { color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; }
.footer-brand p { margin-top: 4px; font-size: 0.86rem; max-width: 300px; line-height: 1.75; color: rgba(255, 255, 255, 0.55); }
.footer-mail {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: 0.92rem; margin-top: 6px;
}
.footer-mail:hover { color: var(--primary-hover); }
.footer-mail svg { width: 15px; height: 15px; }
/* Contact list inside the dark footer */
.footer-col .contact-list {
  --cl-icon: rgba(255, 255, 255, 0.5);
  --cl-text: rgba(255, 255, 255, 0.62);
  --cl-link: rgba(255, 255, 255, 0.85);
  gap: 15px;
}
.footer-col .contact-list .contact-row { gap: 12px; }
.footer-col .contact-list .contact-row .cr-icon { width: 17px; height: 17px; margin-top: 3px; }
.footer-col .contact-list .contact-row .cr-icon svg { width: 16px; height: 16px; }
.footer-col .contact-list .contact-row .cr-body { font-size: 0.84rem; line-height: 1.72; }
.footer-col .contact-list .contact-row .cr-body a:hover { color: var(--primary-hover); }
.footer-col .contact-note { color: rgba(255, 255, 255, 0.38); font-size: 0.78rem; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.42);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 26, 43, 0.55); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  padding: 38px 34px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
  animation: modalIn 0.24s ease;
  max-height: 90vh; overflow-y: auto;
  border-top: 3px solid var(--primary);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--muted); line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal-panel h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 22px; text-align: center; letter-spacing: -0.01em; color: var(--navy); }

.auth-tabs { display: flex; gap: 4px; margin-bottom: 22px; background: var(--bg-soft); border-radius: var(--radius); padding: 4px; }
.auth-tab {
  flex: 1; border: none; background: transparent; cursor: pointer;
  padding: 9px 6px; border-radius: 3px; font-size: 0.82rem; font-weight: 600;
  color: var(--muted); font-family: inherit;
}
.auth-tab.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-form label { font-size: 0.82rem; font-weight: 600; margin-top: 6px; color: var(--navy); }
.auth-form input {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 11px 14px; font-size: 0.94rem; font-family: inherit;
}
.auth-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(238,123,30,0.14); }
.auth-form .btn { margin-top: 14px; }
.link-btn { background: none; border: none; color: var(--primary-dark); cursor: pointer; font-size: 0.82rem; margin-top: 4px; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }
.auth-error {
  margin-top: 14px; background: #fdf0ee; color: var(--danger);
  padding: 10px 14px; border-radius: var(--radius); font-size: 0.82rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--navy); color: #fff; padding: 13px 22px; border-radius: var(--radius);
  font-size: 0.88rem; z-index: 300; opacity: 0; transition: all 0.3s; pointer-events: none;
  max-width: 90vw; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ---------- Loading ---------- */
.loading { text-align: center; padding: 44px; color: var(--muted); font-size: 0.9rem; }
.spinner {
  width: 32px; height: 32px; border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page hero (inner pages, navy) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 84px 0 78px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 118%, rgba(238, 123, 30, 0.22) 0, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; color: #fff; }
.page-hero h1::after {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--primary); margin: 18px auto 0;
}
.page-hero p { color: rgba(255, 255, 255, 0.72); max-width: 640px; margin: 0 auto; font-size: 0.99rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .factory-showcase { grid-template-columns: 1fr; }
  .factory-lead { min-height: 340px; }
  .cert-band-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { margin-top: 48px; }
  .hero-stat { min-width: 40%; }
  .hero-stat:nth-child(3) { padding-left: 0; border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .factory-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .factory-head-desc { max-width: none; }
  .workshop-grid { gap: 20px; }
  .workshop-item, .workshop-item.wide { grid-column: span 3; }
  .workshop-item.wide .ws-media { aspect-ratio: 3 / 2; }
  .timeline-grid { grid-template-columns: 1fr; gap: 0; }
  .rev-row { grid-template-columns: 46px 1fr 68px; gap: 10px; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 8px 20px 16px; box-shadow: var(--shadow);
    align-items: stretch; height: auto; margin-left: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: block; }
  .topbar-left .topbar-tel { display: none; }
  .topbar-sep { display: none; }
  .topbar-right { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 76px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .hero-stat { padding-left: 16px; min-width: 0; }
  .hero-stat:nth-child(odd) { padding-left: 0; border-left: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lang-btn { padding: 5px 7px; font-size: 0.72rem; }
  .topbar-left .topbar-wa { display: none; }
  .workshop-item, .workshop-item.wide { grid-column: span 6; }
  .plant-list { grid-template-columns: 1fr; }
  .plant-list li:nth-child(3) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .factory-lead { min-height: 280px; }
  .plant-panel { padding: 24px 22px 22px; }
  .cert-band { padding: 56px 0; }
  .cta-band { padding: 60px 0; }
  .faq-q { padding: 17px 20px; font-size: 0.95rem; }
  .faq-a { padding: 0 20px 18px; }
}

/* ---------- Social Media ---------- */
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.social-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 20px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.social-card:hover { border-color: var(--primary-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.social-card .sc-icon {
  width: 46px; height: 46px; flex: none; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff;
}
.social-card .sc-icon svg { width: 20px; height: 20px; }
.social-card h4 { font-size: 0.98rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.social-card .sc-handle { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.social-card .sc-go { margin-left: auto; color: var(--muted); font-size: 1.05rem; font-weight: 700; }
.social-card:hover .sc-go { color: var(--primary); }

.contact-social { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.contact-social h4 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 14px;
}
.contact-social .cs-row { display: flex; gap: 10px; }
.contact-social .cs-row a {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--navy);
  border: 1px solid var(--border); transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.contact-social .cs-row a:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.contact-social .cs-row svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
  .social-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .social-grid { grid-template-columns: 1fr; }
}

/* ---------- Factory layout strip (three bases) ---------- */
.factory-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 0; }
.factory-layout figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.factory-layout img { width: 100%; height: 230px; object-fit: cover; display: block; }
.factory-layout figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px;
  background: linear-gradient(to top, rgba(17, 35, 55, 0.94), rgba(17, 35, 55, 0));
  color: #fff;
}
.factory-layout .fl-name { display: block; font-weight: 700; font-size: 0.98rem; }
.factory-layout .fl-meta { display: block; font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); margin-top: 3px; }
@media (max-width: 900px) {
  .factory-layout { grid-template-columns: 1fr; }
  .factory-layout img { height: 200px; }
}

/* ---------- Static prerendered content (SEO/GEO fallback before JS boot) ---------- */
.seo-static .page-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.seo-static .section h2 { margin: 38px 0 12px; font-size: 1.45rem; color: var(--navy); font-weight: 800; }
.seo-static .section h2:first-child { margin-top: 0; }
.seo-static .section h3 { margin: 22px 0 6px; font-size: 1.06rem; color: var(--navy); font-weight: 700; }
.seo-static .section p { color: var(--ink-soft); line-height: 1.9; font-size: 0.95rem; }
.seo-static .seo-facts { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); line-height: 2; font-size: 0.93rem; }
.seo-static .seo-facts li { margin-bottom: 4px; }
.seo-static .seo-facts strong { color: var(--navy); }
