@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/noto-kufi-arabic-arabic-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/noto-kufi-arabic-arabic-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/noto-kufi-arabic-arabic-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/noto-kufi-arabic-arabic-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* خط الهوية للعناوين والأرقام اللاتينية فقط؛ الحروف العربية تنتقل تلقائيًا إلى Noto Kufi */
@font-face {
  font-family: "Blabeloo";
  src: url("../fonts/blabeloo.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0020-007E;
}

:root {
  --font-display: "Blabeloo", "Noto Kufi Arabic", "Poppins", Tahoma, sans-serif;
  --navy-950: #013262;
  --navy-900: #0a3d72;
  --navy-800: #134a85;
  --navy-700: #1d5a9e;
  --gold: #f4b400;
  --gold-light: #ffc62a;
  --white: #ffffff;
  --off-white: #f0f0ec;
  --ink: #01203f;
  --muted: #647086;
  --line: #dcdcd5;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shadow: 0 26px 70px rgba(1, 50, 98, 0.14);
  --shadow-soft: 0 18px 48px rgba(1, 50, 98, 0.08);
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--off-white);
  color: var(--ink);
  font-family: "Noto Kufi Arabic", "Poppins", Tahoma, Arial, sans-serif;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--navy-950);
}

body.nav-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.5;
}

.stat-card strong,
.value-step__number,
.story-number,
.service-number,
.process-card > span,
.case-steps li > span {
  font-family: var(--font-display) !important;
  letter-spacing: 0.02em;
}

h2 {
  margin-bottom: 20px;
  color: var(--navy-900);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  letter-spacing: 0;
}

:lang(en),
[dir="ltr"] {
  font-family: "Poppins", Arial, sans-serif;
}

p {
  color: var(--muted);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(244, 180, 0, 0.62);
  outline-offset: 4px;
}

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

.section {
  position: relative;
  padding-block: 116px;
}

.section--navy {
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: -120px;
  right: 24px;
  border-radius: 0 0 12px 12px;
  background: var(--gold);
  color: var(--navy-950);
  padding: 12px 20px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  color: var(--navy-700);
  font-size: 0.94rem;
  font-weight: 700;
}

.eyebrow::after {
  width: 34px;
  height: 3px;
  border-radius: 10px;
  background: var(--gold);
  content: "";
}

.eyebrow--gold {
  color: var(--gold-light);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 23px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button svg,
.text-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:hover svg,
.text-link:hover svg {
  transform: translateX(-4px);
}

.button--gold {
  background: var(--gold);
  color: var(--navy-950);
}

.button--gold:hover {
  background: var(--gold-light);
}

.button--outline {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.button--outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.button--navy {
  background: var(--navy-900);
  color: var(--white);
}

.button--navy:hover {
  background: var(--navy-700);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--gold);
  color: var(--navy-900);
  font-weight: 700;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(1, 50, 98, 0.12);
  color: var(--white);
  transition: height 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  height: 72px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(1, 50, 98, 0.96);
  box-shadow: 0 12px 38px rgba(0, 10, 30, 0.18);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 42px;
}

.brand {
  display: grid;
  width: 76px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
}

.brand img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-inline: auto;
}

.site-nav a {
  position: relative;
  padding-block: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 5px;
  background: var(--gold);
  content: "";
  transform: translateX(50%);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 100%;
}

.header-cta {
  min-height: 45px;
  padding: 9px 18px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  border-radius: 6px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  display: flex;
  min-height: 820px;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy-950);
  background-image:
    radial-gradient(circle at 23% 55%, rgba(15, 77, 150, 0.46) 0, rgba(15, 77, 150, 0) 43%),
    linear-gradient(90deg, rgba(1, 50, 98, 0.94) 0%, rgba(0, 29, 70, 0.82) 54%, rgba(0, 34, 80, 0.76) 100%),
    url("../images/brain-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  padding: calc(var(--header-height) + 70px) 0 85px;
}

