:root {
  --blue: #0369fe;
  --blue-dark: #102a58;
  --ink: #10203d;
  --muted: #5c687b;
  --line: #d8e1ed;
  --paper: #f4f7fb;
  --card: #ffffff;
  --mint: #28c78a;
  --warm: #f3efe8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, Tahoma, sans-serif;
}

body.rtl {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

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

.screen-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.screen-toolbar img {
  width: 150px;
}

.screen-toolbar div {
  display: flex;
  gap: 10px;
}

.screen-toolbar button,
.screen-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.screen-toolbar button {
  background: #fff;
  color: var(--blue);
}

.document {
  display: grid;
  gap: 28px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.page {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 15mm 16mm 20mm;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(3, 105, 254, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 42, 88, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 12mm 12mm;
  box-shadow: 0 24px 70px rgba(16, 32, 61, 0.14);
  page-break-after: always;
}

.page-header,
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-header {
  min-height: 15mm;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5mm;
  margin-bottom: 7mm;
}

.page-header img {
  width: 43mm;
}

.page-header div {
  display: grid;
  gap: 2mm;
  text-align: end;
  color: var(--muted);
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-header strong {
  color: var(--blue);
  font-size: 16pt;
}

.page-footer {
  position: absolute;
  left: 16mm;
  right: 16mm;
  bottom: 4mm;
  border-top: 1px solid var(--line);
  padding-top: 2.5mm;
  color: #68758a;
  font-size: 7pt;
  text-transform: uppercase;
}

.page-footer strong {
  color: var(--blue);
}

.eyebrow {
  margin: 0 0 4mm;
  color: var(--blue);
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 7mm;
  font-size: 42pt;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6mm;
  font-size: 28pt;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 3mm;
  font-size: 13pt;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 11.2pt;
  line-height: 1.55;
}

.lead {
  max-width: 128mm;
  font-size: 13pt;
  line-height: 1.55;
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  gap: 9mm;
  align-items: stretch;
}

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 165mm;
  border-radius: 8px;
  padding: 13mm 10mm;
  background: var(--blue-dark);
  color: #fff;
}

.cover-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.cover-copy .eyebrow {
  color: #82b9ff;
}

.cover-mark {
  width: 25mm;
  margin-bottom: 14mm;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3mm;
  margin-top: 7mm;
}

.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2.4mm 4mm;
  background: rgba(255, 255, 255, 0.08);
  font-size: 9pt;
  font-weight: 700;
}

.cover-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5mm;
}

.cover-photos figure,
.project-visuals figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 61, 0.18);
  border-radius: 8px;
  background: #e9eef5;
}

.cover-photos img,
.project-visuals img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-main {
  grid-column: 1 / -1;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4mm;
  margin-top: 9mm;
}

.stats-row article {
  min-height: 28mm;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5mm;
  background: rgba(255, 255, 255, 0.84);
}

.stats-row strong {
  display: block;
  color: var(--blue);
  font-size: 21pt;
}

.stats-row span,
.source-note {
  color: var(--muted);
  font-size: 9pt;
  line-height: 1.4;
}

.source-note {
  margin-top: 5mm;
}

.profile-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 9mm;
  align-items: start;
}

.callout,
.quality-band,
.contact-card,
.text-only-panel,
.image-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7mm;
  background: rgba(255, 255, 255, 0.86);
}

.callout {
  min-height: 104mm;
  background: linear-gradient(180deg, #f5f9ff, #fff);
}

.statement-grid,
.services-grid,
.value-grid,
.reference-grid,
.contact-steps {
  display: grid;
  gap: 5mm;
}

.statement-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 9mm;
}

.statement-grid article,
.services-grid article,
.value-grid article,
.work-groups article,
.reference-grid article,
.contact-steps article,
.project-info-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5.5mm;
  background: rgba(255, 255, 255, 0.88);
}

.statement-grid strong {
  display: block;
  margin-bottom: 3mm;
  color: var(--blue);
  font-size: 13pt;
}

.section-heading {
  display: grid;
  grid-template-columns: 42mm minmax(0, 1fr);
  gap: 8mm;
  align-items: start;
  margin-bottom: 8mm;
}

.section-heading.compact {
  margin-bottom: 5mm;
}

.section-heading h2 {
  font-size: 23pt;
}

.services-grid {
  grid-template-columns: repeat(2, 1fr);
}

.services-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10mm;
  height: 10mm;
  margin-bottom: 4mm;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--blue);
  font-weight: 800;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2mm;
  margin-top: 8mm;
  border-radius: 8px;
  padding: 4mm;
  background: var(--blue-dark);
}

