/* ==========================================================================
   NELCO — Shamal Al-Andalus Co. Ltd.
   Stylesheet — design system: "spec sheet" industrial datasheet aesthetic
   ========================================================================== */

/* ---- Fonts loaded via <link> in index.html (Barlow Condensed, Inter, IBM Plex Mono, Cairo) ---- */

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* --- Brand constant (same in both themes) --- */
  --amber: #eda132;
  --amber-ink: #7a4c0f;       /* text-safe darker amber for light bg */
  --blueprint: #5b87a6;        /* technical annotation blue */

  /* --- Light theme (default / un-stamped root) --- */
  --bg: #f2efe7;               /* warm steel-paper */
  --bg-raised: #ffffff;
  --surface: #e9e4d7;
  --surface-2: #ddd6c4;
  --line: #c9c0a8;
  --line-strong: #a89d7d;
  --text: #211f1a;
  --text-mute: #5c584c;
  --text-faint: #8a8474;
  --on-amber: #211405;

  --shadow: 0 1px 2px rgba(30, 25, 10, 0.06), 0 8px 24px -12px rgba(30, 25, 10, 0.18);

  --radius-s: 3px;
  --radius-m: 6px;

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
}

/* --- Dark theme via OS preference (only when no explicit override) --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a;
    --bg-raised: #1b1e24;
    --surface: #1b1e24;
    --surface-2: #23262d;
    --line: #33363f;
    --line-strong: #454955;
    --text: #eeece6;
    --text-mute: #a4a8b3;
    --text-faint: #6c7078;
    --on-amber: #1a1206;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.55);
  }
}

/* --- Dark theme via explicit toggle (always wins) --- */
:root[data-theme="dark"] {
  --bg: #14161a;
  --bg-raised: #1b1e24;
  --surface: #1b1e24;
  --surface-2: #23262d;
  --line: #33363f;
  --line-strong: #454955;
  --text: #eeece6;
  --text-mute: #a4a8b3;
  --text-faint: #6c7078;
  --on-amber: #1a1206;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
  overflow-x: hidden;
}

html[dir="rtl"] body,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] button {
  font-family: 'Cairo', 'Tahoma', sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }

[hidden] { display: none !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

::selection { background: var(--amber); color: var(--on-amber); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
  text-wrap: balance;
}
html[dir="rtl"] .display {
  font-family: 'Cairo', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
:root[data-theme="dark"] .eyebrow { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--amber); } }

html[dir="rtl"] .eyebrow {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-kicker .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-faint);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 2px 7px;
}

.h1 { font-size: clamp(2.3rem, 4.4vw + 1rem, 4.4rem); }
.h2 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.7rem); }
.h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); }

.lede {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  color: var(--text-mute);
  max-width: 62ch;
}
.lede--wide { max-width: 72ch; }

/* ==========================================================================
   Decorative: blueprint grid + registration corners + dimension divider
   ========================================================================== */
.blueprint-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.corner-frame {
  position: relative;
}
.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-strong);
  opacity: 0.7;
  pointer-events: none;
}
.corner-frame::before { top: -1px; inset-inline-start: -1px; border-inline-end: none; border-bottom: none; }
.corner-frame::after { bottom: -1px; inset-inline-end: -1px; border-inline-start: none; border-top: none; }

.dim-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-faint);
  margin-block: 0;
}
.dim-divider .line { flex: 1; height: 1px; background: var(--line-strong); position: relative; }
.dim-divider .line::before,
.dim-divider .line::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--line-strong);
}
.dim-divider .line::before { inset-inline-start: 0; }
.dim-divider .line::after { inset-inline-end: 0; }
.dim-divider .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
html[dir="rtl"] .btn {
  font-family: 'Cairo', sans-serif;
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
}
.btn:active { transform: translateY(1px); }

