:root {
  --navy: #073f6d;
  --blue: #0b5b8e;
  --teal: #2e9aac;
  --ink: #102033;
  --muted: #627084;
  --line: #dce5eb;
  --surface: #f6f9fb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(7, 63, 109, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

body[dir="rtl"] {
  font-family: Cairo, Tahoma, sans-serif;
}

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

img {
  max-width: 100%;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(46, 154, 172, 0.11), transparent 32%),
    linear-gradient(135deg, #f7fbfd 0%, #ffffff 55%, #edf7f8 100%);
  transition: opacity 420ms ease, visibility 420ms ease;
}

body.is-ready .preloader {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.preloader-card {
  display: grid;
  justify-items: center;
  width: min(360px, 82vw);
}

.loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
}

.loader-mark::before,
.loader-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  transform-origin: center;
}

.loader-mark::before {
  width: 176px;
  height: 176px;
  background:
    radial-gradient(circle at 35% 30%, rgba(46, 154, 172, 0.42), transparent 24%),
    radial-gradient(circle at 68% 72%, rgba(7, 63, 109, 0.24), transparent 30%),
    radial-gradient(circle, rgba(46, 154, 172, 0.18), transparent 64%);
  animation: loader-light-sweep 2.2s ease-in-out infinite;
}

.loader-mark::after {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 42%, rgba(46, 154, 172, 0.18) 58%, transparent 76%);
  animation: loader-pulse 1.45s ease-in-out infinite;
}

.loader-mark img {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  padding: 12px;
  border: 1px solid rgba(7, 63, 109, 0.1);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.12);
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes loader-light-sweep {
  0%,
  100% {
    opacity: 0.54;
    transform: rotate(0deg) scale(0.94);
  }

  50% {
    opacity: 1;
    transform: rotate(180deg) scale(1.08);
  }
}

@keyframes loader-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(7, 63, 109, 0.1);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.08);
}

.brand img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.18);
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-inline-start: auto;
  color: #30455c;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.mobile-nav,
