/* ==========================================================
   UNIVERSAL PAGE TEMPLATE
   - Print-safe inner margin (12mm sides, 18mm top, 16mm bottom)
   - Najdi triangular accent integrated into header AND footer
   - Unified section-tag typography (Cormorant numeral + Tajawal/Inter)
   ========================================================== */

/* Hijazi Roshan-inspired subtle accent — thin dotted octagon frieze (very subtle).
   Used universally across header/footer at low opacity so it reads as texture, not decoration. */
:root {
  --hijazi-accent: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 6'><g fill='none' stroke='%23C9A24B' stroke-width='0.35'><polygon points='8,1 11,1.7 12,3 11,4.3 8,5 5,4.3 4,3 5,1.7'/><circle cx='8' cy='3' r='0.5' fill='%23C9A24B'/><polygon points='24,1 27,1.7 28,3 27,4.3 24,5 21,4.3 20,3 21,1.7'/><circle cx='24' cy='3' r='0.5' fill='%23C9A24B'/><polygon points='40,1 43,1.7 44,3 43,4.3 40,5 37,4.3 36,3 37,1.7'/><circle cx='40' cy='3' r='0.5' fill='%23C9A24B'/></g></svg>");
  --najdi-accent: var(--hijazi-accent);
}

.page-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 16mm;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12mm;
  z-index: 5;
  flex-direction: row-reverse;     /* RTL: section-tag (page title) → visual right; brand → visual left */
}
/* Header gold rule + Najdi accent strip directly underneath */
.page-header::after {
  content: "";
  position: absolute;
  left: 12mm; right: 12mm; bottom: 1mm;
  height: 4mm;
  background:
    linear-gradient(to bottom, var(--gold) 0, var(--gold) 0.4pt, transparent 0.4pt) top/100% 100% no-repeat,
    var(--najdi-accent) center 1.6mm / 18mm 3mm repeat-x;
  opacity: 0.32;
  pointer-events: none;
}
.page-header .brand {
  display: flex; align-items: baseline; gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700; color: var(--ink);
  letter-spacing: .26em;
}
.page-header .brand .dot {
  width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  align-self: center;
}
.page-header .section-tag {
  font-family: "Inter", sans-serif; font-size: 8.5pt;
  color: var(--ink); letter-spacing: .24em; text-transform: uppercase;
  font-weight: 600;
  display: flex; align-items: baseline; gap: 6px;
}
.page-header .section-tag::before {
  content: "";
  display: inline-block; width: 14mm; height: 0.6pt;
  background: var(--gold);
  margin-inline-end: 6px;
  vertical-align: middle;
}

.page-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 14mm;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 12mm 3mm 12mm;
  flex-direction: row-reverse;     /* RTL: page-num → visual right */
  font-family: "Inter", sans-serif; font-size: 8.5pt;
  color: var(--ink-soft); letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500;
  z-index: 5;
}
/* Footer: matching Najdi accent (mirrored above the text) */
.page-footer::before {
  content: "";
  position: absolute;
  left: 12mm; right: 12mm; top: 1mm;
  height: 4mm;
  background:
    linear-gradient(to top, var(--gold) 0, var(--gold) 0.4pt, transparent 0.4pt) bottom/100% 100% no-repeat,
    var(--najdi-accent) center 0.6mm / 18mm 3mm repeat-x;
  opacity: 0.32;
  pointer-events: none;
  transform: scaleY(-1);
}
.page-footer .num {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  font-weight: 500; font-size: 14pt;
  color: var(--ink); letter-spacing: .02em;
}
.page-footer .num::before {
  content: ""; width: 18px; height: 1px; background: var(--gold);
  align-self: center;
}

/* ---------- Content Area (universal print-safe inner box) ---------- */
.content {
  position: absolute;
  top: 22mm; left: 14mm; right: 14mm; bottom: 18mm;
}

