/*
  ملف Tailwind مبني مسبقاً (Static build) بديل عن Tailwind Play CDN.
  يحتوي فقط على الأصناف (utility classes) المستخدمة فعلياً داخل قوالب الثيم،
  مبني يدوياً بنفس مخرجات Tailwind v3 القياسية ونفس ألوان tailwind.config.js الأصلي
  (المعرّفة كمتغيرات HSL في style.css). هذا يلغي الحاجة لتحميل وتفسير Tailwind
  في المتصفح في كل تحميل صفحة، فيحسّن سرعة العرض الأولى بشكل ملحوظ.
*/

/* ========== 1) Preflight (نسخة مصغّرة من Tailwind Preflight) ========== */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: currentColor; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, svg, video { display: block; vertical-align: middle; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; background-color: transparent; background-image: none; }
a { color: inherit; text-decoration: inherit; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ========== 2) Layout ========== */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.left-4 { left: 1rem; }
.bottom-5 { bottom: 1.25rem; }
.-top-16 { top: -4rem; }
.-left-16 { left: -4rem; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-3\.5 { width: 0.875rem; } .h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.w-9 { width: 2.25rem; } .h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; } .h-11 { height: 2.75rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-14 { width: 3.5rem; } .h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.w-64 { width: 16rem; } .h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.min-h-\[70vh\] { min-height: 70vh; }
.min-h-\[92vh\] { min-height: 92vh; }

.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-none { max-width: none; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* container - مطابق لإعداد tailwind.config الأصلي */
.container { width: 100%; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; padding-inline: 2rem; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1400px; } }

/* ========== 3) Spacing (padding / margin / gap / space-y) ========== */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-16 { padding-top: 4rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }

.section-pad { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .section-pad { padding-top: 6rem; padding-bottom: 6rem; } }

/* ========== 4) Typography ========== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ========== 5) الألوان (مطابقة لمتغيرات HSL في tailwind.config الأصلي) ========== */
.bg-background      { background-color: hsl(var(--background)); }
.bg-background\/80  { background-color: hsl(var(--background) / 80%); }
.bg-background\/95  { background-color: hsl(var(--background) / 95%); }
.bg-card            { background-color: hsl(var(--card)); }
.bg-primary         { background-color: hsl(var(--primary)); }
.bg-secondary       { background-color: hsl(var(--secondary)); }
.bg-secondary\/40   { background-color: hsl(var(--secondary) / 40%); }
.bg-secondary\/50   { background-color: hsl(var(--secondary) / 50%); }
.bg-accent\/10      { background-color: hsl(var(--accent) / 10%); }
.bg-white           { background-color: #fff; }
.bg-white\/10       { background-color: rgb(255 255 255 / 10%); }
.bg-white\/15       { background-color: rgb(255 255 255 / 15%); }
.bg-\[\#25D366\]    { background-color: #25D366; }

.text-foreground          { color: hsl(var(--foreground)); }
.text-foreground\/80      { color: hsl(var(--foreground) / 80%); }
.text-primary              { color: hsl(var(--primary)); }
.text-primary-foreground   { color: hsl(var(--primary-foreground)); }
.text-accent                { color: hsl(var(--accent)); }
.text-muted-foreground      { color: hsl(var(--muted-foreground)); }
.text-white          { color: #fff; }
.text-white\/60      { color: rgb(255 255 255 / 60%); }
.text-white\/70      { color: rgb(255 255 255 / 70%); }
.text-white\/80      { color: rgb(255 255 255 / 80%); }
.text-white\/85      { color: rgb(255 255 255 / 85%); }
.text-white\/90      { color: rgb(255 255 255 / 90%); }
.text-yellow-400 { color: #facc15; }

.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-border       { border-color: hsl(var(--border)); }
.border-border\/60   { border-color: hsl(var(--border) / 60%); }
.border-input        { border-color: hsl(var(--input)); }
.border-accent\/30   { border-color: hsl(var(--accent) / 30%); }
.border-white\/10    { border-color: rgb(255 255 255 / 10%); }
.border-white\/25    { border-color: rgb(255 255 255 / 25%); }
.border-white\/40    { border-color: rgb(255 255 255 / 40%); }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.fill-current { fill: currentColor; }
.object-cover { object-fit: cover; }

/* تدرجات لونية (gradients) */
.bg-gradient-to-l { background-image: linear-gradient(to left, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/70 { --tw-gradient-from: rgb(0 0 0 / 70%); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(0 0 0 / 0%)); }
.to-transparent { --tw-gradient-to: transparent; }
/* تدرج غلاف صورة الهيرو الرئيسية (كان بصيغة Tailwind العشوائية bg-gradient-to-l from-[hsl(...)]/95 via-[...]/85 to-[...]/60) */
.hero-overlay-gradient {
  background-image: linear-gradient(to left,
    hsl(214 60% 12% / 95%) 0%,
    hsl(208 88% 24% / 85%) 55%,
    hsl(208 88% 24% / 60%) 100%);
}

/* ========== 6) الحواف والظلال والتأثيرات ========== */
.rounded-lg { border-radius: 0.75rem; }
.rounded-xl { border-radius: 1rem; }
.rounded-2xl { border-radius: 1.25rem; }
.rounded-3xl { border-radius: 1.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[2\.5rem\] { border-radius: 2.5rem; }

.card-shadow { box-shadow: 0 10px 40px -12px hsl(208 60% 30% / 0.18); }
.card-shadow-lg { box-shadow: 0 24px 60px -20px hsl(208 60% 30% / 0.28); }
.blur-2xl { --tw-blur: blur(40px); filter: var(--tw-blur); }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, fill, stroke; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.cursor-pointer { cursor: pointer; }
.list-none { list-style: none; }
.resize-none { resize: none; }
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* ========== 7) الحالات التفاعلية (hover / focus / group-hover) ========== */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:text-primary { color: hsl(var(--primary)); }
.group:hover .group-hover\:-translate-x-1 { transform: translateX(-0.25rem); }

.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:bg-secondary:hover { background-color: hsl(var(--secondary)); }
.hover\:bg-secondary\/60:hover { background-color: hsl(var(--secondary) / 60%); }
.hover\:bg-white\/20:hover { background-color: rgb(255 255 255 / 20%); }
.hover\:bg-white\/25:hover { background-color: rgb(255 255 255 / 25%); }
.hover\:bg-white\/90:hover { background-color: rgb(255 255 255 / 90%); }
.hover\:border-primary:hover { border-color: hsl(var(--primary)); }
.hover\:card-shadow-lg:hover { box-shadow: 0 24px 60px -20px hsl(208 60% 30% / 0.28); }
.hover\:gap-3:hover { gap: 0.75rem; }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:opacity-95:hover { opacity: 0.95; }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:text-white:hover { color: #fff; }
.hover\:underline:hover { text-decoration-line: underline; }

.focus\:ring-2:focus { box-shadow: 0 0 0 2px hsl(var(--ring) / 45%); outline: none; }
.focus\:ring-primary:focus { box-shadow: 0 0 0 2px hsl(var(--primary) / 45%); }

/* ========== 8) أدوات الحركة والتحويل المستخدمة يدوياً بالمشروع ========== */
.font-cairo { font-family: "Cairo", sans-serif; }
.hero-gradient { background: linear-gradient(135deg, hsl(208 88% 24%) 0%, hsl(206 82% 34%) 55%, hsl(190 80% 40%) 100%); }
.text-gradient { background: linear-gradient(90deg, hsl(208 88% 34%), hsl(190 90% 44%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes float-y { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.animate-float { animation: float-y 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .animate-float { animation: none; }
  * { scroll-behavior: auto !important; }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.lucide { display: inline-block; vertical-align: middle; }
.faq-chevron { transition: transform .2s ease; }
#ba-header { transition: background-color .2s ease; }
.prose, .prose-content { max-width: 65ch; }
.prose :where(p), .prose-content :where(p) { margin-top: 1.25em; margin-bottom: 1.25em; }
.elementor-page main.entry-content { max-width: none; }

/* ========== 9) الاستجابة للشاشات (sm / md / lg) — مطابقة لنقاط الكسر الافتراضية بـTailwind ========== */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:h-20 { height: 5rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-16 { padding: 4rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
