/* =========================================================
   Chaozhen New Energy — Foreign Trade Site
   Design system: PPT palette
   Primary: corporate blue | Accent: orange | Tints: light blue
   Theme: light, clean, tech / energy
   ========================================================= */

:root {
  /* Brand palette (from PPT) */
  --blue-900: #062b54;
  --blue-800: #08407e;
  --blue-700: #0a4da6;
  --blue-600: #0e5fcc;
  --blue-500: #1573e6;
  --blue-300: #7fb2f0;
  --blue-100: #e6f0fb;
  --blue-050: #f3f8fe;

  --orange: #ff7a1a;
  --orange-600: #f06a0a;
  --orange-100: #ffe9d6;

  --ink: #14233b;
  --gray-700: #42536e;
  --gray-500: #6b7c97;
  --gray-300: #cdd8e8;

  --bg: #ffffff;
  --bg-alt: #f5f9ff;
  --border: #e3ebf5;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(10, 77, 166, 0.08);
  --shadow-md: 0 14px 38px rgba(10, 77, 166, 0.12);
  --shadow-lg: 0 26px 60px rgba(6, 43, 84, 0.18);

  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--blue-900); margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; color: var(--gray-700); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-600);
  background: var(--orange-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-700); box-shadow: var(--shadow-md); color:#fff; }
.btn--accent { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--orange-600); color:#fff; }
.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--blue-300); }
.btn--ghost:hover { background: var(--blue-050); color: var(--blue-800); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark { width: 40px; height: 40px; flex: none; }
.brand .logo-text { font-weight: 800; font-size: 1.12rem; color: var(--blue-900); line-height: 1.05; }
.brand .logo-text small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .12em; color: var(--gray-500); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-050); border: 1px solid var(--border);
  color: var(--blue-700); font-weight: 700; font-size: .82rem;
  padding: 7px 11px; border-radius: 8px; cursor: pointer; line-height: 1;
  transition: background .15s, border-color .15s;
}
.lang-current:hover { border-color: var(--blue-300); background: #eaf2fd; }
.lang-caret { transition: transform .2s; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 9px); right: 0; min-width: 158px;
  background: #fff; border: 1px solid var(--border); border-radius: 11px;
  box-shadow: 0 14px 34px rgba(15,42,84,.16); list-style: none; margin: 0; padding: 6px;
  display: none; z-index: 60;
}
.lang-switch.open .lang-menu { display: block; animation: langPop .14s ease; }
@keyframes langPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.lang-opt {
  display: flex; align-items: baseline; gap: 8px; width: 100%;
  background: none; border: 0; text-align: left; cursor: pointer;
  padding: 9px 11px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .94rem;
  transition: background .12s;
}
.lang-opt em { font-style: normal; font-size: .72rem; color: var(--gray-500); font-weight: 500; }
.lang-opt:hover { background: var(--blue-050); }
.lang-opt.active { background: var(--blue-050); color: var(--blue-700); box-shadow: inset 3px 0 0 var(--blue-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(7,33,74,.90) 0%, rgba(10,56,124,.78) 45%, rgba(13,95,204,.55) 100%),
    url("../images/factory-01.jpg") center/cover no-repeat;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,122,26,.55), transparent 60%);
  opacity: .55;
}
.hero::before {
  content: ""; position: absolute; right: -150px; bottom: -180px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 46px solid rgba(127,178,240,.10);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 92px 0 100px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.18rem; color: rgba(255,255,255,.9); max-width: 560px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.2); }

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.hero-badges span {
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px; border-radius: 999px; color: #fff;
}

