/* English: TT Norms Pro (self-hosted). Arabic keeps Cairo via Google Fonts. */
@font-face {
  font-family: "TT Norms Pro";
  src:
    local("TT Norms Pro Regular"),
    local("TTNormsPro-Regular"),
    url("assets/fonts/TTNormsPro-Regular.woff2") format("woff2"),
    url("assets/fonts/TTNormsPro-Regular.woff") format("woff"),
    url("assets/fonts/TTNormsPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Norms Pro";
  src:
    local("TT Norms Pro Medium"),
    local("TTNormsPro-Medium"),
    url("assets/fonts/TTNormsPro-Medium.woff2") format("woff2"),
    url("assets/fonts/TTNormsPro-Medium.woff") format("woff"),
    url("assets/fonts/TTNormsPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Norms Pro";
  src:
    local("TT Norms Pro DemiBold"),
    local("TT Norms Pro SemiBold"),
    local("TTNormsPro-DemiBold"),
    local("TTNormsPro-SemiBold"),
    url("assets/fonts/TTNormsPro-SemiBold.woff2") format("woff2"),
    url("assets/fonts/TTNormsPro-DemiBold.woff2") format("woff2"),
    url("assets/fonts/TTNormsPro-SemiBold.woff") format("woff"),
    url("assets/fonts/TTNormsPro-DemiBold.woff") format("woff"),
    url("assets/fonts/TTNormsPro-SemiBold.ttf") format("truetype"),
    url("assets/fonts/TTNormsPro-DemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Norms Pro";
  src:
    local("TT Norms Pro Bold"),
    local("TTNormsPro-Bold"),
    url("assets/fonts/TTNormsPro-Bold.woff2") format("woff2"),
    url("assets/fonts/TTNormsPro-Bold.woff") format("woff"),
    url("assets/fonts/TTNormsPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #2f9fb0;
  --teal-deep: #1f7f8f;
  --teal-soft: #4db3c4;
  --navy: #1a4b8f;
  --navy-deep: #0d2f5c;
  --ink: #1a2b33;
  --muted: #5a6f7a;
  --line: rgba(26, 75, 143, 0.14);
  --surface: #f4f7f8;
  --white: #ffffff;
  --font-display: "TT Norms Pro", "TT Norms", system-ui, sans-serif;
  --font-body: "TT Norms Pro", "TT Norms", system-ui, sans-serif;
  --space: clamp(1rem, 4vw, 2.5rem);
  --max: 1140px;
  --header-h: 4.5rem;
  --radius: 0.75rem;
  --shadow: 0 12px 40px rgba(13, 47, 92, 0.1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

main,
.site-footer,
.trust-bar,
.hero,
.section,
.capability {
  max-width: 100%;
  overflow-x: clip;
}

/* Fixed parallax page background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform, translate;
  animation: bg-drift 28s ease-in-out infinite alternate;
}

.page-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 37, 47, 0.45) 0%, rgba(244, 247, 248, 0.88) 26%, rgba(244, 247, 248, 0.92) 68%, rgba(6, 37, 47, 0.75) 100%),
    linear-gradient(90deg, rgba(11, 46, 58, 0.28), transparent 55%);
}

.page-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 28%, black 18%, transparent 72%);
  opacity: 0.45;
  animation: pixel-drift 22s linear infinite;
}

main,
.site-footer,
.trust-bar {
  position: relative;
  z-index: 1;
}

.site-header,
.mobile-nav {
  z-index: 50;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.55rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.05rem; }

p {
  margin: 0;
  overflow-wrap: break-word;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  max-width: 36rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: calc(var(--header-h) + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: var(--safe-top) calc(var(--space) + var(--safe-right)) 0 calc(var(--space) + var(--safe-left));
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(6, 37, 47, 0.08);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex-shrink: 1;
}

.brand img {
  width: auto;
  height: clamp(2.75rem, 8vw, 3.65rem);
  max-width: min(42vw, 120px);
  object-fit: contain;
  animation: mark-float 4.5s ease-in-out infinite;
}

.brand-text {
  display: none;
}

.brand-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--teal);
  margin-top: 0.28rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(244, 247, 248, 0.9);
}

.lang-btn {
  min-width: 2.2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--teal-deep);
}

.lang-btn.is-active {
  background: var(--teal);
  color: var(--white);
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--teal-deep);
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  border-radius: 0.5rem;
  background: var(--teal);
  color: var(--white) !important;
  opacity: 1 !important;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
  color: var(--white) !important;
}

.menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  right: 0;
  left: 0;
  z-index: 49;
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem calc(var(--space) + var(--safe-right)) calc(1.25rem + var(--safe-bottom)) calc(var(--space) + var(--safe-left));
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: calc(100svh - var(--header-h) - var(--safe-top));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  padding: 0.95rem 0.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shimmer 3.4s ease-in-out infinite;
}

.btn-primary:hover { background: var(--teal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--surface);
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + var(--safe-top) + 1.5rem) 0 2.5rem;
  color: var(--white);
  overflow: clip;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding-inline: var(--space);
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8.5vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
  background: linear-gradient(105deg, #1a5f6c 0%, #2a7584 38%, #1e4f5c 72%, #163f4a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.08));
}

@media (prefers-reduced-motion: no-preference) {
  html.is-animated .hero-name {
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.is-animated .hero-film {
    animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
  }
}

.hero-film {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 640px);
  min-height: 14rem;
  overflow: hidden;
  isolation: isolate;
  background: #06252f;
}

.hero-film-viewport {
  position: absolute;
  inset: 0;
}

.hero-film-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}

.hero-film-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-film-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-film-slide.is-active img {
    animation: hero-film-ken 7.5s ease-out forwards;
  }
}

@keyframes hero-film-ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}

.hero-film-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 37, 47, 0.18) 0%, rgba(6, 37, 47, 0.08) 35%, rgba(6, 37, 47, 0.78) 100%),
    linear-gradient(90deg, rgba(6, 37, 47, 0.35) 0%, transparent 22%, transparent 78%, rgba(6, 37, 47, 0.35) 100%);
}

.hero-film-caption {
  position: absolute;
  left: var(--space);
  right: var(--space);
  bottom: 3.1rem;
  z-index: 3;
  margin: 0;
  max-width: 36rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
  text-align: start;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-film-controls {
  position: absolute;
  left: var(--space);
  right: var(--space);
  bottom: 1.15rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-film-toggle {
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(6, 37, 47, 0.45);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  backdrop-filter: blur(8px);
}

.hero-film-toggle:hover,
.hero-film-toggle:focus-visible {
  border-color: rgba(159, 232, 223, 0.7);
  outline: none;
}

.hero-film-toggle-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.35rem 0 0.35rem 0.58rem;
  border-color: transparent transparent transparent currentColor;
  margin-left: 0.12rem;
}

.hero-film-toggle[aria-pressed="false"] .hero-film-toggle-icon {
  width: 0.55rem;
  height: 0.7rem;
  margin: 0;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) left / 0.18rem 100% no-repeat,
    linear-gradient(currentColor, currentColor) right / 0.18rem 100% no-repeat;
}

.hero-film-progress {
  flex: 1;
  height: 0.18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.hero-film-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9fe8df, #ffffff);
  transform-origin: left center;
}

/* Legacy quote card kept for unused styles cleanup safety */
.quote-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.quote-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  max-width: none;
  padding: 1.35rem var(--space);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.is-animated .trust-bar-item {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.is-animated .trust-bar-item:nth-child(1) { animation-delay: 0.55s; }
  html.is-animated .trust-bar-item:nth-child(2) { animation-delay: 0.68s; }
  html.is-animated .trust-bar-item:nth-child(3) { animation-delay: 0.81s; }
  html.is-animated .trust-bar-item:nth-child(4) { animation-delay: 0.94s; }
}

.trust-bar-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  position: relative;
  animation: icon-pulse 2.8s ease-in-out infinite;
}

.trust-bar-icon::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) var(--space);
}

.section-intro {
  max-width: 40rem;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(6, 37, 47, 0.06);
}

.section-intro h2 { margin-bottom: 0.9rem; }

.section-intro .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section-intro,
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  html.is-animated .section-intro:not(.is-visible),
  html.is-animated .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
  }
}

.section-intro.is-visible,
.reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Solutions */
.solutions {
  background: transparent;
}

.solution-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  gap: 1rem;
}

