/* Page chrome for the generated company, service and sector pages: nav, hero,
   article sections, cards, footer.

   Tokens, the reset, .wrap, .skip-link, typography and the reveal utility all
   live in falaq-2026.css. It is imported rather than duplicated so there is one
   palette on the site; scripts/lib/layout.js does not need to know about it. */

@import url("/assets/falaq-2026.css");

/* ── Navigation ───────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 8, .82);
  backdrop-filter: blur(18px);
}
.nav-inner { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: var(--x4); }

.brand { display: flex; align-items: center; gap: var(--x2); font-family: var(--f-head); font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-accent); border-radius: var(--r-md); background: var(--s-2); }
.brand-mark svg { width: 18px; height: 18px; }

.nav-links { display: flex; align-items: center; gap: var(--x4); color: var(--ink-2); font-size: .875rem; }
.nav-links a { transition: color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: var(--x2); }
.nav-button {
  display: inline-flex; min-height: 34px; align-items: center; justify-content: center;
  padding: 0 var(--x3);
  border: 1px solid var(--line-hi); border-radius: var(--r);
  color: var(--ink-2); font-size: .8125rem; font-weight: 600;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.nav-button:hover { border-color: var(--ink-3); color: var(--ink); }
.nav-button.primary { border-color: transparent; background: var(--ink); color: var(--s-void); }
.nav-button.primary:hover { background: #fff; color: var(--s-void); }

/* ── Page hero ────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: var(--x7) 0 var(--x6); border-bottom: 1px solid var(--line); }
.hero::after {
  position: absolute; inset: 0; content: ""; pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 72%);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }

.breadcrumb { margin-bottom: var(--x4); color: var(--ink-3); font-family: var(--f-data); font-size: .75rem; }
.breadcrumb a:hover { color: var(--acc-lo); }

.eyebrow {
  display: inline-flex; margin-bottom: var(--x3); align-items: center; gap: var(--x2);
  font-family: var(--f-data); font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--acc-lo);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--f-body); }
.eyebrow::before { width: 5px; height: 5px; border-radius: 50%; background: var(--acc); content: ""; }

h1 {
  max-width: 20ch; margin: 0;
  font-family: var(--f-head); font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 520;
  line-height: 1.1; letter-spacing: -.045em;
}
html[dir="rtl"] h1 { max-width: 24ch; font-family: var(--f-body); font-weight: 700; letter-spacing: -.01em; }

.hero-lead { max-width: 62ch; margin: var(--x4) 0 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.updated {
  display: inline-flex; margin-top: var(--x4); padding: 6px 10px;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink-3); font-family: var(--f-data); font-size: .75rem;
}

/* ── Article ──────────────────────────────────────────────────────────────── */

.page-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--x6); padding-block: var(--x6) var(--x7); }
.toc { position: sticky; top: 88px; align-self: start; }
.toc strong { display: block; margin-bottom: var(--x3); font-family: var(--f-data); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
html[dir="rtl"] .toc strong { letter-spacing: 0; text-transform: none; font-family: var(--f-body); }
.toc a { display: block; padding: 6px 0; border-inline-start: 1px solid var(--line); padding-inline-start: 14px; color: var(--ink-3); font-size: .8125rem; transition: color .18s ease, border-color .18s ease; }
.toc a:hover { border-color: var(--acc); color: var(--ink); }

.article { min-width: 0; }

.content-section { padding: 0 0 var(--x6); scroll-margin-top: 88px; }
.content-section + .content-section { padding-top: var(--x5); border-top: 1px solid var(--line); }

.section-num {
  display: block; margin-bottom: var(--x2);
  color: var(--ink-3); font-family: var(--f-data); font-size: .6875rem; font-weight: 500; letter-spacing: .14em;
}

h2 { margin: 0 0 var(--x3); font-family: var(--f-head); font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 520; line-height: 1.2; letter-spacing: -.045em; }
html[dir="rtl"] h2 { font-family: var(--f-body); font-weight: 700; letter-spacing: -.01em; }

.content-section p { margin: 0 0 var(--x3); max-width: 68ch; color: var(--ink-2); font-size: 1rem; }

.content-section ul { display: grid; margin: var(--x4) 0 0; padding: 0; gap: var(--x1); list-style: none; }
.content-section li {
  position: relative; padding: 12px var(--x3); padding-inline-start: var(--x5);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--s-1);
  color: var(--ink-2); font-size: .9375rem;
}
.content-section li::before { position: absolute; inset-inline-start: var(--x3); top: 12px; color: var(--acc); content: "—"; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--x1); margin-top: var(--x4); }
.info-card { padding: var(--x4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s-1); transition: border-color .18s ease, background-color .18s ease; }
.info-card:hover { border-color: var(--line-hi); background: var(--s-2); }
.info-card strong { display: block; margin-bottom: var(--x2); color: var(--ink); font-family: var(--f-head); font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.info-card span { color: var(--ink-2); font-size: .875rem; line-height: 1.6; }

.notice { margin-top: var(--x2); padding: var(--x4); border: 1px solid var(--line-accent); border-radius: var(--r-lg); background: var(--acc-dim); color: var(--ink-2); }

/* ── Related ──────────────────────────────────────────────────────────────── */

.related { padding: var(--x6) 0 var(--x7); border-top: 1px solid var(--line); background: var(--s-base); }
.related h2 { margin-bottom: var(--x4); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--x1); }
.related-card {
  display: block; padding: var(--x4);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s-1);
  transition: border-color .18s ease, background-color .18s ease;
}
.related-card:hover { border-color: var(--line-hi); background: var(--s-2); }
.related-card b { display: block; margin-bottom: var(--x2); font-family: var(--f-head); font-size: .9375rem; font-weight: 600; letter-spacing: -.02em; }
html[dir="rtl"] .related-card b { font-family: var(--f-body); font-weight: 700; }
.related-card span { color: var(--ink-3); font-size: .8125rem; line-height: 1.6; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer { padding: var(--x6) 0 var(--x5); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--x5); }
.footer-copy { max-width: 42ch; margin-top: var(--x3); color: var(--ink-3); font-size: .875rem; }

.social-links { display: flex; gap: var(--x2); margin-top: var(--x4); }
.social-link { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-3); transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.social-link:hover { border-color: var(--line-hi); background: var(--s-2); color: var(--ink); }
.social-link svg { width: 17px; height: 17px; }

.footer-col strong { display: block; margin-bottom: var(--x3); color: var(--ink); font-family: var(--f-data); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
html[dir="rtl"] .footer-col strong { letter-spacing: 0; text-transform: none; font-family: var(--f-body); font-weight: 700; }
.footer-col a { display: block; margin: 6px 0; color: var(--ink-3); font-size: .8125rem; transition: color .18s ease; }
.footer-col a:hover { color: var(--ink); }

.copyright { margin-top: var(--x5); padding-top: var(--x4); border-top: 1px solid var(--line); color: var(--ink-3); font-family: var(--f-data); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
html[dir="rtl"] .copyright { letter-spacing: 0; text-transform: none; font-family: var(--f-body); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .nav-links { display: none; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: var(--x5); }
  .toc { position: static; display: flex; overflow-x: auto; gap: var(--x1); padding-bottom: var(--x1); }
  .toc strong { display: none; }
  .toc a { min-width: max-content; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); }
  .cards, .related-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .nav-inner { min-height: 56px; gap: var(--x2); }
  .nav-button.primary { display: none; }
  .hero { padding: var(--x6) 0 var(--x5); }
  .page-grid { padding-block: var(--x5) var(--x6); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