/* Hero visual — precision performance panel */
.hero-visual { position: relative; }
.perf-card {
  background: #fff; border-radius: 20px; padding: 26px 26px 20px;
  box-shadow: var(--shadow-lg); color: var(--ink); position: relative; z-index: 2;
}
.perf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.perf-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); flex: none; box-shadow: 0 0 0 4px var(--orange-100); }
.perf-head strong { display: block; color: var(--blue-900); font-size: 1.05rem; line-height: 1.2; }
.perf-head small { color: var(--gray-500); font-size: .8rem; }
.perf-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: 12px; padding: 14px 14px; }
.kpi-val { display: block; font-size: 1.55rem; font-weight: 800; color: var(--blue-600); line-height: 1; }
.kpi-val small { font-size: .8rem; font-weight: 700; }
.kpi-lbl { display: block; margin-top: 6px; font-size: .8rem; color: var(--gray-700); font-weight: 600; }
.perf-chart { width: 100%; height: 92px; margin-top: 18px; display: block; }
.perf-cap { margin-top: 8px; font-size: .76rem; color: var(--gray-500); font-weight: 600; letter-spacing: .02em; }
.float-chip {
  position: absolute; background: #fff; color: var(--blue-900); font-weight: 700; font-size: .8rem;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-md); border: 1px solid var(--border); z-index: 3;
}
.chip-1 { top: -18px; right: -8px; color: var(--orange-600); }
.chip-2 { bottom: -16px; left: -14px; }
@media (max-width: 720px) { .float-chip { display: none; } }

.hero-card {
  background: rgba(255,255,255,.97); color: var(--ink);
  border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--blue-900); }
.hero-card .field { margin-bottom: 14px; }
.hero-card label { display: block; font-size: .82rem; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.hero-card input, .hero-card select, .hero-card textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 10px; font-family: inherit; font-size: .92rem; color: var(--ink); background: #fff;
}
.hero-card input:focus, .hero-card select:focus, .hero-card textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--blue-600); line-height: 1; }
.stat .num span { color: var(--orange); }
.stat .label { margin-top: 8px; font-size: .92rem; color: var(--gray-700); font-weight: 600; }

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

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue-600); margin-bottom: 18px;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--blue-600); font-size: .92rem; }

.feature-list { list-style: none; padding: 0; margin: 14px 0 0; }
.feature-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--gray-700); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--orange-100);
}
.feature-list li::after {
  content: ""; position: absolute; left: 5px; top: 13px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--orange);
}

/* ---------- Application tags ---------- */
.app-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.app-tags span {
  background: var(--blue-050); color: var(--blue-700); font-weight: 600; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--blue-100);
}

/* ---------- Why us ---------- */
.why { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; }
.why h2 { color: #fff; }
.why .lead-item { display: flex; gap: 16px; align-items: flex-start; }
.why .lead-item .n {
  flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--orange);
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.why .lead-item h4 { color: #fff; margin: 0 0 4px; }
.why .lead-item p { color: rgba(255,255,255,.82); margin: 0; font-size: .95rem; }

/* ---------- Certifications & partners ---------- */
.cert-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin-top: 20px; }
.cert-chip {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px; box-shadow: var(--shadow-sm); font-weight: 700; color: var(--blue-900);
}
.cert-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }

