/* ===========================================================
   بوابة أريدو — التنسيقات الرئيسية
   لوحة الألوان مستخرجة من اللوغو (كحلي ملكي + أزرق كهربائي)
   عدّل المتغيّرات في :root لتغيير الهوية بالكامل
   =========================================================== */

:root {
  /* ===== الألوان ===== */
  --navy: #011e84; /* الكحلي الملكي (أساسي) */
  --navy-deep: #050a33; /* كحلي غامق للخلفيات الداكنة */
  --blue: #0b46d9; /* أزرق متوسط (روابط/تدرّج) */
  --electric: #00a6ff; /* الأزرق الكهربائي (لمسة مميّزة) */
  --cyan: #34c5ff; /* سماوي فاتح */

  --ink: #0b1b3b; /* لون العناوين */
  --slate: #56668a; /* لون النصوص */
  --muted: #8a98b5; /* نصوص خافتة */

  --bg: #ffffff; /* الخلفية */
  --soft: #f2f6fc; /* خلفية الأقسام المتناوبة */
  --line: #e4eaf5; /* الحدود */
  --white: #ffffff;

  /* التدرّج المميّز (يحاكي تدرّج اللوغو) */
  --grad: linear-gradient(135deg, #011e84 0%, #0b46d9 52%, #00a6ff 100%);
  --grad-soft: linear-gradient(135deg, #eef3ff 0%, #e3f1ff 100%);

  --shadow-sm: 0 2px 10px rgba(11, 27, 59, 0.06);
  --shadow: 0 14px 40px rgba(7, 26, 90, 0.1);
  --shadow-lg: 0 28px 70px rgba(7, 26, 90, 0.18);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --nav-h: 76px;
}

/* ===== إعادة ضبط ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--bg);
  color: var(--slate);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Cairo", sans-serif;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 800;
}

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

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

ul {
  list-style: none;
}

/* ===== أدوات عامة ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

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

.section--soft {
  background: var(--soft);
}

.section__head {
  max-width: 640px;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.section__subtitle {
  margin-top: 14px;
  font-size: 1.12rem;
  color: var(--slate);
}

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== الأيقونات (SVG) ===== */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ===== الأزرار ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 70, 217, 0.32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(11, 70, 217, 0.42);
}

.btn-primary .icon {
  transition: transform 0.25s ease;
}

.btn-primary:hover .icon {
  transform: translateX(-4px); /* RTL: للأمام = لليسار */
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--electric);
  color: var(--blue);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===========================================================
   الشريط العلوي (Navbar)
   =========================================================== */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand__icon {
  height: 46px;
  width: auto;
}

.brand__name {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__links a {
  font-weight: 500;
  color: var(--slate);
  font-size: 0.98rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  inset-inline: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

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

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  padding: 10px 22px;
  font-size: 0.95rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
}

/* قائمة الموبايل */
.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  padding: 8px 22px 18px;
  z-index: 99;
}

.nav__mobile.open {
  display: flex;
  animation: slideDown 0.28s ease;
}

.nav__mobile a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  font-weight: 500;
}

.nav__mobile a:last-of-type {
  border-bottom: none;
}

.nav__mobile .btn {
  margin-top: 14px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================================
   الهيرو (Hero)
   =========================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 90px;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
}

/* عناصر الخلفية الزخرفية */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero__glow--1 {
  width: 460px;
  height: 460px;
  background: rgba(52, 197, 255, 0.4);
  top: -120px;
  inset-inline-start: -80px;
  animation: float1 11s ease-in-out infinite;
}

.hero__glow--2 {
  width: 360px;
  height: 360px;
  background: rgba(0, 30, 132, 0.55);
  bottom: -120px;
  inset-inline-end: -60px;
  animation: float2 13s ease-in-out infinite;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
}

@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 40px) scale(1.12);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1.1);
  }
  50% {
    transform: translate(-30px, -30px) scale(1);
  }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  line-height: 1.18;
  margin-top: 22px;
}

.hero h1 .accent {
  color: #bfe6ff;
}

