:root {
  --ink: #17211f;
  --ink-soft: #2f3c38;
  --muted: #65736e;
  --paper: #f4f6f4;
  --surface: #ffffff;
  --line: #d9e0dc;
  --teal: #146c65;
  --teal-dark: #0d4844;
  --copper: #b7793b;
  --green: #526d4f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Cairo", sans-serif;
  line-height: 1.5;
}

body.rtl {
  direction: rtl;
  font-family: "Cairo", "Manrope", sans-serif;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
}

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

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
}

.compact-heading {
  margin-bottom: 28px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading h2,
.main-content > h2 {
  color: var(--ink);
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1.08;
}

.section-heading p,
.approach-grid p,
.service-row p,
.project-list p,
.contact-list p,
.profile-layout p,
.footer-layout p,
.main-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-mark span {
  display: grid;
  gap: 1px;
}

.brand-mark strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.brand-mark small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-list a:hover {
  color: var(--teal);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.arabic,
.english {
  display: none;
  min-width: 38px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.shownLang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.nav-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 152px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("/images/hero.jpg") center/cover no-repeat;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 26, 24, 0.82) 0%, rgba(12, 26, 24, 0.58) 46%, rgba(12, 26, 24, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 26, 24, 0.52), rgba(12, 26, 24, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  padding: 88px 0;
  color: #fff;
}

.hero-content .section-kicker {
  color: #d6eadc;
  animation: textRise 700ms ease both 90ms;
}

.hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1.02;
  animation: textRise 760ms ease both 180ms;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
  line-height: 1.8;
  animation: textRise 760ms ease both 290ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: textRise 760ms ease both 390ms;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  right: max(28px, calc((100vw - 1160px) / 2));
  bottom: 44px;
  width: min(33vw, 430px);
  min-width: 300px;
  pointer-events: none;
  perspective: 1100px;
}

.cover-scene {
  position: relative;
  transform-style: preserve-3d;
  animation: coverFloat 5.6s ease-in-out infinite;
}

.cover-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: #13211f;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  transform:
    perspective(1100px)
    rotateX(calc(8deg + var(--tilt-x)))
    rotateY(calc(-18deg + var(--tilt-y)))
    rotateZ(1.5deg);
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.cover-card::before,
.cover-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cover-card::before {
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.3), transparent 24%, transparent 62%, rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, transparent, rgba(7, 18, 17, 0.36));
  mix-blend-mode: screen;
  opacity: 0.72;
}

.cover-card::after {
  top: 8px;
  right: -18px;
  width: 18px;
  height: calc(100% - 12px);
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #0e2724, #071514);
  transform: skewY(42deg);
  transform-origin: left top;
}

.cover-card img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  clip-path: inset(0 round 8px);
  object-fit: cover;
  transform: scale(1.08);
}

.cover-shadow {
  position: absolute;
  left: 10%;
  right: 4%;
  bottom: -28px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  filter: blur(18px);
  transform: rotate(-4deg);
}

.button,
.companyprofiledownloads-2 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary,
.companyprofiledownloads-2 button {
  background: var(--copper);
  color: #fff;
}

.button-primary:hover,
.companyprofiledownloads-2 button:hover {
  background: #9c642c;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-outline {
  border-color: var(--teal);
  color: var(--teal);
}

.button-outline:hover {
  background: var(--teal);
  color: #fff;
}

.proof-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.proof-grid div {
  min-height: 104px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.proof-grid div:first-child {
  border-left: 1px solid var(--line);
}

.proof-grid strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2.2rem;
  line-height: 1;
}

.proof-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.proof-grid div:hover {
  background: #f8faf8;
  transform: translateY(-2px);
}

.partners-section {
  padding-bottom: 48px;
  background: var(--paper);
}

.partner-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.partner-rail img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  padding: 28px;
  background: var(--surface);
  transition: filter 180ms ease, transform 180ms ease;
}

.partner-rail img:hover {
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(-3px);
}

.about-section,
.profile-section {
  background: var(--surface);
}

