/* ============================================================
   برو إكسل للأنظمة الرقمية — صفحة هبوط
   التصميم: كحلي / أخضر / أبيض — خط Cairo — متجاوب بالكامل
   ============================================================ */

/* ---------- الخط المحلي (Cairo) ---------- */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+1EE00-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- المتغيرات ---------- */
:root {
  --navy-950: #06182F;
  --navy-900: #0B2545;
  --navy-800: #123B72;
  --green-600: #0DA271;
  --green-500: #10B981;
  --green-300: #6EE7B7;
  --white: #FFFFFF;
  --bg-soft: #F3F7FA;
  --ink: #0B2545;
  --body: #4A5C74;
  --border: #E3EAF2;
  --radius: 20px;
  --shadow-card: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-card-hover: 0 18px 44px rgba(11, 37, 69, 0.14);
}

/* ---------- تصفير أساسي ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--white);
  color: var(--body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

::selection { background: rgba(16, 185, 129, 0.35); color: var(--navy-950); }

:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: min(1120px, 92%); margin-inline: auto; }

/* ---------- رابط التخطي (وصولية) ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100%;
  z-index: 100;
  background: var(--green-500);
  color: var(--navy-950);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn svg { width: 19px; height: 19px; }

.btn-primary {
  background: var(--green-500);
  color: var(--navy-950);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  background: var(--green-300);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.55rem 1.35rem; font-size: 0.92rem; }

/* ---------- الترويسة ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 24, 47, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(4, 14, 28, 0.45); }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-inline-end: auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #16CE92, #0B9E6E);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
.brand-mark svg { width: 23px; height: 23px; }

.brand-text {
  display: flex;
  flex-direction: column;
  color: var(--white);
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.3;
}
.brand-text small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8FB3D9;
  letter-spacing: 0;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  color: rgba(231, 238, 247, 0.82);
  font-weight: 600;
  font-size: 0.98rem;
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.site-nav a:hover { color: var(--white); }
.site-nav a:hover::after { transform: scaleX(1); }

/* زر قائمة الجوال */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  transition: background 0.2s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- القسم الرئيسي (Hero) ---------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, #0B2545 0%, #10315F 48%, #14406F 100%);
  color: var(--white);
  padding: clamp(4.5rem, 9vh, 6.5rem) 0 9rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 65%);
  top: -160px;
  inset-inline-start: -140px;
  animation: floatGlow 9s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
}

@keyframes floatGlow {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(36px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.13);
  color: var(--green-300);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-size: clamp(1.95rem, 5.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 1.3rem;
}
.hero h1 .accent { color: var(--green-500); }

.hero-lead {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(1rem, 2vw, 1.14rem);
  color: #C7D5E8;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.3rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.9rem;
  margin-top: 2.6rem;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #9FB3CC;
  font-weight: 600;
  font-size: 0.94rem;
}
.hero-points svg {
  width: 17px;
  height: 17px;
  color: var(--green-500);
  flex: none;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  width: 100%;
  height: clamp(40px, 7vw, 85px);
}

/* ---------- ترويسة الأقسام ---------- */
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3.2rem;
}

.kicker {
  display: inline-block;
  padding: 0.32rem 1rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-600);
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.section-head p { line-height: 1.95; }

/* ---------- الخدمات ---------- */
.services {
  padding: 4.5rem 0 6rem;
  background: var(--white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(16, 185, 129, 0.35);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-600);
  margin-bottom: 1.35rem;
}
.card-icon svg { width: 27px; height: 27px; }

.card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.card p { font-size: 0.97rem; line-height: 1.95; }

/* ---------- تواصل معنا ---------- */
.contact {
  position: relative;
  padding: 5.5rem 0 6.5rem;
  background: linear-gradient(160deg, #0B2545 0%, #0E2E5C 100%);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 340px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(16, 185, 129, 0.18), transparent 70%);
  pointer-events: none;
}

.contact-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  padding: clamp(2.1rem, 5vw, 3.2rem);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.contact-card h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.contact-card > p {
  color: #C7D5E8;
  max-width: 560px;
  margin-inline: auto;
  line-height: 2;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-note {
  margin-top: 1.7rem;
  color: #9FB3CC;
  font-size: 0.95rem;
}
.contact-note a {
  color: var(--green-300);
  font-weight: 700;
  display: inline-block;
  margin-inline-start: 0.35rem;
  transition: color 0.2s ease;
}
.contact-note a:hover { color: var(--white); }

/* ---------- التذييل ---------- */
.site-footer {
  background: var(--navy-950);
  color: #93A7C4;
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.brand-footer { margin-inline-end: 0; }

.footer-tagline { font-size: 0.95rem; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer-nav a {
  color: #93A7C4;
  font-weight: 600;
  font-size: 0.93rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--green-300); }

.copyright {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #7288A6;
}

/* ---------- أنيميشن الظهور عند التمرير ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.cards .card:nth-child(2) { transition-delay: 0.12s; }
.cards .card:nth-child(3) { transition-delay: 0.24s; }

/* ---------- التجاوب ---------- */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-inline: auto;
  }
  .cards .card:nth-child(2),
  .cards .card:nth-child(3) { transition-delay: 0s; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #06182F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem 4% 1.2rem;
    box-shadow: 0 24px 40px rgba(4, 14, 28, 0.5);
  }
  .site-nav.open {
    display: flex;
    animation: slideDown 0.28s ease both;
  }
  .site-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.02rem;
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a::after { display: none; }
}

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

@media (max-width: 560px) {
  html { scroll-padding-top: 80px; }
  .nav-wrap { min-height: 68px; }
  .brand-text { font-size: 1.05rem; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
  .hero { padding-bottom: 7rem; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .hero-points { flex-direction: column; align-items: center; gap: 0.6rem; }
  .contact-actions .btn { width: 100%; max-width: 340px; }
}

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