.flow-strip div {
  display: grid;
  gap: 1.5mm;
  min-height: 18mm;
  border-radius: 6px;
  padding: 3mm;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: center;
}

.flow-strip strong {
  color: #8cc1ff;
  font-size: 8pt;
}

.flow-strip span {
  font-size: 8pt;
  font-weight: 700;
}

.value-grid {
  grid-template-columns: repeat(2, 1fr);
}

.value-grid article:last-child {
  grid-column: span 2;
}

.quality-band {
  margin-top: 6mm;
  border-color: rgba(40, 199, 138, 0.35);
  background: #f2fbf7;
}

.quality-band h3 {
  color: #087e5b;
}

.work-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6mm;
  margin-bottom: 7mm;
}

ul {
  margin: 0;
  padding-inline-start: 5mm;
  color: var(--muted);
  font-size: 10.5pt;
  line-height: 1.55;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4mm;
}

.partner-grid figure {
  display: grid;
  place-items: center;
  min-height: 28mm;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4mm;
  background: #fff;
}

.partner-grid img {
  max-width: 38mm;
  max-height: 14mm;
  object-fit: contain;
}

.partner-grid figcaption {
  margin-top: 2mm;
  color: var(--muted);
  font-size: 7.5pt;
  text-align: center;
}

.project-top {
  display: grid;
  grid-template-columns: 31mm minmax(0, 1fr) 14mm;
  gap: 4mm;
  align-items: center;
  margin-bottom: 4mm;
}

.project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 19mm;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4mm;
  background: #fff;
}

.project-logo img {
  max-width: 27mm;
  max-height: 14mm;
  object-fit: contain;
}

.project-logo.large {
  min-height: 46mm;
}

.project-logo.large img {
  max-width: 54mm;
  max-height: 28mm;
}

.text-logo {
  display: grid;
  place-items: center;
  width: 18mm;
  height: 18mm;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.project-top h2 {
  margin-bottom: 2mm;
  font-size: 18.5pt;
}

.project-top span {
  color: var(--muted);
  font-weight: 700;
}

.project-top > strong {
  display: grid;
  place-items: center;
  width: 12mm;
  height: 12mm;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.project-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: 3.5mm;
  min-height: 60mm;
  margin-bottom: 4mm;
}

.project-visuals > div {
  display: grid;
  gap: 3.5mm;
}

.main-project-image {
  min-height: 60mm;
}

.project-visuals > div figure {
  min-height: 17.6mm;
}

.fab-visuals .main-project-image {
  min-height: 60mm;
}

.project-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 4mm;
}

.project-info-grid article {
  padding: 3.5mm;
}

.project-info-grid h3,
.image-note strong {
  color: var(--blue);
  font-size: 10pt;
  text-transform: uppercase;
}

.image-note {
  margin-top: 3mm;
  padding: 3mm 4mm;
  background: var(--warm);
}

.image-note p {
  margin-bottom: 0;
  font-size: 8.8pt;
}

.project-info-grid p,
.project-info-grid ul {
  font-size: 9pt;
  line-height: 1.36;
}

.text-only-panel {
  display: grid;
  place-items: center;
  gap: 4mm;
  min-height: 118mm;
  margin-bottom: 7mm;
  text-align: center;
  background: linear-gradient(180deg, #fff, #f6f8fb);
}

.text-only-panel p {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
}

.text-only-panel strong {
  max-width: 120mm;
  font-size: 22pt;
}

.reference-grid {
  grid-template-columns: repeat(2, 1fr);
}

.reference-grid article {
  min-height: 70mm;
}

.reference-grid .project-logo {
  width: 34mm;
  margin-bottom: 4mm;
}

.reference-grid span {
  display: block;
  margin-bottom: 3mm;
  color: var(--blue);
  font-weight: 800;
}

.contact-card {
  background: var(--blue-dark);
}

.contact-card h3,
.contact-card p {
  color: #fff;
}

.contact-card p {
  margin-bottom: 3mm;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.contact-steps {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10mm;
}

.contact-steps strong {
  display: grid;
  place-items: center;
  width: 12mm;
  height: 12mm;
  margin-bottom: 5mm;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

@media (max-width: 920px) {
  .document {
    width: 100%;
    overflow-x: auto;
    padding-inline: 18px;
  }

  .page {
    transform-origin: top center;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html,
  body {
    background: #fff;
  }

  .screen-toolbar {
    display: none;
  }

  .document {
    display: block;
    width: 210mm;
    margin: 0;
    padding: 0;
  }

  .page {
    width: 210mm;
    height: 297mm;
    min-height: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
    box-shadow: none;
    break-after: page;
  }
}
