/* ==========================================================================
   Combinator Network — shared stylesheet (all languages)
   Business-consultancy theme: deep navy, brass accent, serif headings.
   RTL-safe (logical properties) for Arabic, Persian, Urdu and Pashto.
   ========================================================================== */

:root {
  --navy: #0f2a43;
  --navy-2: #1a3d5c;
  --navy-deep: #0a1e31;
  --brass: #b48a3c;
  --brass-light: #d6b472;
  --brass-text: #8a6420;
  --ink: #1b2a3a;
  --muted: #536173;
  --line: #d8dee6;
  --mist: #f1f4f7;
  --white: #fff;

  --maxw: 1180px;
  --gutter: max(24px, 5vw);
  --lh: 1.65;
  --lh-head: 1.22;

  --serif: "Source Serif 4", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Per-script font stacks and line heights. Latin glyphs always resolve to
   Source Serif / Source Sans first; the native script falls through. */
:lang(zh) {
  --serif: "Source Serif 4", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Source Sans 3", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --lh: 1.85; --lh-head: 1.38;
}
:lang(hi) {
  --serif: "Source Serif 4", "Noto Serif Devanagari", "Kohinoor Devanagari", "Mangal", serif;
  --sans: "Source Sans 3", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", sans-serif;
  --lh: 1.8; --lh-head: 1.45;
}
:lang(ar), :lang(fa), :lang(ps) {
  --serif: "Source Serif 4", "Noto Naskh Arabic", "Amiri", "Traditional Arabic", serif;
  --sans: "Source Sans 3", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --lh: 1.9; --lh-head: 1.6;
}
:lang(bn) {
  --serif: "Source Serif 4", "Noto Serif Bengali", "Kohinoor Bangla", "Nirmala UI", serif;
  --sans: "Source Sans 3", "Noto Sans Bengali", "Kohinoor Bangla", "Nirmala UI", sans-serif;
  --lh: 1.8; --lh-head: 1.5;
}
:lang(si) {
  --serif: "Source Serif 4", "Noto Serif Sinhala", "Iskoola Pota", "Nirmala UI", serif;
  --sans: "Source Sans 3", "Noto Sans Sinhala", "Iskoola Pota", "Nirmala UI", sans-serif;
  --lh: 1.9; --lh-head: 1.55;
}
:lang(ur) {
  --serif: "Source Serif 4", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif;
  --sans: "Source Sans 3", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif;
  --lh: 2.15; --lh-head: 1.95;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: var(--lh);
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
:lang(ur) body, :lang(si) body { font-size: 16px; }
/* Typographic tuning per language */
:lang(zh) { line-break: strict; }
:lang(ru) p, :lang(tr) p, :lang(si) p { hyphens: auto; -webkit-hyphens: auto; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
/* Scripts with tall or wide glyphs get a smaller display size so headings stay on 2–3 lines */
:lang(ur) .hero h1, :lang(si) .hero h1, :lang(bn) .hero h1, :lang(hi) .hero h1 { font-size: clamp(30px, 4vw, 48px); }
:lang(ur) .section h2, :lang(si) .section h2 { font-size: clamp(25px, 2.8vw, 34px); }
:lang(ru) .hero h1, :lang(tr) .hero h1 { font-size: clamp(32px, 4.2vw, 52px); }
:lang(ar) .hero h1, :lang(fa) .hero h1, :lang(ps) .hero h1 { font-size: clamp(32px, 4.4vw, 54px); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: var(--lh-head);
  color: var(--navy);
  margin: 0;
}
:lang(en) h1, :lang(en) h2, :lang(ru) h1, :lang(ru) h2, :lang(tr) h1, :lang(tr) h2 { letter-spacing: -0.012em; }

h1, h2, h3, h4 { text-wrap: balance; }

.inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Inline lists (taglines, tags): each item carries its own marker so wrapping is safe in every language */
.sep { display: flex; flex-wrap: wrap; gap: 2px 22px; margin: 0; padding: 0; list-style: none; }
.sep > span { display: inline-flex; align-items: baseline; }
.sep > span::before {
  content: ""; flex: 0 0 5px; width: 5px; height: 5px; margin-inline-end: 9px;
  background: currentColor; opacity: .6; transform: translateY(-.12em);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 2px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.4; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-brass { background: var(--brass-light); color: var(--navy-deep); }
.btn-brass:hover { background: #e4c88f; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }

/* ---------- Header: brand row + tab bar ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Source Sans 3", var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: .06em; color: var(--navy); white-space: nowrap;
}
.brand-logo { width: 40px; height: 40px; display: block; }
.brand b { font-weight: 700; color: var(--brass-text); }

.tabs { background: var(--mist); border-top: 1px solid var(--line); }
.tabs-inner { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs-inner::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto; display: flex; align-items: center; padding: 11px 16px;
  border-bottom: 3px solid transparent; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s;
}
.tabs a:hover { color: var(--navy); border-bottom-color: var(--brass); background: rgba(15, 42, 67, .04); }
.tabs .tab-services { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .nav-cta {
  margin-inline-start: auto; margin-block: 6px; padding: 6px 18px; border: 0; border-radius: 2px;
  background: var(--navy); color: #fff;
}
.tabs .nav-cta:hover { background: var(--navy-2); color: #fff; }

.lang-menu { position: relative; font-size: 14px; }
.lang-menu summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--white);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ""; width: 6px; height: 6px; margin-block-start: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 170px; max-height: 70vh; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(15, 42, 67, .16);
}
.lang-menu a { display: block; padding: 7px 12px; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--mist); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; border-bottom: 4px solid var(--brass); overflow: hidden; }
.hero .inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; padding-block: 92px; }
.tagline { margin: 0 0 22px; color: var(--brass-light); font-size: 15px; font-weight: 600; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 18px; }
.hero-sub { margin: 0 0 22px; max-width: 28em; font-family: var(--serif); font-size: clamp(19px, 2vw, 26px); font-weight: 600; line-height: var(--lh-head); color: var(--brass-light); }
.hero .lead { margin: 0; max-width: 36em; font-size: 19px; color: #d3dde7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 24px; }
.hero-note { margin: 0; max-width: 34em; font-size: 14px; color: #a3b6c8; }

.hero-visual { width: min(100%, 380px); margin-inline: auto; }
.medallion { position: relative; aspect-ratio: 1; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(214, 180, 114, .5); }
.ring-1 { inset: 0; }
.ring-2 { inset: 5%; border-color: rgba(255, 255, 255, .18); }
.title-img-wrap {
  position: absolute; inset: 10%; display: grid; place-items: center;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .06);
}
.title-img { width: 63%; max-width: 192px; height: auto; display: block; }
.chain { display: flex; flex-direction: column; gap: 12px; width: max-content; max-width: 100%; margin: 30px auto 0; padding: 0; list-style: none; }
.chain li { position: relative; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: #e6edf4; }
.chain li + li::before { content: ""; position: absolute; inset-inline-start: 11px; top: -12px; width: 1px; height: 12px; background: rgba(214, 180, 114, .7); }
.chain i {
  flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brass-light); color: var(--navy-deep); font: 700 13px/1 "Source Sans 3", sans-serif;
}

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 18px; max-width: 22em; }
.section .lead { margin: 0; max-width: 44em; color: var(--muted); }
.section-head { max-width: 800px; margin-bottom: 52px; }

/* Services */
.services { background: var(--white); padding-bottom: 72px; }
.lead-strong { margin: 0 0 18px; max-width: 34em; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: var(--lh-head); color: var(--navy); }
.services .section-head .lead + .lead { margin-top: 14px; }
.sub-h { margin-bottom: 8px; font-size: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.service { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.service:nth-child(-n+3) { border-top: 2px solid var(--navy); }
.service h4 { margin-bottom: 10px; font-size: 20px; }
.service p { margin: 0; font-size: 16px; color: var(--muted); }

.services-more { background: var(--mist); }
.services-more .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 72px; }
.services-more h3 { margin-bottom: 18px; font-size: 24px; }
.services-more p { margin: 0 0 14px; color: var(--muted); }
.flow { margin: 0 0 22px; padding: 0; list-style: none; position: relative; }
.flow::before { content: ""; position: absolute; inset-inline-start: 19px; top: 28px; bottom: 28px; width: 2px; background: rgba(15, 42, 67, .18); }
.flow li { position: relative; display: flex; gap: 18px; padding: 10px 0; }
.flow-n {
  position: relative; z-index: 1; flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); color: #fff; font: 700 17px/1 "Source Serif 4", Georgia, serif;
}
.flow b { display: block; font-family: var(--serif); font-size: 19px; line-height: var(--lh-head); color: var(--navy); }
.flow span:not(.flow-n) { display: block; margin-top: 2px; font-size: 16px; color: var(--muted); }
.services-more .note { padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.check { margin: 18px 0 0; padding: 0; list-style: none; }
.check li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.check li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; background: var(--brass); transform: translateY(-1px); }
.check li:last-child { border-bottom: 1px solid var(--line); }
.approach { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 56px; padding-top: 40px; border-top: 2px solid var(--navy); }
.approach h3 { margin: 0; }
.approach-text { columns: 2; column-gap: 48px; }
.approach-text p { break-inside: avoid; }
.cta-band { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 36px; background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--brass); }
.cta-band h3 { margin-bottom: 8px; font-size: 22px; }
.cta-band p { margin: 0; max-width: 40em; }

/* Audience columns */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--navy); }
.audience article { padding: 32px 32px 8px; border-inline-start: 1px solid var(--line); }
.audience article:first-child { border-inline-start: 0; padding-inline-start: 0; }
.audience article:last-child { padding-inline-end: 0; }
.audience h3 { font-size: 22px; margin-bottom: 12px; }
.audience p { margin: 0 0 20px; font-size: 16px; color: var(--muted); }
.audience .tag { padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); }

/* Workflow */
.workflow { background: var(--mist); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps::before {
  content: ""; position: absolute; top: 23px; inset-inline-start: 0;
  width: calc((200% + 80px) / 3); height: 2px; background: rgba(15, 42, 67, .18);
}
.step { position: relative; }
.step-id {
  position: relative; z-index: 1; width: 48px; height: 48px; margin-bottom: 22px;
  display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff;
  font: 700 20px/1 "Source Serif 4", Georgia, serif;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { margin: 0; font-size: 16px; color: var(--muted); }
.disclaimer { max-width: 60em; margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Use cases */
.cases .inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.case { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.case:nth-child(-n+2) { border-top: 2px solid var(--navy); }
.case .cat { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--brass-text); }
.case h3 { font-size: 21px; margin-bottom: 10px; }
.case p { margin: 0; font-size: 16px; color: var(--muted); }

/* Collaboration */
.collab { background: var(--navy); color: #fff; }
.collab .inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.collab h2 { color: #fff; }
.collab p { margin: 0; max-width: 34em; color: #c5d2de; }
.text-link { display: inline-block; margin-top: 22px; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-weight: 600; color: var(--brass-light); }
.text-link:hover { color: #fff; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 23px; top: 36px; bottom: 36px; width: 1px; background: rgba(214, 180, 114, .5); }
.timeline li { position: relative; display: flex; align-items: center; gap: 22px; padding: 16px 0; }
.timeline strong {
  flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--brass-light); background: var(--navy); color: var(--brass-light);
  font: 600 16px/1 "Source Serif 4", Georgia, serif;
}
.timeline b { display: block; font-family: var(--serif); font-size: 19px; line-height: var(--lh-head); }
.timeline small { display: block; margin-top: 4px; font-size: 15px; color: #aebfcf; }

/* Contact */
.contact .inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.contact h2 { margin-bottom: 14px; }
.contact p { margin: 0; max-width: 40em; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #d4dee8; padding-top: 64px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-logo { border-radius: 4px; }
.site-footer .brand b { color: var(--brass-light); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { max-width: 26em; margin: 18px 0 12px; color: #a9b9c8; }
.footer-brand small { font-size: 13px; color: #8397aa; }
.hq { display: inline-block; margin-bottom: 8px; font-family: "Source Sans 3", var(--sans); font-size: 17px; font-weight: 700; letter-spacing: .03em; color: #fff; border-bottom: 1px solid var(--brass-light); }
.hq:hover { color: var(--brass-light); }
address { margin: 0 0 14px; font-style: normal; color: #a9b9c8; }
.contact-list, .socials { margin: 0; padding: 0; list-style: none; }
.contact-list li { margin-bottom: 8px; }
.contact-list a:hover, .footer-bottom a:hover, .footer-langs a:hover { color: var(--brass-light); }
.socials { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-family: "Source Sans 3", var(--sans); font-weight: 600; }
.socials a { padding-bottom: 1px; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.socials a:hover { color: var(--brass-light); border-color: var(--brass-light); }
.qr-note { margin: 0 0 16px; color: #a9b9c8; }
.qr-row { display: flex; flex-wrap: wrap; gap: 16px; }
.qr-row figure { margin: 0; text-align: center; font-size: 13px; color: #b7c5d2; }
.qr-row img { display: block; width: 120px; height: 120px; margin-bottom: 8px; padding: 5px; object-fit: contain; background: #fff; border-radius: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #8fa2b4; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-langs { padding-bottom: 28px; }
.footer-langs ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #8fa2b4; }
.footer-langs a[aria-current] { color: #fff; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .inner { grid-template-columns: 1fr; gap: 48px; padding-block: 64px; }
  .hero-visual { width: min(100%, 320px); }
  .section { padding-block: 68px; }
  .audience { grid-template-columns: 1fr; }
  .audience article, .audience article:first-child, .audience article:last-child { padding: 28px 0 8px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .audience article:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { top: 24px; bottom: 24px; width: 2px; height: auto; inset-inline-start: 23px; }
  .step { padding-inline-start: 72px; }
  .step-id { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
  .cases .inner { grid-template-columns: 1fr; gap: 28px; }
  .collab .inner { grid-template-columns: 1fr; gap: 44px; }
  .contact .inner { grid-template-columns: 1fr; gap: 28px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .service:nth-child(-n+2) { border-top: 2px solid var(--navy); }
  .services-more .inner { grid-template-columns: 1fr; gap: 44px; }
  .approach { grid-template-columns: 1fr; gap: 20px; }
  .approach-text { columns: 1; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .site-header .top { min-height: 58px; }
  html { scroll-padding-top: 116px; }
  .tabs a { padding: 10px 12px; font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .service:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .service:first-child { border-top: 2px solid var(--navy); }
  .brand { font-size: 13px; gap: 10px; }
  .brand-logo { width: 34px; height: 34px; }
  .case-grid { grid-template-columns: 1fr; }
  .case:nth-child(2) { border-top: 1px solid var(--line); }
  .hero .lead { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
