/* ==========================================================================
   GUANGDONG LICHUANG METAL — Export Showcase Site
   Visual system: ivory canvas / champagne gold / warm ink
   Locales: English (LTR) / Arabic (RTL)
   ========================================================================== */

:root {
  --ink: #1b1917;
  --ink-soft: #4a453e;
  --muted: #8c8478;
  --gold: #b08b52;
  --gold-light: #cfae78;
  --ivory: #f8f5f0;
  --paper: #fffdfa;
  --warm-gray: #efe9e1;
  --line: rgba(27, 25, 23, 0.12);
  --line-strong: rgba(27, 25, 23, 0.22);

  --serif: "Cormorant Garamond", "Times New Roman", "Songti SC", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Helvetica, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 132px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-size: clamp(38px, 5.6vw, 76px);
  margin: 0;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lede {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 62ch;
}

.muted { color: var(--muted); }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--ink);
  color: rgba(248, 245, 240, 0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 40px;
  flex-wrap: wrap;
}

.topbar a:hover { color: var(--gold-light); }

.topbar-meta { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 34px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  border-left: 1px solid var(--line-strong);
  padding-left: 12px;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand-text span {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 6px;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav a:hover::after,
.nav a.is-active::after { width: 100%; }

.nav a.is-active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { white-space: nowrap; }

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  transition: all 0.26s ease;
  white-space: nowrap;
}

.lang-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--sans);
}

.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.btn--sm { padding: 11px 20px; font-size: 11px; letter-spacing: 0.14em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.link-arrow::after { content: "→"; transition: transform 0.3s ease; }

.link-arrow:hover { color: var(--gold); border-color: var(--gold); }

.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(207, 174, 120, 0.16), transparent 58%),
    linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 118px);
}

.hero-copy .display { margin-bottom: 26px; }

.hero-copy .display em {
  font-style: italic;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-facts {
  display: flex;
  gap: 40px;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-facts div strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.hero-facts div span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* ---------- Image placeholder system ---------- */

.ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    repeating-linear-gradient(135deg, rgba(176, 139, 82, 0.05) 0 1px, transparent 1px 11px),
    linear-gradient(150deg, #efe9e1 0%, #f8f5f0 48%, #e6ded2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.ph::after {
  content: attr(data-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 250, 0.82);
  max-width: 80%;
  line-height: 1.7;
}

/* Product photo：image fills the tile，falls back to placeholder texture without image + label */
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph:has(img)::after,
.ph.has-img::after {
  content: none;
}

.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 11px),
    linear-gradient(150deg, #221f1c 0%, #35302a 55%, #1b1917 100%);
  color: rgba(248, 245, 240, 0.6);
}

.ph--dark::after {
  border-color: rgba(248, 245, 240, 0.28);
  background: rgba(27, 25, 23, 0.6);
}

.ph--gold {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 11px),
    linear-gradient(150deg, #c2a071 0%, #dcc39a 50%, #b08b52 100%);
  color: rgba(27, 25, 23, 0.62);
}

.ph--gold::after { background: rgba(255, 253, 250, 0.7); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }

.section--tight { padding-block: clamp(56px, 7vw, 92px); }

.section--paper { background: var(--paper); }

.section--ink {
  background: var(--ink);
  color: var(--ivory);
}

.section--ink .lede { color: rgba(248, 245, 240, 0.66); }

.section--ink .muted { color: rgba(248, 245, 240, 0.5); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 68px);
  flex-wrap: wrap;
}

.section-head .lede { margin: 14px 0 0; }

/* ---------- Stats strip ---------- */

.stats-strip {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: clamp(28px, 4vw, 44px) clamp(18px, 2vw, 30px);
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: none; padding-left: 0; }

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat strong small { font-size: 0.5em; color: var(--gold); margin-left: 2px; }

.stat span {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  border-color: rgba(176, 139, 82, 0.5);
  box-shadow: 0 24px 48px -28px rgba(27, 25, 23, 0.28);
  transform: translateY(-4px);
}

.product-card .thumb {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-card .body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card .idx {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.product-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.spec-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-list li {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(248, 245, 240, 0.6);
}

/* ---------- Capability / feature split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 0;
  margin-top: 34px;
}

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.section--ink .feature { border-color: rgba(248, 245, 240, 0.14); }

.feature .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.feature h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.feature p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.section--ink .feature p { color: rgba(248, 245, 240, 0.62); }

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: clamp(34px, 4vw, 52px);
}

.process-step {
  padding: 34px 26px 0 0;
  border-right: 1px solid var(--line);
}

.process-step:last-child { border-right: none; padding-right: 0; }

.process-step .step-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.process-step h4 {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.process-step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  aspect-ratio: 16 / 9;
}

.gallery > * { overflow: hidden; border: 1px solid var(--line); }

.gallery > *:first-child { grid-row: span 2; }

/* ---------- Cert / compliance ---------- */

.compliance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
  margin-top: 44px;
}

.compliance-item {
  border: 1px solid var(--line);
  padding: 30px 26px;
  background: var(--paper);
}

.compliance-item h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.compliance-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 55%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 139, 82, 0.28), transparent 66%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding-block: clamp(56px, 7vw, 88px);
  flex-wrap: wrap;
}

