/*
Theme Name: JBL Metal
Theme URI: https://www.jblmetal.com
Author: JBL Metal
Author URI: https://www.jblmetal.com
Description: Official WordPress theme for Jin Bei Li Metal (Suzhou) Co., Ltd — Engineered Woven & Structural Metal Systems. Custom-built for B2B architectural metal mesh marketing with full SEO, multilingual, and conversion tracking support.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://www.jblmetal.com/terms-conditions/
Text Domain: jblmetal
Tags: business, custom-menu, featured-images, full-width-template, translation-ready

JBL Metal Theme — Version 2.0
Built: March 2026
*/

/* ═══════════════════════════════════════════
   JBL METAL — COMPLETE DESIGN SYSTEM v2.0
   Brand Colors:
     Red:       #C13B2A
     Night:     #1A1A1A
     Charcoal:  #3D3D3D
     Cloud:     #F5F4F2
   ═══════════════════════════════════════════ */

:root {
  /* Brand */
  --red:       #C13B2A;
  --red-h:     #D04535;
  --red-p:     #A83020;
  --red-glow:  rgba(193,59,42,0.15);

  /* Darks */
  --night:     #1A1A1A;
  --night-2:   #222222;
  --charcoal:  #3D3D3D;

  /* Lights */
  --cloud:     #F5F4F2;
  --gray-lt:   #EEEDE9;
  --gray-bd:   #E0DED9;
  --white:     #FFFFFF;

  /* Text */
  --txt-h:     #2A2A2A;
  --txt-b:     #5A5A5A;
  --txt-lt:    #9A9A9A;

  /* Layout */
  --info-h:    36px;
  --lang-h:    30px;
  --nav-h:     80px;
  --max:       1440px;
  --pad:       32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--cloud);
  color: var(--txt-b);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* WordPress core compatibility */
.wp-block-image { margin: 0; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Sticky header offset */
/* padding-top is set dynamically by JS to match actual fixed header height */
body { padding-top: calc(var(--info-h) + var(--lang-h) + var(--nav-h)); }
body.header-measured { padding-top: var(--header-total-h, 146px); }

/* ─── UTILITY ─── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.red { color: var(--red); }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--red);
}
.sec-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.sec-h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 4.8vw, 72px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.3px;
  color: var(--txt-h);
}
.sec-h2.light { color: var(--white); }

.body-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--txt-b);
}
.body-text.light { color: rgba(255,255,255,0.5); }

/* ─── BUTTONS ─── */
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-red:hover {
  background: var(--red-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,59,42,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* ─── INFO BAR ─── */
.info-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--night);
  height: var(--info-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
}
.info-contacts {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.info-item:hover { color: rgba(255,255,255,0.8); }
.info-icon { font-size: 11px; }
.info-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.1); margin: 0 16px; }

/* ─── LANGUAGE BAR ─── */
.lang-bar {
  position: fixed;
  top: var(--info-h); left: 0; right: 0;
  z-index: 199;
  background: var(--night-2);
  height: var(--lang-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  gap: 16px;
}
.lang-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.lang-list { display: flex; align-items: center; list-style: none; }
.lang-list li + li { border-left: 1px solid rgba(255,255,255,0.07); }
.lang-list a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.35);
  height: var(--lang-h);
  transition: color 0.2s;
}
.lang-list a:hover { color: rgba(255,255,255,0.6); }
.lang-list a.active { color: var(--red); }

/* ─── MAIN NAV ─── */
#nav {
  position: fixed;
  top: var(--nav-offset, calc(var(--info-h) + var(--lang-h)));
  left: 0; right: 0;
  z-index: 198;
  background: var(--night);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.4); }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 36px; }
.logo-lockup { display: flex; flex-direction: column; gap: 0; }
.logo-row1 { display: flex; align-items: center; line-height: 1; }
.logo-mark { width: 22px; height: 22px; flex-shrink: 0; margin-right: 8px; }
.logo-jbl { font-family: 'Barlow', sans-serif; font-size: 28px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; line-height: 1; margin-right: 8px; }
.logo-metal { font-family: 'Barlow', sans-serif; font-size: 20px; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: 0.12em; }
.logo-rule { height: 1px; background: rgba(255,255,255,0.18); margin: 4px 0; }
.logo-tagline { font-family: 'Barlow', sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.28); white-space: nowrap; }