.solution-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.4rem 1.35rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(6, 37, 47, 0.04);
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.solution-list li:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow);
}

.solution-list li:nth-child(1) { transition-delay: 0.04s; }
.solution-list li:nth-child(2) { transition-delay: 0.1s; }
.solution-list li:nth-child(3) { transition-delay: 0.16s; }
.solution-list li:nth-child(4) { transition-delay: 0.22s; }

.solution-list li.is-visible,
.trust-grid article.is-visible,
.capability-copy.is-visible,
.capability-visual.is-visible,
.device-item.is-visible,
.branch-item.is-visible,
.contact-panel.is-visible,
.direction-card.is-visible,
.specialty-grid li.is-visible,
.client-grid li.is-visible,
.partner-grid article.is-visible,
.org-chart.is-visible,
.values-row.is-visible,
.ksa-map.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  html.is-animated .solution-list li:not(.is-visible),
  html.is-animated .trust-grid article:not(.is-visible),
  html.is-animated .capability-copy:not(.is-visible),
  html.is-animated .capability-visual:not(.is-visible),
  html.is-animated .device-item:not(.is-visible),
  html.is-animated .branch-item:not(.is-visible),
  html.is-animated .contact-panel:not(.is-visible),
  html.is-animated .direction-card:not(.is-visible),
  html.is-animated .specialty-grid li:not(.is-visible),
  html.is-animated .client-grid li:not(.is-visible),
  html.is-animated .partner-grid article:not(.is-visible),
  html.is-animated .org-chart:not(.is-visible),
  html.is-animated .values-row:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
  }

  html.is-animated .ksa-map:not(.is-visible) {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }

  html.is-animated .capability-visual:not(.is-visible) {
    transform: translateY(18px) scale(0.97);
  }
}