.cta-band .display { font-size: clamp(30px, 3.6vw, 48px); max-width: 18ch; }

.cta-band .btn {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

.cta-band .btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  background: #14120f;
  color: rgba(248, 245, 240, 0.6);
  font-size: 13px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(56px, 6vw, 76px);
}

.site-footer h5 {
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.site-footer a:hover { color: var(--ivory); }

.footer-brand img {
  height: 58px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.9);
  margin-bottom: 18px;
}

.footer-brand p { margin: 0; max-width: 38ch; line-height: 1.8; }

.footer-bottom {
  border-top: 1px solid rgba(248, 245, 240, 0.12);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: linear-gradient(180deg, var(--paper), var(--ivory));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(52px, 7vw, 86px);
}

.page-head .display { font-size: clamp(32px, 4.4vw, 58px); }

.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.breadcrumb span { color: var(--gold); }

/* ---------- Filters ---------- */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.chip {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  cursor: pointer;
  background: transparent;
  transition: all 0.26s ease;
  font-family: var(--sans);
}

.chip:hover { border-color: var(--gold); color: var(--gold); }

.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

/* ---------- Spec table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}

table.spec th,
table.spec td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.spec th {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

table.spec tr:last-child td { border-bottom: none; }

table.spec td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- Contact / form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact-cards { display: grid; gap: 0; margin-top: 34px; }

.contact-card {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
}

.contact-card span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.contact-card strong { font-weight: 600; font-size: 14.5px; word-break: break-word; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 44px);
  display: grid;
  gap: 18px;
}

.field { display: grid; gap: 8px; }

.field label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }

.field textarea { resize: vertical; min-height: 118px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ---------- Value blocks (about page) ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
  margin-top: 44px;
}

.value {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

.value h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }

.value p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }

/* ---------- Timeline ---------- */

.timeline { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }

.tl-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.tl-item .year {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold);
  line-height: 1.2;
}

.tl-item p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }

/* ---------- Applications (by space) ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.app-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}

.app-card .ph { position: absolute; inset: 0; }

.app-card .app-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 20px;
  background: linear-gradient(to top, rgba(27, 25, 23, 0.86), rgba(27, 25, 23, 0.12) 62%, transparent);
  color: var(--ivory);
}

.app-card .app-label strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.app-card .app-label span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.66);
}

.app-card:hover { border-color: rgba(176, 139, 82, 0.6); }

/* ---------- Project references ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}

.case-card {
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.case-card .thumb { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }

.case-card .case-body { padding: 22px 24px 26px; }

.case-card .case-meta {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.case-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.case-card .used {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.case-card .used li {
  list-style: none;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line-strong);
  margin-top: clamp(34px, 4vw, 52px);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { color: var(--gold); }

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .answer {
  padding: 0 0 24px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 92ch;
}

.faq .answer p { margin: 0 0 10px; }

.faq .answer p:last-child { margin-bottom: 0; }

.section--ink .faq { border-color: rgba(248, 245, 240, 0.2); }

.section--ink .faq details { border-color: rgba(248, 245, 240, 0.14); }

.section--ink .faq summary { color: var(--ivory); }

.section--ink .faq .answer { color: rgba(248, 245, 240, 0.66); }

/* ---------- Floating contact rail ---------- */

.float-rail {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.float-rail a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
  box-shadow: 0 12px 28px -14px rgba(27, 25, 23, 0.5);
  transition: all 0.28s ease;
}

.float-rail a:hover { background: var(--gold); border-color: var(--gold); }

