/* ══════════════════════════════════════════════════════════════
   خبنة — custom.css
   طبقة أمان مكتوبة يدوياً (CSS عادي، لا تعتمد على Tailwind JIT).
   السبب: ملف style.css المُستخرَج من التصميم الأصلي يحتوي فقط على
   الكلاسات التي استخدمها التطبيق الأصلي فعلياً وقت الالتقاط — وبما أن
   قائمة الجوال (Drawer) كانت مغلقة دائماً في تلك النسخة، فإن كلاسات
   حالتها المفتوحة (translate-x-full, shadow-2xl, opacity-40...) غير
   موجودة في الملف المُستخرَج إطلاقاً. هذا الملف يضمن عملها بشكل مستقل
   عن أي افتراضات حول محتوى style.css.
   ══════════════════════════════════════════════════════════════ */

/* ── قائمة الجوال المنسدلة (Mobile Drawer) ───────────────────── */
.khabnah-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 61, 46, 0.55); /* أخضر خبنة شفاف */
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.khabnah-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.khabnah-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 100;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -12px 0 40px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.khabnah-drawer.open {
    transform: translateX(0);
}

.khabnah-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(11, 61, 46, 0.1);
}

.khabnah-drawer-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: transparent;
    color: #0B3D2E;
    transition: background .2s ease;
}
.khabnah-drawer-close:hover {
    background: rgba(11, 61, 46, 0.08);
}

.khabnah-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem;
}

.khabnah-drawer-link {
    display: block;
    padding: .75rem 1rem;
    border-radius: .75rem;
    font-size: .9rem;
    font-weight: 600;
    color: #1a1a1a;
    transition: background .2s ease, color .2s ease;
}
.khabnah-drawer-link:hover {
    background: rgba(212, 175, 55, 0.1);
}
.khabnah-drawer-link.active {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.12);
}

.khabnah-drawer-foot {
    margin-top: auto;
    padding: 1.25rem;
    border-top: 1px solid rgba(11, 61, 46, 0.1);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.khabnah-drawer-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .875rem;
    color: #555;
}

/* منع تمرير الخلفية أثناء فتح القائمة */
body.khabnah-drawer-active {
    overflow: hidden;
}

/* ── فئات Tailwind كانت مفقودة من الحزمة المُستخرَجة ─────────────
   (لأن التصميم الأصلي لم يستخدمها في أي من صفحاته الـ 13 وقت الالتقاط،
   فلم يقم Tailwind JIT بتوليدها إطلاقاً) — نضيفها هنا بنفس الأسماء
   تماماً حتى تعمل دون أي تعديل في ملفات Blade.                    */

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); }
.translate-x-full { transform: translateX(100%); }
.w-80 { width: 20rem; }
.w-20 { width: 5rem; }
.left-4 { left: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.max-w-3xl { max-width: 48rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.disabled\:opacity-40:disabled { opacity: 0.4; cursor: not-allowed; }
.md\:hidden { }
@media (min-width: 768px) { .md\:hidden { display: none; } }
.border-white\/20 { border-color: rgb(255 255 255 / 0.2); }
.placeholder\:text-white\/40::placeholder { color: rgb(255 255 255 / 0.4); }
details[open] .group-open\:rotate-45 { transform: rotate(45deg); }

/* استخدام محدد الخاصية (attribute selector) للتدرجات الزخرفية — أكثر
   ضماناً من محاولة مطابقة escaping الدقيق لكلاس Tailwind الطويل */
[class*="radial-gradient(circle_at_20%_20%"] {
    background-image: radial-gradient(circle at 20% 20%, var(--gold), transparent 50%);
}
[class*="radial-gradient(circle_at_80%_20%"] {
    background-image: radial-gradient(circle at 80% 20%, var(--gold), transparent 50%);
}

/* دفعة أخيرة صغيرة من الفئات المفقودة */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.scroll-smooth { scroll-behavior: smooth; }
.col-span-3 { grid-column: span 3 / span 3; }
.bg-white\/5 { background-color: rgb(255 255 255 / 0.05); }
.focus\:border-\[var\(--gold\)\]:focus { border-color: var(--gold); }
.lg\:text-4xl { }
@media (min-width: 1024px) { .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; } }
.sm\:hidden { }
@media (min-width: 640px) { .sm\:hidden { display: none; } }
.sm\:inline-flex { }
@media (min-width: 640px) { .sm\:inline-flex { display: inline-flex; } }
.leading-snug { line-height: 1.375; }
.max-w-none { max-width: none; }
.text-9xl { font-size: 8rem; line-height: 1; }

/* ── تنسيق النصوص الطويلة (مقالات المدونة، وصف الخدمات) ─────────
   كلاس .prose غير موجود في الحزمة المُستخرَجة (لا تحتوي على Tailwind
   Typography plugin) — نص مبسّط بديل يضمن قراءة مريحة.            */
.prose {
    color: #3a3a3a;
    line-height: 1.9;
}
.prose p { margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.5rem; font-weight: 900; margin: 2rem 0 1rem; color: #0B3D2E; }
.prose h3 { font-size: 1.25rem; font-weight: 800; margin: 1.5rem 0 .75rem; color: #0B3D2E; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.5rem; }
.prose li { margin-bottom: .5rem; }
.prose img { border-radius: 1rem; margin: 1.5rem 0; }
.prose a { color: #D4AF37; text-decoration: underline; }
.prose-lg { font-size: 1.05rem; }

/* دفعة ثانية من الفئات المفقودة (تم اكتشافها بفحص شامل لكل الصفحات) */
.duration-500 { transition-duration: 500ms; }
.opacity-20 { opacity: 0.2; }
.bg-\[var\(--green\)\]\/90 { background-color: color-mix(in oklab, var(--green) 90%, transparent); }
.from-\[var\(--green\)\]\/90 { --tw-gradient-from: color-mix(in oklab, var(--green) 90%, transparent); }
.via-\[var\(--green\)\]\/20 { --tw-gradient-via: color-mix(in oklab, var(--green) 20%, transparent); }
.to-transparent { --tw-gradient-to: transparent; }
.sm\:col-span-2 { }
@media (min-width: 640px) { .sm\:col-span-2 { grid-column: span 2 / span 2; } }
.pb-24 { padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-5 { padding: 1.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* بطاقة صورة افتراضية عند عدم رفع صورة من لوحة التحكم */
.khabnah-placeholder-note {
    position: relative;
}

/* ── نظام التنبيهات (Toast) — كان بدون أي تنسيق إطلاقاً ───────── */
.toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 61, 46, 0.55);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.toast-overlay.show {
    opacity: 1;
    visibility: visible;
}

.toast-box {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    transform: translateY(12px);
    transition: transform .25s ease;
}
.toast-overlay.show .toast-box {
    transform: translateY(0);
}

.toast-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
}
.toast-icon.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}
.toast-icon.error {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

.toast-box h3#toastTitle {
    font-weight: 900;
    font-size: 1.125rem;
    color: #0B3D2E;
    margin-bottom: .5rem;
}
.toast-box p#toastMessage {
    font-size: .875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.toast-close {
    background: #D4AF37;
    color: #0B3D2E;
    font-weight: 700;
    padding: .65rem 2rem;
    border-radius: 999px;
    transition: opacity .2s ease;
}
.toast-close:hover {
    opacity: .85;
}