.solution-index {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--teal);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}

.solution-list h3 { margin-bottom: 0.35rem; }
.solution-list p { color: var(--muted); font-size: 0.96rem; }

.service-grid li {
  grid-template-columns: 1fr;
  gap: 0.9rem;
  padding: 0;
  overflow: hidden;
}

.service-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-deep);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.service-grid li:hover .service-media img {
  transform: scale(1.04);
}

.service-grid .solution-index {
  padding: 0 1.35rem;
  margin-top: 0.15rem;
}

.service-grid li > div:last-child {
  padding: 0 1.35rem 1.35rem;
}

/* Devices */
.devices {
  background: rgba(244, 247, 248, 0.55);
  backdrop-filter: blur(8px);
}

.device-groups {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.device-group-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.device-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(6, 37, 47, 0.04);
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}

.device-item:hover {
  box-shadow: var(--shadow);
}

.device-item:nth-child(1) { transition-delay: 0.04s; }
.device-item:nth-child(2) { transition-delay: 0.1s; }
.device-item:nth-child(3) { transition-delay: 0.16s; }

.device-media {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.device-media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.device-item:hover .device-media img {
  transform: scale(1.04);
}

.device-copy {
  padding: 1.15rem 1.25rem 1.35rem;
}

.device-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.45rem;
}

.device-copy h4 {
  margin: 0 0 0.45rem;
  color: var(--navy);
}

.device-copy p:last-child {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Capability */
.capability {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  max-width: calc(var(--max) + 2 * var(--space));
  margin: 0 auto;
  padding-left: var(--space);
  padding-right: var(--space);
  background: transparent;
}

.capability-visual {
  position: relative;
  min-height: 300px;
  overflow: clip;
  border-radius: var(--radius);
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  box-shadow: var(--shadow);
}

.capability-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.capability-visual.is-visible img {
  animation: soft-pan 14s ease-in-out infinite alternate;
}

.capability-copy {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 4px 18px rgba(6, 37, 47, 0.04);
}

.capability-copy h2 { margin-bottom: 0.9rem; }
.capability-copy > p { color: var(--muted); margin-bottom: 1.35rem; }

.capability-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.capability-points li {
  position: relative;
  padding-inline-start: 1.65rem;
  font-weight: 600;
  color: var(--navy);
}

.capability-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.15);
  box-shadow: inset 0 0 0 2px var(--teal);
}