/* ----- Certificate gallery ----- */
.cert-gallery {
  display: flex; gap: 22px; margin-top: 36px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #cfe0f7 transparent;
}
.cert-gallery::-webkit-scrollbar { height: 8px; }
.cert-gallery::-webkit-scrollbar-thumb { background: #cfe0f7; border-radius: 999px; }
.cert-gallery::-webkit-scrollbar-track { background: transparent; }
.cert-card {
  flex: 0 0 calc((100% - 3 * 22px) / 4);
  scroll-snap-align: start; min-width: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.cert-thumb { aspect-ratio: 4 / 3; background: #f2f6fc; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.cert-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.cert-card:hover .cert-thumb img { transform: scale(1.05); }
.cert-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.cert-body h4 { margin: 0 0 10px; font-size: 1.02rem; color: var(--blue-900); line-height: 1.35; }
.cert-no { align-self: flex-start; font-family: "SFMono-Regular", "Consolas", ui-monospace, monospace; font-size: .76rem; letter-spacing: .02em; color: var(--blue-700); background: var(--blue-050); border: 1px solid var(--blue-100); padding: 3px 9px; border-radius: 7px; margin-bottom: 11px; }
.cert-meta { font-size: .82rem; color: var(--gray-700); margin: 0 0 7px; line-height: 1.5; }
.cert-sub { font-size: .8rem; color: var(--gray-500); margin: 0 0 16px; line-height: 1.55; flex: 1; }
.cert-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .85rem; color: var(--blue-600); text-decoration: none; transition: color .2s; }
.cert-link:hover { color: var(--orange-600); }
.cert-link .arr { transition: transform .2s; }
.cert-link:hover .arr { transform: translateX(3px); }

/* Certifications — fewer per view on smaller screens (4-up on desktop) */
@media (max-width: 980px) { .cert-card { flex-basis: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 720px) { .cert-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 400px) { .cert-card { flex-basis: 84%; } }

.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 30px; }
.partner {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; height: 84px;
  display: grid; place-items: center; font-weight: 800; color: var(--gray-500); letter-spacing: .02em;
  box-shadow: var(--shadow-sm); font-size: .95rem; text-align: center; padding: 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange), var(--orange-600));
  border-radius: 22px; padding: 52px 48px; color: #fff; text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .btn--ghost { background: #fff; color: var(--orange-600); border-color: #fff; }
.cta-band .btn--ghost:hover { background: var(--blue-050); }

/* ---------- Bottom quote section ---------- */
.quote-section { background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); color: #fff; }
.quote-section .section-head h2 { color: #fff; }
.quote-section .section-head p { color: rgba(255,255,255,.85); }
.quote-section .hero-card { max-width: 640px; margin: 0 auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .88rem; color: var(--gray-500); padding: 18px 0 0; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb span { margin: 0 8px; color: var(--gray-300); }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); color: #fff; padding: 56px 0 64px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 700px; }

/* ---------- Product detail ---------- */
.product {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.product .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--blue-050); color: var(--blue-700); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.product h3 { font-size: 1.18rem; }

/* Product media — refined framed showcase with hover-zoom */
.product-media {
  position: relative; margin: 0 0 20px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #f5f9fe, #e8f0fd);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  padding: 16px; transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.product:hover .product-media img { transform: scale(1.12); }
.product-media--placeholder { background: linear-gradient(135deg, #eaf2fd, #d6e6fb); }
.product-media--placeholder svg { width: 50%; height: 50%; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.product:hover .product-media--placeholder svg { transform: scale(1.1); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--gray-500); font-weight: 600; width: 46%; }
.spec-table td { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--gray-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--gray-500); margin-top: 4px; }

.info-card { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; border-radius: var(--radius); padding: 32px; }
.info-card h3 { color: #fff; }
.info-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.info-card li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.info-card li:last-child { border-bottom: 0; }
.info-card .k { color: rgba(255,255,255,.7); font-size: .85rem; min-width: 96px; }
.info-card .v { font-weight: 600; }

.form-success {
  display: none; background: var(--blue-050); border: 1px solid var(--blue-300);
  color: var(--blue-800); padding: 16px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.78); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.75); display: block; margin-bottom: 10px; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand .logo-text { color: #fff; }
.site-footer .brand .logo-text small { color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ (accordion) ---------- */
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.open { border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 22px 24px; font-family: inherit; font-weight: 700; font-size: 1.06rem; line-height: 1.35;
  color: var(--blue-900);
}
.faq-q:hover { color: var(--blue-600); }
.faq-q .faq-arrow { flex: none; width: 22px; height: 22px; color: var(--blue-600); transition: transform .28s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner > div { padding: 0 24px 22px; }
.faq-a-inner p { margin: 0; color: var(--gray-700); font-size: .98rem; }
.faq-cta { text-align: center; margin-top: 40px; }

/* ---------- Blog (cards + news) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.blog-media {
  aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-500));
}
.blog-media--2 { background: linear-gradient(135deg, var(--blue-600), var(--blue-300)); }
.blog-media--3 { background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); }
.blog-media--4 { background: linear-gradient(135deg, #1e6fb8, var(--blue-500)); }
.blog-media--5 { background: linear-gradient(135deg, var(--blue-700), var(--orange)); }
.blog-media--6 { background: linear-gradient(135deg, var(--blue-600), #19a974); }
.blog-media svg { width: 56px; height: 56px; opacity: .92; }
.blog-media .blog-cat-badge {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.22);
  color: #fff; font-size: .74rem; font-weight: 700; padding: 6px 13px; border-radius: 999px;
  backdrop-filter: blur(4px); letter-spacing: .03em;
}
.blog-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; align-items: center; font-size: .8rem; color: var(--gray-500); font-weight: 600; margin-bottom: 12px; }
.blog-meta .blog-date { position: relative; }
.blog-card h3 { font-size: 1.14rem; line-height: 1.32; margin-bottom: 10px; }
.blog-card p { font-size: .92rem; margin-bottom: 18px; flex: 1; }
.blog-more { font-weight: 700; color: var(--blue-600); font-size: .9rem; align-self: flex-start; }
.blog-more:hover { color: var(--blue-700); }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Mobile CTA inside the dropdown (hidden on desktop) ---------- */
.nav-mobile-cta { display: none; }

/* =========================================================
   Factory / Facility tour + homepage teaser
   ========================================================= */
.factory-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.factory-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,43,84,.30) 0%, rgba(6,43,84,.78) 100%);
}
.factory-hero .container { position: relative; z-index: 2; padding: 64px 0 54px; }
.factory-hero .eyebrow {
  background: rgba(255,122,26,.22); color: #ffd8b0; border: 1px solid rgba(255,122,26,.4);
}
.factory-hero h1 { color: #fff; max-width: 760px; margin: 12px 0 10px; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.factory-hero p { color: rgba(255,255,255,.92); max-width: 640px; font-size: 1.05rem; }

/* Homepage facility teaser */
.facility { background: var(--bg); }
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.facility-grid .fg-tall { grid-row: span 2; }
.fg-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  background: var(--blue-050);
}
.facility-grid .fg-tall { aspect-ratio: 4/6; }
.fg-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.fg-tile:hover img { transform: scale(1.08); }
.fg-tile .fg-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, rgba(6,43,84,0) 0%, rgba(6,43,84,.72) 100%);
  color: #fff; font-weight: 600; font-size: .92rem; letter-spacing: .2px;
}
.facility-foot { margin-top: 28px; text-align: center; }

/* Factory gallery */
.gallery-cat { margin-top: 54px; }
.gallery-cat:first-of-type { margin-top: 8px; }
.gallery-cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.gallery-cat-head h3 { margin: 0; font-size: 1.5rem; color: var(--blue-800); }
.gallery-cat-head .gc-line { height: 3px; flex: 1; min-width: 40px; background: linear-gradient(90deg, var(--orange), rgba(255,122,26,0)); border-radius: 3px; }
.gallery-cat-head .gc-sub { color: var(--gray-500); font-size: .95rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); background: var(--blue-050);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gi-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(6,43,84,0) 0%, rgba(6,43,84,.74) 100%);
  color: #fff; font-weight: 600; font-size: .86rem;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease;
}
.gallery-item:hover .gi-cap { opacity: 1; transform: none; }
.gallery-item::after {
  content: "⤢";
  position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.86); color: var(--blue-700); font-size: 1rem;
  opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(6,20,40,.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff;
  font-size: 1.4rem; cursor: pointer; line-height: 1; transition: background .2s;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.32); }
