/* =====================================================================
   Persian Net Co — Editorial Engineering
   Persian-first (fa/RTL) design system. One accent, no gradients,
   hairline rules, numbered editorial index.
   ===================================================================== */

:root {
  /* Dark theme — deep navy ground, warm off-white ink, single orange accent.
     Same identity as the original light palette, inverted for dark surfaces. */
  --ink: #eef1f3;          /* primary text on dark */
  --ink-soft: #c3cdd4;     /* secondary text on dark */
  --blue: #6fb0cf;         /* muted blue labels (brightened for dark ground) */
  --orange: #f26a21;       /* single warm accent — unchanged */
  --green: #4cc79b;        /* method index accent (brightened for dark) */
  --paper: #0a1721;        /* primary dark surface (deep navy-black) */
  --paper-2: #0e2030;      /* slightly raised dark surface */
  --white: #122a3a;        /* card / panel surface on dark */
  --line: rgba(255, 255, 255, .12);  /* warm light hairline on dark */
  --line-strong: rgba(238, 241, 243, .55); /* stronger hairline rule */
  --muted: #9aa7b0;        /* body secondary on dark */
  --on-dark-muted: rgba(255, 255, 255, .66);

  --radius: 2px;           /* near-square, editorial */
  --gutter: clamp(20px, 4.5vw, 72px);
  --rule: 1px;

  --font-latin: "Inter", "Afacad", system-ui, sans-serif;
  --font-fa: "Vazirmatn", "Inter", system-ui, sans-serif;
  --font-ar: "Vazirmatn", "Noto Naskh Arabic", system-ui, sans-serif;

  --measure-narrow: 42ch;
  --measure: 58ch;
  --measure-wide: 72ch;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Persian (default) */
html[lang="fa"] body { font-family: var(--font-fa); }
/* Arabic */
html[lang="ar"] body { font-family: var(--font-ar); }

/* Persian & Arabic need more generous line-height than Latin display */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 { line-height: 1.3; letter-spacing: 0; }

a { color: inherit; text-decoration: none; }
button { border: 0; color: inherit; cursor: pointer; font: inherit; background: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--orange); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Layout primitives ---------- */
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: var(--rule);
  background: var(--orange);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-weight: 700; }

h1, h2, h3, h4, p { margin-top: 0; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: var(--rule) solid var(--line);
  background: rgba(10, 23, 33, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand img { width: 40px; height: 40px; object-fit: contain; opacity: .96; }
.brand-name {
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .12em;
  line-height: 1.1;
}
html[dir="rtl"] .brand-name { letter-spacing: 0; font-size: 1rem; }
.brand-sub {
  display: block;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--muted);
}
html[dir="rtl"] .brand-sub { font-size: .74rem; }

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
}
.nav a {
  position: relative;
  color: var(--ink-soft);
  font-weight: 600;
  padding-block: 6px;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch button {
  min-width: 40px;
  padding: 7px 10px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.lang-switch button + button { border-inline-start: var(--rule) solid var(--line); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"]:hover { color: var(--paper); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
}
.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform .2s ease;
}
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 76px var(--gutter) auto;
  z-index: 29;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(11, 37, 49, .12);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 12px 10px;
  border-bottom: var(--rule) solid var(--line);
  color: var(--ink);
  font-weight: 700;
}
.mobile-nav a:last-child { border-bottom: 0; }

/* =====================================================================
   Hero — editorial
   ===================================================================== */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
  border-bottom: var(--rule) solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

.hero-title {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
  max-width: 16ch;
}
html[dir="rtl"] .hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.28;
  letter-spacing: 0;
  max-width: 18ch;
}

.hero-title .accent { color: var(--orange); }
.hero-title .ink-soft { color: var(--ink-soft); }

.hero-text {
  max-width: var(--measure);
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--orange); color: var(--ink); }
.btn-ghost {
  border: var(--rule) solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow {
  font-size: 1.15em;
  transition: transform .2s ease;
}
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* Hero meta column */
.hero-meta {
  border-inline-start: var(--rule) solid var(--line);
  padding-inline-start: clamp(20px, 3vw, 36px);
}
.meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: var(--rule) solid var(--line);
}
.meta-row:last-of-type { border-bottom: 0; }
.meta-row .label {
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
}
html[dir="rtl"] .meta-row .label { letter-spacing: 0; }
.meta-row .value {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}
.meta-row .value.num { font-variant-numeric: tabular-nums; }

