/* ===== Autonex — Safety & Security Solutions =====
   Design tokens
   Color: paper/panel neutrals with a warm-cool near-black ink and a single
   hazard-red accent, spent on labels, the logo wedge, rule lines and CTAs.
   Type: Anton (compressed poster display) / Public Sans (body, compliance-
   register humanist grotesk) / JetBrains Mono (spec labels, standard refs).
   Layout: technical-datasheet grid — numbered spec rows, hairline dividers,
   a diagonal hazard-cut motif used structurally at section boundaries.
*/

:root {
  --paper: #ffffff;
  --panel: #f4f5f7;
  --panel-2: #e9ebee;
  --ink: #0a1f44;
  --ink-soft: #46536b;
  --ink-faint: #7c869b;
  --line: #e1e4e9;
  --line-strong: #c7ccd4;
  --red: #d81f26;
  --red-deep: #a11419;
  --red-soft: rgba(216, 31, 38, 0.07);
  --red-soft-strong: rgba(216, 31, 38, 0.15);
  --navy: #0a1f44;
  --navy-2: #123058;
  --blue: #2b6cb0;
  --blue-soft: rgba(43, 108, 176, 0.1);
  --shadow: 0 1px 2px rgba(10, 31, 68, 0.08);
  --shadow-lift: 0 16px 36px rgba(10, 31, 68, 0.16);
}

/* This design commits to a white ground deliberately — no automatic
   prefers-color-scheme switch. An explicit in-app dark-mode toggle (if
   the viewer stamps data-theme="dark") still overrides below. */