/* ---------- Cover ---------- */
.cover {
  background:
    linear-gradient(135deg, rgba(6,24,51,0.78) 0%, rgba(14,44,92,0.45) 100%),
    url("../assets/img/real-exterior.jpg") center / cover;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18mm 18mm;
}
.cover h1, .cover h2 { color: #fff; }
.cover .top { display: flex; justify-content: space-between; align-items: flex-start; }
.cover .logo-mark {
  font-family: "Inter", sans-serif; font-weight: 800; font-size: 14pt;
  letter-spacing: .25em; color: var(--gold-light);
}
.cover .vision { font-size: 9pt; letter-spacing: .3em; opacity: .8; }
.cover .center { margin: auto 0; }
.cover .ar-title {
  font-size: 64pt; font-weight: 900; line-height: 1.05; margin-bottom: 8px;
}
.cover .en-title {
  font-family: "Inter", sans-serif; font-size: 28pt; font-weight: 600;
  letter-spacing: .15em; color: var(--gold-light);
}
.cover .tagline {
  font-size: 14pt; margin-top: 22px; opacity: .9;
  border-right: 3px solid var(--gold); padding-right: 14px;
}
.cover .en-tagline {
  font-family: "Inter", sans-serif; font-size: 11pt;
  letter-spacing: .15em; opacity: .75; margin-top: 8px; padding-right: 14px;
}
.cover .bottom { display: flex; justify-content: space-between; align-items: flex-end;
  font-family: "Inter", sans-serif; font-size: 9pt; letter-spacing: .25em; opacity: .85;
}
.cover .bottom-strip { display: flex; gap: 14px; align-items: center;
  font-family: "Inter", sans-serif; font-size: 9pt; letter-spacing: .2em;
  color: var(--gold-light);
}
.cover .bottom-strip span { padding: 5px 12px; border: 1px solid rgba(225,192,121,0.5); border-radius: 50px; }
.cover .bottom-strip .badge-icon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 10px;
  border: 1px solid rgba(225,192,121,0.5);
  border-radius: 50px;
  font-family: "Inter", sans-serif; font-size: 8.5pt;
  letter-spacing: .18em; color: var(--gold-light);
  background: rgba(6,24,51,0.45);
}
.cover .bottom-strip .badge-icon img {
  height: 26px; width: auto; flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* ---------- TOC ---------- */
.toc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 18mm; row-gap: 4mm; margin-top: 8mm;
}
.toc-item {
  display: flex; align-items: baseline; gap: 12px;
  padding: 3.5mm 0; border-bottom: 1px solid var(--line);
}
.toc-item .n {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 16pt;
  color: var(--gold); width: 36px; flex-shrink: 0;
}
.toc-item .t { font-size: 11pt; color: var(--ink); font-weight: 600; flex: 1; }
.toc-item .t .en { display: block; font-size: 8.5pt; color: var(--muted); font-weight: 500; margin-top: 2px; }
.toc-item .pg { font-family: "Inter", sans-serif; font-size: 10pt; color: var(--muted); }

/* ---------- Section headings ---------- */
.section-eyebrow {
  font-family: "Inter", sans-serif; font-size: 9pt;
  letter-spacing: .3em; color: var(--gold);
  text-transform: uppercase; font-weight: 600; margin-bottom: 6px;
}
.section-title { font-size: 26pt; }
.section-title .en {
  display: block; font-size: 14pt; color: var(--ink-soft);
  font-weight: 500; margin-top: 4px;
}
.section-rule { width: 60px; height: 3px; background: var(--gold); margin: 10px 0 14px; }

