/* ============================================================
   Tianxin Mining — International Website
   Design system: deep navy + sulfur gold, editorial-industrial
   ============================================================ */

:root {
  /* Palette */
  --navy-950: #060F20;
  --navy-900: #0A1B33;
  --navy-850: #0E213F;
  --navy-800: #142A4C;
  --navy-700: #1D355C;
  --gold-600: #9C7A2F;
  --gold-500: #C29B45;
  --gold-400: #D9B96A;
  --gold-300: #E8D29A;
  --paper-100: #FFFFFF;
  --paper-200: #F3F6FA;
  --paper-300: #E8EEF6;
  --ink-900: #10213C;
  --ink-700: #3C4A61;
  --ink-500: #66738A;
  --line-light: #E1E7F0;
  --line-dark: rgba(217, 185, 106, 0.24);

  /* Type */
  --font-display: "Marcellus", "Times New Roman", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;

  /* Rhythm */
  --container: 1200px;
  --section-pad: 96px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--paper-100);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--navy-900);
  color: var(--paper-100);
  border-radius: 4px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: inherit;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 18px;
}

.kicker-rule {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold-500);
}

.kicker-gold { color: var(--gold-400); }

.mono,
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mono-label { color: var(--gold-600); margin-bottom: 10px; }

.lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-500);
  max-width: 46em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-gold:hover { background: var(--gold-400); }

.btn-ghost {
  border-color: rgba(237, 232, 218, 0.5);
  color: var(--paper-100);
  background: rgba(6, 15, 32, 0.25);
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }

.btn-navy {
  background: var(--navy-900);
  color: var(--paper-100);
}
.btn-navy:hover { background: var(--navy-800); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: var(--navy-950);
  box-shadow: 0 1px 0 var(--line-dark), 0 12px 32px rgba(3, 8, 18, 0.35);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-100);
}

.brand-mark {
  width: 40px;
  height: auto;
  flex: none;
  display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237, 232, 218, 0.6);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(237, 232, 218, 0.82);
  padding: 6px 2px;
  transition: color 0.25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--paper-100); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.header-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--paper-100);
  margin-left: auto;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 15, 32, 0.92) 0%, rgba(10, 27, 51, 0.78) 42%, rgba(10, 27, 51, 0.42) 72%, rgba(10, 27, 51, 0.55) 100%),
    linear-gradient(0deg, var(--navy-950) 0%, rgba(10, 27, 51, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 90px;
  color: var(--paper-100);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  max-width: 17em;
  margin-bottom: 26px;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(237, 232, 218, 0.82);
  max-width: 42em;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--navy-900);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 46px;
  padding-bottom: 46px;
}

.stat { border-left: 1px solid var(--line-dark); padding-left: 22px; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--gold-400);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: rgba(237, 232, 218, 0.66);
}

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-tint { background: var(--paper-200); }
.section-dark {
  background: var(--navy-900);
  color: var(--paper-100);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.section-head {
  max-width: 46em;
  margin-bottom: 52px;
}
.section-head .lede { color: rgba(237, 232, 218, 0.85); }
.section:not(.section-dark) .section-head .display { color: var(--ink-900); }
.section:not(.section-dark) .section-head .lede { color: var(--ink-700); }
.section-dark .section-head .display { color: var(--paper-100); }

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

.card {
  background: var(--paper-100);
  border: 1px solid var(--line-light);
  padding: 30px 26px;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 33, 60, 0.10);
  border-color: var(--gold-500);
}

.card-icon {
  width: 30px;
  height: 30px;
  color: var(--gold-600);
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.card p { font-size: 0.95rem; color: var(--ink-500); line-height: 1.65; }

.card-dark {
  background: var(--navy-850);
  border-color: var(--line-dark);
}
.card-dark h3 { color: var(--paper-100); margin-bottom: 12px; }
.card-dark .mono-label { color: var(--gold-400); }
.card-dark p { color: rgba(237, 232, 218, 0.72); }
.card-dark:hover { border-color: var(--gold-400); box-shadow: 0 18px 40px rgba(3, 8, 18, 0.4); }

/* ---------- Route map (signature) ---------- */
.route-section { position: relative; overflow: hidden; }

.route-panel {
  border: 1px solid var(--line-dark);
  background: var(--navy-850);
  border-radius: 2px;
  margin-bottom: 18px;
}

.route-map { width: 100%; height: auto; display: block; }

.route-nodes text {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: rgba(237, 232, 218, 0.75);
  letter-spacing: 0.04em;
}

.node-dot { fill: var(--gold-400); }
.node-ring {
  fill: none;
  stroke: var(--gold-400);
  stroke-opacity: 0.35;
  stroke-width: 1;
}

.route-note {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(237, 232, 218, 0.5);
}

/* ---------- Product preview ---------- */
.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--paper-100);
  border: 1px solid var(--line-light);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 33, 60, 0.12); }