.lightbox .lb-cap {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.9); font-size: .95rem; padding: 0 20px;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; cursor: pointer;
  transition: background .2s;
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-grid .fg-tall { grid-row: auto; aspect-ratio: 4/3; }
}
@media (max-width: 720px) {
  .factory-hero { min-height: 320px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .facility-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { max-width: 560px; }
  .hero-card { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 32px; }
}

@media (max-width: 720px) {
  /* --- Header: compact single row, no horizontal overflow --- */
  .nav { height: 62px; }
  .brand { gap: 9px; }
  .brand .logo-mark { width: 34px; height: 34px; }
  .brand .logo-text { font-size: 1rem; }
  .brand .logo-text small { font-size: .6rem; }
  .nav-cta { gap: 6px; }
  .nav-cta > .btn { display: none; }          /* desktop CTA moves into dropdown */
  .lang-current { padding: 9px; font-size: .76rem; min-height: 40px; }
  .lang-menu { min-width: 168px; right: -2px; }
  .lang-opt { padding: 11px 12px; }

  /* Hamburger — 44px touch target, morphs into an X */
  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; margin-right: -10px; flex: none;
    background: none; border: 0; border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; margin: 2.5px 0; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Dropdown menu — full width, scrollable, 44px+ tap rows */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 6px 20px 18px; margin: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(6,43,84,.14);
    max-height: calc(100vh - 62px);
    max-height: calc(100dvh - 62px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 14px 4px; font-size: 1rem; }
  .nav-links a.active { color: var(--blue-600); }
  .nav-links .nav-mobile-cta { display: block; border: 0; margin-top: 14px; }
  .nav-links .nav-mobile-cta a {
    display: flex; align-items: center; justify-content: center;
    background: var(--orange); color: #fff; font-weight: 700;
    padding: 14px 18px; border-radius: 999px; text-align: center;
  }
  .nav-links .nav-mobile-cta a:hover { color: #fff; background: var(--orange-600); }

  /* --- Layout rhythm --- */
  .container { padding: 0 18px; }
  .section { padding: 52px 0; }
  .section--tight { padding: 40px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head p { font-size: .98rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 12px; }
  .stat .num { font-size: 1.75rem; }
  .stat .label { font-size: .82rem; }

  /* --- Hero --- */
  .hero-grid { padding: 52px 0 62px; gap: 30px; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .hero .lead { font-size: 1rem; }
  .hero-cta { gap: 10px; margin-top: 22px; }
  .hero-badges { margin-top: 26px; gap: 8px; }
  .hero-badges span { font-size: .74rem; padding: 6px 11px; }
  .perf-card { padding: 20px 18px 16px; border-radius: 16px; }
  .perf-kpis { gap: 9px; }
  .kpi { padding: 12px 10px; }
  .kpi-val { font-size: 1.3rem; }
  .kpi-lbl { font-size: .72rem; }
  .perf-chart { height: 72px; margin-top: 14px; }

  /* --- Cards, bands, page hero --- */
  .card { padding: 24px 20px; }
  .cta-band { padding: 34px 20px; border-radius: 18px; }
  .cta-band h2 { font-size: 1.6rem; }
  .cert-row { gap: 10px; }
  .cert-chip { padding: 11px 14px; font-size: .88rem; }
  .partners { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner { height: 68px; font-size: .85rem; }
  .page-hero { padding: 40px 0 46px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.3rem); }
  .breadcrumb { padding-top: 14px; }

  /* --- Forms: 16px stops iOS zoom-on-focus --- */
  .form-card, .info-card, .hero-card { padding: 22px 18px; }
  .field input, .field select, .field textarea,
  .hero-card input, .hero-card select, .hero-card textarea { font-size: 16px; }
  .info-card li { flex-wrap: wrap; gap: 4px 12px; }
  .info-card .k { min-width: 0; flex: none; width: 88px; }

  /* --- Products --- */
  .product { padding: 20px 18px; }
  .product-media { margin-bottom: 16px; }
  .product-media img { padding: 10px; }
  .spec-table { font-size: .82rem; }
  .spec-table th, .spec-table td { padding: 7px 6px; }
  .spec-table th { width: 44%; }

  /* --- FAQ --- */
  .faq-list { gap: 11px; }
  .faq-q { padding: 17px 16px; font-size: .98rem; gap: 12px; }
  .faq-a-inner > div { padding: 0 16px 18px; }
  .faq-a-inner p { font-size: .92rem; }

  /* --- Blog --- */
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-body { padding: 18px 18px 22px; }
  .blog-media { aspect-ratio: 16 / 8; }

  /* --- Footer --- */
  .site-footer { padding: 42px 0 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-bottom { justify-content: center; text-align: center; margin-top: 28px; }

  /* --- Buttons: full-width on small screens, never overflow --- */
  .btn { max-width: 100%; }
  .hero-cta .btn, .cta-band .btn { flex: 1 1 100%; justify-content: center; }

  /* Content stays visible even if reveal JS never runs */
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Small phones (<= 400px) ---------- */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-badges span { font-size: .7rem; }
  .perf-kpis { gap: 7px; }
  .kpi-val { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .stats { gap: 9px; }
  .stat .num { font-size: 1.55rem; }
  .btn--lg { padding: 14px 20px; font-size: .95rem; }
}

/* ---------- Touch devices: no sticky hover states ---------- */
@media (hover: none) {
  .card:hover, .product:hover, .blog-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .product:hover .product-media img,
  .product:hover .product-media--placeholder svg { transform: none; }
  .btn:hover { transform: none; }
}