.split-layout,
.leadership-layout,
.profile-layout,
.contact-layout,
.evidence-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.editorial-image img,
.leader-portrait img,
.brochure-preview {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.editorial-image img {
  aspect-ratio: 4 / 3;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
}

.approach-grid article,
.project-list article,
.contact-list article {
  background: var(--surface);
  padding: 28px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.approach-grid article:hover,
.project-list article:hover,
.contact-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(23, 33, 31, 0.08);
}

.approach-grid span,
.service-row span,
.project-list span,
.contact-list span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--copper);
  font-size: 0.9rem;
  font-weight: 800;
}

.approach-grid h3,
.service-row h3,
.project-list h3,
.contact-list h3,
.footer-layout h3,
.main-content h3 {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.approach-grid h3,
.service-row h3,
.project-list h3,
.contact-list h3 {
  margin-bottom: 10px;
}

.services-section {
  background: #eef3f0;
}

.service-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.service-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-row:hover {
  border-color: rgba(20, 108, 101, 0.55);
  box-shadow: 0 20px 38px rgba(23, 33, 31, 0.1);
  transform: translateY(-4px);
}

.service-row img {
  width: 100%;
  height: 174px;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.service-row:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.025);
}

.evidence-section {
  background: var(--ink);
}

.evidence-section .section-kicker {
  color: #9bd1c7;
}

.evidence-section h2 {
  color: #fff;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-list article {
  border-left: 4px solid var(--copper);
  border-radius: 8px;
}

.leadership-section {
  background: var(--paper);
}

.leader-portrait img {
  aspect-ratio: 5 / 4;
  object-position: center top;
}

.leadership-layout .button {
  margin-top: 26px;
}

.profile-layout {
  grid-template-columns: 1fr 320px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
}

.companyprofiledownloads-2 {
  display: flex;
  gap: 12px;
  align-items: center;
}

.companyprofiledownloads-2 span {
  display: none;
}

#qr-container-2 {
  min-width: 136px;
  min-height: 136px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.brochure-preview {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}

.contact-section {
  background: #eef3f0;
}

.contact-layout {
  align-items: stretch;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-list strong,
.phone-number {
  direction: ltr;
  unicode-bidi: plaintext;
}

.map-frame {
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

.site-footer {
  background: #121817;
  color: rgba(255, 255, 255, 0.78);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 44px;
  padding: 64px 0;
}

.footer-layout .section-kicker {
  color: #9bd1c7;
}

.footer-layout h3 {
  color: #fff;
  margin-bottom: 14px;
}

.footer-layout ul {
  display: grid;
  gap: 10px;
}

.footer-layout a:hover {
  color: #9bd1c7;
}

.footer-layout strong {
  display: block;
  color: #fff;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.main-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.main-content > h2 {
  margin-bottom: 32px;
}

.main-content .z-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.main-content .z-layout img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.main-content .layout-content {
  padding: 12px;
}

.right {
  text-align: right;
}

.rtl .section-heading,
.rtl .approach-grid article,
.rtl .service-row div,
.rtl .project-list article,
.rtl .contact-list article,
.rtl .footer-layout,
.rtl .main-content .layout-content {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-row.reveal,
.approach-grid article.reveal,
.project-list article.reveal,
.contact-list article.reveal,
.partner-rail img.reveal {
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

@keyframes textRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coverFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-list {
    gap: 14px;
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-visual {
    right: -30px;
    bottom: 34px;
    width: 300px;
    min-width: 0;
    opacity: 0.42;
  }

  .proof-grid,
  .partner-rail,
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout,
  .leadership-layout,
  .profile-layout,
  .contact-layout,
  .evidence-layout,
  .footer-layout,
  .main-content .z-layout {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .main-content > h2 {
    font-size: 2rem;
  }

  .nav-inner {
    min-height: 68px;
  }

  .brand-mark small {
    display: none;
  }

  .nav-button {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: max-height 180ms ease;
  }

  .nav-list.hidden {
    max-height: 340px;
  }

  .nav-list a {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions,
  .profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .companyprofiledownloads-2 button {
    width: 100%;
  }

  .proof-grid,
  .partner-rail,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid div,
  .proof-grid div:first-child {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-row img {
    height: 210px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }
}

@media (max-width: 420px) {
  .container,
  .main-content {
    width: min(100% - 24px, 1160px);
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .proof-grid strong {
    font-size: 1.9rem;
  }
}