.capability-points li::after {
  content: "";
  position: absolute;
  inset-inline-start: 0.28rem;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.55rem;
  border: 2px solid var(--teal);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

/* Trust */
.trust {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.trust-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.trust-grid article {
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.trust-grid article:nth-child(1) { transition-delay: 0.04s; }
.trust-grid article:nth-child(2) { transition-delay: 0.12s; }
.trust-grid article:nth-child(3) { transition-delay: 0.2s; }

.trust-grid p {
  color: var(--muted);
  margin-top: 0.55rem;
  font-size: 0.96rem;
}

/* Branches */
.branches {
  background: rgba(244, 247, 248, 0.5);
  backdrop-filter: blur(8px);
}

.footprint-layout {
  max-width: min(1180px, 100%);
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  justify-items: stretch;
}

.ksa-map {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 1680 / 820;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #061422;
  box-shadow:
    0 28px 70px rgba(6, 20, 34, 0.32),
    0 0 0 1px rgba(159, 232, 223, 0.18);
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ksa-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transform-origin: center;
}

.ksa-map.is-visible .ksa-map-img {
  animation: map-reveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ksa-pins {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.ksa-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) scale(0.4);
  z-index: 2;
  opacity: 0;
  cursor: default;
}

.ksa-map.is-visible .ksa-pin {
  animation: pin-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.4s + var(--d) * 0.09s);
}

.ksa-pin-dot {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #2f9fb0;
  border: 2.5px solid #fff;
  box-shadow:
    0 0 0 5px rgba(47, 159, 176, 0.18),
    0 4px 12px rgba(6, 22, 38, 0.35);
  animation: pin-pulse 2.6s ease-out infinite;
  animation-delay: calc(1.3s + var(--d) * 0.1s);
  margin: 0 auto;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ksa-pin.is-hub .ksa-pin-dot {
  width: 1rem;
  height: 1rem;
  background: #f0d28a;
  box-shadow:
    0 0 0 6px rgba(240, 210, 138, 0.2),
    0 4px 14px rgba(6, 22, 38, 0.4);
}

.ksa-pin:hover .ksa-pin-dot,
.ksa-pin.is-active .ksa-pin-dot {
  background: #f0d28a;
  box-shadow: 0 0 0 8px rgba(240, 210, 138, 0.28);
  animation: none;
  transform: scale(1.15);
}

@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 159, 176, 0.4), 0 4px 12px rgba(6, 22, 38, 0.35); }
  70% { box-shadow: 0 0 0 11px rgba(47, 159, 176, 0), 0 4px 12px rgba(6, 22, 38, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(47, 159, 176, 0), 0 4px 12px rgba(6, 22, 38, 0.35); }
}

@keyframes pin-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes map-reveal {
  from {
    opacity: 0;
    transform: scale(0.975);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ksa-pin-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.4rem);
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  padding: 0.32rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(6, 20, 34, 0.9);
  border: 1px solid rgba(159, 232, 223, 0.28);
  box-shadow: 0 8px 20px rgba(6, 22, 38, 0.35);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease;
}

.ksa-pin-label strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.ksa-pin-label em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: #f0d28a;
  font-family: "Cairo", var(--font-body);
  line-height: 1.25;
}

.ksa-pin:hover .ksa-pin-label,
.ksa-pin.is-active .ksa-pin-label,
.ksa-pin.is-hub .ksa-pin-label {
  border-color: rgba(240, 210, 138, 0.42);
}

.ksa-pin[data-city="tabuk"] .ksa-pin-label { transform: translate(-20%, -135%); }
.ksa-pin[data-city="madinah"] .ksa-pin-label { transform: translate(12%, -130%); text-align: start; }
.ksa-pin[data-city="yanbu"] .ksa-pin-label { transform: translate(-115%, -20%); text-align: end; }
.ksa-pin[data-city="jeddah"] .ksa-pin-label { transform: translate(-115%, -20%); text-align: end; }
.ksa-pin[data-city="makkah"] .ksa-pin-label { transform: translate(12%, 18%); text-align: start; }
.ksa-pin[data-city="taif"] .ksa-pin-label { transform: translate(18%, -20%); text-align: start; }
.ksa-pin[data-city="riyadh"] .ksa-pin-label { transform: translate(-50%, 18%); }
.ksa-pin[data-city="dammam"] .ksa-pin-label { transform: translate(12%, -35%); text-align: start; }
.ksa-pin[data-city="abha"] .ksa-pin-label { transform: translate(-50%, 18%); }