/* =====================================================================
   Numbers strip — static, hairline-divided
   ===================================================================== */
.numbers {
  border-bottom: var(--rule) solid var(--line);
  background: var(--paper-2);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.number-cell {
  padding: clamp(28px, 4vw, 44px) 0;
  border-inline-end: var(--rule) solid var(--line);
  text-align: center;
}
.number-cell:last-child { border-inline-end: 0; }
.number-cell .n {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.number-cell .l {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

/* =====================================================================
   Service index — editorial numbered list
   ===================================================================== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 {
  max-width: var(--measure-wide);
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
}
html[dir="rtl"] .section-head h2 { letter-spacing: 0; line-height: 1.35; }

.services { border-bottom: var(--rule) solid var(--line); }

.service-list { border-top: var(--rule) solid var(--line-strong); }
.service-row {
  display: grid;
  grid-template-columns: 64px minmax(220px, .5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: var(--rule) solid var(--line);
  transition: background .18s ease;
}
.service-row:hover { background: rgba(242, 106, 33, .05); }
.service-row .idx {
  color: var(--orange);
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.service-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}
.service-row p {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}
.service-row .go {
  color: var(--blue);
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s ease, color .2s ease;
}
.service-row:hover .go { color: var(--orange); transform: translateX(4px); }
html[dir="rtl"] .service-row:hover .go { transform: translateX(-4px); }

/* =====================================================================
   Method — editorial paragraphs, inline numbered
   ===================================================================== */
.method {
  border-bottom: var(--rule) solid var(--line);
  background: var(--paper-2);
}
.method-grid {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.method-lead { position: sticky; top: 100px; }
.method-lead h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.1;
}
html[dir="rtl"] .method-lead h2 { line-height: 1.4; }
.method-lead p {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: var(--measure-narrow);
}

.method-items { border-top: var(--rule) solid var(--line-strong); }
.method-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: var(--rule) solid var(--line);
}
.method-item .step {
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.method-item h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
}
.method-item p {
  margin: 0;
  color: var(--ink-soft);
  max-width: var(--measure);
  line-height: 1.7;
}

/* =====================================================================
   Offices
   ===================================================================== */
.offices { border-bottom: var(--rule) solid var(--line); }
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2vw, 24px);
}
.office-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.office-card.dark { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.office-card .country {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
html[dir="rtl"] .office-card .country { letter-spacing: 0; }
.office-card .city {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}
html[dir="rtl"] .office-card .city { line-height: 1.3; }
.office-card.dark .city { color: var(--ink); }
.office-card address {
  display: grid;
  gap: 3px;
  margin: 0 0 26px;
  font-style: normal;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.office-card.dark address { color: var(--ink-soft); }
.office-card .phone {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: var(--rule) solid currentColor;
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-variant-numeric: tabular-nums;
  width: fit-content;
}
.office-card.dark .phone { color: var(--ink); }
.office-card .phone:hover { color: var(--orange); }
.office-card.dark .phone:hover { color: var(--orange); }

/* =====================================================================
   Contact — quiet navy panel
   ===================================================================== */
.contact {
  background: var(--paper-2);
  color: var(--ink);
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(64px, 9vw, 120px) 0;
}
.contact .eyebrow { color: var(--orange); }
.contact h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
}
html[dir="rtl"] .contact h2 { line-height: 1.4; }
.contact p.lead {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: var(--measure);
  font-size: 1.1rem;
}

.contact-links { display: grid; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: var(--rule) solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  transition: border-color .2s ease, background .2s ease;
}
.contact-link:hover { border-color: var(--orange); background: rgba(242, 106, 33, .08); }
.contact-link .lbl { color: var(--ink-soft); font-weight: 700; font-size: .9rem; }
.contact-link .val {
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-variant-numeric: tabular-nums;
}
.contact-link.whatsapp .val { color: var(--orange); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  border-top: var(--rule) solid var(--line);
  background: var(--paper);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: clamp(28px, 4vw, 40px);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { width: 38px; opacity: .96; }
.footer-brand span { font-weight: 800; letter-spacing: .12em; font-size: .8rem; }
html[dir="rtl"] .footer-brand span { letter-spacing: 0; font-size: .9rem; }
.footer-note { color: var(--muted); font-size: .92rem; }
.footer-top {
  color: var(--ink);
  font-weight: 700;
  font-size: .9rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

/* =====================================================================
   Services dropdown (desktop nav)
   ===================================================================== */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 600;
  padding-block: 6px;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
}
.nav-dropdown-trigger::after {
  content: "▾";
  font-size: .7em;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}
.nav-dropdown-trigger:hover { color: var(--ink); }
.nav-dropdown-trigger:hover::after { color: var(--orange); }
.nav-dropdown[open] .nav-dropdown-trigger::after { transform: rotate(180deg); color: var(--orange); }
/* hide default marker */
.nav-dropdown > summary { list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }

.nav-dropdown-panel {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  padding: 10px;
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  display: grid;
  gap: 2px;
  z-index: 40;
  animation: drop .16s ease both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-dropdown-panel a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-panel a .dd-idx { color: var(--orange); font-size: .82rem; font-variant-numeric: tabular-nums; }
.nav-dropdown-panel a .dd-sub { display: block; color: var(--muted); font-size: .82rem; font-weight: 500; }
.nav-dropdown-panel a:hover { background: rgba(242, 106, 33, .12); color: var(--paper); }
.nav-dropdown-panel a:hover .dd-sub { color: var(--ink-soft); }

/* Mobile nav: inline collapsible services group */
.mobile-nav-group { border-bottom: var(--rule) solid var(--line); }
.mobile-nav-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 10px;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-group > summary::-webkit-details-marker { display: none; }
.mobile-nav-group > summary::after { content: "+"; color: var(--orange); font-weight: 800; font-size: 1.1rem; }
.mobile-nav-group[open] > summary::after { content: "–"; }
.mobile-nav-group .mobile-nav-sub { padding: 0 10px 8px; display: grid; gap: 2px; }
.mobile-nav-group .mobile-nav-sub a { border-bottom: 0; padding: 8px 10px; font-weight: 600; color: var(--ink-soft); }

/* =====================================================================
   Page hero (interior pages)
   ===================================================================== */
.page-hero {
  padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 6vw, 72px);
  border-bottom: var(--rule) solid var(--line);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.page-hero h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
  max-width: 18ch;
}
html[dir="rtl"] .page-hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.3; letter-spacing: 0; }
.page-hero h1 .accent { color: var(--orange); }
.page-hero .lead {
  max-width: var(--measure);
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.7;
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { opacity: .5; }

/* =====================================================================
   Detail sections — scope grids, deliverables, process
   ===================================================================== */
.detail { padding: clamp(56px, 8vw, 110px) 0; border-bottom: var(--rule) solid var(--line); }
.detail-lead { background: var(--paper-2); }
.detail-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: var(--measure-wide); }
.detail-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}
html[dir="rtl"] .detail-head h2 { letter-spacing: 0; line-height: 1.35; }

/* Scope / capability grid */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: var(--rule) solid var(--line-strong);
}
.scope-card {
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.5vw, 32px);
  border-bottom: var(--rule) solid var(--line);
  border-inline-end: var(--rule) solid var(--line);
}
.scope-card:nth-child(n) { /* hairline grid */ }
.scope-card .s-idx {
  color: var(--orange);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.scope-card h3 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.2;
}
.scope-card p { margin: 0; color: var(--ink-soft); line-height: 1.7; max-width: 36ch; }