.hero-pattern,
.section-pattern,
.case-pattern,
.cta-pattern {
  position: absolute;
  pointer-events: none;
  background-image: url("../images/brain-bg.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-pattern {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 100px);
}

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

.hero h1 {
  margin-bottom: 25px;
  font-size: clamp(2.8rem, 5vw, 4.55rem);
  letter-spacing: 0;
  line-height: 1.42;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-lead {
  max-width: 570px;
  margin-bottom: 31px;
  color: #d9e4f5;
  font-size: clamp(0.88rem, 1.25vw, 1rem);
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  color: #b9cae2;
  font-size: 0.79rem;
  list-style: none;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.hero-visual {
  position: relative;
  min-height: 530px;
  perspective: 1100px;
}

/* لوحة الأرقام في الواجهة: رسوم بيانية حقيقية (بياناتها من إعدادات قسم الأرقام) */
.stat-board {
  --series-1: #f4b400;
  --series-2: #4a90d9;
  --series-3: #e06c4f;
  --series-4: #e8e8e0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 14px;
  min-height: 0;
}

.kpi {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(240, 240, 236, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease;
}

.kpi:hover {
  border-color: rgba(244, 180, 0, 0.45);
}

.kpi--line {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
}

.kpi--years {
  grid-column: 1 / -1;
  order: 4;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
}

.kpi__head {
  display: grid;
  gap: 2px;
}

.kpi__over {
  color: #9fb2cf;
  font-size: 0.82rem;
  font-weight: 600;
}

.kpi__value {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  direction: ltr;
}

.kpi__value small {
  color: var(--gold);
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0;
}

.kpi__label {
  color: #d6e0ef;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

/* أساسيات الرسوم */
.chart {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: none;
  stroke-width: 0;
  overflow: visible;
  direction: ltr;
}

.chart text {
  font-family: var(--font-display);
  stroke: none;
}

.chart__grid {
  stroke: rgba(240, 240, 236, 0.12);
  stroke-width: 1;
}

.chart__axis {
  fill: #9fb2cf;
  font-size: 10px;
}

.chart__value {
  fill: var(--white);
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chart__hit {
  fill: transparent;
}

.chart__point,
.chart__bar {
  outline: none;
  cursor: default;
}

.chart__point:hover .chart__value,
.chart__point:focus .chart__value,
.chart__point.is-last .chart__value,
.chart__bar:hover .chart__value,
.chart__bar:focus .chart__value,
.chart__bar.is-last .chart__value {
  opacity: 1;
}

/* منحنى النمو */
.chart__area {
  fill: url(#chart-area);
  transition: opacity 0.8s ease 0.5s;
}

.chart__line {
  fill: none;
  stroke: var(--series-1);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s ease;
}

.chart__dot {
  fill: var(--series-1);
  stroke: #0f3d6b;
  stroke-width: 2;
  transition: opacity 0.3s ease, r 0.2s ease;
  transition-delay: calc(var(--i) * 0.2s + 0.3s), 0s;
}

.chart__point:hover .chart__dot,
.chart__point:focus .chart__dot {
  r: 6;
}

/* أعمدة المشاهدات */
.chart__col {
  fill: var(--series-1);
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
  transition-delay: calc(var(--i) * 0.1s), 0s;
}

.chart__bar.is-last .chart__col,
.chart__bar:hover .chart__col,
.chart__bar:focus .chart__col {
  opacity: 1;
}

/* حلقة توزيع الخدمات */
.chart-donut {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.chart--donut {
  width: 92px;
  transform: rotate(-90deg);
}

.chart__track {
  fill: none;
  stroke: rgba(240, 240, 236, 0.08);
  stroke-width: 14;
}

.chart__slice {
  fill: none;
  stroke: var(--c);
  stroke-width: 14;
  outline: none;
  transition: opacity 0.4s ease, stroke-width 0.2s ease;
  transition-delay: calc(var(--i) * 0.15s), 0s;
}

.chart__slice:hover,
.chart__slice:focus {
  stroke-width: 18;
}

.chart-legend {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #d6e0ef;
  font-size: 0.78rem;
  line-height: 1.4;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.chart-legend b {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
}

/* الخط الزمني للسنوات */
.chart-years {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0 0 0;
  list-style: none;
  direction: ltr;
}

.chart-years::before,
.chart-years::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  left: 6px;
  height: 3px;
  border-radius: 3px;
  background: rgba(240, 240, 236, 0.12);
}

.chart-years::after {
  background: var(--series-1);
  transform-origin: left;
  transition: transform 1.2s ease 0.3s;
}

.chart-years li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.chart-years li::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 3px solid #0f3d6b;
  border-radius: 50%;
  background: var(--series-1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: calc(var(--i) * 0.24s + 0.3s);
}

.chart-years span {
  color: #9fb2cf;
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.chart-years li:last-child span {
  color: var(--white);
}

/* قبل ظهور اللوحة: الرسوم فارغة ثم تُرسم */
.js .stat-board:not(.is-visible) .chart__line {
  stroke-dashoffset: 1;
}

.js .stat-board:not(.is-visible) .chart__area,
.js .stat-board:not(.is-visible) .chart__dot,
.js .stat-board:not(.is-visible) .chart__slice {
  opacity: 0;
}

.js .stat-board:not(.is-visible) .chart__col {
  transform: scaleY(0);
}

.js .stat-board:not(.is-visible) .chart-years::after {
  transform: scaleX(0);
}

.js .stat-board:not(.is-visible) .chart-years li::before {
  opacity: 0;
  transform: scale(0.4);
}

@media (prefers-reduced-motion: reduce) {
  .chart__line,
  .chart__area,
  .chart__dot,
  .chart__col,
  .chart__slice,
  .chart-years::after,
  .chart-years li::before {
    transition: none;
  }
}

@media (max-width: 620px) {
  .stat-board {
    gap: 10px;
  }

  .kpi {
    padding: 16px;
    border-radius: 18px;
  }

  .kpi--line,
  .kpi--years {
    grid-template-columns: 1fr;
  }

  .kpi--bars,
  .kpi--donut {
    grid-column: 1 / -1;
  }

  .kpi--bars {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
  }
}

.hero-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 5px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: var(--off-white);
  box-shadow: 0 35px 75px rgba(0, 7, 24, 0.34);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card--main {
  width: 74%;
  height: 64%;
  top: 11%;
  right: 7%;
  z-index: 2;
  transform: rotate(1.5deg);
}

.hero-card--top {
  width: 46%;
  height: 41%;
  top: 0;
  left: 0;
  z-index: 3;
  transform: rotate(-4deg);
}

.hero-card--bottom {
  width: 45%;
  height: 41%;
  bottom: 0;
  left: 8%;
  z-index: 4;
  transform: rotate(4deg);
}

.hero-note {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 5%;
  display: flex;
  width: 145px;
  height: 145px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-950);
  line-height: 1.45;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  transform: rotate(-5deg);
}

.hero-note strong {
  font-size: 1.05rem;
}

.hero-note span {
  font-size: 0.82rem;
}

.trust-strip {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #e8e8e3;
  background: var(--off-white);
  padding-block: 22px;
}

.trust-inner {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 36px;
}

.trust-inner > p {
  margin: 0;
  color: var(--navy-900);
  font-weight: 700;
  white-space: nowrap;
}

.trust-logos {
  min-width: 0;
}

.trust-strip:hover .logo-track {
  animation-play-state: paused;
}

.trust-logo {
  display: grid;
  width: 150px;
  flex: none;
  min-height: 70px;
  place-items: center;
  margin: 0;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  background: #f3f3ee;
  padding: 9px 13px;
}

.trust-logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 50px;
  margin: auto;
  object-fit: contain;
  object-position: center;
}

.value-flow {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-bottom: 1px solid #e7ebf1;
  background:
    radial-gradient(circle at 12% 15%, rgba(244, 180, 0, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f0f0ec 100%);
  padding-block: 58px 64px;
}

.value-flow__heading {
  width: min(740px, 100%);
  margin-inline: auto;
  text-align: center;
}

.value-flow__heading .eyebrow {
  justify-content: center;
}

.value-flow__heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
}

.value-flow__heading > p:last-child {
  max-width: 670px;
  margin: 0 auto;
  font-size: 0.88rem;
}

.value-flow__track {
  display: grid;
  direction: rtl;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) 54px minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin-top: 34px;
}

.value-step {
  position: relative;
  display: grid;
  min-height: 156px;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: 15px;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  padding: 25px 22px;
  box-shadow: 0 14px 34px rgba(0, 34, 80, 0.075);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.value-step::before {
  position: absolute;
  height: 4px;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
}

.value-step:hover {
  border-color: rgba(244, 180, 0, 0.68);
  box-shadow: 0 20px 42px rgba(0, 34, 80, 0.12);
  transform: translateY(-5px);
}

.value-step__number {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 34, 80, 0.18);
}

.value-step h3 {
  margin: 0 0 6px;
  color: var(--navy-900);
  font-size: 1.08rem;
}

.value-step p {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.85;
}

.value-arrow {
  position: relative;
  display: grid;
  min-height: 52px;
  place-items: center;
  color: var(--gold);
}

.value-arrow::before {
  position: absolute;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(0, 34, 80, 0.18) 0 6px, transparent 6px 11px);
  content: "";
}

.value-arrow svg {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  left: -2px;
  padding: 3px;
  border-radius: 50%;
  background: #f0f0ec;
}

.value-arrow i {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  right: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(244, 180, 0, 0.13);
}

.js .value-flow .value-step {
  opacity: 0.44;
  transform: translateY(10px);
}

.js .value-flow.is-visible .value-step {
  animation: valueStepIn 0.58s ease forwards;
  animation-delay: calc(0.12s + var(--delay, 0s));
}

.js .value-flow.is-visible .value-step::before {
  animation: valueLineIn 0.5s ease forwards;
  animation-delay: calc(0.38s + var(--delay, 0s));
}

.js .value-flow.is-visible .value-arrow i {
  animation: valueDot 1.55s ease-in-out infinite;
  animation-delay: calc(0.35s + var(--delay, 0s));
}

@keyframes valueStepIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes valueLineIn {
  to {
    transform: scaleX(1);
  }
}

@keyframes valueDot {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  15% {
    opacity: 1;
  }
  78% {
    opacity: 1;
    transform: translateX(-42px);
  }
  100% {
    opacity: 0;
    transform: translateX(-42px);
  }
}

@keyframes valueDotVertical {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  15% {
    opacity: 1;
  }
  78% {
    opacity: 1;
    transform: translate(-50%, 36px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 36px);
  }
}

.about {
  background: linear-gradient(180deg, #f0f0ec 0%, var(--white) 35%);
}

.about-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(50px, 8vw, 104px);
}

.about-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.about-copy .text-link {
  margin-top: 11px;
}

.about-media {
  position: relative;
  min-height: 455px;
}

.about-media img {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-media__main {
  width: 78%;
  height: 82%;
  top: 0;
  right: 0;
  border-radius: var(--radius-lg);
}

.about-media__float {
  width: 52%;
  height: 45%;
  bottom: 0;
  left: 0;
  border: 8px solid var(--white);
  border-radius: var(--radius-md);
}

.scribble {
  position: absolute;
  right: 10%;
  bottom: -20px;
  width: 108px;
  height: 28px;
  border-bottom: 4px solid var(--gold);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.story-grid {
  display: grid;
  margin-top: 80px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 31px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.story-card::after {
  position: absolute;
  width: 58px;
  height: 4px;
  right: 31px;
  bottom: 0;
  border-radius: 9px 9px 0 0;
  background: var(--gold);
  content: "";
}

.story-card::before {
  position: absolute;
  width: 115px;
  height: 115px;
  top: -52px;
  left: -44px;
  border-radius: 50%;
  background: rgba(244, 180, 0, 0.11);
  content: "";
}

.story-card:hover {
  border-color: rgba(244, 180, 0, 0.62);
  box-shadow: 0 22px 46px rgba(0, 34, 80, 0.09);
  transform: translateY(-6px);
}

.story-icon,
.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 17px;
  background: var(--gold);
  color: var(--navy-900);
}

.story-icon svg,
.service-icon svg {
  width: 29px;
  height: 29px;
}

.story-card h3 {
  margin: 22px 0 9px;
  color: var(--navy-900);
  font-size: 1.08rem;
}

.story-card p {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.9;
}

.story-number {
  position: absolute;
  top: 25px;
  left: 28px;
  color: rgba(0, 34, 80, 0.14);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.story-card--featured {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 24px 50px rgba(244, 180, 0, 0.2);
}

.story-card--featured::before {
  background: rgba(0, 34, 80, 0.08);
}

.story-card--featured::after {
  background: var(--navy-900);
}

.story-card--featured .story-icon {
  background: var(--navy-900);
  color: var(--gold);
}

.story-card--featured .story-number {
  color: rgba(0, 34, 80, 0.2);
}

.story-card--featured h3,
.story-card--featured p {
  color: var(--navy-950);
}

.statistics {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, var(--gold), var(--gold-light));
  color: var(--navy-950);
  padding-block: 70px;
}

.stats-pattern {
  position: absolute;
  width: 520px;
  height: 520px;
  top: -235px;
  right: -155px;
  background: url("../images/brain-bg.webp") center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(9deg);
}

.statistics-inner {
  position: relative;
  z-index: 1;
}

.statistics-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

.statistics-heading p {
  position: relative;
  margin: 0;
  color: rgba(1, 50, 98, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
}

.statistics-heading p::after {
  display: inline-block;
  width: 30px;
  height: 2px;
  margin-right: 10px;
  border-radius: 8px;
  background: var(--navy-900);
  content: "";
  vertical-align: middle;
}

.statistics-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
}

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

.stat-card {
  position: relative;
  min-height: 178px;
  padding: 23px 32px 14px;
  text-align: center;
}

.stat-card:not(:last-child)::after {
  position: absolute;
  width: 1px;
  height: 92px;
  top: 50%;
  left: 0;
  background: rgba(0, 34, 80, 0.22);
  content: "";
  transform: translateY(-50%);
}

.stat-overline {
  display: block;
  min-height: 28px;
  margin-bottom: 4px;
  color: rgba(1, 50, 98, 0.66);
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-card strong {
  display: flex;
  min-height: 76px;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  color: var(--navy-950);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(2.65rem, 4.4vw, 3.7rem);
  font-weight: 700;
  line-height: 1.1;
}

.stat-card strong small {
  color: var(--navy-950);
  font-family: "Noto Kufi Arabic", Tahoma, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.stat-card p {
  margin: 5px 0 0;
  color: rgba(1, 50, 98, 0.76);
  font-size: 0.9rem;
  font-weight: 600;
}

.section-pattern {
  width: 680px;
  height: 680px;
  right: -280px;
  bottom: -210px;
  opacity: 0.1;
  mix-blend-mode: screen;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 650px;
}

.section-heading--center {
  max-width: 760px;
  margin-right: auto;
  margin-bottom: 48px;
  margin-left: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--light h2 {
  color: var(--white);
}

.section-heading--light > p:not(.eyebrow) {
  margin-inline: auto;
  color: #bdcbe0;
}

.services-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 314px;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  padding: 20px 17px 64px; /* مساحة أسفل النص للرقم الزخرفي */
  text-align: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.service-card::after {
  position: absolute;
  width: 0;
  height: 3px;
  right: 26px;
  bottom: 0;
  border-radius: 6px 6px 0 0;
  background: var(--gold);
  content: "";
  transition: width 0.25s ease;
}

.service-card:hover {
  border-color: rgba(244, 180, 0, 0.7);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-5px);
}

.service-card:hover::after {
  width: 64px;
}

.service-icon {
  display: grid;
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
  transform: translateY(-4px) scale(1.04);
}

.service-card h3 {
  margin: 2px 0 8px;
  color: var(--white);
  font-size: 0.9rem;
}

.service-card p {
  margin-bottom: 0;
  color: #b8c8de;
  font-size: 0.9rem;
  line-height: 1.9;
}

.service-number {
  position: absolute;
  left: 18px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.07);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
}

.services-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.065);
  padding: 25px 28px;
}

.services-footer > div {
  display: grid;
  gap: 2px;
}

.services-footer strong {
  color: var(--white);
  font-size: 1.02rem;
}

.services-footer span {
  color: #b8c8de;
  font-size: 0.9rem;
}

.portfolio {
  background: var(--off-white);
}

.heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.heading-row h2 {
  margin-bottom: 0;
}

.heading-row p {
  max-width: 470px;
  margin-bottom: 4px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.filter-button {
  border: 1px solid #d6dbe3;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--gold);
  background: var(--gold);
}

.portfolio-grid {
  display: grid;
  grid-auto-rows: 300px;
  grid-auto-flow: dense; /* يملأ الفراغات التي تتركها البطاقات العريضة */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 19px;
  background: var(--navy-900);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(1, 50, 98, 0.1);
}

.project-card--wide {
  grid-column: span 2;
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  min-height: 52%;
  align-content: end;
  justify-items: start;
  background: linear-gradient(transparent, rgba(1, 50, 98, 0.94));
  color: var(--white);
  padding: 26px;
  text-align: right;
}

.project-overlay small {
  margin-bottom: 3px;
  color: var(--gold-light);
  font-size: 0.76rem;
}

.project-overlay strong {
  font-size: 1.08rem;
}

.project-overlay em {
  position: absolute;
  left: 24px;
  bottom: 25px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-style: normal;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card:hover img {
  transform: scale(1.055);
}

.project-card:hover .project-overlay em {
  opacity: 1;
  transform: translateX(0);
}

.case-study {
  background: var(--white);
  padding-top: 94px;
}

.case-shell {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-950), #0b4a8a);
  color: var(--white);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 58px;
  padding: 64px;
  box-shadow: var(--shadow);
}

.case-pattern {
  width: 560px;
  height: 560px;
  right: -210px;
  bottom: -250px;
  opacity: 0.09;
  mix-blend-mode: screen;
}

.case-copy,
.case-visual {
  position: relative;
  z-index: 2;
}

.case-copy h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
}

.case-steps {
  position: relative;
  display: grid;
  gap: 11px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.case-steps::before {
  position: absolute;
  width: 2px;
  top: 28px;
  right: 20px;
  bottom: 28px;
  background: var(--gold);
  content: "";
}

.case-steps li {
  position: relative;
  display: grid;
  align-items: start;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  border-radius: 16px;
  padding: 15px;
}

.case-steps li > span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-950);
  font-size: 0.72rem;
  font-weight: 700;
}

.case-steps h3 {
  margin: 0 0 3px;
  color: var(--gold-light);
  font-size: 1rem;
}

.case-steps p {
  margin: 0;
  color: #bdcbe0;
  font-size: 0.8rem;
  line-height: 1.8;
}

.case-steps .case-result {
  background: var(--gold);
  color: var(--navy-950);
}

.case-steps .case-result > span {
  background: var(--navy-900);
  color: var(--white);
}

.case-steps .case-result h3,
.case-steps .case-result p {
  color: var(--navy-950);
}

.case-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.comparison {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: var(--off-white);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.comparison img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  user-select: none;
}

.comparison-before {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
  overflow: hidden;
}

.comparison-before img {
  width: 100%;
}

.comparison-handle {
  position: absolute;
  z-index: 4;
  width: 3px;
  height: 100%;
  top: 0;
  left: var(--position);
  background: var(--gold);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-handle i {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  top: 50%;
  left: 50%;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.23);
  transform: translate(-50%, -50%);
}

.comparison-handle i::after,
.comparison-handle i::before {
  position: absolute;
  color: var(--navy-950);
  content: "‹";
  font-size: 1.55rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.comparison-handle i::before {
  right: 5px;
}

.comparison-handle i::after {
  left: 5px;
  content: "›";
}

.comparison input {
  position: absolute;
  z-index: 6;
  width: 100%;
  height: 100%;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.comparison-label {
  position: absolute;
  z-index: 5;
  top: 15px;
  border-radius: 99px;
  background: rgba(1, 50, 98, 0.82);
  color: var(--white);
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.comparison-label--before {
  left: 15px;
}

.comparison-label--after {
  right: 15px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0 18px;
}

.case-tags span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #dbe6f5;
  padding: 6px 13px;
  font-size: 0.72rem;
}

.process {
  background: var(--off-white);
}

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

.process-grid::before {
  position: absolute;
  z-index: 0;
  top: 39px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 15px);
  content: "";
}

.process-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 27px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 34, 80, 0.045);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.process-card:hover {
  border-color: rgba(244, 180, 0, 0.62);
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.process-card > span {
  position: absolute;
  display: grid;
  width: 34px;
  height: 34px;
  top: -17px;
  right: 50%;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.90rem;
  font-weight: 700;
  transform: translateX(50%);
}

.process-card > svg {
  width: 42px;
  height: 42px;
  margin: 28px auto 17px;
  color: var(--navy-800);
}

.process-card h3 {
  margin-bottom: 8px;
  color: var(--navy-900);
  font-size: 1.06rem;
}

.process-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.why-us {
  background: var(--white);
}

.why-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
}

.why-intro p:not(.eyebrow) {
  max-width: 490px;
}

.why-intro .button {
  margin-top: 12px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.benefit-card {
  min-height: 205px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fafc;
  padding: 25px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.outcomes {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-bottom: 116px;
}

.outcomes-shell {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-950), #0b4a8a);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  padding: 52px;
  box-shadow: var(--shadow);
}

.outcomes-shell::before {
  position: absolute;
  width: 470px;
  height: 470px;
  right: -205px;
  bottom: -250px;
  background: url("../images/brain-bg.webp") center / cover no-repeat;
  content: "";
  opacity: 0.08;
}

.outcomes-intro,
.outcomes-grid {
  position: relative;
  z-index: 1;
}

.outcomes-intro h2 {
  margin-bottom: 13px;
  color: var(--white);
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
}

.outcomes-intro > p:not(.eyebrow) {
  max-width: 500px;
  margin-bottom: 0;
  color: #bdcbe0;
  font-size: 0.9rem;
}

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

.outcomes-grid article {
  display: flex;
  min-height: 126px;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.065);
  padding: 20px;
}

.outcomes-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 700;
}

.outcomes-grid h3 {
  margin: 0 0 3px;
  color: var(--white);
  font-size: 1rem;
}

.outcomes-grid p {
  margin: 0;
  color: #b8c8de;
  font-size: 0.9rem;
}

.benefit-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.benefit-card svg {
  width: 38px;
  height: 38px;
  color: var(--gold);
}

.benefit-card h3 {
  margin: 17px 0 7px;
  color: var(--navy-900);
  font-size: 1rem;
}

.benefit-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.clients {
  overflow: hidden;
  border-top: 1px solid #ecefe9;
  background: var(--off-white);
}

.clients .section-heading > p:not(.eyebrow) {
  margin-inline: auto;
}

.logo-wall {
  position: relative;
  display: grid;
  gap: 14px;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  padding-block: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.logo-track {
  display: flex;
  width: max-content;
  direction: ltr;
  will-change: transform;
}

.logo-track.is-ready {
  animation: logoMarquee var(--duration, 48s) linear infinite;
}

.logo-marquee--reverse .logo-track.is-ready {
  animation-direction: reverse;
}

.logo-set {
  display: flex;
  flex: none;
  gap: 14px;
  padding-right: 14px;
}

.client-logo {
  display: grid;
  width: 188px;
  height: 112px;
  flex: none;
  place-items: center;
  margin: 0;
  border: 1px solid #e0e5eb;
  border-radius: 16px;
  background: #f3f3ee;
  padding: 15px 18px;
  box-shadow: 0 10px 24px rgba(0, 34, 80, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.client-logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80px;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.25s ease;
}

.client-logo:hover {
  border-color: rgba(244, 180, 0, 0.72);
  box-shadow: 0 16px 30px rgba(0, 34, 80, 0.1);
  transform: translateY(-3px);
}

.client-logo:hover img {
  transform: scale(1.035);
}

.logo-wall:hover .logo-track,
.logo-wall:focus-within .logo-track {
  animation-play-state: paused;
}

@keyframes logoMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.client-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f3f3ef;
  box-shadow: 0 18px 46px rgba(0, 34, 80, 0.08);
}

.client-track {
  display: flex;
  direction: ltr;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.client-slide {
  min-width: 100%;
  margin: 0;
}

.client-slide img {
  width: 100%;
  aspect-ratio: 1400 / 712;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  top: 50%;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(1, 50, 98, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-button svg {
  width: 20px;
  height: 20px;
}

.carousel-button--next {
  right: 18px;
  transform: translateY(-50%) rotate(180deg);
}

.carousel-button--prev {
  left: 18px;
}

.carousel-dots {
  position: absolute;
  z-index: 3;
  display: flex;
  bottom: 14px;
  left: 50%;
  gap: 7px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 34, 80, 0.3);
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.carousel-dots button.is-active {
  width: 26px;
  border-radius: 9px;
  background: var(--gold);
}

.faq {
  background: var(--white);
}

.faq-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.faq-intro > p:not(.eyebrow) {
  max-width: 540px;
  text-wrap: pretty; /* لا تترك كلمة وحيدة في آخر سطر */
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item h3 {
  margin: 0;
}

.accordion-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: transparent;
  color: var(--navy-900);
  padding: 24px 3px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.accordion-item button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.accordion-item button[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.accordion-panel {
  padding: 0 3px 22px;
}

.accordion-panel p {
  max-width: 720px;
  margin: 0;
  font-size: 0.9rem;
}

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, var(--gold), var(--gold-light));
  padding-block: 48px;
}

.cta-pattern {
  width: 490px;
  height: 490px;
  right: -130px;
  top: -210px;
  opacity: 0.12;
  mix-blend-mode: multiply;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cta-inner p {
  margin-bottom: 2px;
  color: rgba(1, 50, 98, 0.7);
  font-size: 0.86rem;
  font-weight: 700;
}

.cta-inner h2 {
  margin-bottom: 2px;
  color: var(--navy-950);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.cta-inner span {
  color: rgba(1, 50, 98, 0.68);
  font-size: 0.88rem;
}

.site-footer {
  background: var(--navy-950);
  color: var(--white);
  padding: 70px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 0.8fr);
  gap: 56px;
}

.footer-brand img {
  width: auto;
  height: 88px;
  margin-bottom: 13px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 320px;
  color: #aebfd7;
  font-size: 0.82rem;
}

.footer-brand > a {
  color: var(--gold-light);
  font-size: 0.84rem;
}

.site-footer h2 {
  display: inline-block;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gold);
  color: var(--white);
  padding-bottom: 7px;
  font-size: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #aebfd7;
  font-size: 0.8rem;
  list-style: none;
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer address {
  display: grid;
  gap: 12px;
  color: #aebfd7;
  font-size: 0.8rem;
  font-style: normal;
}

.site-footer address a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
}

.site-footer address svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.site-footer .footer-social {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-social a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(240, 240, 236, 0.18);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  background: var(--gold);
  color: var(--navy-950);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #8398b5;
  font-size: 0.72rem;
}

.back-to-top {
  position: fixed;
  z-index: 80;
  width: 46px;
  height: 46px;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--gold);
  color: var(--navy-950);
  box-shadow: 0 12px 28px rgba(1, 50, 98, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(15px);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  transform: rotate(90deg);
}

.project-dialog {
  width: min(920px, calc(100% - 34px));
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 26px;
  background: var(--white);
  padding: 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
}

.project-dialog::backdrop {
  background: rgba(0, 13, 34, 0.82);
  backdrop-filter: blur(6px);
}

.project-dialog > img {
  width: 100%;
  max-height: 590px;
  object-fit: cover;
}

.project-dialog > div {
  padding: 24px 28px 30px;
}

.project-dialog p {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
}

.project-dialog h2 {
  margin: 0;
  font-size: 1.65rem;
}

.dialog-close {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  top: 15px;
  left: 15px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(1, 50, 98, 0.88);
  color: var(--white);
  cursor: pointer;
}

.dialog-close svg {
  width: 20px;
  height: 20px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1100px) {
  .site-nav {
    gap: 21px;
  }

  .header-inner {
    gap: 22px;
  }

  .hero {
    min-height: 750px;
  }

  .hero-grid {
    gap: 50px;
  }

  .stat-board {
    min-height: 0;
  }

  .hero-note {
    width: 118px;
    height: 118px;
  }


  .value-flow__track {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  }

  .value-step {
    gap: 11px;
    padding: 22px 15px;
  }

  .value-step__number {
    width: 40px;
    height: 40px;
  }

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

  .case-shell {
    padding: 42px;
  }

  .outcomes-shell {
    gap: 34px;
    padding: 44px;
  }

  .footer-grid {
    gap: 30px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(100% - 36px, 720px);
  }

  .section {
    padding-block: 82px;
  }

  .header-inner {
    justify-content: space-between;
  }

  .brand {
    width: 68px;
  }

  .brand img {
    height: 54px;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .header-cta {
    margin-right: auto;
  }

  /* backdrop-filter على الهيدر يحصر القائمة الثابتة داخل ارتفاعه، فنلغيه أثناء فتح القائمة */
  .nav-open .site-header {
    background: var(--navy-950);
    backdrop-filter: none;
  }

  .nav-open::after {
    content: "";
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 90;
    background: rgba(0, 10, 30, 0.55);
  }

  .site-nav {
    position: fixed;
    z-index: 2;
    top: var(--header-height);
    right: 0;
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    display: flex;
    width: min(360px, 88vw);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--navy-950);
    padding: 27px 28px;
    box-shadow: -24px 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateX(105%);
    transition: transform 0.3s ease;
  }

  .site-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    padding: 16px 2px;
  }

  .nav-open .site-nav {
    transform: translateX(0);
  }

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

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

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

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .hero-grid,
  .about-grid,
  .case-shell,
  .why-grid,
  .faq-grid,
  .outcomes-shell {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: clamp(2.65rem, 8.5vw, 4.1rem);
  }

  .hero-visual {
    width: min(620px, 100%);
    min-height: 0;
    margin-inline: auto;
  }

  .trust-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .trust-inner > p {
    text-align: center;
  }

  .value-flow {
    padding-block: 52px 58px;
  }

  .value-flow__track {
    width: min(620px, 100%);
    grid-template-columns: 1fr;
    margin: 30px auto 0;
  }

  .value-step {
    min-height: 118px;
    padding: 22px 24px;
  }

  .value-arrow {
    width: 100%;
    min-height: 48px;
  }

  .value-arrow::before {
    width: 2px;
    height: 100%;
  }

  .value-arrow svg {
    width: 23px;
    height: 23px;
    top: auto;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
  }

  .value-arrow i {
    top: 3px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .js .value-flow.is-visible .value-arrow i {
    animation-name: valueDotVertical;
  }

  .about-grid {
    gap: 58px;
  }

  .about-media {
    order: 2;
  }

  .story-grid {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .story-card {
    min-height: auto;
  }

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

  .client-logo {
    width: 168px;
    height: 102px;
    padding: 13px 16px;
  }

  .client-logo img {
    max-height: 72px;
  }

  .statistics-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

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

  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(0, 34, 80, 0.18);
  }

  .stat-card::after {
    display: none;
  }

  .stat-card:nth-child(odd)::after {
    display: block;
  }

  .services-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .project-card--wide {
    grid-column: span 1;
  }

  .case-shell {
    gap: 40px;
  }

  .case-copy {
    order: 1;
  }

  .case-visual {
    order: 2;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .process-grid::before {
    display: none;
  }

  .why-grid,
  .faq-grid {
    gap: 48px;
  }

  .outcomes {
    padding-bottom: 82px;
  }

  .outcomes-shell {
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 520px);
  }

  .section {
    padding-block: 68px;
  }

  h2 {
    font-size: 1.65rem;
  }

  .header-inner {
    gap: 10px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 118px;
    padding-bottom: 62px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11.5vw, 3.2rem);
  }

  .hero-lead {
    font-size: 0.84rem;
  }

  .hero-actions .button {
    flex: 1 1 160px;
  }

  .hero-proof {
    display: grid;
    gap: 6px;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-card--main {
    width: 85%;
    height: 57%;
  }

  .hero-card--top {
    width: 48%;
    height: 36%;
  }

  .hero-card--bottom {
    width: 49%;
    height: 36%;
  }

  .hero-note {
    width: 90px;
    height: 90px;
    right: 2%;
  }

  .hero-note strong {
    font-size: 1rem;
  }

  .hero-note span {
    font-size: 0.68rem;
  }


  .trust-logo {
    min-height: 64px;
    padding: 8px 10px;
  }

  .trust-logo img {
    max-height: 45px;
  }

  .value-flow {
    padding-block: 44px 50px;
  }

  .value-flow__heading h2 {
    font-size: 1.5rem;
  }

  .value-flow__heading > p:last-child {
    font-size: 0.76rem;
  }

  .value-step {
    min-height: 112px;
    gap: 13px;
    padding: 20px 18px;
  }

  .value-step h3 {
    font-size: 1rem;
  }

  .statistics {
    padding-block: 52px;
  }

  .statistics-heading {
    margin-bottom: 25px;
  }

  .stat-card {
    min-height: 154px;
    padding: 19px 9px 13px;
  }

  .stat-card strong {
    min-height: 62px;
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .stat-card strong small {
    font-size: 0.68rem;
  }

  .stat-card p,
  .stat-overline {
    font-size: 0.66rem;
  }

  .about-media {
    min-height: 350px;
  }

  .services-grid,
  .portfolio-grid,
  .process-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 20px 20px 60px;
  }

  .service-icon {
    width: 146px;
    height: 146px;
    flex-basis: 146px;
  }

  .services-footer {
    padding: 22px;
  }

  .services-footer .button {
    width: 100%;
  }

  .portfolio-grid {
    grid-auto-rows: 250px;
  }

  .portfolio-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .case-shell {
    margin-inline: -4px;
    border-radius: 24px;
    padding: 28px 20px;
  }

  .outcomes {
    padding-bottom: 68px;
  }

  .outcomes-shell {
    margin-inline: -4px;
    border-radius: 24px;
    padding: 30px 20px;
  }

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

  .outcomes-grid article {
    min-height: 106px;
  }

  .case-copy h2 {
    font-size: 1.55rem;
  }

  .case-steps li {
    padding-inline: 6px;
  }

  .comparison-handle i {
    width: 42px;
    height: 42px;
  }

  .process-grid {
    gap: 24px;
  }

  .logo-wall {
    gap: 10px;
  }

  .logo-set {
    gap: 10px;
    padding-right: 10px;
  }

  .client-logo {
    width: 148px;
    height: 92px;
    border-radius: 13px;
    padding: 11px 14px;
  }

  .client-logo img {
    max-height: 64px;
  }

  .client-carousel {
    border-radius: 18px;
  }

  .client-slide img {
    min-height: 310px;
    object-fit: cover;
  }

  .carousel-button {
    width: 39px;
    height: 39px;
  }

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

  .cta-inner .button {
    width: 100%;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

/* ============ صفحة تواصل معنا ============ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- الواجهة: نص + محادثة --- */
.talk-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 64px) 0 96px;
  background-color: var(--navy-950);
  background-image:
    radial-gradient(circle at 18% 70%, rgba(244, 180, 0, 0.16) 0, rgba(244, 180, 0, 0) 32%),
    radial-gradient(circle at 80% 20%, rgba(29, 90, 158, 0.55) 0, rgba(29, 90, 158, 0) 45%),
    linear-gradient(135deg, var(--navy-950), #00264d);
  color: var(--white);
}

.talk-hero .hero-pattern {
  inset: 0;
  opacity: 0.07;
}

.talk-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.talk-hero h1 {
  position: relative;
  display: block;
  width: fit-content;
  margin: 4px 0 18px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.2;
}

/* خط مرسوم باليد تحت العنوان */
.scribble-line {
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 100%;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11C60 3 120 2 180 6s90 6 117-1' fill='none' stroke='%23f4b400' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: right;
  animation: draw-line 1s 0.3s cubic-bezier(0.6, 0, 0.2, 1) both;
}

@keyframes draw-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.talk-hero__lead {
  max-width: 52ch;
  margin: 0 0 28px;
  color: #cfd9ea;
  font-size: 1.05rem;
  line-height: 1.95;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(240, 240, 236, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.quick-action svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.quick-action:hover,
.quick-action:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-950);
  transform: translateY(-2px);
}

.quick-action:hover svg,
.quick-action:focus-visible svg {
  color: var(--navy-950);
}

.quick-action--whatsapp {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-950);
}

.quick-action--whatsapp svg {
  color: var(--navy-950);
}

/* نافذة محادثة بشكل تطبيق مراسلة */
.chat {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 240, 236, 0.16);
  border-radius: 30px;
  background: rgba(6, 30, 62, 0.72);
  box-shadow: 0 40px 80px rgba(0, 8, 24, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transform: rotate(-2deg);
  animation: chat-float 7s ease-in-out infinite;
}

@keyframes chat-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1.4deg) translateY(-10px); }
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(240, 240, 236, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
}

.chat__logo {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.chat__who {
  display: grid;
  flex: 1;
  line-height: 1.35;
}

.chat__who strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.chat__who small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a9bbd6;
  font-size: 0.74rem;
}

.chat__online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(244, 180, 0, 0.6);
  animation: online-pulse 2s infinite;
}

@keyframes online-pulse {
  70% { box-shadow: 0 0 0 7px rgba(244, 180, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 180, 0, 0); }
}

.chat__head-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.chat__head-icon svg {
  width: 18px;
  height: 18px;
}

.chat__body {
  display: grid;
  gap: 6px;
  padding: 16px 18px 12px;
  background-image: radial-gradient(rgba(240, 240, 236, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}

.chat__day {
  justify-self: center;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 12px;
  color: #a9bbd6;
  font-size: 0.7rem;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  animation: bubble-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards;
}

.msg--us {
  justify-content: flex-end;
}

/* رسالة متتابعة من نفس الشخص: بدون صورة ومسافة أقل */
.msg--them.msg--cont {
  padding-inline-start: 36px;
}

.msg--us.msg--cont {
  padding-inline-end: 36px;
}

.msg__avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #e7ecf4;
  color: var(--navy-800);
}

.msg__avatar svg {
  width: 16px;
  height: 16px;
}

.msg__bubble {
  max-width: 78%;
  margin: 0;
  padding: 10px 14px 8px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.6;
  box-shadow: 0 6px 16px rgba(0, 8, 24, 0.18);
}

.msg__bubble time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-inline-start: 8px;
  font-size: 0.66rem;
  opacity: 0.6;
  vertical-align: bottom;
  direction: ltr;
}

.msg--them .msg__bubble {
  border-start-start-radius: 6px;
  background: var(--off-white);
  color: var(--navy-950);
}

.msg--them.msg--cont .msg__bubble {
  border-start-start-radius: 18px;
}

.msg--us .msg__bubble {
  border-start-end-radius: 6px;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 700;
}

.msg--us.msg--cont .msg__bubble {
  border-start-end-radius: 18px;
}

.msg__ticks {
  color: #1d5a9e;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.32em;
  padding-inline-end: 0.3em;
}

.msg:nth-of-type(1) { animation-delay: 0.3s; }
.msg:nth-of-type(2) { animation-delay: 0.9s; }
.msg:nth-of-type(3) { animation-delay: 1.7s; }
.msg:nth-of-type(4) { animation-delay: 2.3s; }

/* "يكتب الآن" يظهر ثم يختفي، وبعده رسالة الدعوة لواتساب */
.chat__typing {
  display: inline-flex;
  justify-self: end;
  gap: 5px;
  margin-inline-end: 36px;
  border-radius: 18px;
  background: rgba(244, 180, 0, 0.25);
  padding: 0 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  animation: typing-show 1.6s 2.9s forwards;
}

.chat__typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: typing 1.2s infinite ease-in-out;
}

.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-show {
  0% { max-height: 0; padding-block: 0; opacity: 0; }
  15%, 85% { max-height: 40px; padding-block: 12px; opacity: 1; }
  100% { max-height: 0; padding-block: 0; opacity: 0; }
}

.msg--cta {
  animation-delay: 4.5s;
}

.msg--cta .msg__bubble {
  display: grid;
  gap: 10px;
  max-width: 86%;
}

.msg__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--navy-950);
  padding: 9px 14px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.msg__action svg {
  width: 18px;
  height: 18px;
}

.msg__action:hover,
.msg__action:focus-visible {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.chat__composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 14px 14px;
  border: 1px solid rgba(240, 240, 236, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 6px 6px 6px;
  padding-inline-start: 18px;
  color: #a9bbd6;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chat__composer span:first-child {
  flex: 1;
}

.chat__composer:hover,
.chat__composer:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.chat__send {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-950);
}

.chat__send svg {
  width: 18px;
  height: 18px;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(14px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* --- المحتوى --- */
.contact-section {
  padding-block: 70px 96px;
  background: var(--off-white);
}

.contact-heading {
  margin: 0 0 22px;
  color: var(--navy-950);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

/* بطاقات طرق التواصل */
.channels {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.channel {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 14px 16px;
  color: var(--navy-950);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.channel:hover,
.channel:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 18px 38px rgba(1, 50, 98, 0.12);
  transform: translateY(-4px);
}

.channel__icon {
  display: grid;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(244, 180, 0, 0.18);
  transition: transform 0.25s ease;
}

.channel:hover .channel__icon {
  transform: rotate(-8deg) scale(1.08);
}

.channel__icon svg {
  width: 21px;
  height: 21px;
}

.channel strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.channel small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel__go {
  display: none;
}

.channel__go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.channel:hover .channel__go svg {
  transform: translateX(-4px);
}

.channel--whatsapp {
  border-color: var(--navy-950);
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: #fff;
}

.channel--whatsapp .channel__icon {
  background: var(--gold);
  color: var(--navy-950);
}

.channel--whatsapp small,
.channel--whatsapp .channel__go {
  color: rgba(255, 255, 255, 0.9);
}

.channel--whatsapp:hover,
.channel--whatsapp:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 18px 38px rgba(1, 50, 98, 0.3);
}

/* اختيار الخدمة → واتساب برسالة جاهزة */
.ask-service {
  margin-top: 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.ask-service__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.ask-service__head h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.35rem;
}

.ask-service__head p {
  margin: 2px 0 0;
  color: var(--muted);
}

.ask-service__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 180, 0, 0.18);
  color: var(--navy-950);
}

.ask-service__icon svg {
  width: 24px;
  height: 24px;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #dcdfe5;
  border-radius: 999px;
  background: #fbfbf9;
  padding: 6px 16px 6px 14px;
  color: var(--navy-950);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.service-link__icon {
  width: 34px;
  height: 34px;
  flex: none;
  margin-inline-start: -8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.service-link:hover .service-link__icon {
  transform: rotate(-10deg) scale(1.08);
}

.service-link svg {
  width: 15px;
  height: 15px;
  opacity: 0;
  margin-inline-start: -6px;
  transition: opacity 0.18s ease, margin 0.18s ease;
}

.service-link:hover,
.service-link:focus-visible {
  border-color: var(--navy-950);
  background: var(--navy-950);
  color: var(--white);
  transform: translateY(-2px);
}

.service-link:hover svg,
.service-link:focus-visible svg {
  opacity: 1;
  margin-inline-start: 0;
}

.service-link--other {
  border-style: dashed;
  border-color: var(--gold);
  background: rgba(244, 180, 0, 0.12);
}

/* الزيارة: بطاقة المبنى + الخريطة */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  margin-top: 28px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.visit .map-card {
  margin-top: 0;
}

.visit .map-card iframe {
  height: 100%;
  min-height: 360px;
}

.hours {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.hours__status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: rgba(240, 240, 236, 0.14);
  padding: 4px 12px;
  color: #d6e0ef;
  font-size: 0.8rem;
  font-weight: 700;
}

.hours__status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a9b4c4;
  content: "";
}

.hours__status.is-open {
  background: rgba(244, 180, 0, 0.2);
  color: var(--gold-light);
}

.hours__status.is-open::before {
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(244, 180, 0, 0.6);
  animation: online-pulse 2s infinite;
}

.hours__line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d6e0ef;
  font-size: 0.86rem;
}

.hours__line svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.contact-social {
  margin-top: 28px;
}

/* --- بطاقة الزيارة مع المبنى --- */
.visit-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  padding: 26px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.visit-card h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.35rem;
}

.visit-card address {
  display: grid;
  gap: 2px;
  color: #d6e0ef;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.8;
}

.visit-card address span:first-child {
  color: var(--white);
  font-weight: 700;
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.button--sm {
  min-height: 42px;
  padding: 9px 18px;
}

.text-link--light {
  color: var(--white);
}

.building {
  display: grid;
  align-self: end;
  gap: 4px;
}

.building__roof {
  justify-self: center;
  width: 70%;
  height: 10px;
  border-radius: 6px 6px 0 0;
  background: rgba(240, 240, 236, 0.25);
}

.building__floor {
  position: relative;
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(240, 240, 236, 0.16) 0 14px, transparent 14px 24px) center / 80% 12px no-repeat,
    rgba(240, 240, 236, 0.08);
  font-size: 0.66rem;
  color: rgba(240, 240, 236, 0.55);
}

.building__floor span:last-child {
  position: relative;
  border-radius: 4px;
  background: #0f3f75;
  padding: 1px 7px;
}

.building__floor.is-us span:last-child {
  background: var(--gold);
}

.building__floor--ground span:last-child {
  background: transparent;
}

.building__floor.is-us {
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.25), 0 0 26px rgba(244, 180, 0, 0.55);
  animation: glow 2.4s ease-in-out infinite;
}

.building__floor--ground {
  min-height: 46px;
  border-bottom: 4px solid rgba(240, 240, 236, 0.35);
  background: rgba(240, 240, 236, 0.14);
  color: var(--off-white);
}

.building__pin {
  position: absolute;
  top: -30px;
  left: 50%;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  background: var(--white);
  color: var(--navy-950);
  transform: translateX(-50%) rotate(-45deg);
  animation: pin-bounce 1.8s ease-in-out infinite;
}

.building__pin svg {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
}

@keyframes pin-bounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.25), 0 0 18px rgba(244, 180, 0, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(244, 180, 0, 0.3), 0 0 32px rgba(244, 180, 0, 0.7); }
}