.footprint-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.footprint-stats li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(6, 37, 47, 0.04);
}

.footprint-stats strong {
  font-size: 1.05rem;
  color: var(--navy-deep);
  font-weight: 700;
}

.footprint-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.branch-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  gap: 1rem;
}

.branch-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.4rem 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.branch-item:nth-child(1) { transition-delay: 0.04s; }
.branch-item:nth-child(2) { transition-delay: 0.1s; }
.branch-item:nth-child(3) { transition-delay: 0.16s; }

.branch-index {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--teal);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}

.branch-item h3 { margin-bottom: 0.35rem; }
.branch-item p { color: var(--muted); font-size: 0.96rem; }

/* Direction / Vision */
.direction-grid {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  display: grid;
  gap: 1rem;
}

.direction-card {
  padding: 1.5rem 1.4rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(6, 37, 47, 0.04);
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.direction-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.65rem;
}

.direction-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.45;
  color: var(--navy-deep);
}

.values-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.4rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.values-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.9rem;
}

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.values-list li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.values-list span {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.values-list strong {
  font-weight: 600;
  color: var(--ink);
}

/* Specialties */
.specialty-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.specialty-grid li {
  padding: 1rem 1.1rem;
  text-align: center;
  font-weight: 600;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(6, 37, 47, 0.04);
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s ease;
}

.specialty-grid li:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-3px);
}

.specialty-grid li:nth-child(odd) { transition-delay: 0.04s; }
.specialty-grid li:nth-child(even) { transition-delay: 0.1s; }

.service-grid li:nth-child(n) {
  transition-delay: calc(0.04s * var(--i, 1));
}

.service-grid li:nth-child(1) { --i: 1; }
.service-grid li:nth-child(2) { --i: 2; }
.service-grid li:nth-child(3) { --i: 3; }
.service-grid li:nth-child(4) { --i: 4; }
.service-grid li:nth-child(5) { --i: 5; }
.service-grid li:nth-child(6) { --i: 6; }
.service-grid li:nth-child(7) { --i: 7; }
.service-grid li:nth-child(8) { --i: 8; }
.service-grid li:nth-child(9) { --i: 9; }
.service-grid li:nth-child(10) { --i: 10; }
.service-grid li:nth-child(11) { --i: 11; }
.service-grid li:nth-child(12) { --i: 12; }

.direction-card,
.partner-grid article,
.client-grid li,
.trust-grid article,
.org-depts li {
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.direction-card:hover,
.partner-grid article:hover,
.client-grid li:hover,
.trust-grid article:hover,
.org-depts li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.org-top {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.org-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(13, 47, 92, 0.28);
}

.why-grid article {
  position: relative;
  overflow: hidden;
}

.why-grid article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

html[dir="rtl"] .why-grid article::after {
  transform-origin: right;
}

.why-grid article:hover::after {
  transform: scaleX(1);
}

.values-list li {
  transition: transform 0.25s ease;
}

.values-list li:hover {
  transform: translateX(4px);
}

html[dir="rtl"] .values-list li:hover {
  transform: translateX(-4px);
}

/* Clients */
.client-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.client-grid li {
  padding: 1.1rem 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Partners */
.partners {
  background: rgba(244, 247, 248, 0.55);
  backdrop-filter: blur(8px);
}

.partner-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.partner-grid article {
  padding: 1.35rem 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(6, 37, 47, 0.04);
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.partner-region {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.4rem;
}

.partner-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy-deep);
}

.partner-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Leadership */
.org-chart {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.org-top {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, var(--navy-deep), var(--teal-deep));
  color: var(--white);
  border-radius: var(--radius);
}

.org-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(159, 232, 223, 0.95);
  margin: 0 0 0.4rem;
}

.org-top h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.2rem;
}

.org-depts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.org-depts li {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
}

/* Why choose us */
.why-grid {
  max-width: var(--max);
  margin: 0 auto;
}

.why-index {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.45rem;
}

.city-grid .branch-item h3 {
  margin-bottom: 0;
}

