/* ============================================================
   ABOALI MARKETING — V2
   طبقة المظهر والحركات والأقسام الجديدة
   ============================================================ */

/* ---------------------------- شاشة التحميل ---------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(50% 45% at 50% 40%, rgba(233, 196, 106, 0.1), transparent 70%),
    #06060a;
  animation: preloaderFallback 0.6s ease 3s forwards;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
@keyframes preloaderFallback {
  to { opacity: 0; visibility: hidden; }
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.preloader-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: linear-gradient(140deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  color: #141006;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  box-shadow: 0 20px 60px -18px rgba(233, 196, 106, 0.8);
  animation: preloaderPulse 1.4s ease-in-out infinite;
}
@keyframes preloaderPulse {
  50% { transform: translateY(-5px) scale(1.03); box-shadow: 0 28px 70px -18px rgba(233, 196, 106, 0.95); }
}
.preloader-name {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: #fff;
}
.preloader-name b { color: var(--gold); }
.preloader-bar {
  width: 160px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  animation: preloaderBar 1.1s ease-in-out infinite;
}
@keyframes preloaderBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(330%); }
}
.preloader-tag {
  font-family: var(--font-head);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  color: var(--muted-2);
}

/* ---------------------------- المؤشر المخصص (شكل جديد) ---------------------------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: linear-gradient(140deg, var(--gold-3), var(--gold-2));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);   /* معيّن (diamond) */
  box-shadow: 0 0 14px rgba(233, 196, 106, 0.8);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px dashed rgba(233, 196, 106, 0.6);   /* إطار متقطّع بدل الحلقة المصمتة */
  background: transparent;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s, opacity 0.3s;
}
/* علامة تقاطع صغيرة في المنتصف */
.cursor-ring::before,
.cursor-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(233, 196, 106, 0.55);
  transform: translate(-50%, -50%);
}
.cursor-ring::before { width: 12px; height: 1px; }
.cursor-ring::after { width: 1px; height: 12px; }
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { opacity: 1; }
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor .chip { cursor: none; }
body.has-cursor .cursor-ring.hot {
  width: 56px;
  height: 56px;
  background: rgba(233, 196, 106, 0.08);
  border-color: rgba(233, 196, 106, 0.95);
  border-style: solid;
}
body.has-cursor .cursor-ring.hot::before { width: 16px; }
body.has-cursor .cursor-ring.hot::after { height: 16px; }

/* ---------------------------- ضوء يتبع المؤشر ---------------------------- */

.spotlight {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px at var(--mx, 50%) var(--my, 0%), rgba(233, 196, 106, 0.055), transparent 62%);
}

/* ---------------------------- الهيرو ---------------------------- */

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 0.74rem;
  color: var(--muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--green); font-size: 0.72rem; }
.visual-card[data-tilt] { will-change: transform; }

/* ---------------------------- زر لامع ---------------------------- */

.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-220%) skewX(-18deg);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn-gold:hover::after { transform: translateX(320%) skewX(-18deg); }

