/* ===== ألوان أزرق + لغة تصميم أبل ===== */
:root {
  --deep-50: #eff8f9;
  --deep-100: #d8eef0;
  --deep-300: #7fc4cb;
  --deep-400: #4aa4ae;
  --deep-500: #2b8692;
  --deep-600: #1d6c78;
  --deep-700: #155763;
  --deep-800: #0f4651;
  --deep-900: #0b3640;
  --deep-950: #062229;
  --gold: #c9a24a;
  --gold-dark: #a8842f;
  --ink: #1d1d1f;      /* نص أبل الأساسي */
  --ink-2: #6e6e73;    /* نص أبل الثانوي */
  --bg-alt: #f5f5f7;   /* رمادي أبل الفاتح */
  --accent: var(--deep-600);
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glass-light: rgba(255, 255, 255, .72);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  /* خط أبل (SF Arabic) على أجهزة أبل، وIBM Plex على باقي الأجهزة */
  font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "SF Pro Text", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1080px, 90%); margin-inline: auto; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); color: var(--ink); }
h3 { font-weight: 600; }
.thin { font-weight: 600; color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-500);
  margin-bottom: .5rem;
}
.eyebrow--light { color: var(--deep-300); }

/* ===== الأزرار (كبسولة مثل أبل) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.5rem;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  transition: background .25s, color .25s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--deep-500); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: rgba(255, 255, 255, .85); }
.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .26); }
.btn--sm { padding: .42rem 1.1rem; font-size: .9rem; }

/* ===== الهيدر: كبسولة زجاج (Liquid Glass) ===== */
.header {
  position: fixed;
  top: 16px;
  inset-inline: 0;
  z-index: 50;
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
  border-radius: 980px;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 32px rgba(0, 0, 0, .12);
  transition: background .4s, border-color .4s, box-shadow .4s, top .4s var(--ease);
}
.header.scrolled {
  top: 10px;
  background: var(--glass-light);
  border-color: rgba(0, 0, 0, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 8px 30px rgba(0, 0, 0, .08);
}
.header__inner { display: flex; align-items: center; gap: 2rem; height: 58px; padding-inline: 1.1rem .7rem; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand img { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.15rem; color: var(--ink); }
.brand__text small { font-size: .72rem; color: var(--ink-2); }
.header .brand__text strong { color: #fff; transition: color .4s; }
.header .brand__text small { color: rgba(255, 255, 255, .75); transition: color .4s; }
.nav { display: flex; gap: 1.7rem; margin-inline: auto; }
.nav a { font-size: .93rem; color: rgba(255, 255, 255, .9); transition: color .3s; }
.nav a:hover { color: #fff; }
.header.scrolled .brand__text strong { color: var(--ink); }
.header.scrolled .brand__text small { color: var(--ink-2); }
.header.scrolled .nav a { color: rgba(29, 29, 31, .8); }
.header.scrolled .nav a:hover { color: var(--ink); }
.header.scrolled .btn--white { background: var(--accent); color: #fff; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-btn span { display: block; width: 20px; height: 1.5px; border-radius: 2px; background: #fff; margin: 5px 0; transition: background .4s; }
.header.scrolled .menu-btn span { background: var(--ink); }

/* ===== الواجهة: كرت الصورة ===== */
.hero { padding: 12px; background: #fff; }
.hero__card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: max(640px, calc(100vh - 24px));
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(to top, rgba(4, 30, 36, .85) 0%, rgba(4, 30, 36, .35) 35%, rgba(4, 30, 36, 0) 60%),
    linear-gradient(to bottom, rgba(4, 30, 36, .35), transparent 22%),
    url("img/hero.jpg") center 40% / cover no-repeat;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  gap: 3rem;
  padding-bottom: 4.5rem;
}
.hero .eyebrow {
  color: #fff;
  font-size: .88rem;
  padding: .3rem 1rem;
  border-radius: 980px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  margin-bottom: .9rem;
}
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1.15; text-shadow: 0 2px 6px rgba(4, 30, 36, .45), 0 4px 30px rgba(4, 30, 36, .6); }
.hero .thin { font-weight: 300; color: inherit; }
.hero__side p { color: rgba(255, 255, 255, .92); font-size: 1.15rem; margin-bottom: 1.6rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.scroll-btn {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  margin-left: -27px;
  width: 54px;
  height: 78px;
  border-radius: 980px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }
.scroll-btn__plane { width: 24px; height: 24px; fill: #fff; stroke: none; transform: rotate(180deg); }
.scroll-btn.launched { visibility: hidden; }

/* الطيارة اللي تنزل وتفتح القسم */
.zipper-plane {
  position: fixed;
  z-index: 45;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--deep-600);
  border: 2px solid rgba(255, 255, 255, .7);
  box-shadow: 0 8px 24px rgba(6, 34, 41, .35);
  pointer-events: none;
}
.zipper-plane svg { width: 28px; height: 28px; fill: #fff; stroke: none; transform: rotate(180deg); }
.zipper-plane.done { transition: transform .4s ease, opacity .4s ease; transform: scale(.4); opacity: 0; }

/* ===== قسم الخدمات بألوان أزرق ===== */
.section--deep {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 6.5rem 3rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(74, 164, 174, .35), transparent 45%),
    linear-gradient(160deg, var(--deep-700), var(--deep-950));
  color: #fff;
}
.section--deep h2 { color: #fff; }
.section--deep .thin { color: rgba(255, 255, 255, .6); }
.section--deep .eyebrow { color: var(--deep-300); }
.section--deep .section__head { margin-bottom: 2.2rem; }
.section--deep .card {
  padding: 1.6rem 1.6rem 1.4rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.section--deep .card:hover { background: rgba(255, 255, 255, .11); }
.section--deep .card h3 { color: #fff; }
.section--deep .card p { color: rgba(255, 255, 255, .7); }
.section--deep .card__icon { margin-bottom: 1rem; background: linear-gradient(160deg, #e2bd63, var(--gold-dark)); }

/* الغطاء الزجاجي اللي ينفتح بالمدرج */
.zip { display: none; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.zip.active { display: block; }
.zip.fade { transition: opacity .45s ease; opacity: 0; }
.runway { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.runway path { fill: none; }
.runway__asphalt { stroke: #3a4549; stroke-width: 44; }
.runway__side { stroke: #f4f6f7; stroke-width: 2; }
.runway__center { stroke: #fff; stroke-width: 3; stroke-dasharray: 20 14; }
.runway__lights {
  stroke: #ffd56b;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0 22;
  filter: drop-shadow(0 0 3px #ffcf4d) drop-shadow(0 0 7px rgba(255, 207, 77, .8));
}
.zip__cover {
  position: absolute;
  inset: 0;
  /* زجاج مغبّش بلون أزرق خفيف: يبان المحتوى تحته ضبابي، والطيارة تفتحه */
  background: rgba(14, 70, 80, .45);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
}

/* ===== شريط المميزات ===== */
.strip { padding-block: 1.5rem 3rem; }
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
}
.strip__grid div { display: flex; flex-direction: column; text-align: center; padding: .3rem; }
.strip__grid div + div { border-inline-start: 1px solid rgba(0, 0, 0, .08); }
.strip strong { color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.strip span { color: var(--ink-2); font-size: .9rem; }

/* ===== الأقسام ===== */
.section { padding-block: 7rem; }
.section--tint { background: var(--bg-alt); }
.section__head { text-align: center; margin-bottom: 3.2rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: transform .4s var(--ease), background .3s;
}
.card:hover { transform: scale(1.02); }
.card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: .35rem; }
.card p { color: var(--ink-2); font-size: .97rem; }
/* أيقونات بشكل أيقونات تطبيقات الآيفون */
.card__icon, .contact__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(160deg, var(--deep-400), var(--deep-700));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 12px rgba(11, 54, 64, .15);
  margin-bottom: 1.2rem;
}
svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ===== الخطوات ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps li { background: #fff; border-radius: var(--radius); padding: 2.4rem 2rem; text-align: center; }
.steps__num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, var(--deep-400), var(--deep-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: .3rem; }
.steps p { color: var(--ink-2); }

/* ===== الوكلاء: كرت كبير غامق مثل إعلانات أبل ===== */
.agents { padding-block: 1.2rem; }
.agents__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.6rem 3.4rem;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(74, 164, 174, .4), transparent 50%),
    linear-gradient(160deg, var(--deep-700), var(--deep-950));
}
.agents h2 { color: #fff; }
.agents .thin { color: rgba(255, 255, 255, .6); }
.agents p { color: rgba(255, 255, 255, .75); max-width: 38rem; margin-top: .4rem; }

/* ===== من نحن ===== */
.about { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 4rem; }
.about img { width: min(280px, 100%); margin-inline: auto; }
.about p { color: var(--ink-2); margin-block: 1rem 1.4rem; font-size: 1.1rem; }
.checks { list-style: none; display: grid; gap: .6rem; }
.checks li { position: relative; padding-inline-start: 2rem; font-weight: 500; }
.checks li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .72rem;
  top: .3rem;
}

/* ===== تواصل ===== */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.4rem 1rem;
  transition: transform .4s var(--ease);
}
.contact__item:hover { transform: scale(1.02); }
.contact__item strong { color: var(--ink); font-weight: 600; }
.contact__item span:last-child { color: var(--ink-2); }

/* ===== الفوتر (مثل فوتر أبل) ===== */
.footer { background: var(--bg-alt); color: var(--ink-2); padding-block: 1.8rem; font-size: .82rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(0, 0, 0, .1); padding-top: 1.6rem; }
.footer .brand img { width: 30px; height: 30px; }

/* ===== زر الواتساب العائم ===== */
.wa-float {
  position: fixed;
  bottom: 1.4rem;
  left: 1.4rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px rgba(0, 0, 0, .15);
  z-index: 60;
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 27px; height: 27px; }

/* ===== حركة الظهور عند النزول (مثل موقع أبل) ===== */
.js [data-reveal] {
  opacity: 0;
  translate: 0 36px;
  transition: opacity 1s var(--ease), translate 1s var(--ease), transform .4s var(--ease), background .3s;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.js [data-reveal].in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
}

/* ===== الجوال ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .strip__grid div:nth-child(3) { border-inline-start: 0; }
}
@media (max-width: 760px) {
  .header { top: 12px; width: calc(100% - 28px); }
  .header__inner { height: 56px; padding-inline: 1rem .6rem; }
  .header .btn { display: none; }
  .menu-btn { display: block; margin-inline-start: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: .4rem;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
  }
  .nav.open { display: flex; }
  .nav a, .header.scrolled .nav a { color: var(--ink); font-size: 1.05rem; padding: .8rem 1rem; border-radius: 16px; }
  .nav a:hover { background: rgba(0, 0, 0, .04); color: var(--ink); }
  .hero { padding: 8px; }
  .hero__card {
    border-radius: 26px;
    min-height: calc(100svh - 16px);
    background:
      linear-gradient(to top, rgba(4, 30, 36, .92) 0%, rgba(4, 30, 36, .5) 40%, rgba(4, 30, 36, 0) 65%),
      url("img/hero-mobile.jpg") center / cover no-repeat;
  }
  .hero__content { grid-template-columns: 1fr; gap: 1rem; width: calc(100% - 40px); padding-bottom: 6rem; text-align: center; }
  .hero__actions { justify-content: center; }
  .scroll-btn { display: none; }
  .section { padding-block: 5rem; }
  .cards, .steps, .contact { grid-template-columns: 1fr; }
  .agents__inner { flex-direction: column; text-align: center; padding: 2.6rem 1.6rem; }
  .about { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .checks { justify-content: center; }
  .footer__inner { justify-content: center; text-align: center; }
}
