/* =========================================================
   SprocketsPro - Global Stylesheet
   Industrial / Engineering theme
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-bg-dark: #10161f;
  --color-ink: #0f172a;
  --color-ink-soft: #475569;
  --color-muted: #94a3b8;
  --color-line: #e2e8f0;
  --color-primary: #0b3d7a;        /* Steel blue */
  --color-primary-dark: #062a57;
  --color-accent: #f59e0b;         /* Industrial amber */
  --color-accent-dark: #c97a05;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .12);
  --radius: 10px;
  --radius-lg: 18px;
  --maxw: 1200px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --font-sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

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

/* ---------------- Header / Navigation ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-primary);
  letter-spacing: .5px;
}

.brand-logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.brand-logo svg { width: 30px; height: 30px; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-main a {
  padding: 8px 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-ink-soft);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-main a:hover { color: var(--color-primary); background: var(--color-bg-alt); }
.nav-main a.is-active { color: var(--color-primary); background: rgba(11,61,122,.08); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 13px;
  background: #fff;
}

.lang-dropdown { position: relative; font-size: .9rem; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: border-color .15s ease, color .15s ease;
}
.lang-current:hover,
.lang-dropdown.open .lang-current { border-color: #0b3d7a; color: #0b3d7a; }
.caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .18s ease;
}
.lang-dropdown.open .caret { transform: rotate(-135deg); margin-top: 2px; }

.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px; padding: 6px; margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(15,23,42,.15);
  display: none;
  z-index: 60;
}
.lang-dropdown.open .lang-menu { display: block; }

.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s ease;
}
.lang-menu li:hover { background: #f8fafc; color: #0b3d7a; }
.lang-menu li.is-active { background: rgba(11,61,122,.08); color: #0b3d7a; font-weight: 600; }

.lang-menu .code {
  display: inline-block; min-width: 32px;
  padding: 2px 6px;
  font-size: .72rem; font-weight: 700;
  background: #f8fafc;
  color: #64748b;
  border-radius: 4px;
  text-align: center;
  letter-spacing: .04em;
}
.lang-menu li.is-active .code { background: #0b3d7a; color: #fff; }
.lang-menu .name { flex: 1; }
.lang-label { width: 28px; height: 14px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--color-accent-dark); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-main { display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 12px; border-bottom: 1px solid var(--color-line); }
  .nav-main.open { display: flex; }
  .nav-main a { width: 100%; }
  .nav-toggle {
    display: inline-flex; width: 40px; height: 40px; border-radius: 8px;
    align-items: center; justify-content: center; border: 1px solid var(--color-line);
  }
  .nav-cta { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    linear-gradient(135deg, rgba(6,42,87,.92), rgba(11,61,122,.82)),
    url("https://baartgroup.com/wp-content/uploads/roller-chain-clinging-scaled.jpg") center/cover;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,158,11,.25), transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  color:  rgba(255,255,255,.85); letter-spacing: 1px; 
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1;
  font-weight: 800;
  max-width: 1200px;
  margin-bottom: 16px;
}

.hero p.lede {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  max-width: 1000px;
  margin-bottom: 16px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.btn-dark { background: var(--color-primary); color: #fff; }
.btn-dark:hover { background: var(--color-primary-dark); }

/* ---------------- Sections ---------------- */
section.block { padding: 40px 0; }
section.block.alt { background: var(--color-bg-alt); }
section.block.dark { background: var(--color-bg-dark); color: #fff; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .kicker {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(6,42,87,.92);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}
.section-head p { color: var(--color-ink-soft); font-size: 16px; }

.dark .section-head p { color: rgba(255,255,255,.7); }

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

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card .icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(11,61,122,.08);
  color: var(--color-primary);
  margin-bottom: 18px;
}
.card .icon svg { width: 28px; height: 28px; }

.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--color-ink-soft); font-size: 15px; }

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-row h2 { font-size: 16px; font-weight: 700; letter-spacing: 1.2px; color: rgba(6,42,87,.92); margin-bottom: 10px; }
.feature-row h3 { font-size: 28px; margin-bottom: 14px; line-height: 1.2; }
.feature-row p { color: var(--color-ink-soft); margin-bottom: 10px; font-size: 16px; }
.feature-row ul { list-style: none; margin-top: 12px; }
.feature-row ul li {
  position: relative; padding-left: 28px;
  color: var(--color-ink-soft); margin-bottom: 10px;
}
.feature-row ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(245,158,11,.2);
}

