/* =========================================================
   قالب مربح الرقمية — تنسيقات مخصصة فوق Tailwind
   (عند التحويل لووردبريس: تنقل لملف style.css الخاص بالقالب)
   ========================================================= */

html { scroll-behavior: smooth; }
body { background: #0A0F1E; }

::selection { background: #F5C544; color: #0A0F1E; }

/* سكرول بار */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0D1528; }
::-webkit-scrollbar-thumb { background: #2A3756; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #F5C544; }

/* عنوان قسم موحد */
.section-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem; border-radius: 999px;
  border: 1px solid rgba(245,197,68,.35);
  background: rgba(245,197,68,.08);
  color: #F5C544; font-size: .85rem; font-weight: 700;
}
.section-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #F5C544; box-shadow: 0 0 12px #F5C544;
}

/* بطاقة زجاجية داكنة */
.glass-card {
  background: linear-gradient(160deg, #141E38 0%, #101829 100%);
  border: 1px solid #1E2A45;
  border-radius: 1.25rem;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,197,68,.45);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7), 0 0 40px -18px rgba(245,197,68,.35);
}

/* زر رئيسي */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(135deg, #FAD978, #F5C544 55%, #E0AE2E);
  color: #0A0F1E; font-weight: 800;
  padding: .85rem 2rem; border-radius: .9rem;
  box-shadow: 0 10px 30px -10px rgba(245,197,68,.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(245,197,68,.7); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border: 1px solid #2A3756; color: #E8ECF5; font-weight: 700;
  padding: .85rem 2rem; border-radius: .9rem;
  transition: all .25s ease;
}
.btn-ghost:hover { border-color: #F5C544; color: #F5C544; background: rgba(245,197,68,.06); }

/* نص متدرج ذهبي */
.text-gold-grad {
  background: linear-gradient(120deg, #FAD978, #F5C544 60%, #E8B23A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* توهجات خلفية */
.glow-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }

/* أيقونة خدمة */
.icon-badge {
  width: 60px; height: 60px; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,197,68,.1); border: 1px solid rgba(245,197,68,.3);
  color: #F5C544; transition: all .3s ease;
}
.glass-card:hover .icon-badge { background: #F5C544; color: #0A0F1E; }

/* روابط الهيدر */
.nav-link { position: relative; padding: .4rem 0; color: #C4CDDE; font-weight: 600; transition: color .25s; }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 2px; background: #F5C544; border-radius: 2px; transition: width .3s ease;
}
.nav-link:hover, .nav-link.active { color: #F5C544; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* أكورديون الأسئلة */
.faq-item { border: 1px solid #1E2A45; border-radius: 1rem; background: #101829; overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: rgba(245,197,68,.4); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-item .faq-arrow { transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* marquee شريط الثقة */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* حقل إدخال */
.field {
  width: 100%; background: #0D1528; border: 1px solid #1E2A45; border-radius: .8rem;
  padding: .85rem 1.1rem; color: #E8ECF5; transition: border-color .25s, box-shadow .25s;
}
.field:focus { outline: none; border-color: #F5C544; box-shadow: 0 0 0 3px rgba(245,197,68,.15); }
.field::placeholder { color: #5B6A88; }

/* شارة باقة مميزة */
.plan-featured { position: relative; border-color: rgba(245,197,68,.55) !important; box-shadow: 0 0 60px -18px rgba(245,197,68,.35); }

/* صورة بورتفوليو */
.work-card img { transition: transform .6s ease; }
.work-card:hover img { transform: scale(1.07); }
.work-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; background: linear-gradient(to top, rgba(10,15,30,.95) 10%, transparent 70%);
  opacity: 0; transition: opacity .4s ease;
}
.work-card:hover .work-overlay { opacity: 1; }

/* عدادات */
.stat-num { font-family: 'Cairo'; font-weight: 900; }

/* فاصل مزخرف */
.divider-glow { height: 1px; background: linear-gradient(90deg, transparent, rgba(245,197,68,.5), transparent); }

/* =========================================================
   تنسيقات Fluent Forms بنفس الستايل الداكن للقالب
   ========================================================= */
.fluentform .ff-el-group { margin-bottom: 1.25rem; }

.fluentform .ff-el-input--label label,
.fluentform .ff-el-form-control::placeholder { }

.fluentform .ff-el-input--label label {
  display: block; margin-bottom: .45rem;
  color: #E8ECF5; font-weight: 700; font-size: .9rem;
}

.fluentform .ff-el-form-control,
.fluentform select.ff-el-form-control,
.fluentform textarea.ff-el-form-control {
  width: 100%; background: #0D1528 !important;
  border: 1px solid #1E2A45 !important; border-radius: .8rem !important;
  padding: .85rem 1.1rem !important; color: #E8ECF5 !important;
  transition: border-color .25s, box-shadow .25s;
  box-shadow: none !important;
}
.fluentform .ff-el-form-control:focus {
  outline: none; border-color: #F5C544 !important;
  box-shadow: 0 0 0 3px rgba(245,197,68,.15) !important;
}
.fluentform .ff-el-form-control::placeholder { color: #5B6A88; }

/* رسالة الخطأ */
.fluentform .error.text-danger { color: #F87171; font-size: .8rem; margin-top: .35rem; }
.fluentform .ff-el-is-error .ff-el-form-control { border-color: #F87171 !important; }

/* زر الإرسال */
.fluentform .ff-btn-submit,
.fluentform button[type="submit"] {
  display: inline-flex !important; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(135deg, #FAD978, #F5C544 55%, #E0AE2E) !important;
  color: #0A0F1E !important; font-weight: 800 !important;
  padding: .85rem 2rem !important; border-radius: .9rem !important; border: none !important;
  box-shadow: 0 10px 30px -10px rgba(245,197,68,.55) !important;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer; width: 100%; font-size: .95rem !important;
}
.fluentform .ff-btn-submit:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(245,197,68,.7) !important; }

/* رسالة النجاح */
.fluentform .ff-message-success {
  background: rgba(52,211,153,.1) !important; border: 1px solid rgba(52,211,153,.35) !important;
  color: #6EE7B7 !important; border-radius: .9rem !important; padding: 1rem 1.25rem !important;
}

/* الأعمدة الداخلية للفورم */
.fluentform .ff-el-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .fluentform .ff-el-row.ff-t-container:has(.ff-t-cell:nth-child(2)) { grid-template-columns: 1fr 1fr; }
  .fluentform .ff-t-container .ff-t-cell { padding: 0 !important; }
}

/* إخفاء شارة Powered by (مجانيًا) */
.fluentform .ff-el-powered-by { display: none !important; }

/* صفحة المقالات — ترقيم الصفحات */
.morb7-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .8rem; border-radius: .7rem;
  border: 1px solid #1E2A45; color: #93A0B8; font-weight: 700; font-size: .9rem;
  transition: all .25s;
}
.morb7-pagination .page-numbers:hover { border-color: #F5C544; color: #F5C544; }
.morb7-pagination .page-numbers.current { background: #F5C544; color: #0A0F1E; border-color: #F5C544; }

/* قوائم الفوتر */
.morb7-footer-menu a { color: #93A0B8; transition: color .25s; }
.morb7-footer-menu a:hover { color: #F5C544; }

/* منيو الموبايل */
.morb7-mobile-nav a { display: block; color: rgba(232,236,245,.8); padding: .25rem 0; }
.morb7-mobile-nav a:hover { color: #F5C544; }