:root[data-theme="dark"] {
  --paper: #081226;
  --panel: #0d1a34;
  --panel-2: #12223f;
  --ink: #eef1f6;
  --ink-soft: #a7b0c0;
  --ink-faint: #6f7889;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --red: #ff4b42;
  --red-deep: #ff8178;
  --red-soft: rgba(255, 75, 66, 0.14);
  --red-soft-strong: rgba(255, 75, 66, 0.24);
  --navy: #040a16;
  --navy-2: #0a1730;
  --blue: #5b9bdb;
  --blue-soft: rgba(91, 155, 219, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }

/* ---------- Type scale ---------- */

h1, h2, h3, .display {
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.002em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

p { color: var(--ink-soft); max-width: 62ch; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 58ch; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand-text {
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--red);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.nav-cta:hover { background: var(--red-deep); }
[dir="rtl"] .nav-cta { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%); }
.nav-lang {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.nav-lang:hover { color: var(--red); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover { color: var(--red); }
.theme-toggle svg { width: 16px; height: 16px; flex-shrink: 0; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Everything right of the logo (links, language switch, CTA) shares one
   collapsible container, so mobile just toggles this whole block instead
   of juggling several independently-overflowing elements. */
.nav-collapse {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  margin: -6px;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
  .site-nav .wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-collapse {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 14px;
    padding-top: 12px;
    padding-bottom: 16px;
    border-top: 1px solid var(--line);
  }
  .nav-collapse.is-open { display: flex; }
  .nav-collapse .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-collapse .nav-links a {
    display: block;
    padding: 13px 2px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-collapse .nav-lang {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav-collapse .theme-toggle {
    position: relative;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav-collapse .theme-toggle svg {
    width: 18px;
    height: 18px;
  }
  .nav-collapse .theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .nav-collapse .nav-cta {
    justify-content: center;
    margin-top: 14px;
  }
}

/* ---------- Hazard divider ---------- */

.hazard-rule {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 14px,
    var(--ink) 14px 28px
  );
}

/* ---------- Feature split (text + full poster image, side by side) ---------- */
/* These images are pre-designed posters (headline + brand mark baked in),
   so they're shown at their real portrait proportions rather than cropped
   into a landscape banner — cropping would cut off their own text. */

.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-block: 72px;
}
.feature-split.reverse .art { order: -1; }
.feature-split .eyebrow { display: block; }
.feature-split h1, .feature-split h2 { margin-top: 12px; }
.feature-split .lede { margin-top: 18px; }
.feature-split .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.feature-split .art {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.feature-split .art img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-lift);
}
@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; gap: 32px; padding-block: 48px; }
  .feature-split .art { order: -1; max-width: 300px; }
  .feature-split.reverse .art { order: -1; }
}

.page-hero {
  text-align: center;
  padding-block: 64px 48px;
}
.page-hero h1 { margin: 10px auto 0; max-width: 20ch; }
.page-hero .lede { margin: 16px auto 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #f4f6f9; }
.btn-dark:hover { background: var(--red-deep); color: #fff; }

/* ---------- Section rhythm ---------- */

section { padding-block: 72px; }
.section-alt { background: var(--panel); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { margin-top: 8px; }

/* ---------- Centered text hero ---------- */

.text-hero {
  text-align: center;
  padding-block: 76px 48px;
}
.text-hero .lede { margin: 18px auto 0; }
.text-hero .hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.text-hero h1 { max-width: 20ch; margin: 12px auto 0; }

/* ---------- Mosaic grid (photo tiles with labels) ---------- */

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mosaic-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel);
}
.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mosaic-tile .lbl {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(10,31,68,0.86) 0%, rgba(10,31,68,0) 100%);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 30px 12px 10px;
}

@media (max-width: 640px) {
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic-tile { aspect-ratio: 1 / 1; }
  .mosaic-tile .lbl {
    font-size: 0.56rem;
    padding: 20px 8px 8px;
  }
  /* A 3-tile grid (About page) leaves the last tile alone in column 1 —
     span it full-width instead of leaving a gap beside it. */
  .mosaic-grid .mosaic-tile:nth-child(3):last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Pillars (home) ---------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--paper);
  padding: 36px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.pillar-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  transition: opacity 0.2s ease;
}
.pillar:hover .pillar-photo { opacity: 0.26; }
.pillar-body { position: relative; z-index: 1; }
.pillar .eyebrow { display: block; margin-bottom: 10px; }
.pillar h3 { font-size: 1.7rem; margin-bottom: 10px; }
.pillar p { font-size: 0.94rem; }
.pillar-arrow {
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
}

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Standards strip ---------- */

.standards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  align-items: center;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.standards .eyebrow { flex-shrink: 0; }
.standards ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.standards li {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Value / feature grid ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-card {
  background: var(--paper);
  padding: 28px 26px;
}
/* Forces all five About-page values into one row, full height matched —
   used only on that instance via an added class, other .value-grid pages
   (Home's 3-item teaser, Services' 3-item compliance grid) are untouched. */
.value-grid-5 { grid-template-columns: repeat(5, 1fr); }
.value-grid-5 .value-card { padding: 20px 16px; }
.value-grid-5 .value-card h3 { font-size: 0.96rem; }
.value-grid-5 .value-card p { font-size: 0.8rem; }
@media (max-width: 900px) {
  .value-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .value-grid-5 { grid-template-columns: 1fr; }
}

.value-card .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--red);
  letter-spacing: 0.08em;
}
.value-card h3 { font-size: 1.12rem; margin-top: 10px; margin-bottom: 8px; text-transform: none; font-family: "Public Sans", sans-serif; font-weight: 800; }
.value-card p { font-size: 0.92rem; }

/* ---------- Spec rows (services) ---------- */

.spec-list { border-top: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.spec-row .spec-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
}
.spec-row .spec-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--red);
  background: var(--red-soft);
  padding: 3px 8px;
}
.spec-row p { font-size: 0.94rem; }