/* Deliverable / feature list — two-column hairline list */
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: var(--rule) solid var(--line-strong);
}
.detail-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2vw, 28px);
  border-bottom: var(--rule) solid var(--line);
  border-inline-end: var(--rule) solid var(--line);
  color: var(--ink-soft);
  line-height: 1.65;
}
.detail-list li::before {
  content: "→";
  color: var(--orange);
  font-weight: 800;
}
html[dir="rtl"] .detail-list li::before { content: "←"; }
.detail-list strong { color: var(--ink); font-weight: 700; }

/* Process steps on detail pages */
.proc-list { border-top: var(--rule) solid var(--line-strong); }
.proc-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: var(--rule) solid var(--line);
}
.proc-item .p-step {
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.proc-item h3 { margin: 0 0 8px; color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 800; }
.proc-item p { margin: 0; color: var(--ink-soft); max-width: var(--measure); line-height: 1.7; }

/* CTA band reused on detail pages */
html { color-scheme: dark; }
.cta-band { background: #06101a; color: var(--ink); padding: clamp(56px, 7vw, 96px) 0; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; }
.cta-band h2 { color: var(--ink); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.15; margin-bottom: 12px; }
html[dir="rtl"] .cta-band h2 { line-height: 1.4; }
.cta-band p { color: var(--ink-soft); max-width: var(--measure); margin: 0; }
.cta-band .btn-primary { background: var(--orange); color: #06101a; }
.cta-band .btn-primary:hover { background: #ff7a32; color: #06101a; }

/* =====================================================================
   About page
   ===================================================================== */
.about-story { padding: clamp(56px, 8vw, 110px) 0; border-bottom: var(--rule) solid var(--line); }
.about-story-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 5vw, 72px); }
.about-story h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 20px; }
.about-story p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 18px; max-width: var(--measure); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 2vw, 24px);
  border-top: var(--rule) solid var(--line-strong);
}
.value-card {
  padding: clamp(26px, 3vw, 38px) 0;
  border-bottom: var(--rule) solid var(--line);
}
.value-card .v-num { color: var(--orange); font-weight: 800; font-size: .85rem; }
.value-card h3 { margin: 12px 0 10px; color: var(--ink); font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 800; }
.value-card p { margin: 0; color: var(--ink-soft); line-height: 1.7; max-width: 34ch; }