.menu-toggle {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 86px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.language-toggle span {
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.menu-toggle {
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--navy);
  transition: transform 200ms ease, opacity 200ms ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body[data-lang="en"] [data-lang-option="en"],
body[data-lang="ar"] [data-lang-option="ar"] {
  background: var(--navy);
  color: var(--white);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.header-cta,
.primary-button {
  color: var(--white);
  background: var(--navy);
}

.secondary-button {
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  min-height: calc(100vh - 78px);
  padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 90px) clamp(34px, 6vw, 76px);
  overflow: hidden;
  background: linear-gradient(120deg, #f4f8fb 0%, #ffffff 50%, #eef7f8 100%);
}

.hero-copy {
  max-width: 760px;
}

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

body[dir="rtl"] .eyebrow,
body[dir="rtl"] .section-kicker {
  text-transform: none;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-text,
.section-body,
.letter,
.contact-section p,
.mission-grid p,
.service-grid p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: 1.18rem;
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(7, 63, 109, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.hero-brand-card {
  position: absolute;
  inset-inline-start: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  overflow: hidden;
  border: 1px solid rgba(7, 63, 109, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.14);
  backdrop-filter: blur(10px);
}

.hero-brand-card img {
  width: 146px;
  height: 146px;
  object-fit: contain;
  transform: scale(1.12);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: var(--white);
}

.trust-strip div {
  min-height: 118px;
  padding: 28px clamp(18px, 4vw, 52px);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-strip div:last-child {
  border-inline-end: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(60px, 8vw, 110px) clamp(18px, 6vw, 90px);
}

.two-column,
.introduction-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
}

.section-body p,
.letter p {
  margin-bottom: 18px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  background: var(--surface);
}

.mission-grid article,
.service-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(24px, 4vw, 36px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.media-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  align-items: center;
  max-width: none;
  gap: clamp(22px, 4vw, 48px);
}

.media-heading h2 {
  max-width: 820px;
}

.media-heading img,
.intro-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  border: 1px solid rgba(7, 63, 109, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 63, 109, 0.1);
}

.intro-image {
  margin-top: 26px;
}

.services-section {
  background: var(--white);
}

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

.service-grid article {
  min-height: 250px;
}

.service-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: rgba(46, 154, 172, 0.12);
  color: var(--blue);
  font-weight: 800;
}

.why-section {
  background: var(--surface);
}

.why-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.why-list div {
  min-height: 118px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.letter {
  padding: clamp(24px, 4vw, 38px);
  border-inline-start: 4px solid var(--teal);
  background: var(--surface);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(46px, 7vw, 80px) clamp(18px, 6vw, 90px);
  background: var(--navy);
  color: var(--white);
}

.contact-section .section-kicker,
.contact-section h2 {
  color: var(--white);
}

.contact-section p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 90px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--navy);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .service-grid,
  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    min-height: auto;
    padding: 10px 16px 12px;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }

  .brand {
    width: 54px;
    height: 54px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    gap: 8px;
    padding-top: 0;
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transition: max-height 260ms ease, opacity 200ms ease, padding-top 200ms ease, visibility 200ms ease;
  }

  body.menu-open .mobile-nav {
    max-height: 260px;
    padding-top: 10px;
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav a {
    display: grid;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: #30455c;
    font-weight: 700;
    line-height: 1.15;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .two-column,
  .introduction-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 26px;
    padding: 34px 16px 42px;
  }

  .hero-visual {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .hero-visual > img {
    min-height: 0;
    height: 100%;
    object-position: 58% center;
  }

  .hero-brand-card {
    width: 96px;
    height: 96px;
    inset-inline-start: 14px;
    bottom: 14px;
  }

  .hero-brand-card img {
    width: 118px;
    height: 118px;
  }

  .media-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .trust-strip,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .contact-link {
    justify-content: center;
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .loader-mark {
    width: 162px;
    height: 162px;
  }

  .loader-mark::before {
    width: 150px;
    height: 150px;
  }

  .loader-mark::after {
    width: 118px;
    height: 118px;
  }

  .loader-mark img {
    width: 112px;
    height: 112px;
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand {
    width: 50px;
    height: 50px;
    min-height: 50px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .service-grid,
  .why-list {
    grid-template-columns: 1fr;
  }

  .language-toggle {
    width: 78px;
    min-height: 36px;
    font-size: 0.9rem;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(2.25rem, 12vw, 3rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.72rem, 8vw, 2.35rem);
  }

  h3 {
    font-size: 1.12rem;
  }

  .hero-text,
  .section-body,
  .letter,
  .contact-section p,
  .mission-grid p,
  .service-grid p {
    font-size: 1rem;
  }

  .hero-text {
    margin-bottom: 22px;
  }

  .primary-button,
  .secondary-button {
    min-height: 46px;
  }

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

  .section {
    padding: 46px 16px;
  }

  .media-heading {
    margin-bottom: 22px;
  }

  .media-heading img,
  .intro-image {
    aspect-ratio: 16 / 9.5;
    box-shadow: 0 14px 34px rgba(7, 63, 109, 0.08);
  }

  .intro-image {
    margin-top: 18px;
  }

  .mission-grid,
  .service-grid,
  .why-list {
    gap: 10px;
  }

  .mission-grid article,
  .service-grid article,
  .why-list div {
    min-height: auto;
    padding: 20px;
  }

  .service-grid span {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    font-size: 0.9rem;
  }

  .trust-strip div {
    min-height: auto;
    padding: 20px 16px;
  }

  .letter {
    padding: 20px;
  }

  .contact-section {
    padding: 42px 16px;
  }

  .contact-link {
    min-height: 48px;
    padding-inline: 14px;
    font-size: 0.98rem;
  }

  .site-footer {
    padding: 22px 16px;
  }
}

@media (max-width: 380px) {
  .brand {
    width: 46px;
    height: 46px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .menu-toggle {
    width: 38px;
  }

  h1 {
    font-size: 2.12rem;
  }
}