.contact-details {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-details li {
  display: grid;
  gap: 0.2rem;
}

.contact-details span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.contact-details a,
.contact-details strong {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--teal-soft);
}

/* Contact */
.contact {
  background: var(--navy-deep);
  color: rgba(236, 246, 248, 0.88);
}

.contact .eyebrow { color: var(--teal-soft); }
.contact h2 { color: var(--white); }

.contact-panel {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(236, 246, 248, 0.78);
  margin-bottom: 1.35rem;
  max-width: 30rem;
}

.contact-panel > .contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  position: relative;
  width: 100%;
  min-width: 0;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.5rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem; /* prevents iOS zoom on focus */
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  background: var(--white);
}

.contact-form .full { grid-column: 1 / -1; }

.contact-form .hp-field {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  grid-column: 1 / -1;
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 3rem var(--space) calc(2rem + var(--safe-bottom));
  background: var(--navy);
  color: rgba(236, 246, 248, 0.75);
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
  max-width: 22rem;
}

.footer-brand img {
  width: auto;
  height: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.footer-brand p {
  font-size: 0.95rem;
}

.footer-meta {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 0.25rem;
}

.footer-meta a {
  font-weight: 600;
  color: rgba(236, 246, 248, 0.85);
  transition: color 0.2s ease;
}

.footer-meta a:hover { color: var(--white); }

.footer-branches,
.cr {
  font-weight: 600;
  color: rgba(236, 246, 248, 0.9);
}

.footer-copy {
  font-size: 0.88rem;
  color: rgba(236, 246, 248, 0.55);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

@keyframes hero-zoom {
  from { transform: scale(1.1); }
  to { transform: scale(1.02); }
}

@keyframes bg-drift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(0, -1%, 0); }
}

@keyframes pixel-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes shimmer {
  0%, 55% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes brand-shine {
  from { background-position: 0% center; }
  to { background-position: 200% center; }
}

@keyframes mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes soft-pan {
  from { transform: scale(1.04) translateX(0); }
  to { transform: scale(1.08) translateX(0); }
}

@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
}

@media (max-width: 767px) {
  :root {
    --header-h: 4.15rem;
    --space: 1rem;
  }

  h1 { font-size: clamp(1.55rem, 7.2vw, 2.05rem); }
  h2 { font-size: clamp(1.3rem, 5.8vw, 1.7rem); }
  h3 { font-size: 1.05rem; }

  .site-header {
    gap: 0.5rem;
  }

  .brand img {
    height: 2.85rem;
    max-width: min(34vw, 96px);
  }

  .header-actions {
    gap: 0.35rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + var(--safe-top) + 1.1rem) 0 1.75rem;
  }

  .hero-shell {
    gap: 1.1rem;
    padding-inline: var(--space);
  }

  .hero-name {
    font-size: clamp(2.05rem, 11vw, 3.1rem);
    letter-spacing: 0.03em;
    max-width: 12ch;
  }

  .hero-film {
    aspect-ratio: 4 / 3;
    max-height: min(52vh, 420px);
    min-height: 16rem;
  }

  .hero-film-caption {
    bottom: 2.85rem;
    font-size: 0.92rem;
  }

  .trust-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.85rem;
    padding: 1rem var(--space);
  }

  .trust-bar-item {
    font-size: 0.8rem;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.35;
  }

  .trust-bar-icon {
    width: 1.65rem;
    height: 1.65rem;
  }

  .trust-bar-icon::after {
    inset: 0.42rem;
  }

  .section {
    padding: clamp(2.25rem, 7vw, 3.5rem) var(--space);
  }

  .section-intro {
    padding: 1rem 0.95rem;
    margin-bottom: 1.5rem;
    text-align: start;
  }

  .section-intro .section-lead {
    margin-inline: 0;
    max-width: none;
    font-size: 0.95rem;
  }

  .solution-list li,
  .branch-item,
  .trust-grid article {
    padding: 1.05rem 0.95rem;
    gap: 0.85rem;
  }

  .device-copy {
    padding: 1rem 0.95rem 1.15rem;
  }

  .device-media,
  .device-media img {
    min-height: 150px;
  }

  .capability {
    gap: 1.25rem;
  }

  .capability-copy {
    padding: 1.15rem 1rem;
  }

  .capability-visual,
  .capability-visual img {
    min-height: 200px;
  }

  .contact-panel {
    gap: 1.5rem;
  }

  .contact-panel > .contact-form {
    padding: 1.15rem 1rem 1.25rem;
  }

  .btn {
    min-height: 3rem;
    width: 100%;
  }

  .contact-copy .btn,
  .capability-copy .btn {
    width: auto;
    max-width: 100%;
  }

  .menu-toggle {
    width: 2.6rem;
    height: 2.6rem;
  }

  .mobile-nav a {
    font-size: 1rem;
    padding: 0.85rem 0.15rem;
  }

  .footer-brand img {
    max-width: 160px;
    height: auto;
  }

  .site-footer {
    padding: 2.25rem var(--space) calc(1.5rem + var(--safe-bottom));
    gap: 1.5rem;
  }
}