/* Nav menu */
.nav-group { display: flex; align-items: center; flex: 1; height: var(--nav-h); justify-content: center; }
.ni { position: relative; height: var(--nav-h); display: flex; align-items: center; }
.ni-plain, .ni-trigger {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 0 18px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.2s;
  border: none;
  background: none;
}
.ni-plain:hover, .ni-trigger:hover, .ni.open .ni-trigger, .ni.active .ni-trigger { color: var(--white); }
.ni-plain.active { color: var(--red); }
.chev { width: 8px; height: 5px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.ni.open .chev { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute;
  top: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  background: var(--night-2);
  border-top: 2px solid var(--red);
  min-width: 580px;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
}
.ni.open .mega { opacity: 1; visibility: visible; pointer-events: auto; }
.mega-wrap { display: grid; gap: 0 32px; }
.g-221 { grid-template-columns: 2fr 2fr 1fr; }
.g-2 { grid-template-columns: 1fr 1fr; }
.mcol-head { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ml { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); transition: padding-left 0.2s; }
.ml:hover { padding-left: 6px; }
.ml-t { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.ml:hover .ml-t { color: var(--white); }
.ml-s { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.3); margin-top: 2px; }

/* CTA button in nav */
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-cta-btn {
  height: 40px;
  padding: 0 20px;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.nav-cta-btn:hover { background: var(--red-h); }

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ─── FOOTER ─── */
footer {
  background: var(--night);
  color: var(--white);
  padding: 60px var(--pad) 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { margin-bottom: 16px; }
.footer-logo-row { display: flex; align-items: center; margin-bottom: 8px; }
.footer-jbl { font-family: 'Barlow', sans-serif; font-size: 28px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; margin-right: 8px; }
.footer-metal { font-family: 'Barlow', sans-serif; font-size: 20px; font-weight: 700; color: rgba(255,255,255,0.75); letter-spacing: 0.12em; align-self: center; }
.footer-rule { height: 1px; background: rgba(255,255,255,0.12); margin: 6px 0; }
.footer-tagline { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.22); }
.footer-desc { font-size: 13px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.35); margin-top: 16px; }
.footer-col-head { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact-item { display: flex; flex-direction: column; margin-bottom: 12px; }
.footer-contact-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 2px; }
.footer-contact-value { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.6); }
.footer-contact-response { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.22); margin-top: 8px; }
.footer-creds { display: flex; flex-direction: column; gap: 8px; }
.footer-cred-item { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.4); padding: 8px 12px; border: 1px solid rgba(255,255,255,0.08); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-soc-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); transition: background 0.2s; }
.footer-soc-btn:hover { background: var(--red); }
.footer-nav-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Footer lang bar */
.footer-lang-bar { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.footer-lang-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 4px; }
.footer-lang-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-right: 10px; }
.lang-item { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 2px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.28); transition: color 0.2s, background 0.15s; }
.lang-item:hover { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.05); }
.lang-item.active { color: var(--white); background: rgba(193,59,42,0.18); }
.lang-flag {
  display: inline-block;
  width: 18px !important;
  height: 18px !important;
  border-radius: 3px;
  flex-shrink: 0;
  vertical-align: middle;
  overflow: hidden;
  line-height: 18px;
}
.lang-item.active .lang-flag {
  outline: 1.5px solid rgba(193,59,42,0.8);
  outline-offset: 1px;
}

/* Footer bottom */
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 24px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.2); }
.footer-legal { display: flex; align-items: center; gap: 10px; }
.footer-legal-link { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.22); transition: color 0.2s; }
.footer-legal-link:hover { color: rgba(255,255,255,0.6); }
.footer-legal-sep { color: rgba(255,255,255,0.12); }
.footer-iso { display: flex; align-items: center; gap: 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.28); }
.footer-iso-dot { width: 7px; height: 7px; background: var(--red); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav-group { display: none; }
  .nav-mobile-toggle { display: block; }
  .footer-brand { grid-template-columns: 1fr 1fr; }
  .footer-nav-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; --nav-h: 64px; }
  .footer-brand { grid-template-columns: 1fr; }
  .footer-nav-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .lang-bar { display: none; }
  body { padding-top: calc(var(--info-h) + var(--nav-h)); }
}

/* ─── WORDPRESS SPECIFIC ─── */
.wp-content img { max-width: 100%; height: auto; }
.wp-content p { font-size: 16px; font-weight: 300; line-height: 1.85; color: var(--txt-b); margin-bottom: 20px; }
.wp-content h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--txt-h); margin: 40px 0 16px; }
.wp-content h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; color: var(--txt-h); margin: 32px 0 12px; }
.wp-content ul { list-style: none; margin: 16px 0 24px; }
.wp-content ul li { font-size: 16px; font-weight: 300; color: var(--txt-b); padding: 6px 0 6px 20px; position: relative; line-height: 1.75; }
.wp-content ul li::before { content: ''; position: absolute; left: 0; top: 16px; width: 6px; height: 2px; background: var(--red); }
.wp-content a { color: var(--red); text-decoration: underline; }

/* Blog post styles */
.blog-hero { background: var(--night); padding: 64px var(--pad) 56px; }
.blog-hero-inner { max-width: 860px; margin: 0 auto; }
.blog-content { max-width: 860px; margin: 0 auto; padding: 60px var(--pad) 80px; }
.blog-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.blog-cat { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); background: rgba(193,59,42,0.08); padding: 4px 12px; }
.blog-date { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--txt-lt); text-transform: uppercase; }
.blog-readtime { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--txt-lt); text-transform: uppercase; }