.btn--amber { background: var(--amber); color: var(--on-amber); }
.btn--amber:hover { background: #f5ac3c; }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber-ink); }
:root[data-theme="dark"] .btn--ghost:hover { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--ghost:hover { color: var(--amber); } }

.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-plate {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #14161a;
  border-radius: var(--radius-m);
  padding: 6px 12px 6px 8px;
}
html[dir="rtl"] .brand-plate { padding: 6px 8px 6px 12px; }
.brand-plate img { height: 26px; width: auto; }
.brand-plate .word {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  color: #f4f1e9;
  line-height: 1;
}
.brand-sub {
  display: none;
}
@media (min-width: 720px) {
  .brand-sub {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    border-inline-start: 1px solid var(--line-strong);
    padding-inline-start: 12px;
    line-height: 1.35;
  }
}

.main-nav { display: none; }
@media (min-width: 980px) {
  .main-nav {
    display: flex;
    gap: 26px;
    margin-inline-start: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  html[dir="rtl"] .main-nav { font-family: 'Cairo', sans-serif; text-transform: none; font-weight: 600; }
  .main-nav a { color: var(--text-mute); padding-block: 6px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
  .main-nav a:hover { color: var(--text); border-color: var(--amber); }
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  overflow: hidden;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
}
.lang-switch button {
  background: transparent;
  border: none;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--text-mute);
}
.lang-switch button[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.nav-toggle {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
@media (min-width: 980px) { .nav-toggle { display: none; } }

.mobile-nav {
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
}
html[dir="rtl"] .mobile-nav { font-family: 'Cairo', sans-serif; text-transform: none; }
.mobile-nav a { padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--text); }
@media (min-width: 980px) { .mobile-nav { display: none !important; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.hero .container {
  position: relative;
  padding-block: clamp(52px, 8vw, 96px) clamp(40px, 6vw, 64px);
  display: grid;
  gap: clamp(28px, 5vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.25fr 0.85fr; align-items: end; }
}

.hero-copy .section-kicker { margin-bottom: 18px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--amber-ink); }
:root[data-theme="dark"] .hero h1 .accent { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .accent { color: var(--amber); } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-plate {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-plate .plate-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.stat-grid .stat b {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--amber-ink);
  line-height: 1;
}
:root[data-theme="dark"] .stat-grid .stat b { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat-grid .stat b { color: var(--amber); } }
.stat-grid .stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 4px;
  line-height: 1.35;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-strip .container {
  padding-block: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--text-mute);
}
.trust-strip .container span b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Sections generic
   ========================================================================== */
section { position: relative; }
.section-pad { padding-block: clamp(56px, 8vw, 100px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-kicker { justify-content: center; }
.section-head.split {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
}

.alt-surface { background: var(--surface); border-block: 1px solid var(--line); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; } }

.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 560px) { .fact-grid { grid-template-columns: repeat(3, 1fr); } }
.fact-grid .fact { background: var(--bg-raised); padding: 16px 14px; }
.fact-grid .fact .k { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 6px; }
.fact-grid .fact .v { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.15rem; }
html[dir="rtl"] .fact-grid .fact .v { font-family: 'Cairo', sans-serif; font-size: 1.02rem; }

.quote-block {
  border-inline-start: 3px solid var(--amber);
  padding-inline-start: 22px;
  margin-top: 28px;
}
html[dir="rtl"] .quote-block { border-inline-start: none; border-inline-end: 3px solid var(--amber); padding-inline-start: 0; padding-inline-end: 22px; }
.quote-block p { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.15rem, 1.2vw + 0.8rem, 1.55rem); font-weight: 600; line-height: 1.35; }
html[dir="rtl"] .quote-block p { font-family: 'Cairo', sans-serif; font-weight: 600; }
.quote-block cite { display: block; margin-top: 12px; font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; color: var(--text-faint); letter-spacing: 0.04em; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .grid-6 { grid-template-columns: repeat(6, 1fr); } }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .tag-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.card h3 { font-size: 1.15rem; font-weight: 700; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.01em; }
html[dir="rtl"] .card h3 { font-family: 'Cairo', sans-serif; text-transform: none; font-size: 1.05rem; }
.card p { color: var(--text-mute); font-size: 0.94rem; }
.card .ar-label { font-size: 0.8rem; color: var(--amber-ink); font-family: 'Cairo', sans-serif; }
:root[data-theme="dark"] .card .ar-label { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .ar-label { color: var(--amber); } }

.icon-chip {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--amber-ink);
}
:root[data-theme="dark"] .icon-chip { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-chip { color: var(--amber); } }
.icon-chip svg { width: 20px; height: 20px; }

.value-card, .why-card { position: relative; }
.value-card::before, .why-card::before {
  content: "";
  position: absolute; top: 0; inset-inline-start: 0;
  width: 3px; height: 100%;
  background: var(--line-strong);
}

/* ==========================================================================
   Vision & Mission
   ========================================================================== */
.vm-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .vm-row { grid-template-columns: 320px 1fr; } }
.vm-item { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; margin-bottom: 16px; }
@media (min-width: 760px) { .vm-item { grid-template-columns: 200px 1fr; } }
.vm-label {
  background: #14161a;
  color: #f4f1e9;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: center;
}
.vm-label .en { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.vm-label .ar { font-family: 'Cairo', sans-serif; font-weight: 700; color: var(--amber); font-size: 1.2rem; margin-top: 4px; }
.vm-body { padding: 22px; background: var(--bg-raised); display: flex; align-items: center; }
.vm-body p { color: var(--text-mute); }

.vision-note {
  margin-top: 18px;
  background: #14161a;
  color: #e8e5db;
  border-radius: var(--radius-m);
  padding: 24px 26px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 96% 100%, 0 100%);
}
.vision-note .eyebrow { color: var(--amber); margin-bottom: 8px; display: block; }
.vision-note p { color: #c7c3b6; }

/* ==========================================================================
   Services (Turnkey MEP)
   ========================================================================== */
.service-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-raised);
}
.service-head {
  background: #14161a;
  color: #f4f1e9;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.service-head .en { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; }
.service-head .ar { font-family: 'Cairo', sans-serif; color: var(--amber); font-size: 1.05rem; font-weight: 600; }
.service-body { padding: 20px 22px; display: grid; gap: 16px; }
@media (min-width: 700px) { .service-body { grid-template-columns: 1fr 1fr; } }
.service-point { display: flex; gap: 12px; }
.service-point .dot { flex: none; width: 8px; height: 8px; margin-top: 7px; background: var(--amber); border-radius: 1px; transform: rotate(45deg); }
.service-point b { display: block; font-weight: 600; margin-bottom: 2px; }
.service-point p { color: var(--text-mute); font-size: 0.92rem; margin: 0; }

.partner-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.partner-table th, .partner-table td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.partner-table thead th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line-strong);
}
.partner-table td:first-child, .partner-table th:first-child { width: 30%; }
.partner-table td b { display: block; }
.partner-table td .ar { display: block; font-family: 'Cairo', sans-serif; font-size: 0.86rem; color: var(--amber-ink); margin-top: 2px; }
:root[data-theme="dark"] .partner-table td .ar { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .partner-table td .ar { color: var(--amber); } }
.partner-table td p { margin: 0; color: var(--text-mute); font-size: 0.9rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-raised); padding: 4px 18px; }