/* ---------------------------- الباقات ---------------------------- */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.package-card:hover {
  transform: translateY(-6px);
  border-color: rgba(233, 196, 106, 0.35);
  box-shadow: 0 30px 70px -45px rgba(233, 196, 106, 0.55);
}
.package-card.featured {
  border-color: rgba(233, 196, 106, 0.55);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(233, 196, 106, 0.16), transparent 70%),
    linear-gradient(170deg, rgba(233, 196, 106, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 34px 90px -50px rgba(233, 196, 106, 0.65);
  transform: translateY(-8px);
}
.package-card.featured:hover { transform: translateY(-12px); }
.package-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 5px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  color: #171105;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px -10px rgba(233, 196, 106, 0.9);
}
.package-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.package-sub { color: var(--muted); font-size: 0.8rem; line-height: 1.7; margin: 0 0 20px; min-height: 2.7em; }
.package-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.package-price b { font-family: var(--font-head); font-size: 2.15rem; font-weight: 900; color: #fff; line-height: 1; }
.package-price small { color: var(--muted); font-size: 0.72rem; }
.package-period { color: var(--gold); font-size: 0.7rem; margin-bottom: 20px; }
.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px 0 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}
.package-features li { display: flex; gap: 9px; align-items: flex-start; color: #d5d7e0; font-size: 0.82rem; line-height: 1.6; }
.package-features i { color: var(--gold); font-size: 0.66rem; margin-top: 4px; flex-shrink: 0; }
.package-cta { margin-top: auto; }
.packages-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.76rem;
}
.packages-note span { display: inline-flex; align-items: center; gap: 8px; }
.packages-note i { color: var(--gold); }
.packages-note a { color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.packages-note a:hover { text-decoration: underline; }

/* ---------------------------- آراء العملاء ---------------------------- */

.testimonials-summary {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(233, 196, 106, 0.07), rgba(255, 255, 255, 0.02));
  margin-bottom: 26px;
}
.rating-big { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 130px; }
.rating-big b { font-family: var(--font-head); font-size: 2.7rem; line-height: 1; color: var(--gold); }
.rating-big .stars { color: var(--gold); font-size: 0.66rem; letter-spacing: 2px; }
.rating-big small { color: var(--muted-2); font-size: 0.62rem; }
.testimonials-summary > p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.85; }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.testimonial-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 196, 106, 0.3);
  box-shadow: 0 26px 60px -45px rgba(233, 196, 106, 0.45);
}
.testimonial-card .quote-mark {
  position: absolute;
  top: 10px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 4.6rem;
  line-height: 1;
  color: rgba(233, 196, 106, 0.13);
  pointer-events: none;
}
.testimonial-stars { color: var(--gold); font-size: 0.66rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-body { position: relative; color: #d9dae2; font-size: 0.88rem; line-height: 1.95; margin: 0 0 20px; }
.testimonial-foot { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(140deg, var(--gold-3), var(--gold) 55%, var(--gold-2));
  color: #171105;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.9rem;
}
.testimonial-foot b { display: block; font-size: 0.84rem; }
.testimonial-foot small { color: var(--muted-2); font-size: 0.68rem; }

/* ---------------------------- الأسئلة الشائعة ---------------------------- */

.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.faq-intro .section-title { text-align: right; margin-bottom: 14px; }
.faq-intro > p { color: var(--muted); font-size: 0.9rem; line-height: 1.9; margin: 0 0 22px; }
.faq-intro .kicker { margin-bottom: 14px; }
.faq-contact { display: flex; gap: 9px; flex-wrap: wrap; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item:hover { border-color: rgba(233, 196, 106, 0.25); }
.faq-item.open { border-color: rgba(233, 196, 106, 0.4); background: rgba(233, 196, 106, 0.04); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: right;
  cursor: pointer;
}
.faq-q i { color: var(--muted-2); font-size: 0.72rem; transition: transform 0.3s, color 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 620px; }
.faq-a p { margin: 0; padding: 0 20px 19px; color: var(--muted); font-size: 0.83rem; line-height: 1.9; }

/* ---------------------------- واتساب عائم ---------------------------- */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2fe07a, #128c7e);
  color: #04170c;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 18px 46px -16px rgba(37, 211, 102, 0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 24px 54px -16px rgba(37, 211, 102, 0.8); }
.whatsapp-float > i { font-size: 1.15rem; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.35s var(--ease), opacity 0.25s; }
.whatsapp-float:hover .wa-label { max-width: 130px; opacity: 1; }
.wa-ping {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(47, 224, 122, 0.7);
  animation: waPing 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPing {
  0% { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(1.25); opacity: 0; }
}

/* ---------------------------- زر تثبيت التطبيق ---------------------------- */

.install-app {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 59;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(233, 196, 106, 0.4);
  background: linear-gradient(135deg, #f7e1a0, #E9C46A 45%, #C9A227);
  color: #171105;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: 0 18px 46px -16px rgba(233, 196, 106, 0.55);
  animation: preloaderPulse 2.2s ease-in-out infinite;
  transition: box-shadow 0.3s;
}
.install-app:hover { box-shadow: 0 24px 54px -16px rgba(233, 196, 106, 0.75); }
@media (max-width: 520px) {
  .install-app { bottom: 78px; }
}

/* ---------------------------- معرض المشروع ---------------------------- */

.project-media { position: relative; }
.project-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 7, 12, 0.62);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.78rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.project-nav:hover { background: var(--gold); color: #171105; border-color: var(--gold); }
.project-nav.prev { right: 14px; }
.project-nav.next { left: 14px; }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.project-count { color: var(--muted-2); font-size: 0.68rem; letter-spacing: 0.08em; }

.optional { color: var(--muted-2); font-weight: 400; font-size: 0.7rem; }
input[type="date"] { color-scheme: dark; }

/* ---------------------------- استجابة V2 ---------------------------- */

@media (max-width: 1180px) {
  .nav-link { padding: 0.5rem 0.5rem; font-size: 0.76rem; }
  .header-inner { gap: 14px; }
}

@media (max-width: 1000px) {
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .package-card.featured { transform: none; }
  .package-card.featured:hover { transform: translateY(-6px); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .faq-intro .section-title { text-align: right; }
}

@media (max-width: 900px) {
  .hero-trust { font-size: 0.7rem; gap: 12px; }
  .packages-grid { grid-template-columns: 1fr; }
  .testimonials-summary { flex-direction: column; align-items: flex-start; gap: 16px; }
  .whatsapp-float { bottom: 16px; left: 16px; }
  .wa-label { display: none; }
}

@media (max-width: 720px) {
  .project-nav { width: 36px; height: 36px; }
  .project-nav.prev { right: 8px; }
  .project-nav.next { left: 8px; }
}

@media (max-width: 520px) {
  .packages-note { flex-direction: column; align-items: flex-start; }
  .testimonial-card { padding: 22px; }
  .rating-big b { font-size: 2.2rem; }
  .back-top { bottom: 76px; }
  .whatsapp-float { padding: 12px; }
}
