@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Medium.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --soft: #f6f6f6;
  --soft-2: #ececec;
  --ink: #111;
  --muted: #555;
  --line: #dfdfdf;
  --red: #e21b23;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
}
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; text-underline-offset: .24em; }
a:hover, a:focus-visible { text-decoration: underline; }
p { color: var(--muted); line-height: 1.72; }
h1, h2, h3, p, figure { margin-top: 0; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px;
  transform: translateY(-150%); background: #fff; border: 1px solid var(--ink);
}
.skip-link:focus { transform: translateY(0); }
.utility-bar { background: var(--soft); font-size: 12px; }
.utility-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.quick-contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.quick-contact a { white-space: nowrap; }
.language-menu { position: relative; flex: 0 0 auto; }
.language-button {
  min-width: 124px; min-height: 36px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 12px; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer;
}
.language-button:hover, .language-button:focus-visible { background: #fff; outline: 0; }
.language-chevron {
  width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .18s ease;
}
.language-button[aria-expanded="true"] .language-chevron { transform: translateY(2px) rotate(225deg); }
.language-popover {
  position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-end: 0; width: 210px; display: none;
  padding: 8px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 48px rgba(17,17,17,.12);
}
.language-popover[data-open] { display: grid; }
.language-popover a {
  min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px;
  color: var(--muted); white-space: nowrap;
}
.language-popover a:hover, .language-popover a:focus-visible { background: var(--soft); color: var(--ink); text-decoration: none; }
.language-popover a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.language-popover a[aria-current="page"]::after { width: 6px; height: 6px; border-radius: 50%; background: var(--red); content: ""; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-row { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { width: 228px; flex: 0 0 auto; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 20px; font-size: 14px; }
.primary-nav a { white-space: nowrap; }
.nav-action, .button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 22px; border: 1px solid var(--red); background: var(--red); color: #fff; font-weight: 600;
}
.nav-action { min-height: 42px; border-color: var(--ink); background: #fff; color: var(--ink); }
.menu-button { display: none; border: 1px solid var(--ink); background: #fff; padding: 11px 14px; font: inherit; }
.hero { display: grid; min-height: 680px; grid-template-columns: .92fr 1.08fr; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 82px clamp(40px,5vw,76px) 78px max(24px,calc((100vw - var(--container))/2)); }
.eyebrow { margin-bottom: 18px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(44px,4.5vw,70px); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { letter-spacing: 0; }
.hero-copy > p:not(.eyebrow) { max-width: 660px; font-size: 18px; }
.hero-media { min-height: 680px; margin: 0; overflow: hidden; background: var(--soft-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.actions { display: flex; margin-top: 34px; align-items: center; gap: 26px; flex-wrap: wrap; }
.text-link { font-size: 14px; font-weight: 600; }
.capability-strip { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--line); }
.capability-strip span { min-height: 78px; display: grid; place-items: center; padding: 15px 22px; border-inline-end: 1px solid var(--line); text-align: center; font-size: 14px; }
.section { padding-block: 104px; border-bottom: 1px solid var(--line); }
.soft { background: var(--soft); }
.section-heading { display: grid; margin-bottom: 56px; grid-template-columns: .7fr 1.3fr; gap: 76px; }
.section-heading h2, .split-copy h2, .cta-panel h2, .page-hero h1 { margin-bottom: 20px; font-size: clamp(38px,4vw,58px); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.section-heading p:last-child { max-width: 760px; }
.stage-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stage, .system-card, .audience-card, .project-type, .info-card { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stage-number, .project-type span, .audience-card span { color: var(--red); font-size: 12px; font-weight: 700; }
.stage h3, .system-card h3, .audience-card h3, .project-type h3, .info-card h3 { margin: 26px 0 12px; font-size: 22px; font-weight: 500; }
.systems-grid, .audience-grid, .project-type-grid, .card-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.system-card a { color: var(--red); font-weight: 600; font-size: 14px; }
.project-type-grid { grid-template-columns: repeat(5,1fr); }
.project-type { min-height: 170px; }
.audience-grid { grid-template-columns: repeat(3,1fr); }
.split-feature { display: grid; min-height: 660px; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.split-media { min-height: 660px; margin: 0; overflow: hidden; background: var(--soft-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px,7vw,104px); }
.plain-list { margin: 24px 0 0; padding-inline-start: 22px; color: var(--muted); line-height: 1.9; }
.coverage { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.coverage img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.network-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.network-logo { min-height: 160px; display: grid; place-items: center; padding: 30px; border-inline-end: 1px solid var(--line); }
.network-logo img { max-width: 180px; max-height: 70px; }
.cta-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; padding: 62px; background: var(--soft); border: 1px solid var(--line); }
.cta-facts { display: grid; align-content: center; }
.cta-facts span { padding: 18px 0; border-bottom: 1px solid var(--line); }
.page-hero { padding-block: 90px 72px; border-bottom: 1px solid var(--line); }
.breadcrumbs { margin-bottom: 48px; display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; }
.page-hero p { font-size: 18px; }
.intake-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 76px; align-items: start; }
.category-list { display: grid; margin-top: 30px; border-top: 1px solid var(--line); }
.category-list span { padding: 15px 0; border-bottom: 1px solid var(--line); }
.review-note { margin-top: 34px; padding: 24px; background: var(--soft); border-inline-start: 3px solid var(--red); }
.review-form { padding: 42px; border: 1px solid var(--line); background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.field { display: grid; gap: 9px; font-size: 13px; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid #cfcfcf; border-radius: 0; background: #fff;
  color: var(--ink); padding: 12px 13px; font: inherit; font-weight: 400;
}
.field textarea { min-height: 130px; resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; }
.file-dropzone { padding: 26px; border: 1px dashed #aaa; background: var(--soft); text-align: center; }
.file-dropzone[data-dragging] { border-color: var(--red); background: #fff4f4; }
.file-dropzone input { max-width: 100%; }
.file-list { min-height: 20px; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 400; }
.form-note, .form-status { font-size: 12px; }
.form-status { min-height: 22px; margin-top: 16px; color: var(--ink); font-weight: 600; }
.button:disabled { opacity: .55; cursor: wait; }
.site-footer { padding: 76px 0 26px; background: var(--soft); border-top: 1px solid var(--line); }
.footer-brand { width: 220px; margin-bottom: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 48px; }
.footer-grid h2 { font-size: 14px; }
.footer-grid a { display: block; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.footer-grid a.footer-download { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--ink); font-weight: 700; }
.footer-download span { color: var(--red); font-size: 18px; line-height: 1; }
.footer-grid p { font-size: 14px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 12px; }

@media (max-width: 1080px) {
  .menu-button { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; top: 128px; left: 0; right: 0; padding: 24px;
    flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line);
  }
  .primary-nav[data-open] { display: flex; }
  .project-type-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .utility-inner { min-height: 44px; padding-block: 6px; align-items: center; gap: 10px; }
  .quick-contact { gap: 12px; }
  .quick-contact a:nth-child(2) { display: none; }
  .language-button { min-width: 94px; padding-inline: 8px; }
  .language-popover { position: fixed; top: 48px; right: 16px; left: 16px; width: auto; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-row { min-height: 78px; }
  .brand { width: 180px; }
  .primary-nav { top: 128px; }
  .hero, .split-feature, .page-hero-grid, .intake-layout, .coverage, .cta-panel { grid-template-columns: 1fr; }
  .hero-copy { padding: 60px 24px; }
  .hero-media, .split-media { min-height: 420px; }
  .capability-strip { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 74px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .stage-grid, .systems-grid, .audience-grid, .project-type-grid, .card-grid { grid-template-columns: 1fr; }
  .project-type { min-height: 130px; }
  .network-grid { grid-template-columns: 1fr 1fr; }
  .network-logo { min-height: 130px; }
  .cta-panel, .review-form { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