@media (max-width: 380px) {
  .lang-btn {
    min-width: 1.85rem;
    height: 1.75rem;
    font-size: 0.72rem;
  }

  .quote-card-title {
    font-size: 1.05rem;
  }

  .brand img {
    max-width: 88px;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (min-width: 640px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem var(--space);
    max-width: none;
  }

  .trust-bar-item {
    justify-content: center;
    text-align: start;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 5rem;
    --space: clamp(1.25rem, 3vw, 2.5rem);
  }

  .nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .brand img {
    height: 3.65rem;
    max-width: 120px;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + var(--safe-top) + 2.25rem) 0 3.25rem;
  }

  .hero-shell {
    gap: 1.85rem;
  }

  .hero-film {
    aspect-ratio: 16 / 9;
    max-height: min(64vh, 680px);
  }

  .btn {
    width: auto;
  }

  .solution-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .direction-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .device-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .device-media,
  .device-media img {
    min-height: 170px;
  }

  .capability {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

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

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

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

  .branch-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ksa-map {
    max-width: none;
    border-radius: 1.35rem;
  }

  .footprint-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .branch-item {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 3rem;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr;
  }

  .quote-card .contact-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3.75rem;
  }

  .hero-name {
    font-size: clamp(3.5rem, 7vw, 5.75rem);
  }
}

/* Arabic / RTL */
html[dir="rtl"] body,
body.is-ar {
  font-family: "Cairo", var(--font-body);
  line-height: 1.7;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: "Cairo", var(--font-display);
  letter-spacing: 0;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] label,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] button {
  overflow-wrap: normal;
  word-break: normal;
}