.product-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-body { padding: 30px 28px 34px; }
.product-card-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  margin-bottom: 10px;
}
.product-card-body > p:not(.mono-label) { color: var(--ink-500); margin-bottom: 18px; }

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.spec-chips li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-700);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 5px 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.text-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--gold-600); border-color: var(--gold-600); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Split (image + body) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(16, 33, 60, 0.16);
}

.split-body .display { margin-bottom: 18px; }
.split-body .lede { margin-bottom: 28px; }
.split-body > p:not(.kicker):not(.display):not(.lede) {
  color: var(--ink-500);
  margin-bottom: 16px;
}

.check-list { margin-bottom: 34px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.98rem;
  color: var(--ink-700);
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--gold-600);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 110px 0;
  text-align: center;
  overflow: hidden;
  color: var(--paper-100);
}

.cta-bg,
.cta-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 15, 32, 0.9), rgba(10, 27, 51, 0.88));
}

.cta-content { position: relative; z-index: 2; }
.cta-content .display { margin-bottom: 16px; }
.cta-content p {
  max-width: 34em;
  margin: 0 auto 30px;
  color: rgba(237, 232, 218, 0.8);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-short { min-height: 44vh; }

.page-hero-bg,
.page-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 15, 32, 0.9) 0%, rgba(10, 27, 51, 0.62) 55%, rgba(10, 27, 51, 0.4) 100%),
    linear-gradient(0deg, var(--navy-950) 0%, rgba(10, 27, 51, 0) 40%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 58px;
  color: var(--paper-100);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  max-width: 18em;
}

/* ---------- Standards grid ---------- */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.standard-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px;
  border: 1px solid var(--line-light);
  background: var(--paper-100);
  border-radius: 2px;
}

.standard-item .mono { color: var(--gold-600); font-size: 0.86rem; }
.standard-item span:last-child { font-size: 0.95rem; color: var(--ink-500); }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 84px;
  margin-bottom: 84px;
  border-bottom: 1px solid var(--line-light);
}
.product-detail:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.product-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(16, 33, 60, 0.14);
}

.product-detail-body .display { margin-bottom: 16px; }
.product-detail-body > p:not(.mono-label):not(.display) { color: var(--ink-500); margin-bottom: 22px; }
.product-detail-body .mono-label { margin-top: 26px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

.spec-table th {
  font-weight: 500;
  color: var(--ink-700);
  width: 46%;
}

.spec-table td {
  font-family: var(--font-mono);
  color: var(--ink-900);
  letter-spacing: 0.02em;
}

.product-note {
  margin-top: 90px;
  padding: 40px 44px;
  background: var(--paper-200);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--gold-500);
  border-radius: 2px;
}
.product-note p:not(.mono-label) { color: var(--ink-500); margin-bottom: 22px; max-width: 46em; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-item {
  padding: 34px 32px;
  border: 1px solid var(--line-light);
  background: var(--paper-100);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-item:hover { transform: translateY(-3px); border-color: var(--gold-500); box-shadow: 0 16px 40px rgba(16, 33, 60, 0.10); }

.service-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.42rem;
  margin-bottom: 12px;
}
.service-item > p:not(.mono-label) { color: var(--ink-500); margin-bottom: 18px; }

.mini-list { border-top: 1px solid var(--line-light); }
.mini-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line-light);
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--gold-600);
  border-right: 1px solid var(--gold-600);
  transform: rotate(45deg);
}

/* ---------- Process ---------- */
.process-list { counter-reset: step; }

.process-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
}
.process-step:last-child { border-bottom: 1px solid var(--line-dark); }

.process-num {
  font-size: 1.6rem;
  color: var(--gold-400);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--paper-100);
  margin-bottom: 8px;
}

.process-step p { color: rgba(237, 232, 218, 0.7); max-width: 52em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.contact-list { margin-top: 30px; }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--gold-600);
}

.contact-list a { font-weight: 600; color: var(--navy-800); }
.contact-list a:hover { color: var(--gold-600); }
.contact-list div span:last-child { color: var(--ink-700); }

.contact-note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--ink-500);
  border-left: 3px solid var(--gold-500);
  padding-left: 16px;
}

/* ---------- Inquiry form ---------- */
.inquiry-form {
  background: var(--paper-100);
  border: 1px solid var(--line-light);
  border-radius: 2px;
  padding: 38px 36px;
  box-shadow: 0 24px 60px rgba(16, 33, 60, 0.08);
}

.inquiry-form h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-700);
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink-900);
  background: var(--paper-100);
  border: 1px solid var(--line-light);
  border-radius: 2px;
  padding: 11px 13px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(194, 155, 69, 0.16);
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-bottom: 20px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--gold-600);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(237, 232, 218, 0.72);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 52px;
}

.brand-footer { margin-bottom: 18px; }
.brand-footer .brand-sub { color: rgba(237, 232, 218, 0.5); }

.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 34em; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .mono-label { margin-bottom: 6px; }

.footer-col a { font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--gold-400); }
.footer-col span { font-size: 0.92rem; }