.hero__sub {
  margin-top: 20px;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.hero__stats {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__stat .num {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: #fff;
}

.hero__stat .lbl {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

/* البطاقة الزجاجية: عرض الخدمتين كأطروحة الهيرو */
.hero__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  padding: 26px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.hero__card-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}

.hero-service {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-service + .hero-service {
  margin-top: 14px;
}

.hero-service:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-service__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 13px;
  color: var(--navy);
}

.hero-service__icon .icon {
  width: 26px;
  height: 26px;
}

.hero-service h4 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 2px;
}

.hero-service p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-floats {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 0.85rem;
  color: #fff;
}

.hero-chip .icon {
  width: 16px;
  height: 16px;
}

/* الموجة السفلية للانتقال للقسم الأبيض */
.hero__wave {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  width: 100%;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 70px;
  display: block;
}

/* ===========================================================
   من نحن (About)
   =========================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about__text p {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.about__text strong {
  color: var(--ink);
}

.about__points {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.about__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 500;
}

.about__points .icon {
  color: var(--electric);
  width: 22px;
  height: 22px;
}

.vision-card {
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--grad);
}

.vision-card h3 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.vision-card h3:not(:first-of-type) {
  margin-top: 26px;
}

.vision-card p {
  color: var(--slate);
}

/* ===========================================================
   الخدمات (Services) — الركيزتان
   =========================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 160px;
  height: 160px;
  background: var(--grad);
  opacity: 0.06;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 166, 255, 0.4);
}

.service-card:hover::after {
  opacity: 0.12;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 10px 22px rgba(11, 70, 217, 0.28);
}

.service-card__icon .icon {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-card > p {
  margin-bottom: 18px;
}

.service-card__list {
  display: grid;
  gap: 10px;
}

.service-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.98rem;
}

.service-card__list .icon {
  width: 18px;
  height: 18px;
  color: var(--electric);
}

/* ===========================================================
   لماذا أريدو (Why Us)
   =========================================================== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 166, 255, 0.35);
}

.feature__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 166, 255, 0.1);
  color: var(--blue);
  margin-bottom: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.feature:hover .feature__icon {
  background: var(--grad);
  color: #fff;
}

.feature h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.98rem;
}

/* ===========================================================
   مسيرتنا (Timeline)
   =========================================================== */
.timeline {
  position: relative;
  max-width: 760px;
}

.tl-item {
  display: flex;
  gap: 22px;
}

.tl-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--electric);
  display: grid;
  place-items: center;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(0, 166, 255, 0.12);
}

.tl-dot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.tl-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--electric), var(--line));
  margin-block: 4px;
}

.tl-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tl-card:hover {
  transform: translateX(-6px);
  border-color: rgba(0, 166, 255, 0.4);
}

.tl-year {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  color: var(--electric);
  font-size: 0.95rem;
}

.tl-card h3 {
  font-size: 1.3rem;
  margin: 4px 0 8px;
}

/* ===========================================================
   الحاسبة (Calculator)
   =========================================================== */