/* =====================================================================
   Contact page form
   ===================================================================== */
.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 3vw, 40px);
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.contact-form label { display: grid; gap: 8px; color: var(--ink-soft); font-weight: 700; font-size: .9rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 15px;
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--orange);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form button {
  justify-self: start;
  min-height: 50px;
  padding: 12px 28px;
  background: var(--orange);
  color: #06101a;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease;
}
.contact-form button:hover { background: #ff7a32; }
.form-note { color: var(--muted); font-size: .85rem; }

/* Honeypot field — visually hidden but reachable by bots */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Form status messages (success / error after POST redirect) */
.form-status {
  padding: 16px 20px;
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 600;
}
.form-status.ok { border-color: var(--green); color: var(--green); background: rgba(76, 199, 155, .08); }
.form-status.err { border-color: var(--orange); color: var(--orange); background: rgba(242, 106, 33, .08); }
.field-error { border-color: var(--orange) !important; }
.field-error-label { color: var(--orange) !important; }

/* Contact page: form + offices side by side */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.office-grid-stack { grid-template-columns: 1fr; }

/* =====================================================================
   Footer quick links
   ===================================================================== */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--orange); }

/* =====================================================================
   Motion (restrained)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-grid > * {
    animation: rise .5s ease both;
  }
  .hero-grid > *:nth-child(2) { animation-delay: .08s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .nav { display: none; }
  .menu-button { display: block; }

  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-meta {
    border-inline-start: 0;
    border-top: var(--rule) solid var(--line);
    padding-inline-start: 0;
    padding-top: 18px;
  }

  .method-grid { grid-template-columns: 1fr; }
  .method-lead { position: static; }

  .contact-inner { grid-template-columns: 1fr; }

  .service-row {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "idx title"
      "idx text"
      ". go";
    gap: 6px 14px;
  }
  .service-row .idx { grid-area: idx; align-self: start; }
  .service-row h3 { grid-area: title; }
  .service-row p { grid-area: text; }
  .service-row .go { grid-area: go; }

  .footer-inner { grid-template-columns: 1fr; gap: 14px; }

  .page-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .about-story-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-cell:nth-child(2) { border-inline-end: 0; }
  .number-cell:nth-child(1),
  .number-cell:nth-child(2) { border-bottom: var(--rule) solid var(--line); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .lang-switch button { min-width: 36px; padding-inline: 8px; }

  .office-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  html[dir="rtl"] .hero-title { font-size: clamp(2rem, 10vw, 3rem); }

  .contact-link { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 560px) {
  .service-row { grid-template-areas: "idx title" ". text" ". go"; grid-template-columns: 36px 1fr; }
  .service-row .idx { align-self: start; }
}