.contact-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: rgba(244, 180, 0, 0.18);
  color: var(--navy-950);
  transition: transform 0.25s ease;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

/* --- السوشال --- */
.contact-social {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.contact-social h2 {
  margin: 0 0 14px;
  color: var(--navy-950);
  font-size: 1.05rem;
}

.contact-social ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  border-radius: 16px;
  background: var(--off-white);
  padding: 16px 10px;
  color: var(--navy-950);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-tile svg {
  width: 26px;
  height: 26px;
}

.social-tile:hover,
.social-tile:focus-visible {
  color: var(--white);
  transform: translateY(-4px) rotate(-2deg);
}

.social-tile--instagram:hover,
.social-tile--instagram:focus-visible { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.social-tile--facebook:hover,
.social-tile--facebook:focus-visible { background: #1877f2; }
.social-tile--tiktok:hover,
.social-tile--tiktok:focus-visible { background: #111; }
.social-tile--linkedin:hover,
.social-tile--linkedin:focus-visible { background: #0a66c2; }

/* --- الخريطة --- */
.map-card {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border: 6px solid var(--white);
  border-radius: var(--radius-lg);
  background: #e7e7e1;
  box-shadow: var(--shadow);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: saturate(0.85);
}

.map-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--navy-950);
  padding: 10px 18px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(1, 50, 98, 0.3);
}

.map-card__badge svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #aebfd7;
  font-size: 0.82rem;
}

.breadcrumb a:hover,
.breadcrumb [aria-current] {
  color: var(--gold-light);
}

@media (max-width: 980px) {
  .talk-hero__grid,
  .visit {
    grid-template-columns: 1fr;
  }

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

  .chat {
    max-width: 480px;
  }
}

@media (max-width: 620px) {
  .talk-hero {
    padding: calc(var(--header-height) + 36px) 0 64px;
  }

  .chat {
    transform: none;
    animation: none;
  }

  .msg__bubble {
    max-width: 86%;
    font-size: 0.88rem;
  }

  .channels {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .channel {
    padding: 12px 14px;
    column-gap: 12px;
  }

  .channel__icon {
    width: 36px;
    height: 36px;
  }

  .ask-service {
    padding: 20px;
  }

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

  .service-link {
    gap: 6px;
    padding: 5px 10px 5px 8px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .service-link__icon {
    width: 30px;
    height: 30px;
    margin-inline-start: -4px;
  }

  .service-link > svg {
    display: none;
  }

  .service-link--other {
    grid-column: 1 / -1;
  }

  .visit-card {
    grid-template-columns: 1fr;
  }

  .building {
    width: 170px;
    justify-self: center;
    margin-top: 26px;
  }

  .map-card iframe,
  .visit .map-card iframe {
    height: 300px;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scribble-line,
  .msg {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .chat,
  .chat__online,
  .chat__typing,
  .chat__typing i,
  .hours__status.is-open::before,
  .building__pin,
  .building__floor.is-us {
    animation: none;
  }
}

/* اسم الشركة فوق دبوس الخريطة (الخريطة متمركزة على الإحداثيات، فالدبوس في المنتصف) */
.map-label {
  position: absolute;
  top: calc(50% - 46px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--navy-950);
  padding: 5px 8px 5px 14px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(1, 50, 98, 0.35);
  transform: translate(-50%, -100%);
}

.map-label::after {
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  background: var(--navy-950);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.map-label img {
  border-radius: 50%;
  background: #fff;
}

.map-label small {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 0.7rem;
  opacity: 0.8;
}

/* صورة العمارة الحقيقية بدل الرسمة (عند رفعها من لوحة التحكم) */
.building-photo {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  min-height: 220px;
  margin: 0;
  border-radius: 16px;
  border: 2px solid rgba(244, 180, 0, 0.6);
}

.building-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.building-photo figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--gold);
  padding: 5px 8px;
  color: var(--navy-950);
  font-size: 0.72rem;
  font-weight: 700;
}

.building-photo figcaption svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 620px) {
  .building-photo {
    min-height: 240px;
  }
}

.visit-card:has(.building-photo) {
  grid-template-columns: 200px minmax(0, 1fr);
}

@media (max-width: 620px) {
  .visit-card:has(.building-photo) {
    grid-template-columns: 1fr;
  }
}