.calc {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.calc__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.calc__group {
  margin-bottom: 28px;
}

.calc__group:last-child {
  margin-bottom: 0;
}

.calc__label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.opt-grid {
  display: grid;
  gap: 12px;
}

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

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

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

.opt {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  font-family: "Tajawal", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.opt:hover {
  border-color: var(--electric);
}

.opt.active {
  border-color: var(--blue);
  background: rgba(0, 166, 255, 0.08);
  color: var(--blue);
}

.opt .icon {
  width: 26px;
  height: 26px;
}

.opt small {
  display: block;
  font-size: 0.78rem;
  color: var(--electric);
  font-weight: 700;
}

/* بطاقة النتيجة */
.calc__result {
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.calc__result-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.calc__price {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  margin-top: 22px;
  line-height: 1;
  color: #fff;
}

.calc__currency {
  color: #bfe6ff;
  margin-top: 6px;
  font-weight: 500;
}

.calc__summary {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.calc__summary div {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
}

.calc__summary div span {
  color: #fff;
  font-weight: 600;
}

.calc__result .btn {
  margin-top: 28px;
  background: #fff;
  color: var(--navy);
}

.calc__result .btn:hover {
  background: #eaf4ff;
  transform: translateY(-3px);
}

/* ===========================================================
   الفريق (Team)
   =========================================================== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* الأحرف الأولى كصورة افتراضية */
.member__initials {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: rgba(11, 70, 217, 0.25);
  transition: color 0.3s ease;
}

.member:hover .member__initials {
  color: rgba(11, 70, 217, 0.4);
}

.member__social {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 40px 0 18px;
  background: linear-gradient(to top, rgba(1, 30, 132, 0.92), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.member:hover .member__social {
  transform: translateY(0);
}

.member__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.member__social a:hover {
  background: #fff;
  color: var(--navy);
}

.member__social .icon {
  width: 18px;
  height: 18px;
}

.member__info {
  padding: 20px;
  text-align: center;
}

.member__info h3 {
  font-size: 1.15rem;
}

.member__info span {
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ===========================================================
   تواصل (Contact)
   =========================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
}

.contact__info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.info-card__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(0, 166, 255, 0.1);
  color: var(--blue);
}

.info-card__icon .icon {
  width: 22px;
  height: 22px;
}

.info-card .lbl {
  font-size: 0.85rem;
  color: var(--muted);
}

.info-card .val {
  color: var(--ink);
  font-weight: 600;
}

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--slate);
  font-weight: 500;
}

.field.full {
  grid-column: 1 / -1;
}

.inp {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fbfcff;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: "Tajawal", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inp::placeholder {
  color: var(--muted);
}

.inp:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 4px rgba(0, 166, 255, 0.12);
}

textarea.inp {
  resize: vertical;
  min-height: 110px;
}

.form-errors {
  background: #fff4f4;
  border: 1px solid #ffd5d5;
  color: #c0392b;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

/* ===========================================================
   التذييل (Footer) — كحلي داكن
   =========================================================== */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--grad);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__icon {
  height: 50px;
}

.footer__brand-row span {
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}

.footer p {
  max-width: 320px;
  line-height: 1.7;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.25s ease;
}

.footer__socials a:hover {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.footer__socials .icon {
  width: 18px;
  height: 18px;
}

.footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.footer__col a,
.footer__col li {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--cyan);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===========================================================
   رسائل النظام (Toast)
   =========================================================== */
.toast-wrap {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(440px, 92vw);
  display: grid;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.35s ease;
}

.toast--success {
  background: #e9f9ef;
  color: #1c7a43;
  border: 1px solid #b8ecca;
}

.toast--error {
  background: #fff1f1;
  color: #c0392b;
  border: 1px solid #ffd0d0;
}

.toast .icon {
  width: 20px;
  height: 20px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================================
   أعمالنا (Portfolio) — تبويبات + شبكة + Lightbox
   =========================================================== */
.section__head--center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.section__head--center .eyebrow {
  justify-content: center;
}

/* --- أزرار التبويب --- */
.works__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.works__tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.works__tab .icon {
  width: 18px;
  height: 18px;
}
.works__tab:hover {
  border-color: var(--electric);
  color: var(--blue);
}
.works__tab.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 30, 132, 0.28);
}
.works__count {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
}
.works__tab.active .works__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* --- الشبكة --- */
.works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* --- البطاقة (زر لفتح الصورة) --- */
.work-card {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(
    to top,
    rgba(3, 10, 45, 0.9) 0%,
    rgba(3, 10, 45, 0.35) 42%,
    rgba(3, 10, 45, 0) 68%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-card__title {
  color: #fff;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: right;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.work-card__zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(1, 30, 132, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.work-card__zoom .icon {
  width: 22px;
  height: 22px;
  color: #fff;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.work-card:hover img {
  transform: scale(1.07);
}
.work-card:hover .work-card__overlay {
  opacity: 1;
}
.work-card:hover .work-card__title {
  transform: translateY(0);
}
.work-card:hover .work-card__zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.work-card:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

/* --- حالة فارغة --- */
.works__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.works__empty .icon {
  width: 34px;
  height: 34px;
  color: var(--electric);
}
.works__empty[hidden] {
  display: none;
}

/* --- نافذة التكبير (Lightbox) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 10, 45, 0.9);
  backdrop-filter: blur(4px);
  animation: lbFade 0.25s ease;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__figure {
  max-width: 900px;
  max-height: 86vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__figure figcaption {
  color: #fff;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close .icon,
.lightbox__nav .icon {
  width: 24px;
  height: 24px;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--electric);
}
.lightbox__close {
  top: 20px;
  left: 20px;
}
.lightbox__nav--prev {
  right: 20px;
}
.lightbox__nav--next {
  left: 20px;
}
.lightbox__nav--next .icon {
  transform: scaleX(-1); /* عكس السهم ليشير للتالي في واجهة RTL */
}
@keyframes lbFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===========================================================
   الباقات (Pricing / Packages)
   =========================================================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pkg:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--electric);
}
/* البطاقة المميّزة — إطار متدرّج */
.pkg--featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-lg);
}
.pkg__badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad);
  color: #fff;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(1, 30, 132, 0.32);
}

