/* ============================================================
   CN Machinery — China Construction Machinery & Parts Supplier
   Industrial theme: deep blue #0d2a4a + orange #f5a623
   No external dependencies. System font stack only.
   ============================================================ */

:root {
  --blue: #0d2a4a;
  --blue-deep: #081c33;
  --blue-mid: #123457;
  --blue-light: #1b4470;
  --orange: #f5a623;
  --orange-deep: #e08f00;
  --orange-soft: #fff4e0;
  --white: #ffffff;
  --bg: #f4f6f9;
  --text: #2b3442;
  --text-light: #5f6b7a;
  --border: #dfe5ec;
  --shadow: 0 6px 24px rgba(13, 42, 74, 0.10);
  --shadow-lg: 0 14px 40px rgba(13, 42, 74, 0.16);
  --radius: 12px;
  --container: 1200px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange-deep); }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; color: var(--blue); font-weight: 700; }

.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-dark {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color: #dbe6f2;
}

.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 10px; }
.section-sub { color: var(--text-light); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
}
.btn-sm { padding: 8px 18px; font-size: 0.9rem; border-radius: 6px; }

.btn-primary { background: var(--orange); color: var(--blue-deep); }
.btn-primary:hover { background: var(--orange-deep); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35); }

.btn-outline { border-color: rgba(255, 255, 255, 0.75); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--orange); border-color: var(--orange); color: var(--blue-deep); }

.btn-dark { background: var(--blue); color: var(--white); }
.btn-dark:hover { background: var(--blue-light); color: var(--white); transform: translateY(-2px); }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb958; color: #fff; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blue);
  box-shadow: 0 2px 14px rgba(8, 28, 51, 0.35);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(8, 28, 51, 0.5); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo { display: flex; align-items: baseline; gap: 6px; font-size: 1.35rem; font-weight: 800; color: var(--white); letter-spacing: 0.3px; }
.logo span { color: var(--orange); }
.logo small { font-size: 0.62rem; font-weight: 600; color: #9fb4cc; letter-spacing: 1px; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  color: #d7e2ef;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.nav-menu a:hover { color: var(--orange); background: rgba(245, 166, 35, 0.08); }
.nav-menu a.active { color: var(--orange); font-weight: 700; }

.nav-cta { white-space: nowrap; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 55%, #14406e 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 82% 20%, rgba(245, 166, 35, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 50% at 12% 85%, rgba(27, 68, 112, 0.55), transparent 65%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 28px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 22px, var(--blue-deep) 22px 44px);
  opacity: 0.9;
}
.hero-inner {
  position: relative;
  padding: 110px 20px 130px;
  max-width: 900px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  border: 1px solid rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.08);
  padding: 8px 16px;
  border-radius: 40px;
  margin-bottom: 26px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--orange); }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #c3d3e4;
  max-width: 680px;
  margin-bottom: 36px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e6eef7;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-soft);
  margin-bottom: 16px;
}
.card-icon svg { width: 30px; height: 30px; stroke: var(--orange-deep); }

.card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card-body p { color: var(--text-light); font-size: 0.94rem; flex: 1; }

.card-link {
  margin-top: 18px;
  font-weight: 700;
  color: var(--orange-deep);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { color: var(--blue); }

/* product cards */
.product-card .card-media {
  height: 96px;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue-light));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .card-media svg { width: 44px; height: 44px; stroke: var(--orange); }
.product-card .cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--orange);
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
}
.product-card h3 { font-size: 1.05rem; }
.product-card .brands {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.product-card .brands strong { color: var(--blue); font-weight: 600; }

/* ---------- Feature items ---------- */
.feature-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-item p { color: var(--text-light); font-size: 0.92rem; }
.feature-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--orange-deep);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

/* ---------- Brand wall ---------- */
.brand-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.brand-chip {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  padding: 14px 26px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  color: var(--blue);
  transition: all 0.2s ease;
}
.brand-chip:hover { border-color: var(--orange); color: var(--orange-deep); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- Market regions ---------- */
.region-item { text-align: left; }
.region-item .region-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.region-item p { color: #c3d3e4; font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange-deep), var(--orange));
  padding: 54px 0;
  color: var(--blue-deep);
}
.cta-band h2 { color: var(--blue-deep); font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(8, 28, 51, 0.85); margin-bottom: 24px; }
.cta-band .btn { background: var(--blue-deep); color: var(--white); border: none; }
.cta-band .btn:hover { background: var(--blue); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue-mid));
  color: var(--white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 18px, transparent 18px 36px);
  opacity: 0.85;
}
.page-header h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.page-header p { color: #c3d3e4; max-width: 720px; font-size: 1.02rem; }
.breadcrumb { font-size: 0.8rem; color: #93a9c2; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Products page ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange-deep); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.filter-group { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.filter-group .fg-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  display: none;
}
.no-results h3 { margin-bottom: 8px; }
.no-results.visible { display: block; }

/* ---------- Used machinery ---------- */
.machine-card { border-left: 5px solid var(--orange); }
.machine-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin: 16px 0;
  font-size: 0.9rem;
}
.machine-meta .mm-item { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.machine-meta .mm-item span:first-child { color: var(--text-light); font-weight: 600; }
.machine-meta .mm-item span:last-child { color: var(--blue); font-weight: 700; text-align: right; }

.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; gap: 16px; align-items: flex-start;
}
.step .step-num {
  counter-increment: step;
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 1rem; margin-bottom: 4px; }
.step p { color: var(--text-light); font-size: 0.9rem; }

/* ---------- About ---------- */
.about-block h3 { margin-bottom: 14px; font-size: 1.3rem; }
.about-block p { color: var(--text-light); margin-bottom: 16px; }
.about-highlight {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  margin: 22px 0;
}
.about-highlight p { color: var(--blue); margin: 0; font-weight: 600; }

.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}
.check-list li::before {
  content: "✓";
  color: var(--orange-deep);
  font-weight: 800;
  flex: 0 0 18px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  gap: 16px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 15px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--text-light); }

.contact-info { display: grid; gap: 14px; }
.ci-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.ci-icon {
  flex: 0 0 42px; width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.ci-item strong { display: block; color: var(--blue); margin-bottom: 2px; font-size: 0.95rem; }
.ci-item span { color: var(--text-light); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: #a9bdd4;
  padding: 60px 0 0;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-grid a { color: #a9bdd4; display: block; padding: 5px 0; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { max-width: 320px; }
.footer-contact li { display: flex; gap: 8px; padding: 5px 0; }
.footer-contact li::before { content: "›"; color: var(--orange); font-weight: 800; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #7e94ac;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 54px 0; }

  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--blue-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px 18px;
    gap: 4px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 12px; font-size: 1rem; border-radius: 8px; }
  .nav-menu a.active { background: rgba(245, 166, 35, 0.1); }

  .hero-inner { padding: 70px 20px 100px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .machine-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; }
}