/* ---------- Layouts ---------- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; height: 100%;
}
.two-col.text-img { grid-template-columns: 1.1fr 1fr; }
.two-col.img-text { grid-template-columns: 1fr 1.1fr; }

.col-text { display: flex; flex-direction: column; justify-content: center; }
.col-text p { margin-bottom: 8px; }

/* ---------- Image element ---------- */
.imgph {
  background-size: cover; background-position: center;
  border-radius: 6px; position: relative; overflow: hidden;
}
.imgph::after {
  content: attr(data-img);
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(6,24,51,0.78); color: var(--gold-light);
  font-family: "Inter", sans-serif; font-size: 7pt;
  letter-spacing: .12em; padding: 2px 5px; border-radius: 3px;
}

/* ---------- Bullets ---------- */
.bullets { list-style: none; padding: 0; }
.bullets li {
  position: relative; padding-right: 22px; margin-bottom: 7px;
  font-size: 11pt; line-height: 1.6; color: var(--ink-soft);
}
[dir="rtl"] .bullets li { padding-right: 22px; padding-left: 0; }
[dir="ltr"] .bullets li { padding-left: 22px; padding-right: 0; }
.bullets li::before {
  content: ""; position: absolute; top: 9px;
  width: 8px; height: 8px; background: var(--gold); border-radius: 50%;
}
[dir="rtl"] .bullets li::before { right: 0; }
[dir="ltr"] .bullets li::before { left: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 5mm; }
.cards.c-2 { grid-template-columns: 1fr 1fr; }
.cards.c-3 { grid-template-columns: repeat(3, 1fr); }
.cards.c-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--cream); border-radius: 8px;
  padding: 5mm 5mm; border-top: 3px solid var(--gold);
  position: relative; display: flex; flex-direction: column;
}
.card .num {
  font-family: "Inter", sans-serif; font-weight: 800; font-size: 14pt;
  color: var(--gold); margin-bottom: 4px;
}
.card h4 { font-size: 11.5pt; color: var(--navy); margin-bottom: 4px; }
.card p { font-size: 10pt; color: var(--ink-soft); line-height: 1.5; }
.card.dark { background: var(--navy); color: #fff; border-top-color: var(--gold); }
.card.dark h4 { color: #fff; }
.card.dark p { color: rgba(255,255,255,0.8); }
.card.dark .num { color: var(--gold-light); }

/* ---------- BADGES ---------- */
.badges {
  display: flex; gap: 4mm; flex-wrap: wrap; margin: 4mm 0;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--gold);
  border-radius: 50px; padding: 3mm 6mm;
  font-family: "Inter", sans-serif; font-size: 10pt;
  font-weight: 600; color: var(--navy); letter-spacing: .05em;
}
.badge-pill svg { width: 16px; height: 16px; }
.badge-pill.dark { background: var(--navy); color: #fff; border-color: var(--gold); }
.badge-pill.dark svg { color: var(--gold-light); }

.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5mm; margin: 5mm 0; }
.badge-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.badge-card {
  background: #fff; border: 1.5px solid var(--line);
  border-top: 4px solid var(--gold); border-radius: 6px;
  padding: 6mm 5mm; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.badge-card .ic-circle {
  width: 48px; height: 48px;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 3px;
}
.badge-card .ic-circle svg { width: 26px; height: 26px; color: var(--navy); }
.badge-card h4 { font-size: 11pt; color: var(--navy); margin: 2px 0; }
.badge-card p { font-size: 9pt; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Vision / Mission Cards ---------- */
.vision-card .num { color: var(--gold); }
.vision-card .num svg { width: 18px; height: 18px; color: var(--navy); }
.mission-card .num { color: var(--gold-light); }
.mission-card .num svg { width: 18px; height: 18px; color: var(--gold-light); }

/* ---------- 3-Icon Row ---------- */
.icon-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; margin: 5mm 0;
}
.icon-row.r4 { grid-template-columns: repeat(4, 1fr); }
.icon-tile {
  text-align: center; padding: 4mm 4mm;
  border-right: 1px solid var(--line);
}
.icon-row > .icon-tile:last-child { border-right: none; }
.icon-tile .ic-big {
  width: 56px; height: 56px; margin: 0 auto 8px;
  background: var(--navy); color: var(--gold-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.icon-tile .ic-big svg { width: 28px; height: 28px; }
.icon-tile h4 { font-size: 11.5pt; color: var(--navy); margin-bottom: 3px; }
.icon-tile p { font-size: 9pt; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Stats ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .v {
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: 36pt; color: var(--navy); line-height: 1;
}
.stat .v .unit { font-size: 16pt; color: var(--gold); margin-right: 4px; }
.stat .l { font-size: 10pt; color: var(--muted); letter-spacing: .05em; }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm;
  padding: 5mm 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 4mm 0;
}
.stats-row.r4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Now/Next ---------- */
.now-next {
  display: flex; align-items: center; gap: 12mm;
  padding: 6mm 5mm; background: var(--cream);
  border-radius: 8px; margin: 4mm 0;
}
.now-next .nn-block { flex: 1; text-align: center; }
.now-next .nn-label {
  font-family: "Inter", sans-serif; font-size: 9pt;
  letter-spacing: .25em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 4px;
}
.now-next .nn-value {
  font-family: "Inter", sans-serif; font-weight: 800;
  font-size: 32pt; color: var(--navy); line-height: 1;
}
.now-next .nn-unit { font-size: 12pt; color: var(--gold); }
.now-next .nn-arrow {
  font-size: 26pt; color: var(--gold);
  font-family: "Inter", sans-serif; font-weight: 200;
}

/* ---------- Process ---------- */
.process { display: flex; gap: 6px; align-items: stretch; margin: 3mm 0; }
.proc-step {
  flex: 1; background: #fff;
  border: 1px solid var(--line); border-top: 3px solid var(--navy);
  padding: 4mm; position: relative;
}
.proc-step .n {
  font-family: "Inter", sans-serif; font-weight: 800;
  color: var(--gold); font-size: 11pt;
}
.proc-step h5 { font-size: 10pt; color: var(--navy); margin: 3px 0; font-weight: 700; }
.proc-step p { font-size: 8.5pt; color: var(--ink-soft); }

/* ---------- Material Strip ---------- */
.material-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 3mm; margin: 4mm 0;
}
.material-swatch {
  height: 22mm; border-radius: 6px; position: relative;
  background-size: cover; background-position: center;
  box-shadow: 0 4px 12px rgba(14,44,92,0.15); overflow: hidden;
}
.material-swatch .label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(6,24,51,0.85); color: #fff;
  font-family: "Inter", sans-serif; font-size: 7.5pt;
  text-align: center; padding: 2px 4px; letter-spacing: .08em;
}
.mat-walnut  { background: linear-gradient(135deg, #4A2C18, #6B3F22, #4A2C18); }
.mat-oak     { background: linear-gradient(135deg, #8B6F47, #A88A60, #8B6F47); }
.mat-teak    { background: linear-gradient(135deg, #6E4220, #8C5A2E, #6E4220); }
.mat-mahog   { background: linear-gradient(135deg, #4E1F18, #6E2E22, #4E1F18); }
.mat-ash     { background: linear-gradient(135deg, #C8B69A, #D6C5A8, #C8B69A); }
.mat-matte   { background: #2A2A2A; }
.mat-satin   { background: linear-gradient(135deg, #1F2937, #4B5563); }
.mat-gloss   { background: linear-gradient(135deg, #0E2C5C, #4773C1, #0E2C5C); }
.mat-inlay   { background: linear-gradient(135deg, #4A2C18, #C9A24A, #4A2C18); }
.mat-lacquer { background: linear-gradient(135deg, #1A1A1A, #404040); }

/* ---------- Hero pages ---------- */
.hero { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(6,24,51,0.85) 0%, rgba(14,44,92,0.4) 60%, rgba(0,0,0,0) 100%);
}
.hero-content {
  position: absolute; top: 0; bottom: 0; right: 0; width: 60%;
  padding: 26mm 22mm; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-content h2 { color: #fff; font-size: 30pt; }
.hero-content .en-h { color: var(--gold-light); font-family: "Inter", sans-serif; font-size: 16pt; font-weight: 500; margin-top: 6px; }
.hero-content .lead { font-size: 12pt; line-height: 1.7; opacity: .92; margin-top: 14px; max-width: 130mm; }

/* ---------- Logo Wall (certifications) ---------- */
.logo-wall {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6mm 8mm; margin-top: 6mm;
}
.cert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5mm 5mm;
  display: flex; align-items: center; gap: 5mm;
  min-height: 30mm;
}
.cert-card .cert-mark {
  flex-shrink: 0;
  width: 22mm; height: 22mm;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: "Inter", sans-serif;
}
.cert-card .cert-mark .top { font-size: 7pt; color: var(--gold); letter-spacing: .15em; font-weight: 700; }
.cert-card .cert-mark .num { font-size: 14pt; color: var(--navy); font-weight: 800; line-height: 1; }
.cert-card .cert-mark .yr  { font-size: 7pt; color: var(--muted); letter-spacing: .1em; }
.cert-card .cert-info { flex: 1; }
.cert-card .cert-info h4 { font-size: 11pt; color: var(--navy); margin-bottom: 3px; }
.cert-card .cert-info p { font-size: 9pt; color: var(--ink-soft); line-height: 1.45; }
.cert-card .cert-info .status {
  display: inline-block; margin-top: 4px;
  font-family: "Inter", sans-serif; font-size: 7.5pt;
  background: var(--gold); color: var(--navy-deep);
  padding: 2px 8px; border-radius: 50px; font-weight: 700; letter-spacing: .15em;
}

/* ---------- Org Chart ---------- */
.org { display: flex; flex-direction: column; align-items: center; gap: 6mm; margin-top: 5mm; }
.org-row { display: flex; gap: 4mm; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.org-node {
  background: var(--navy); color: #fff;
  padding: 5mm 6mm; border-radius: 6px;
  font-size: 10pt; font-weight: 600; text-align: center;
  min-width: 36mm; border-bottom: 3px solid var(--gold);
}
.org-node .en { display: block; font-size: 8.5pt; opacity: .8; margin-top: 2px; font-weight: 400; }
.org-node.gold { background: var(--gold); color: var(--navy-deep); border-bottom-color: var(--navy); }
.org-line { width: 1px; height: 8mm; background: var(--line); }

/* ---------- Featured Project Card (big) ---------- */
.featured-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5mm; margin-top: 5mm;
}
.featured-card {
  position: relative; overflow: hidden;
  border-radius: 8px; height: 70mm;
  background-size: cover; background-position: center;
  box-shadow: 0 6px 18px rgba(14,44,92,0.25);
}
.featured-card .fc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,24,51,0.92) 0%, rgba(6,24,51,0.4) 50%, rgba(6,24,51,0) 100%);
}
.featured-card .fc-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 5mm 6mm;
  color: #fff;
}
.featured-card .fc-cat {
  font-family: "Inter", sans-serif; font-size: 8pt;
  letter-spacing: .25em; color: var(--gold-light);
  text-transform: uppercase; margin-bottom: 3px;
}
.featured-card .fc-title {
  font-size: 14pt; font-weight: 800; line-height: 1.25;
  color: #fff; margin-bottom: 4px;
}
.featured-card .fc-desc {
  font-size: 9pt; line-height: 1.5; opacity: 0.9; max-width: 130mm;
}
.featured-card .fc-tags {
  display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap;
}
.featured-card .fc-tag {
  background: rgba(201,162,74,0.85); color: var(--navy-deep);
  font-family: "Inter", sans-serif; font-size: 7.5pt;
  padding: 2px 7px; border-radius: 50px;
  font-weight: 700; letter-spacing: .08em;
}

/* ---------- Portfolio Mini Card ---------- */
.mini-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4mm; margin-top: 5mm;
}
.mini-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 5px; overflow: hidden;
}
.mini-card .mc-img {
  height: 28mm; background-size: cover; background-position: center;
}
.mini-card .mc-body { padding: 3mm 4mm; }
.mini-card .mc-cat {
  font-family: "Inter", sans-serif; font-size: 7pt;
  color: var(--gold); letter-spacing: .15em; font-weight: 700;
  text-transform: uppercase;
}
.mini-card .mc-title {
  font-size: 9.5pt; color: var(--navy);
  font-weight: 700; line-height: 1.3; margin-top: 2px;
}

/* ---------- Project Card (existing, kept) ---------- */
.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 5mm; margin-top: 5mm;
}
.project-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
}
.project-card .pc-img {
  height: 38mm; background-size: cover; background-position: center; position: relative;
}
.project-card .pc-img::after {
  content: attr(data-img);
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(6,24,51,0.78); color: var(--gold-light);
  font-family: "Inter", sans-serif; font-size: 7pt;
  letter-spacing: .12em; padding: 2px 6px; border-radius: 3px;
}
.project-card .pc-body { padding: 4mm 5mm; }
.project-card .pc-title { font-size: 11pt; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.project-card .pc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.project-card .pc-tag {
  font-family: "Inter", sans-serif; font-size: 7.5pt;
  background: var(--cream); color: var(--navy); border: 1px solid var(--gold);
  border-radius: 50px; padding: 2px 7px; letter-spacing: .08em; font-weight: 600;
}

/* ---------- System Card ---------- */
.system-card-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4mm; margin-top: 4mm;
}
.sys-block {
  background: var(--cream); border-radius: 6px;
  padding: 4mm 5mm; border-right: 3px solid var(--gold);
}
[dir="ltr"] .sys-block { border-right: none; border-left: 3px solid var(--gold); }
.sys-block .sys-num {
  font-family: "Inter", sans-serif; font-size: 9pt;
  color: var(--gold); font-weight: 700; letter-spacing: .15em;
}
.sys-block h5 { font-size: 11pt; color: var(--navy); margin: 3px 0; }
.sys-block ul { list-style: none; padding: 0; }
.sys-block li {
  font-size: 9pt; color: var(--ink-soft); line-height: 1.5;
  padding-right: 12px; position: relative; margin-bottom: 2px;
}
.sys-block li::before { content: "•"; color: var(--gold); position: absolute; right: 0; }
[dir="ltr"] .sys-block li { padding-left: 12px; padding-right: 0; }
[dir="ltr"] .sys-block li::before { left: 0; right: auto; }

/* ---------- Before/After ---------- */
.before-after {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin: 5mm 0;
}
.ba-cell {
  height: 60mm; background-size: cover; background-position: center;
  border-radius: 6px; position: relative;
}
.ba-cell::before {
  content: attr(data-label);
  position: absolute; top: 8px; left: 8px;
  background: var(--navy); color: var(--gold-light);
  font-family: "Inter", sans-serif; font-size: 9pt;
  font-weight: 700; letter-spacing: .15em;
  padding: 4px 10px; border-radius: 3px;
}
.ba-cell::after {
  content: attr(data-img);
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(6,24,51,0.78); color: var(--gold-light);
  font-family: "Inter", sans-serif; font-size: 7pt;
  letter-spacing: .12em; padding: 2px 6px; border-radius: 3px;
}

/* ---------- Quote ---------- */
.quote {
  background: var(--cream); padding: 5mm 7mm;
  border-right: 4px solid var(--gold); margin: 4mm 0;
  font-size: 11.5pt; color: var(--navy); font-weight: 600; line-height: 1.65;
}
[dir="ltr"] .quote { border-right: none; border-left: 4px solid var(--gold); }

/* ---------- Evidence Strip ---------- */
.evidence-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4mm; margin: 4mm 0;
}
.evidence-tile {
  background: #fff; border: 1.5px dashed var(--gold);
  border-radius: 6px; padding: 5mm 4mm; text-align: center;
}
.evidence-tile svg { width: 24px; height: 24px; color: var(--gold); margin-bottom: 4px; }
.evidence-tile h5 { font-size: 10pt; color: var(--navy); margin-bottom: 2px; }
.evidence-tile p { font-size: 8pt; color: var(--muted); }

/* ---------- Thanks ---------- */
.thanks {
  background:
    linear-gradient(135deg, rgba(6,24,51,0.92) 0%, rgba(14,44,92,0.7) 100%),
    url("../assets/img/real-exterior.jpg") center / cover;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 22mm;
}
.thanks .ar { font-size: 70pt; font-weight: 900; line-height: 1.1; }
.thanks .en { font-size: 30pt; color: var(--gold-light); letter-spacing: .15em; margin-top: 10px; font-family: "Inter", sans-serif; }
.thanks .rule { width: 80px; height: 3px; background: var(--gold); margin: 22px 0; }
.thanks .contact-grid {
  display: grid; grid-template-columns: repeat(3,auto); gap: 30px 50px; margin-top: 22px;
  font-family: "Inter", sans-serif; font-size: 10pt; letter-spacing: .08em;
}
.thanks .contact-grid .c-label { color: var(--gold-light); font-size: 8.5pt; letter-spacing: .25em; margin-bottom: 4px; }

/* ---------- Utility helpers (added) ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.gap-2 { gap: 2mm; }
.gap-3 { gap: 3mm; }
.gap-4 { gap: 4mm; }
.h-22 { height: 22mm; }
.h-26 { height: 26mm; }
.h-32 { height: 32mm; }
.h-38 { height: 38mm; }
.h-50 { height: 50mm; }
.h-60 { height: 60mm; }
.h-70 { height: 70mm; }
.imgph-cover { background-size: cover; background-position: center; border-radius: 4px; }
.mt-3 { margin-top: 3mm; }
.mt-4 { margin-top: 4mm; }

/* Replicas page-13 specific layout */
.rep-hero {
  position: relative; height: 50mm; border-radius: 4px;
  background-size: cover; background-position: center; margin-top: 4mm;
}
.rep-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 26mm;
  gap: 3mm; margin-top: 3mm;
}
.rep-mosaic .imgph { border-radius: 4px; }
.rep-process-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm;
  margin-top: 3mm; height: 24mm;
}

/* Cert badges (real images) */
.cert-badge-img {
  width: 100%; max-width: 70mm; height: 28mm;
  object-fit: contain; display: block; margin: 0 auto;
}
.cert-mark.with-img { padding: 4mm; background: #fff; }

/* Org chart subdued background */
.org-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/office.jpg") center / cover no-repeat;
  opacity: 0.08; pointer-events: none; z-index: 0;
}
.org, .content > * { position: relative; z-index: 1; }

/* Contact page muted background helper */
.thanks.with-bg {
  background:
    linear-gradient(135deg, rgba(6,24,51,0.94) 0%, rgba(14,44,92,0.78) 100%),
    url("../assets/img/factory.jpg") center / cover;
}

/* ---------- Print Bar ---------- */
.print-bar {
  position: fixed; top: 16px; right: 16px; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 50px;
  font-family: "Inter", sans-serif; font-size: 13px;
  font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  border: none; letter-spacing: .05em;
}
.print-bar:hover { background: var(--gold); color: var(--navy-deep); }

/* ---------- Print ---------- */
@page { size: A4 landscape; margin: 0; }
@media print {
  html, body { background: #fff; }
  .page { margin: 0; box-shadow: none; page-break-after: always; break-after: page; }
  .print-bar { display: none; }
}