/* رأس البطاقة والسعر */
.pkg__head {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.pkg__name {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.pkg__price {
  direction: ltr;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--ink);
}
.pkg--featured .pkg__price {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pkg__cur {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
  align-self: flex-start;
  margin-top: 0.25em;
}
.pkg--featured .pkg__cur {
  color: var(--electric);
}
.pkg__per {
  margin-top: 6px;
  font-family: "Tajawal", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

/* قائمة الخدمات */
.pkg__list {
  flex: 1 1 auto;
  margin-bottom: 26px;
}
.pkg__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  color: var(--slate);
  font-size: 0.97rem;
  line-height: 1.6;
  border-bottom: 1px dashed var(--line);
}
.pkg__list li:last-child {
  border-bottom: none;
}
.pkg__list .icon {
  width: 18px;
  height: 18px;
  color: var(--electric);
  flex-shrink: 0;
  margin-top: 4px;
}

/* زر الطلب */
.pkg__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease,
    filter 0.25s ease;
}
.pkg__cta .icon {
  width: 18px;
  height: 18px;
}
.pkg__cta:hover {
  background: var(--navy);
  color: #fff;
}
.pkg--featured .pkg__cta {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 30, 132, 0.28);
}
.pkg--featured .pkg__cta:hover {
  filter: brightness(1.08);
  background: var(--grad);
  color: #fff;
}
.pricing__note {
  text-align: center;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===========================================================
   ظهور تدريجي عند التمرير (Scroll Reveal)
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===========================================================
   الاستجابة (Responsive)
   =========================================================== */
@media (max-width: 980px) {
  .hero__inner,
  .about__grid,
  .services__grid,
  .calc,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .hero__card {
    display: none; /* نخفي البطاقة الزجاجية على الموبايل لتبسيط الهيرو */
  }

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

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

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

@media (max-width: 760px) {
  .nav__links,
  .nav > .nav__inner > .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .section {
    padding-block: 64px;
  }

  .why__grid,
  .team__grid,
  .opt-grid--3,
  .opt-grid--4 {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stat .num {
    font-size: 1.7rem;
  }
}

@media (max-width: 440px) {
  .opt-grid--3 {
    grid-template-columns: 1fr;
  }
  .calc__price {
    font-size: 2.2rem;
  }
  .pkg__price {
    font-size: 2.3rem;
  }
  .pkg {
    padding: 30px 20px 26px;
  }
}

/* ===== احترام تقليل الحركة ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===========================================================
   بطاقات فيديو السوشيال ميديا + فيديو نافذة التكبير
   (أُضيفت لدعم مقاطع الفيديو في معرض الأعمال)
   =========================================================== */
.work-card--video {
  aspect-ratio: 4 / 5; /* شكل عمودي مناسب للريلز */
  background: var(--navy-deep);
}
.work-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--navy-deep);
  transition: transform 0.5s ease;
}
.work-card--video:hover .work-card__video {
  transform: scale(1.06);
}
/* زر التشغيل — ظاهر دائماً على بطاقات الفيديو */
.work-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  box-shadow: 0 8px 24px rgba(3, 10, 45, 0.45);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  pointer-events: none; /* النقر يمرّ إلى زر البطاقة الأب */
}
.work-card__play .icon {
  width: 24px;
  height: 24px;
  color: #fff;
  margin-inline-start: 3px; /* موازنة بصرية لمثلث التشغيل */
}
.work-card--video:hover .work-card__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--grad);
  border-color: transparent;
}
/* فيديو داخل نافذة التكبير */
.lightbox__figure video {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #000;
}
.lightbox__figure img[hidden],
.lightbox__figure video[hidden] {
  display: none;
}