.footer-bar {
  border-top: 1px solid rgba(217, 185, 106, 0.14);
  padding: 20px 0;
}

.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bar-inner .mono { color: rgba(237, 232, 218, 0.5); font-size: 0.72rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .product-card, .service-item, .text-link svg,
  .product-card-img img, .main-nav a::after { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 96px 36px 40px;
    background: var(--navy-950);
    border-left: 1px solid var(--line-dark);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -20px 0 50px rgba(3, 8, 18, 0.4);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; padding: 12px 2px; width: 100%; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 40px; }
  .contact-grid { gap: 44px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  .header-inner { padding: 14px 20px; gap: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-dark); }

  .cards-grid,
  .cards-grid.three { grid-template-columns: 1fr; }

  .product-preview-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }

  .standards-grid,
  .services-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .product-detail { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; margin-bottom: 56px; }
  .product-note { margin-top: 56px; padding: 28px 26px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; }
  .footer-brand { grid-column: 1 / -1; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .process-step { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero-content { padding-top: 120px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; padding-left: 0; }
  .cta-band { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   Multi-language support: switcher + Chinese / Arabic fonts + RTL
   ============================================================ */

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(217, 185, 106, 0.35);
  border-radius: 3px;
  overflow: hidden;
  flex: none;
}
.lang-btn {
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(237, 232, 218, 0.82);
  border-right: 1px solid rgba(217, 185, 106, 0.18);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:last-child { border-right: 0; }
.lang-btn:hover { color: var(--gold-300); }
.lang-btn.active {
  background: var(--gold-500);
  color: var(--navy-950);
}
html[lang="ar"] .lang-btn { letter-spacing: 0; }

/* ---------- Language-specific fonts ---------- */
html[lang="zh"] body {
  font-family: "Source Sans 3", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
html[lang="zh"] .display,
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3 {
  font-family: "Marcellus", "Microsoft YaHei", "PingFang SC", serif;
}
html[lang="ar"] body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
html[lang="ar"] .display,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
html[lang="ar"] .kicker,
html[lang="ar"] .brand-name,
html[lang="ar"] .mono,
html[lang="ar"] .mono-label {
  letter-spacing: 0;
}

/* ---------- Russian ---------- */
html[lang="ru"] body {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
html[lang="ru"] .display,
html[lang="ru"] h1,
html[lang="ru"] h2,
html[lang="ru"] h3 {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* ---------- RTL layout ---------- */
[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .header-cta { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .main-nav a::after { transform-origin: right; }

[dir="rtl"] .stat {
  border-left: 0;
  padding-left: 0;
  border-right: 1px solid var(--line-dark);
  padding-right: 22px;
}
[dir="rtl"] .spec-table th,
[dir="rtl"] .spec-table td { text-align: right; }
[dir="rtl"] .product-note {
  border-left: 1px solid var(--line-light);
  border-right: 3px solid var(--gold-500);
}
[dir="rtl"] .contact-note {
  border-left: 0;
  padding-left: 0;
  border-right: 3px solid var(--gold-500);
  padding-right: 16px;
}
[dir="rtl"] .mini-list li { padding: 8px 22px 8px 0; }
[dir="rtl"] .mini-list li::before {
  left: auto;
  right: 2px;
  border-top: 1px solid var(--gold-600);
  border-right: 0;
  border-left: 1px solid var(--gold-600);
  transform: rotate(-45deg);
}
[dir="rtl"] .text-link svg { transform: scaleX(-1); }
[dir="rtl"] .check-list li svg { margin-right: 0; }

@media (max-width: 1024px) {
  [dir="rtl"] .main-nav {
    left: 0;
    right: auto;
    border-left: 0;
    border-right: 1px solid var(--line-dark);
    transform: translateX(-100%);
    box-shadow: 20px 0 50px rgba(3, 8, 18, 0.4);
  }
  [dir="rtl"] .main-nav.open { transform: translateX(0); }
}

@media (max-width: 768px) {
  [dir="rtl"] .stat:nth-child(odd) { border-right: 0; padding-right: 0; }
  [dir="rtl"] .stat:nth-child(even) { border-right: 1px solid var(--line-dark); }
}

@media (max-width: 480px) {
  [dir="rtl"] .stat { border-right: 0 !important; padding-right: 0; }
}

/* Integration: original design preserved above. */
.form-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .65; cursor: wait; }
.form-status[data-state="error"] { color: #a42d23; }
.form-status[data-state="success"] { color: #17633d; }
.lang-btn { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 480px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px 12px; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; gap: 9px; }
  .header-inner .brand-mark { width: 30px; }
  .header-inner .brand-name { font-size: 1.1rem; white-space: nowrap; }
  .header-inner .brand-sub { font-size: .52rem; }
  .header-inner > .lang-switch { grid-column: 1; grid-row: 2; justify-self: start; }
  .header-inner > .nav-toggle { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; margin: 0; }
  .header-inner .lang-btn { padding: 6px 10px; }
}