.feature-row .media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.feature-row .media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .feature-row.reverse { direction: ltr; }
}

/* Stats */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: -30px;
  position: relative;
  z-index: 2;
}
.stat-item { text-align: center; }
.stat-item .value {
  font-size: 40px; font-weight: 800; color: var(--color-accent);
  display: block; line-height: 1;
}
.stat-item .label {
  display: block; font-size: 15px; color: rgba(255,255,255,.75); margin-top: 8px;
  letter-spacing: 1px; text-transform: uppercase;
}
@media (max-width: 700px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
}

/* Product / Tile cards */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-line);
  transition: var(--transition);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile-img { aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-alt); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile-body { padding: 20px 22px; }
.tile-body h4 { font-size: 17px; margin-bottom: 6px; }
.tile-body p { color: var(--color-ink-soft); font-size: 14px; }
.tile-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 10px;
  background: rgba(11,61,122,.9); color: #fff;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: ""; position: absolute; left: 14px; top: 0; bottom: 0;
  width: 2px; background: var(--color-line);
}
.timeline-step {
  position: relative;
  padding-bottom: 40px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: ""; position: absolute; left: -32px; top: 4px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(11,61,122,.15);
}
.timeline-step .num {
  position: absolute; left: -32px; top: 4px;
  width: 30px; height: 30px; display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700; z-index: 1;
}
.timeline-step h4 { font-size: 18px; margin-bottom: 6px; }
.timeline-step p { color: var(--color-ink-soft); font-size: 15px; }

/* Video block */
.video-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: #000;
}
.video-block video, .video-block iframe {
  width: 100%; height: 100%; display: block; object-fit: cover; border: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 20px; }
.contact-item {
  display: flex; gap: 16px; padding: 20px;
  background: #fff; border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.contact-item .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(11,61,122,.08); color: var(--color-primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 14px; color: var(--color-muted); margin-bottom: 4px; font-weight: 500; }
.contact-item p { font-size: 16px; color: var(--color-ink); font-weight: 500; }

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 13px; color: var(--color-ink-soft);
  font-weight: 500; margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--color-line); border-radius: 8px;
  font-family: inherit; font-size: 14px; background: var(--color-bg-alt);
  transition: var(--transition);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--color-primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(11,61,122,.12);
}
.form-row textarea { min-height: 120px; resize: vertical; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .industry-grid { grid-template-columns: 1fr; } }

.industry-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.industry-card:hover img { transform: scale(1.08); }
.industry-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,14,28,.92) 10%, rgba(6,14,28,.2) 60%, transparent);
}
.industry-card .overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px; color: #fff; z-index: 1;
}
.industry-card .overlay h4 { font-size: 20px; margin-bottom: 8px; }
.industry-card .overlay p { font-size: 14px; color: rgba(255,255,255,.8); }

/* Advantage list */
.advantage {
  display: flex; gap: 20px;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  transition: var(--transition);
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.advantage .num {
  font-size: 40px; font-weight: 800;
  color: var(--color-accent); line-height: 1;
  font-family: "Inter", sans-serif;
  flex-shrink: 0;
}
.advantage h3 { font-size: 18px; margin-bottom: 8px; }
.advantage p { color: var(--color-ink-soft); font-size: 14px; }

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer-col h5 {
  color: #fff; font-size: 13px;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; transition: var(--transition); }
.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* Page banner (non-homepage) */
.page-banner {
  padding: 96px 0 80px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 70%, var(--color-primary)), 
  url("https://baartgroup.com/wp-content/uploads/roller-chain-clinging-scaled.jpg") center/cover;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 30%, rgba(245,158,11,.25), transparent 50%),
                    repeating-linear-gradient(135deg, transparent 0, transparent 40px, rgba(255,255,255,.03) 40px, rgba(255,255,255,.03) 41px);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .crumbs {
  font-size: 20px; color: rgba(255,255,255,.85); margin-bottom: 16px;
  letter-spacing: 1px; font-weight: 800;
}
.page-banner h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  max-width: 1200px;
  line-height: 1;
  margin-bottom: 16px;
}
.page-banner p { max-width: 1000px; color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 16px;}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-24 { margin-top: 24px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .6s cubic-bezier(.4,0,.2,1) both; }

[data-lang="zh"] body, body[data-lang="zh"] {
  font-family: "PingFang SC", "Microsoft YaHei", "Inter", sans-serif;
}
