/* Bizibo Factory — front-end styles */
:root {
  --ink: #122034;
  --ink-soft: #33465e;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-dark: #cbd5e1;
  --bg: #f7f9fc;
  --white: #ffffff;
  --navy: #0e2a44;
  --navy-deep: #091c2e;
  --accent: #f26a21;
  --accent-dark: #d95512;
  --accent-soft: #fff2e9;
  --green: #167c5a;
  --shadow: 0 12px 30px rgba(15, 32, 55, .07);
  --shadow-sm: 0 4px 14px rgba(15, 32, 55, .06);
  --radius: 14px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 750; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(242, 106, 33, .45); outline-offset: 2px; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* Typography helpers */
.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.lead { color: var(--ink-soft); font-size: 17px; max-width: 680px; }
.small-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.h2 { font-size: clamp(28px, 3.2vw, 38px); }
.h4 { font-size: 20px; margin-bottom: 24px; }
.text-link { color: var(--accent); font-weight: 700; font-size: 14px; display: inline-block; }
.text-link:hover { color: var(--accent-dark); }
.center { text-align: center; margin-top: 40px; }
.narrow { max-width: 820px; margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; line-height: 1.2; border: 1px solid transparent; transition: background .18s, color .18s, transform .18s, border-color .18s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-ghost { color: var(--navy); border-color: var(--line-dark); background: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-accent { background: #fff; color: var(--navy); }
.btn-accent:hover { background: var(--accent-soft); color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -.04em; }
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.055em; color: var(--navy); }
.brand .dot { color: var(--accent); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-mark { background: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 650; color: var(--ink-soft); white-space: nowrap; }
.main-nav a.active, .main-nav a:hover { color: var(--accent); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 11px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero { background: linear-gradient(135deg, #f4f8fc 0%, #ffffff 55%, #fff5ee 100%); padding: 86px 0 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.08; margin-bottom: 22px; max-width: 620px; }
.hero-lead { font-size: 18px; color: var(--ink-soft); max-width: 580px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.hero-points li { position: relative; padding-left: 20px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.hero-points-center { justify-content: center; margin-top: 26px; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 10 / 7; object-fit: cover; }
.hero-badge { position: absolute; right: -14px; bottom: -20px; background: var(--navy); color: #fff; padding: 16px 22px; border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hero-badge strong { font-size: 26px; line-height: 1.1; }
.hero-badge span { font-size: 12px; opacity: .8; }

/* Trust strip */
.trust-strip { background: var(--navy); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.trust-item { padding: 24px 12px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 21px; letter-spacing: -.02em; }
.trust-item span { display: block; font-size: 12px; opacity: .68; margin-top: 2px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section-head { margin-bottom: 42px; max-width: 760px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 12px; }
.section-head .lead { margin-bottom: 0; }
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #143c60 100%); color: #fff; padding: 70px 0 64px; }
.page-hero .eyebrow { color: #ffb38a; }
.page-hero h1, .page-hero h2 { color: #fff; font-size: clamp(34px, 4.4vw, 52px); }
.page-hero .lead { color: rgba(255,255,255,.78); }

/* Cards */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d6e4; }
.category-image { background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.category-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s; }
.category-card:hover .category-image img { transform: scale(1.04); }
.category-body { padding: 22px 24px 26px; }
.category-body h3 { font-size: 19px; margin-bottom: 8px; }
.category-body p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { background: #f5f7fa; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.model { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-body h3 { font-size: 17px; margin: 8px 0 6px; }
.product-body p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { font-size: 11px; background: var(--accent-soft); color: var(--accent-dark); padding: 3px 8px; border-radius: 4px; font-weight: 650; }
.product-body .text-link { margin-top: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.step::after { content: ""; position: absolute; top: 46px; right: -18px; width: 18px; border-top: 2px dashed var(--line-dark); }
.step:last-child::after { display: none; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.step h3 { font-size: 17px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.industry-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.industry-card > div { padding: 18px 20px 22px; }
.industry-card h3 { font-size: 16px; margin-bottom: 6px; }
.industry-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* Factory */
.factory-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.factory-images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.factory-images img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.factory-images img:first-child { margin-top: 34px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 14px; text-align: center; }
.fact strong { display: block; font-size: 24px; color: var(--navy); line-height: 1.15; }
.fact span { font-size: 12px; color: var(--muted); }
.fact-grid.large { grid-template-columns: repeat(6, 1fr); margin: 0; }
.cert-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.cert-list li { font-size: 12px; font-weight: 650; background: #eef5f1; color: var(--green); padding: 6px 12px; border-radius: 999px; }
.lab-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.lab-list { display: grid; gap: 12px; }
.lab-list li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 18px; }
.lab-list strong { display: block; font-size: 15px; color: var(--navy); }
.lab-list span { font-size: 13px; color: var(--muted); }
.lab-list.grid { grid-template-columns: repeat(2, 1fr); }
.lab-image img, .rounded { width: 100%; border-radius: 14px; box-shadow: var(--shadow-sm); }

/* FAQ */
.faq-wrap > div { max-width: 860px; }
.faq-list { margin-top: 20px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--navy); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 22px; color: var(--accent); line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); padding-right: 30px; margin-bottom: 18px; }

/* CTA & footer */
.cta-band { background: var(--navy); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.72); margin: 0; }
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 66px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 46px; padding-bottom: 50px; }
.footer-about p { max-width: 310px; }
.footer-about .brand { margin-bottom: 18px; }
.footer-meta { font-size: 12px; opacity: .7; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; opacity: .7; }

/* Breadcrumbs */
.crumbs { background: #fff; border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; font-size: 12px; color: var(--muted); width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-dark); }
.crumbs a:hover { color: var(--accent); }

/* Product detail */
.product-detail { padding: 56px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.product-gallery { background: var(--bg); border-radius: 16px; padding: 32px; display: grid; place-items: center; }
.product-gallery img { width: 100%; max-width: 520px; aspect-ratio: 1; object-fit: contain; }
.product-info h1 { font-size: clamp(32px, 4vw, 46px); margin: 10px 0 18px; }
.product-info .lead { font-size: 16px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.feature-list li { font-size: 14px; padding-left: 24px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.spec-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 26px; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 13px 14px; text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 650; background: #fafbfc; }
.spec-table td { color: var(--ink); font-weight: 550; }
.spec-table.wide th { width: 26%; }
.custom-list { display: grid; gap: 10px; }
.custom-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-soft); }
.custom-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Forms */
.contact-wrap { align-items: start; }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rfq-form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 18px; }
.rfq-form input, .rfq-form select, .rfq-form textarea { display: block; width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid var(--line-dark); border-radius: 7px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 450; }
.rfq-form textarea { resize: vertical; }
.rfq-form input:focus, .rfq-form select:focus, .rfq-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(242,106,33,.12); }
.honeypot { position: absolute; left: -9999px; }
.form-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.cf-turnstile { margin: 4px 0 16px; min-height: 68px; }
.contact-aside { background: var(--bg); border-radius: var(--radius); padding: 32px; }
.contact-aside p { font-size: 14px; color: var(--muted); }
.contact-aside strong { color: var(--navy); }
.callout { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 18px 20px; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--ink-soft); margin-top: 22px; }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.article-card h3 { font-size: 21px; margin: 8px 0 10px; }
.article-card p { color: var(--muted); font-size: 14px; }
.article-page { padding: 66px 0 20px; }
.article-page h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 16px; }
.article-content { margin: 34px 0; color: var(--ink-soft); }
.article-content h3 { font-size: 22px; margin-top: 32px; }
.article-content p, .article-content li { font-size: 16px; line-height: 1.8; }
.article-content ul { list-style: disc; padding-left: 22px; margin: 16px 0; }

/* WordPress specifics */
.wp-block-image img { border-radius: 12px; }
.aligncenter { display: block; margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
body.page .entry-content h2 { font-size: 30px; margin-top: 34px; }
body.page .entry-content p, body.page .entry-content li { color: var(--ink-soft); }
body.page .page-entry { padding: 70px 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span { padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-bar a { font-size: 13px; font-weight: 650; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.filter-bar a.active, .filter-bar a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.no-results { padding: 60px 0; text-align: center; }
.admin-note { max-width: 700px; margin: 30px auto; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }

/* Responsive */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .fact-grid.large { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(3) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px 24px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .header-cta { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 8px; }
  .hero-grid, .factory-wrap, .lab-wrap, .product-detail-grid, .spec-wrap, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0; }
  .hero-badge { right: 16px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .lab-list.grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  .crumbs ol { width: calc(100% - 32px); }
  .header-cta { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-actions .btn { width: 100%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-bottom: 1px solid rgba(255,255,255,.1); }
  .section { padding: 60px 0; }
  .category-grid, .product-grid, .industry-grid, .steps, .fact-grid, .fact-grid.large { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .cta-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .factory-images { grid-template-columns: 1fr 1fr; }
}