.float-rail a.is-wa { background: #1f7a4d; border-color: #1f7a4d; }

.float-rail a.is-wa:hover { background: #17603c; border-color: #17603c; }

.float-rail .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

@media (max-width: 760px) {
  .float-rail { right: 12px; bottom: 14px; }
  .float-rail a { padding: 10px 13px; font-size: 10px; letter-spacing: 0.08em; }
}

/* ---------- Mobile ---------- */

.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 10; order: -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-right: none; border-bottom: 1px solid var(--line); padding-block: 26px; }
  .process-step:nth-child(odd) { padding-right: 26px; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .compliance { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
  .gallery > *:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 16 / 9; }
  .gallery > * { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  .site-header .container { min-height: 68px; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--line-strong);
    cursor: pointer;
    padding: 0 10px;
  }
  .nav-toggle span { display: block; height: 1px; background: var(--ink); }
  .header-actions .btn { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process-step { padding-right: 0 !important; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .hero-facts { gap: 26px; }
  .footer-main { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 6px; }
  .brand img { height: 30px; max-width: 190px; }
  .brand-text { display: none; }
}

/* ==========================================================================
   Arabic / RTL layer
   ========================================================================== */

html[dir="rtl"] {
  --serif: "Noto Naskh Arabic", "Segoe UI", Tahoma, serif;
  --sans: "Tajawal", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}

/* Arabic is a joined script — tracking breaks the letterforms, so reset it */
html[dir="rtl"] *,
html[dir="rtl"] *::before,
html[dir="rtl"] *::after { letter-spacing: normal; }

html[dir="rtl"] body { line-height: 1.95; }

html[dir="rtl"] .display {
  font-weight: 700;
  line-height: 1.34;
  font-size: clamp(32px, 4.6vw, 62px);
}

html[dir="rtl"] .display em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}

html[dir="rtl"] .h2 {
  font-weight: 700;
  line-height: 1.45;
  font-size: clamp(25px, 3vw, 40px);
}

html[dir="rtl"] .h3 { font-weight: 700; }
html[dir="rtl"] .lede { line-height: 2.05; }

html[dir="rtl"] .eyebrow {
  font-size: 12px;
  font-weight: 700;
  gap: 12px;
  margin-bottom: 18px;
}

html[dir="rtl"] .nav a { font-size: 14px; text-transform: none; }
html[dir="rtl"] .nav a::after { left: auto; right: 0; }

html[dir="rtl"] .brand-text {
  border-left: none;
  border-right: 1px solid var(--line-strong);
  padding-left: 0;
  padding-right: 12px;
}

html[dir="rtl"] .brand-text strong { font-size: 15px; }
html[dir="rtl"] .brand-text span { font-size: 10px; }

html[dir="rtl"] .btn { font-size: 13px; font-weight: 700; }
html[dir="rtl"] .btn--sm { font-size: 12px; }
html[dir="rtl"] .link-arrow { font-size: 13px; }
html[dir="rtl"] .link-arrow::after { content: "←"; }
html[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }

html[dir="rtl"] .stat { border-left: none; border-right: 1px solid var(--line); }
html[dir="rtl"] .stat:first-child {
  padding-left: clamp(18px, 2vw, 30px);
  padding-right: 0;
}

html[dir="rtl"] .process-step {
  border-right: none;
  border-left: 1px solid var(--line);
  padding: 34px 0 0 26px;
}

html[dir="rtl"] .process-step:last-child { border-left: none; padding-left: 0; }

html[dir="rtl"] .process-step p,
html[dir="rtl"] .compliance-item p,
html[dir="rtl"] .feature p,
html[dir="rtl"] .value p { line-height: 1.95; }

html[dir="rtl"] table.spec th,
html[dir="rtl"] table.spec td { text-align: right; }

html[dir="rtl"] .float-rail { right: auto; left: 18px; align-items: flex-start; }
html[dir="rtl"] .float-rail a { font-size: 12px; }

html[dir="rtl"] .cta-band::before { inset: auto 55% -60% -10%; }

html[dir="rtl"] .faq summary { font-size: 16px; }
html[dir="rtl"] .faq .answer { font-size: 14.5px; line-height: 2.05; }

html[dir="rtl"] .spec-list li,
html[dir="rtl"] .case-card .used li { font-size: 11.5px; }

html[dir="rtl"] .ph::after { font-size: 11px; }
html[dir="rtl"] .lang-link { font-size: 12px; font-weight: 700; }

html[dir="rtl"] .site-footer { font-size: 13.5px; }
html[dir="rtl"] .site-footer h5 { font-size: 12px; }

html[dir="rtl"] .field label { font-size: 12px; }
html[dir="rtl"] .contact-card span { font-size: 12px; }
html[dir="rtl"] .contact-card strong { text-align: right; }
html[dir="rtl"] .breadcrumb { font-size: 12px; text-transform: none; }

@media (max-width: 1080px) {
  html[dir="rtl"] .stat:nth-child(odd) { border-right: none; padding-right: 0; }
  html[dir="rtl"] .process-step {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
  }
  html[dir="rtl"] .process-step:nth-child(odd) { padding-left: 26px; }
}

@media (max-width: 760px) {
  html[dir="rtl"] .float-rail { left: 12px; }
  html[dir="rtl"] .process-step:nth-child(odd) { padding-left: 0; }
  html[dir="rtl"] .display { font-size: clamp(28px, 8vw, 40px); }
}