/* ==========================================================================
   Fabrication gallery
   ========================================================================== */
.fab-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 26px; }
@media (min-width: 700px) { .fab-gallery { grid-template-columns: repeat(4, 1fr); } }
.fab-gallery div {
  aspect-ratio: 4/3;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}

/* ==========================================================================
   Lifecycle timeline
   ========================================================================== */
.lifecycle { display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 860px) { .lifecycle { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.lc-step {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-raised);
  margin-bottom: 16px;
}
@media (min-width: 860px) { .lc-step { margin-bottom: 0; } }
.lc-step .lc-num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--amber-ink);
  border: 1px solid var(--line-strong);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  margin-bottom: 14px;
}
:root[data-theme="dark"] .lc-step .lc-num { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lc-step .lc-num { color: var(--amber); } }
.lc-step h3 { margin-bottom: 6px; }
.lc-step p { color: var(--text-mute); font-size: 0.9rem; }
.lc-arrow { display: none; }
@media (min-width: 860px) {
  .lc-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px; inset-inline-end: -20px;
    width: 12px; height: 12px;
    border-top: 1.5px solid var(--line-strong);
    border-inline-end: 1.5px solid var(--line-strong);
    transform: rotate(45deg);
  }
  html[dir="rtl"] .lc-step:not(:last-child)::after { transform: rotate(-135deg); }
}

