/* ============================================================
   HeavyTrade — dark industrial theme for machinery exporters
   ============================================================ */
:root {
  --bg: #09090b;
  --bg-2: #101013;
  --bg-3: #18181c;
  --card: #131316;
  --border: #26262c;
  --border-light: #333339;
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;
  --accent: #fbbf24;
  --accent-dark: #d97706;
  --accent-ink: #09090b;
  --radius: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(251, 191, 36, .3); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); }

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.lead { margin-top: 16px; color: var(--text-dim); font-size: 17px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 8px; border: 0; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn:hover { background: #fcd34d; transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(9, 9, 11, .92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  padding: 10px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 8px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.brand-badge svg { width: 20px; height: 20px; stroke: var(--accent-ink); }
.brand span em { color: var(--accent); font-style: normal; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul.nav-list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--text-dim); transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.main-nav .btn { padding: 9px 18px; font-size: 14px; }
.main-nav a.btn { color: var(--accent-ink); font-weight: 700; }
.main-nav a.btn:hover { color: var(--accent-ink); background: #fcd34d; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--text); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9, 9, 11, .97); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul.nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav a.btn { display: flex; border-bottom: 0; }
  .main-nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,9,11,.95) 0%, rgba(9,9,11,.72) 45%, rgba(9,9,11,.2) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 22%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 80px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(251,191,36,.4); background: rgba(251,191,36,.1);
  border-radius: 999px; padding: 7px 16px;
  color: #fcd34d; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hero-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 {
  margin-top: 24px; max-width: 640px;
  font-size: clamp(40px, 6.5vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: -.025em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { margin-top: 22px; max-width: 560px; font-size: 18px; color: #d4d4d8; }
.hero p strong { color: #fff; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-badges div { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; font-weight: 500; }
.hero-badges svg { width: 16px; height: 16px; stroke: var(--accent); }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.stat-num { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.stat-num em { color: var(--accent); font-style: normal; }
.stat-label { margin-top: 4px; color: var(--text-dim); font-size: 14px; font-weight: 500; }
@media (max-width: 800px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Brand strip ---------- */
.brands { padding: 40px 0; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.brands .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 48px; }
.brands span { font-size: 22px; font-weight: 800; letter-spacing: .06em; color: var(--text-faint); transition: color .25s; }
.brands span:hover { color: var(--accent); }
.brands .sep { color: var(--border-light); font-size: 18px; }

/* ---------- Category cards ---------- */
.cat-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--card); transition: border-color .25s, transform .25s;
}
.cat-card:hover { border-color: rgba(251,191,36,.5); transform: translateY(-4px); }
.cat-card .img { aspect-ratio: 3 / 2; overflow: hidden; background: #e7e7ea; }
.cat-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .img img { transform: scale(1.05); }
.cat-card .body { padding: 18px 20px 20px; }
.cat-card h3 { font-size: 18px; font-weight: 700; }
.cat-card .meta { margin-top: 4px; font-size: 13px; color: var(--text-faint); }
.cat-card .go { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 600; }
.cat-card .go svg { width: 15px; height: 15px; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Machine cards ---------- */
.machine-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.machine-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--card); transition: border-color .25s, transform .25s;
}
.machine-card:hover { border-color: rgba(251,191,36,.5); transform: translateY(-4px); }
.machine-card .img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e7e7ea; }
.machine-card .img img { width: 100%; height: 100%; object-fit: cover; }
.machine-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(9,9,11,.85); backdrop-filter: blur(6px);
  color: var(--accent); font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.machine-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.machine-card h3 { font-size: 17px; font-weight: 700; }
.machine-card h3 a:hover { color: var(--accent); }
.machine-card .cat { margin-top: 3px; font-size: 12.5px; color: var(--text-faint); }
.machine-card .specs-mini { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.machine-card .specs-mini span {
  font-size: 12px; color: var(--text-dim);
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
}
.machine-card .actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.machine-card .actions a { font-size: 14px; font-weight: 600; color: var(--accent); }
.machine-card .actions .details { color: var(--text-dim); }
.machine-card .actions .details:hover { color: var(--text); }
@media (max-width: 960px) { .machine-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .machine-grid { grid-template-columns: 1fr; } }

/* ---------- Filter tabs ---------- */
.filter-tabs { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs a {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--bg-3); color: var(--text-dim); border: 1px solid transparent;
  transition: all .2s;
}
.filter-tabs a:hover { color: var(--text); }
.filter-tabs a.active { background: var(--accent); color: var(--accent-ink); }

/* ---------- Why us ---------- */
.why-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s;
}
.why-card:hover { border-color: rgba(251,191,36,.45); }
.why-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.2);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.why-card h3 { margin-top: 18px; font-size: 17px; font-weight: 700; }
.why-card p { margin-top: 8px; font-size: 14px; color: var(--text-dim); }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Global ---------- */
.global-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.global-img { position: relative; }
.global-img img { border-radius: var(--radius); border: 1px solid var(--border-light); aspect-ratio: 16/9; object-fit: cover; }
.global-img .float {
  position: absolute; bottom: -22px; right: 20px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 14px; padding: 16px 24px; box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.global-img .float b { display: block; font-size: 26px; font-weight: 800; }
.global-img .float span { font-size: 13px; font-weight: 600; }
.region-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.region-row svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; }
.region-row .name { width: 170px; font-size: 14px; font-weight: 600; }
.region-row .bar { flex: 1; height: 8px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.region-row .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: 0; transition: width 1s ease .2s; }
.region-row .pct { width: 42px; text-align: right; font-size: 13px; font-weight: 700; color: var(--accent); }
.leadtime {
  margin-top: 26px; display: flex; gap: 12px; align-items: flex-start;
  background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.2);
  border-radius: 12px; padding: 16px 18px; font-size: 14px; color: var(--text-dim);
}
.leadtime svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }
.leadtime strong { color: var(--text); }
@media (max-width: 960px) { .global-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.process-step { text-align: center; }
.process-icon {
  position: relative; margin: 0 auto; width: 92px; height: 92px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.process-icon svg { width: 34px; height: 34px; stroke: var(--accent); }
.process-icon b {
  position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.process-step .time { margin-top: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.process-step h3 { margin-top: 6px; font-size: 15.5px; font-weight: 700; }
.process-step p { margin-top: 8px; font-size: 13px; color: var(--text-dim); }
@media (max-width: 960px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Inquiry / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 56px; }
.contact-info-item { display: flex; gap: 14px; margin-top: 24px; }
.contact-info-item .ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.2);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .ic svg { width: 19px; height: 19px; stroke: var(--accent); }
.contact-info-item .lbl { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-info-item .val { margin-top: 2px; font-size: 14.5px; font-weight: 600; }
.inquiry-box { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: #d4d4d8; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border-light);
  border-radius: 8px; padding: 12px 14px; color: var(--text); font-size: 14px;
  font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(251,191,36,.15);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--text-faint); }
.form-success {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 60px 20px;
}
.form-success svg { width: 64px; height: 64px; stroke: var(--accent); }
.form-success h3 { margin-top: 20px; font-size: 24px; font-weight: 800; }
.form-success p { margin-top: 10px; color: var(--text-dim); max-width: 380px; }
.form-success p b { color: var(--accent); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Archive / single machine ---------- */
.page-hero { padding: 150px 0 60px; background: linear-gradient(to bottom, #101013, var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { margin-top: 12px; color: var(--text-dim); max-width: 640px; }
.crumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }

.single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.single-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #e7e7ea; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--text-faint); font-weight: 500; width: 45%; }
.spec-table td { font-weight: 600; }
.spec-table tr:hover { background: var(--bg-3); }
.condition-pill {
  display: inline-block; background: rgba(251,191,36,.12); color: var(--accent);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.machine-desc { margin-top: 26px; color: var(--text-dim); }
.machine-desc h2, .machine-desc h3 { color: var(--text); margin: 22px 0 10px; }
.machine-desc ul { margin: 10px 0 10px 20px; }
@media (max-width: 900px) { .single-grid { grid-template-columns: 1fr; } }

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  padding: 9px 15px; border-radius: 8px; background: var(--bg-3);
  color: var(--text-dim); font-size: 14px; font-weight: 600; border: 1px solid var(--border);
}
.pagination .page-numbers.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid { padding: 64px 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 44px; }
.footer-grid h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.footer-grid ul { list-style: none; margin-top: 18px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { font-size: 14px; color: var(--text-dim); transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-about { margin-top: 16px; font-size: 14px; color: var(--text-dim); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-dim); }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-3); border: 1px solid var(--border-light);
  color: var(--text-dim); font-size: 13.5px; font-weight: 600;
  padding: 8px 13px; border-radius: 8px; cursor: pointer; font-family: inherit;
  transition: color .2s, border-color .2s;
}
.lang-current:hover { color: var(--accent); border-color: var(--accent); }
.lang-current svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 150px;
  background: var(--bg-2); border: 1px solid var(--border-light); border-radius: 10px;
  list-style: none; padding: 6px; margin: 0; display: none;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); z-index: 200;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: block; padding: 9px 14px; border-radius: 7px; border: 0;
  font-size: 14px; font-weight: 600; color: var(--text-dim);
}
.lang-menu a:hover { background: var(--bg-3); color: var(--accent); }
.lang-menu a.active { color: var(--accent); background: rgba(251,191,36,.08); }
@media (max-width: 900px) {
  .lang-switch { width: 100%; margin-top: 10px; }
  .lang-current { width: 100%; justify-content: center; }
  .lang-menu { position: static; box-shadow: none; margin-top: 8px; display: block; background: transparent; border-color: var(--border); }
}

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

/* ---------- Default WP content ---------- */
.entry-content { max-width: 760px; }
.entry-content p { margin-bottom: 18px; color: var(--text-dim); }
.entry-content h2 { margin: 30px 0 14px; font-size: 26px; font-weight: 800; }
.entry-content h3 { margin: 24px 0 12px; font-size: 20px; font-weight: 700; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 22px; color: var(--text-dim); }
.entry-content li { margin-bottom: 8px; }
.entry-content strong { color: var(--text); }
.entry-content a { color: var(--accent); text-decoration: underline; }