@media (max-width: 680px) {
  .spec-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Photo blocks ---------- */

.photo-figure { margin: 0; }
.photo-figure img { width: 100%; height: 100%; object-fit: cover; }
.photo-figure figcaption {
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.duo.reverse .duo-photo { order: 2; }
@media (max-width: 780px) {
  .duo { grid-template-columns: 1fr; }
  .duo.reverse .duo-photo { order: 0; }
}
.duo-photo { aspect-ratio: 4/3; overflow: hidden; }
.duo-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Wide banner photo ---------- */

.banner-photo {
  aspect-ratio: 21/9;
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}
.banner-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); }
.banner-photo .cap {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--navy);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
}
@media (max-width: 640px) { .banner-photo { aspect-ratio: 4/3; } }

/* ---------- Sector grid ---------- */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sector-card { background: var(--paper); padding: 26px; border-top: 3px solid var(--red); }
.sector-card.is-blue { border-top-color: var(--blue); }
.sector-card .icn { width: 30px; height: 30px; color: var(--red); margin-bottom: 14px; }
.sector-card.is-blue .icn { color: var(--blue); }
.sector-card h3 { font-size: 1.02rem; text-transform: none; font-family: "Public Sans", sans-serif; font-weight: 800; }
.sector-card p { font-size: 0.88rem; margin-top: 8px; }

/* ---------- Annotated building diagram ---------- */

.diagram {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16/10;
}
@media (max-width: 640px) { .diagram { aspect-ratio: 4/5; } }
.diagram img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.88; }
.diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(6,13,26,0.15) 0%, rgba(6,13,26,0.55) 100%);
}
.diagram-point {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
}
.diagram-point .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(226,35,28,0.28), 0 0 16px rgba(226,35,28,0.7);
}
.diagram-point .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(6,13,26,0.72);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 9px;
  white-space: nowrap;
}

/* ---------- Vision / Mission ---------- */

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.vm-card { background: var(--paper); padding: 34px; position: relative; }
.vm-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--red);
}
.vm-card .eyebrow { display: block; margin-bottom: 12px; }
.vm-card p { font-size: 1.02rem; color: var(--ink); }
@media (max-width: 680px) { .vm-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #f4f6f9;
  padding-block: 56px;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -6%;
  top: 0;
  bottom: 0;
  width: 34%;
  background: var(--red);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(244,246,249,0.76); }
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding-block: 44px;
  font-size: 0.86rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 0.78rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 0.96rem;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.info-kv { border-top: 1px solid var(--line); }
.info-kv .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.info-kv .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.info-kv .v { font-size: 0.96rem; }

/* ---------- RTL / Arabic ---------- */
/* Cairo (bold, geometric) stands in for Anton; Tajawal for body/labels —
   Anton/JetBrains Mono have no Arabic glyphs at all. Logo mark and the
   diagonal brand accents (cta-band wedge, hazard-rule) stay unmirrored
   on purpose, like a watermark — only the functional arrow-shaped button
   clip-paths flip to point the right way for RTL reading flow. */

[dir="rtl"] body { font-family: "Tajawal", "Public Sans", -apple-system, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .brand-text {
  font-family: "Cairo", "Tajawal", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  /* Cairo's taller strokes and tashkeel marks (e.g. the fathatan in
     "أمانًا") collide under Anton's 0.98 line-height — give Arabic
     headings real breathing room between lines. */
  line-height: 1.35;
}
[dir="rtl"] .eyebrow, [dir="rtl"] .mono,
[dir="rtl"] .spec-tag, [dir="rtl"] .mosaic-tile .lbl,
[dir="rtl"] .diagram-point .lbl, [dir="rtl"] .footer-grid h4,
[dir="rtl"] .info-kv .k, [dir="rtl"] .field label,
[dir="rtl"] .standards li, [dir="rtl"] .banner-photo .cap {
  font-family: "Tajawal", sans-serif;
  letter-spacing: 0;
}
[dir="rtl"] .step-num, [dir="rtl"] .value-card .num,
[dir="rtl"] .why-item .why-no, [dir="rtl"] .sec-no {
  font-family: "JetBrains Mono", monospace; /* keep numerals in mono */
}
[dir="rtl"] .btn, [dir="rtl"] .nav-cta {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}
[dir="rtl"] .vm-card::before { left: auto; right: 0; }

