/* ==========================================================================
   MATRIX INDUSTRY (CHINA) LIMITED — 2026 Redesign
   International corporate site stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #1a2230;            /* deep carbon blue   */
  --ink-2: #2b3648;          /* header / dark nav  */
  --orange: #e8542f;         /* high-temperature accent */
  --orange-dark: #c9401f;
  --ember: #f6a92b;          /* warm secondary     */
  --bg: #ffffff;
  --bg-soft: #f5f6f8;        /* light grey section */
  --bg-mist: #eef1f5;
  --line: #e3e7ee;
  --text: #3a4354;
  --text-muted: #6b7688;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(26,34,48,.06);
  --shadow-md: 0 10px 30px rgba(26,34,48,.10);
  --shadow-lg: 0 20px 50px rgba(26,34,48,.16);
  --container: 1180px;
}

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange-dark); }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #d7dce5; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--ember); }

.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.muted { color: var(--text-muted); }
.strong { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 0;
  transition: all .2s ease;
  background: var(--orange);
  color: #fff;
}
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #19212e;   /* matches the logo background for seamless branding */
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.topbar {
  background: #121925;
  font-size: .82rem;
  color: #aeb8c8;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 16px;
}
.topbar a { color: #dfe4ec; }
.topbar a:hover { color: #fff; }
.topbar .contact-links { display: flex; gap: 22px; align-items: center; }
.topbar .contact-links span { display: inline-flex; align-items: center; gap: 6px; }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__logo {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--ember));
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -.02em;
}
.brand__name { font-size: 1.06rem; font-weight: 700; color: #fff; line-height: 1.15; }
.brand__sub { font-size: .72rem; color: #9aa6b8; letter-spacing: .06em; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block;
  padding: 10px 15px;
  border-radius: 8px;
  color: #dfe4ec;
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: var(--ember); }

.nav-cta { display: inline-flex; }
.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
  align-items: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink-2);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,27,40,.94) 20%, rgba(20,27,40,.55) 60%, rgba(20,27,40,.25));
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; padding: 90px 0; }
.hero h1 { color: #fff; margin: 14px 0 18px; }
.hero p { color: #d9dee8; font-size: 1.12rem; max-width: 620px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 14px; border-radius: 999px;
  font-size: .8rem; letter-spacing: .06em; color: #ffe3d7;
}

/* ---------- Feature strip ---------- */
.strip { background: var(--orange); color: #fff; }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 24px; }
.strip-item { display: flex; align-items: center; gap: 12px; }
.strip-item .num { font-size: 1.5rem; font-weight: 800; }
.strip-item .txt { font-size: .9rem; opacity: .94; line-height: 1.35; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 24px 26px; }
.card__body h3 { margin-bottom: 8px; }
.card__body h3 a { color: var(--ink); }
.card__body h3 a:hover { color: var(--orange); }
.card__body p { font-size: .92rem; color: var(--text-muted); }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-weight: 600; font-size: .9rem;
}
.card--plain { box-shadow: var(--shadow-sm); }

/* ---------- Feature blocks (product sections) ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feat__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.feat__media img { width: 100%; height: 100%; object-fit: cover; }
.feat ul { margin-top: 18px; display: grid; gap: 10px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; }
.feat li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(232,84,47,.12);
  color: var(--orange);
  font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
  margin-top: 3px;
}

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  color: var(--orange);
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--text-muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat .value { font-size: 2.4rem; font-weight: 800; color: var(--orange); }
.stat .label { color: var(--text-muted); font-size: .92rem; margin-top: 6px; }

/* ---------- Quote / testimonial ---------- */
.quote { font-size: 1.3rem; font-style: italic; color: #fff; max-width: 780px; margin: 0 auto; text-align: center; line-height: 1.6; }
.quote__by { margin-top: 18px; color: var(--ember); font-style: normal; font-weight: 600; }

/* ---------- Two-col info ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.split h3 { margin: 26px 0 10px; }
.split h3:first-child { margin-top: 0; }
.split p { margin-bottom: 10px; color: var(--text); }

.info-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.info-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table td:first-child { color: var(--ink); font-weight: 600; width: 40%; }
.info-table tr:last-child td { border-bottom: 0; }

/* ---------- Data table (technical sheets) ---------- */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
.data-table th {
  background: var(--ink-2); color: #fff; text-align: left;
  padding: 12px 14px; font-weight: 600; white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-top: 1px solid var(--line); }
.data-table tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- Products listing page ---------- */
.prod-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag { background: var(--bg-mist); color: var(--ink); font-size: .78rem; padding: 4px 10px; border-radius: 999px; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background: var(--ink-2);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,84,47,.4), transparent 70%);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #cfd6e2; max-width: 660px; }
.breadcrumb { font-size: .84rem; color: #9aa6b8; margin-bottom: 16px; }
.breadcrumb a { color: #cfd6e2; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.breadcrumb .current { color: var(--ember); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange), var(--orange-dark)); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.6rem; }
.cta-band p { opacity: .95; margin-top: 6px; }
.cta-band .btn--ghost { border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb8c8; }
.footer-top { padding: 70px 0 46px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-about p { font-size: .92rem; margin-top: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aeb8c8; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .92rem; }
.footer-contact .lbl { color: var(--ember); font-weight: 600; flex: 0 0 54px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  font-size: .84rem;
  color: #8792a5;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Media ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .strip .container { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 118px; left: 0; right: 0;
    background: var(--ink-2);
    padding: 16px 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .nav-cta { display: none; }
  .topbar .contact-links .hide-sm { display: none; }
}

@media (max-width: 600px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: 500px; }
  .hero__inner { padding: 60px 0; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Header logo image (brand) ---------- */
.brand--img { gap: 0; }
.brand--img .brand__img {
  height: 46px;
  width: auto;
  display: block;
}
@media (max-width: 860px) {
  .brand--img .brand__img { height: 40px; }
}

/* ---------- TOPWOOL product-series badge next to logo ---------- */
.brand--img { gap: 12px; align-items: center; }
.brand--img .brand__tag {
  height: 34px;
  width: auto;
  display: block;
  opacity: .96;
}
.brand--img .brand__sep {
  width: 1px; height: 30px;
  background: rgba(255,255,255,.16);
  flex: 0 0 auto;
}
@media (max-width: 860px) {
  .brand--img .brand__tag { height: 28px; }
  .brand--img .brand__sep { height: 24px; }
}

/* ---------- Header brand: TOP flame mark (left) + MATRIX INDUSTRY text (right) ---------- */
.brand--mark { display: flex; align-items: center; gap: 12px; }
.brand--mark .brand__mark { height: 46px; width: auto; display: block; }
.brand--mark .brand__text { display: flex; flex-direction: column; line-height: 1.14; }
.brand--mark .brand__title {
  font-size: 1.06rem; font-weight: 800; color: #fff;
  letter-spacing: .02em; text-transform: uppercase;
}
.brand--mark .brand__cap {
  font-size: .7rem; color: #9aa6b8;
  letter-spacing: .1em; text-transform: uppercase; margin-top: 1px;
}
@media (max-width: 860px) {
  .brand--mark .brand__mark { height: 38px; }
  .brand--mark .brand__title { font-size: .95rem; }
}
