/* ===== Design tokens ===== */
:root {
  --primary: #243c96;
  --primary-dark: #1a2b70;
  --accent: #f2a83b;
  --navy: #12263a;
  --text: #1f2d3a;
  --muted: #5b6b78;
  --bg: #ffffff;
  --bg-alt: #f3f5fb;
  --border: #dde3ef;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(18, 38, 58, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: "Inter", system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 800px; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: .2s; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.logo-mark { width: 36px; height: 36px; object-fit: contain; }
.logo-light .logo-mark { filter: brightness(0) invert(1); }   /* white logo on dark footer */
.logo.logo-light b { color: #9db3f0; }
.logo b { color: var(--primary); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 18px; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.main-nav a:not(.btn):hover { color: var(--primary); }
.lang-link { font-weight: 700; font-size: .85rem; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; }
.lang-link::before { content: "🌐 "; }
.lang-link + .lang-link { margin-left: -18px; }
.lang-link + .lang-link::before { content: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #ebf0fb 0%, #ffffff 60%); padding: 80px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.12; color: var(--navy); font-weight: 800; margin-bottom: 20px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; color: var(--navy); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); }
.hero-badges li::before { content: "✓ "; color: var(--primary); font-weight: 700; }
.hero-art svg { width: 100%; max-width: 480px; margin-left: auto; filter: drop-shadow(0 20px 30px rgba(36,60,150,.15)); }

/* ===== Stats ===== */
.stats { background: var(--navy); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.stats strong::after { content: "+"; }
.stats span { font-size: .9rem; opacity: .8; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #dbe6ec; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--accent); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-dark .section-head p:not(.eyebrow) { color: #b6c6cf; }

/* ===== Products ===== */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border); background: #fff; cursor: pointer; font: inherit; font-weight: 500; color: var(--muted); transition: .2s; }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: .25s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product.hidden { display: none; }
.product-img { height: 170px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; }
.product-img svg, .product-img img { height: 130px; width: auto; }
.product h3 a:hover { color: var(--primary); }
.more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; color: var(--primary); }
.more:hover { text-decoration: underline; }
.pet-bg { background: linear-gradient(160deg, #e6ecfa, #f8faff); }
.hdpe-bg { background: linear-gradient(160deg, #eef1f3, #fafbfc); }
.closure-bg { background: linear-gradient(160deg, #e8ecf5, #f8f9fc); }
.product p { color: var(--muted); font-size: .94rem; margin-bottom: 12px; }
.specs { list-style: none; font-size: .85rem; border-top: 1px dashed var(--border); padding-top: 10px; }
.specs li::before { content: "• "; color: var(--primary); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; letter-spacing: .04em; }
.tag-pet { background: #dce4f7; color: var(--primary-dark); }
.tag-hdpe { background: #fdecd0; color: #9a5d06; }
.tag-closure { background: #e0e7ff; color: #3949ab; }

/* ===== Compare table ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .95rem; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 600; }
.compare thead .tag { margin: 0 6px 0 0; }
.compare tbody th { color: var(--navy); width: 20%; white-space: nowrap; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.table-note { margin-top: 12px; font-size: .88rem; color: var(--muted); font-style: italic; }

/* ===== Capabilities ===== */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.cap-icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--bg-alt); border-radius: 12px; margin-bottom: 16px; }
.cap p { color: var(--muted); font-size: .94rem; }

/* ===== Industries ===== */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.industry { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px 18px; text-align: center; font-size: 2rem; transition: .2s; }
.industry:hover { background: rgba(255,255,255,.12); }
.industry span { display: block; font-size: .95rem; font-weight: 600; color: #fff; margin-top: 8px; }

/* ===== Process ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; text-align: center; padding: 0 6px; }
.steps span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.2rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: calc(50% + 34px); width: calc(100% - 50px); height: 2px; background: var(--border); }
.steps p { color: var(--muted); font-size: .9rem; }

/* ===== Split layouts ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split > div > p:not(.eyebrow) { color: var(--muted); margin-bottom: 20px; }
.section-dark .split > div > p:not(.eyebrow) { color: #b6c6cf; }
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.eco-card { background: linear-gradient(145deg, var(--primary), #3f63c8); color: #fff; border-radius: 20px; padding: 50px 40px; text-align: center; box-shadow: var(--shadow); }
.eco-num { font-size: 5rem; line-height: 1; margin-bottom: 14px; }
.eco-card strong { font-size: 1.4rem; }
.split > .eco-card > p:not(.eyebrow) { color: #fff; margin-bottom: 0; }   /* beats the grey .split paragraph rule */

/* ===== FAQ ===== */
details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: #fff; }
summary { padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; color: var(--navy); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); transition: .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 18px; color: var(--muted); }

/* ===== Quote form ===== */
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list b { display: block; color: #fff; font-size: .85rem; }
.contact-list a { color: var(--accent); }
.quote-form { background: #fff; color: var(--text); border-radius: 18px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.quote-form input, .quote-form select, .quote-form textarea { font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfe; width: 100%; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.quote-form .invalid { border-color: #d64545; background: #fff6f6; }
.form-msg { font-size: .9rem; text-align: center; min-height: 1.2em; }
.quote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }   /* spam trap, hidden from people */
.quote-form button:disabled { opacity: .6; cursor: wait; }
.form-msg.ok { color: var(--primary); }
.form-msg.err { color: #d64545; }

/* ===== Product detail pages ===== */
.product-hero { background: linear-gradient(135deg, #ebf0fb 0%, #ffffff 60%); padding: 30px 0 70px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--navy); font-weight: 500; }
.product-hero-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.product-hero-img { border-radius: 20px; display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--border); box-shadow: var(--shadow); }
.product-hero-img img { width: 70%; height: 70%; object-fit: contain; }
.product-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 6px; }
.product-hero .lead { margin-bottom: 22px; }
.product-hero .checklist { margin-bottom: 26px; }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.quick-facts div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.quick-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.quick-facts dd { font-size: .92rem; font-weight: 600; color: var(--navy); }
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; }
.detail-grid h2 { margin-bottom: 22px; }
.spec-table { min-width: 0; }
.apps-title { margin: 30px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .88rem; }

/* ===== About page ===== */
.main-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.page-hero { background: linear-gradient(135deg, #ebf0fb 0%, #ffffff 60%); padding: 30px 0 70px; }
.page-hero h1, .page-hero .lead { max-width: 780px; }
.fact-list { list-style: none; display: grid; gap: 14px; }
.fact-list li { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); }
.fact-list strong { display: block; font-size: 1.25rem; color: var(--navy); }
.fact-list span { color: var(--muted); font-size: .95rem; }
.industry-grid.light { grid-template-columns: repeat(3, 1fr); }
.industry-grid.light .industry { background: #fff; border-color: var(--border); }
.industry-grid.light .industry span { color: var(--navy); }
.center-cta { text-align: center; margin-top: 32px; }
.quality { text-align: center; }
.quality blockquote { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: #fff; margin: 6px 0 20px; }
.quality p:not(.eyebrow) { color: #b6c6cf; font-size: 1.05rem; }
.quality strong { color: #fff; }
.cta-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px; padding: 36px 40px; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--muted); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.about-photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
@media (max-width: 600px) { .industry-grid.light { grid-template-columns: repeat(2, 1fr); } .cta-band { padding: 26px 22px; } }

/* ===== Footer ===== */
.site-footer { background: #0b1a28; color: #8fa3b1; padding: 60px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; }
.footer-grid a:not(.logo) { display: block; margin-bottom: 8px; }
.footer-grid a:not(.logo):hover { color: #fff; }
.logo-light { color: #fff; margin-bottom: 12px; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; font-size: .85rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px; border-bottom: 1px solid var(--border); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav .btn { margin-top: 12px; text-align: center; border: 0; }
  .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); }
  .lang-link + .lang-link { margin-left: 0; }
}
@media (max-width: 960px) {
  .hero-inner, .split, .product-hero-inner, .detail-grid { grid-template-columns: 1fr; }
  .product-hero-img { max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-art svg { margin: 0 auto; max-width: 360px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 50px 0 40px; }
  .cap-grid { grid-template-columns: 1fr; }
  .quote-form .row, .quick-facts { grid-template-columns: 1fr; }
  .quote-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