/* ==========================================================================
   Brands / product catalogue (tabs)
   ========================================================================== */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tab-btn {
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text-mute);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}
html[dir="rtl"] .tab-btn { font-family: 'Cairo', sans-serif; font-weight: 600; }
.tab-btn[aria-selected="true"] { background: #14161a; color: #f4f1e9; border-color: #14161a; }
.tab-btn[aria-selected="true"] .n { color: var(--amber); }

.brand-panel { display: none; }
.brand-panel.is-active { display: block; }
.brand-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 620px) { .brand-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .brand-list { grid-template-columns: repeat(4, 1fr); } }
.brand-item { background: var(--bg-raised); padding: 16px 16px; }
.brand-item .name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.05rem; text-transform: uppercase; }
.brand-item .origin {
  display: inline-block;
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 6px;
}
.brand-item .spec { display: block; margin-top: 7px; font-size: 0.82rem; color: var(--text-mute); }

.catalogue-note {
  margin-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-faint);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  padding: 12px 16px;
}

/* ==========================================================================
   Sectors
   ========================================================================== */
.sector-card { text-align: start; }
.sector-card .tag-id { color: var(--amber-ink); }
:root[data-theme="dark"] .sector-card .tag-id { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sector-card .tag-id { color: var(--amber); } }

/* ==========================================================================
   Standards badges
   ========================================================================== */
.badge-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .badge-row { grid-template-columns: repeat(4, 1fr); } }
.badge {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  text-align: center;
  padding: 18px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}
.compliance-note { margin-top: 20px; background: var(--surface); border-inline-start: 3px solid var(--amber); border-radius: var(--radius-s); padding: 16px 18px; }
html[dir="rtl"] .compliance-note { border-inline-start: none; border-inline-end: 3px solid var(--amber); }
.compliance-note p { color: var(--text-mute); font-size: 0.9rem; }

/* ==========================================================================
   Registration / licensing strip
   ========================================================================== */
.reg-strip { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
@media (min-width: 700px) { .reg-strip { grid-template-columns: repeat(4, 1fr); } }
.reg-item { background: var(--bg-raised); padding: 16px 18px; }
.reg-item .k { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.reg-item .v { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 0.98rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.form-panel { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 32px); }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 560px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 11px 13px;
  font-size: 0.96rem;
  color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: 0.88rem; }
.form-status.ok { color: #2f7d4f; }
.form-status.err { color: #b4482f; }

.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
}
.contact-item .k { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.contact-item .v { font-weight: 600; }
.contact-item .v.link:hover { color: var(--amber-ink); }
:root[data-theme="dark"] .contact-item .v.link:hover { color: var(--amber); }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; height: 220px; filter: grayscale(0.15); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #14161a; color: #cfccc2; border-top: 4px solid var(--amber); }
.site-footer .container { padding-block: 46px 24px; }
.footer-top { display: grid; gap: 36px; grid-template-columns: 1fr; margin-bottom: 34px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand p { color: #9a978d; font-size: 0.9rem; margin-top: 14px; max-width: 34ch; }
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d7a70;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { color: #cfccc2; font-size: 0.92rem; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid #2a2d34;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #7d7a70;
  font-family: 'IBM Plex Mono', monospace;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
@media (min-width: 1px) {
  .reveal { transition: opacity .5s ease, transform .5s ease; }
}
.js-ready .reveal { opacity: 0; transform: translateY(14px); }
.js-ready .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Utility
   ========================================================================== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