html[dir="rtl"] .brand-name,
html[dir="rtl"] .brand-sub,
html[dir="rtl"] .hero-name,
html[dir="rtl"] .device-group-title,
html[dir="rtl"] .device-tag,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .footer-label {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .section-intro,
html[dir="rtl"] .contact-copy,
html[dir="rtl"] .capability-copy,
html[dir="rtl"] .quote-card,
html[dir="rtl"] .device-copy,
html[dir="rtl"] .trust-grid article,
html[dir="rtl"] .solution-list li,
html[dir="rtl"] .branch-item {
  text-align: right;
}

html[dir="rtl"] .mobile-nav a {
  justify-content: flex-end;
  text-align: right;
}

html[dir="rtl"] .contact-form span,
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea,
html[dir="rtl"] .form-note {
  text-align: right;
}

html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea {
  direction: rtl;
}

html[dir="rtl"] .trust-bar-item {
  text-align: right;
}

html[dir="rtl"] .capability-points li::after {
  border-left: 2px solid var(--teal);
  border-right: 0;
  transform: rotate(-45deg);
}

html[dir="rtl"] .btn {
  letter-spacing: 0;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .lang-switch,
html[dir="rtl"] .menu-toggle,
html[dir="rtl"] .hero-name,
html[dir="rtl"] .hero-film,
html[dir="rtl"] .quote-card,
html[dir="rtl"] .trust-bar-item {
  opacity: 1 !important;
  visibility: visible !important;
}

html[dir="rtl"] .hero-name,
html[dir="rtl"] .quote-card,
html[dir="rtl"] .trust-bar-item {
  transform: none !important;
  animation: none !important;
}

html[dir="rtl"] .section-intro,
html[dir="rtl"] .solution-list li,
html[dir="rtl"] .trust-grid article,
html[dir="rtl"] .capability-copy,
html[dir="rtl"] .capability-visual,
html[dir="rtl"] .device-item,
html[dir="rtl"] .branch-item,
html[dir="rtl"] .contact-panel {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

html[dir="rtl"],
html[dir="rtl"] body {
  overflow-x: hidden !important;
  max-width: 100%;
  width: 100%;
  position: relative;
}

html[dir="rtl"] main,
html[dir="rtl"] .hero,
html[dir="rtl"] .hero-shell,
html[dir="rtl"] .hero-film,
html[dir="rtl"] .trust-bar,
html[dir="rtl"] .section,
html[dir="rtl"] .capability,
html[dir="rtl"] .contact-panel,
html[dir="rtl"] .site-footer,
html[dir="rtl"] .site-header {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

html[dir="rtl"] .site-header {
  left: 0;
  right: 0;
  width: 100%;
}

html[dir="rtl"] .hero-film-caption {
  text-align: right;
}

html[dir="rtl"] .hero-film-progress span {
  transform-origin: right center;
}

html[dir="rtl"] .hero-film-controls {
  flex-direction: row-reverse;
}

@media (max-width: 767px) {
  html[dir="rtl"] .section-intro {
    text-align: right;
    padding: 1rem 0.9rem;
  }

  html[dir="rtl"] .hero {
    padding-top: calc(var(--header-h) + var(--safe-top) + 1.1rem);
    padding-bottom: 1.75rem;
  }

  html[dir="rtl"] .hero-name {
    letter-spacing: 0;
    font-size: clamp(1.85rem, 9.5vw, 2.6rem);
    line-height: 1.15;
  }

  html[dir="rtl"] .hero-film-caption {
    text-align: right;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  html[dir="rtl"] h2 {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
    line-height: 1.5;
  }

  html[dir="rtl"] h3,
  html[dir="rtl"] h4 {
    font-size: 1rem;
    line-height: 1.45;
  }

  html[dir="rtl"] .section-lead,
  html[dir="rtl"] .solution-list p,
  html[dir="rtl"] .device-copy p,
  html[dir="rtl"] .branch-item p,
  html[dir="rtl"] .trust-grid p,
  html[dir="rtl"] .capability-copy > p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  html[dir="rtl"] .eyebrow,
  html[dir="rtl"] .device-group-title,
  html[dir="rtl"] .device-tag,
  html[dir="rtl"] .footer-label {
    font-size: 0.78rem;
    letter-spacing: 0;
  }

  /* Arabic labels are longer — one column on phones */
  html[dir="rtl"] .trust-bar {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  html[dir="rtl"] .trust-bar-item {
    font-size: 0.88rem;
    line-height: 1.45;
    justify-content: flex-start;
    gap: 0.7rem;
  }

  html[dir="rtl"] .solution-list li,
  html[dir="rtl"] .branch-item {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  html[dir="rtl"] .solution-index,
  html[dir="rtl"] .branch-index {
    padding-top: 0.2rem;
  }

  html[dir="rtl"] .capability-points li {
    padding-inline-start: 1.7rem;
    line-height: 1.55;
  }

  html[dir="rtl"] .mobile-nav a {
    font-size: 1.02rem;
    line-height: 1.4;
  }

  html[dir="rtl"] .btn {
    font-size: 0.92rem;
    line-height: 1.35;
    padding-inline: 1rem;
  }

  html[dir="rtl"] .contact-form span {
    font-size: 0.84rem;
  }

  html[dir="rtl"] .footer-brand p,
  html[dir="rtl"] .footer-branches,
  html[dir="rtl"] .footer-copy {
    line-height: 1.65;
  }
}

@media (max-width: 380px) {
  html[dir="rtl"] .hero-name {
    font-size: 1.7rem;
  }

  html[dir="rtl"] .trust-bar-item {
    font-size: 0.84rem;
  }
}

@media (min-width: 640px) {
  html[dir="rtl"] .trust-bar-item {
    text-align: right;
  }
}

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

  .page-bg img,
  .hero-film-slide img {
    transform: none !important;
    translate: none !important;
  }

  .ksa-pin {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .ksa-map-glow {
    animation: none !important;
    opacity: 0.7;
  }
}
