:root {
  --bg: #f7f8f4;
  --paper: #ffffff;
  --ink: #102033;
  --muted: #667180;
  --line: #d9dfdf;
  --deep: #142842;
  --blue: #255b8f;
  --cyan: #0aa6b8;
  --green: #1f6f5b;
  --gold: #b8892c;
  --soft: #edf6f4;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(16, 32, 51, .12);
  font-family: "Tajawal", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 40, 66, .035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcf8 0%, var(--bg) 46%, #f2f6f5 100%);
  background-size: 72px 72px, 100% 100%;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

header,
main,
section {
  max-width: 100vw;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(10, 166, 184, .12), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(184, 137, 44, .10), transparent 30rem);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 223, 223, .88);
  background: rgba(251, 252, 248, .9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--deep);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
  box-shadow: 0 14px 26px rgba(20, 40, 66, .2);
}

.brand-text {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #516070;
  font-size: 15px;
  font-weight: 800;
}

.main-nav a {
  transition: color .2s ease, transform .2s ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  color: #fff !important;
  background: var(--deep);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0 64px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .78fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  margin-inline-end: 10px;
  vertical-align: middle;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(52px, 9vw, 112px);
  line-height: .95;
  letter-spacing: 0;
}

.hero-copy,
.section-title,
.rich-text,
.page-hero,
.main-nav,
.brand {
  min-width: 0;
}

.hero-statement {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--deep);
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.35;
  font-weight: 900;
}

.hero-text {
  max-width: 760px;
  margin: 18px 0 0;
  color: #526170;
  font-size: clamp(17px, 1.5vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(16, 32, 51, .14);
}

.btn.primary {
  color: #fff;
  border-color: var(--deep);
  background: var(--deep);
}

.btn.secondary {
  color: var(--deep);
  background: #fff;
}

.light-on-dark {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--deep) !important;
}

.portrait-panel {
  position: relative;
  min-height: 620px;
}

.portrait-frame {
  position: relative;
  height: 560px;
  border: 1px solid rgba(20, 40, 66, .12);
  border-radius: 18px;
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.credential-card {
  position: absolute;
  width: min(280px, 80%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(16, 32, 51, .16);
}

.credential-card strong,
.credential-card span {
  display: block;
}

.credential-card strong {
  color: var(--deep);
  font-size: 20px;
}

.credential-card span {
  color: var(--muted);
  font-weight: 700;
}

.top-card {
  top: 34px;
  inset-inline-start: -28px;
}

.bottom-card {
  bottom: 26px;
  inset-inline-end: -18px;
}

.trust-strip {
  background: var(--deep);
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid div {
  min-height: 112px;
  padding: 24px;
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
}

.trust-grid strong {
  display: block;
  color: #98f0ec;
  font-size: 24px;
  line-height: 1.3;
}

.trust-grid span {
  color: #d9e4eb;
  font-weight: 700;
}

.section {
  padding: clamp(66px, 8vw, 104px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.section-title h2,
.center-head h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.14;
}

.section-title.wide {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-title.wide p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.rich-text {
  color: #4f5d6c;
  font-size: 20px;
}

.rich-text p {
  margin: 0 0 18px;
}

.feature-section,
.offer-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
}

.center-head {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.center-head .eyebrow::before {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.service-grid article,
.work-preview a,
.process-grid article,
.work-catalog article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(16, 32, 51, .07);
}

.feature-card {
  min-height: 260px;
  padding: 26px;
}

.feature-card span,
.work-preview span,
.work-catalog span {
  color: var(--green);
  font-weight: 900;
}

.feature-card h3,
.service-grid h3,
.process-grid h3,
.work-catalog h2 {
  margin: 10px 0 8px;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.35;
}

.feature-card p,
.service-grid p,
.work-preview strong,
.process-grid p,
.work-catalog p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 218px;
  padding: 22px;
}

.work-section {
  background: var(--deep);
  color: #fff;
}

.work-section .section-title h2,
.work-section .section-title p,
.work-section .eyebrow {
  color: #fff;
}

.work-section .eyebrow::before {
  background: #98f0ec;
}

.work-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-preview a {
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), transparent),
    #1b3555;
  border-color: rgba(255, 255, 255, .16);
}

.work-preview span {
  color: #98f0ec;
}

.work-preview strong {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: 24px;
  line-height: 1.45;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline article {
  padding: 22px 24px;
  border-inline-start: 4px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 32, 51, .07);
}

.timeline time {
  color: var(--gold);
  font-weight: 900;
}

.timeline h3 {
  margin: 6px 0;
  color: var(--deep);
  font-size: 23px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.proof-section {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
}

.proof-layout h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.18;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.proof-grid span,
.clean-list li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #526170;
  font-weight: 800;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article {
  padding: 24px;
}

.process-grid span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.final-cta {
  padding: 0 0 76px;
}

.final-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 166, 184, .18), transparent),
    var(--deep);
  box-shadow: var(--shadow);
}

.final-cta-box h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.16;
}

.final-cta-box p {
  margin: 10px 0 0;
  color: #dbe7eb;
  font-size: 18px;
}

.final-cta-box .eyebrow {
  color: #98f0ec;
}

.page-hero {
  padding: clamp(62px, 8vw, 110px) 0 58px;
  background:
    linear-gradient(135deg, rgba(237, 246, 244, .92), rgba(255, 255, 255, .88));
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.work-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-catalog article {
  min-height: 260px;
  padding: 26px;
}

.clean-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fallback-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 32px;
  text-align: center;
}

.fallback-page h1 {
  color: var(--deep);
}

@media (max-width: 1020px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-layout,
  .two-column,
  .proof-layout,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    min-height: 520px;
  }

  .portrait-frame {
    height: 520px;
  }

  .trust-grid,
  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .work-preview {
    grid-template-columns: 1fr;
  }

  .final-cta-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 660px) {
  .wrap {
    width: min(1160px, calc(100% - 28px));
  }

  .brand {
    width: 100%;
  }

  .brand-text {
    white-space: normal;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 14px;
    gap: 8px;
  }

  .main-nav a {
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 6px 8px;
    border: 1px solid rgba(217, 223, 223, .78);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .72);
    text-align: center;
  }

  .main-nav .nav-cta {
    grid-column: 1 / -1;
    border-color: var(--deep);
    background: var(--deep);
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.05;
  }

  .hero-statement {
    font-size: 21px;
  }

  .hero-section {
    padding-top: 44px;
  }

  .hero-copy,
  .page-hero,
  .center-head {
    text-align: center;
  }

  .eyebrow::before {
    display: none;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .portrait-panel {
    min-height: 420px;
  }

  .portrait-frame {
    height: 370px;
  }

  .credential-card {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .trust-grid,
  .service-grid,
  .process-grid,
  .proof-grid,
  .work-catalog {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }
}
