/* Curtain Gallery - scroll-reveal section for Proxima homepage */
/* Uses the site's existing --primary-navy, --accent-gold, --font-header, --font-body variables */

.curtain-gallery {
    position: relative;
    height: 100vh;
    min-height: 520px;
    width: 100%;
    overflow: hidden;
    background-color: #F5EFE3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.cg-center {
    position: relative;
    width: 62%;
    height: 68%;
    overflow: hidden;
    border-radius: 24px;
    transition: width 0.9s cubic-bezier(0.65, 0, 0.35, 1), height 0.9s cubic-bezier(0.65, 0, 0.35, 1), border-radius 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.cg-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 22, 23, .35) 0%, rgba(22, 22, 23, .1) 40%, rgba(22, 22, 23, .65) 100%);
}

.cg-text {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    padding: 0 24px;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.cg-text h2 {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 400;
    color: var(--accent-gold);
    font-size: 2.6rem;
    margin-bottom: 14px;
    line-height: 1.2;
}

.cg-text p {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.85;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Open state, toggled by JS via IntersectionObserver */
.curtain-gallery.open .cg-center {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.curtain-gallery.open .cg-text {
    opacity: 1;
}

@media (max-width: 768px) {
    .cg-text h2 {
        font-size: 1.7rem;
    }

    .cg-text p {
        font-size: 0.92rem;
    }

    .cg-center {
        width: 85%;
        height: 60%;
    }
}

/* اختياري: تغيير خلفية شريط "فرصة التوفير" والفوتر من الرخام الأسود إلى بيج فاتح */
.final-cta-bar,
.main-footer {
    background-image: none !important;
    background-color: #EDE0C4 !important;
    color: #5A4A34 !important;
}
.final-cta-bar h3,
.footer-col h4,
.footer-col .logo-text h2 {
    color: #3B2214 !important;
}
.final-cta-bar p,
.footer-col p,
.footer-col li,
.footer-col a,
.contact-details li,
.footer-bottom p {
    color: #6B5842 !important;
}
.footer-col a:hover {
    color: #9C7A44 !important;
}
.footer-bottom {
    border-top-color: rgba(59, 34, 20, 0.15) !important;
}

/* عشان القسم الأبيض (محفظة منتجاتنا) ينسجم مع البيج بدل ما يصير تباين مفاجئ */
:root {
    --bg-light: #F5EFE3 !important;
}
body {
    background-color: #F5EFE3;
}
.product-card {
    background: #EDE0C4 !important;
}

/* توحيد خط النصوص العربية بكامل الموقع مع خط التصميم التجريبي (IBM Plex Sans Arabic) */
body,
h1, h2, h3, nav a, .cta-btn {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif !important;
}
/* النصوص الإنجليزية (اسم العلامة التجارية) تبقى بخطها الأصلي Cinzel */
.logo-text h1,
.logo-text span,
.logo-text h2,
.hero h1,
.hero p {
    font-family: 'Cinzel', serif !important;
}

/* الهيرو: لمسة دافية ذهبية تنسجم مع باقي الألوان */
.hero {
    filter: sepia(0.4) saturate(1.3) hue-rotate(-8deg) brightness(1.02);
}

/* الهيدر يضل ثابت فوق دايماً، شفاف بدون خلفية */
header {
    position: fixed !important;
    top: 0 !important;
    transform: translateY(0) !important;
    background: transparent !important;
    background-image: none !important;
    border-bottom-color: #3B2214 !important;
}

/* لوقو الهيدر: ذهبي أفتح وأهدأ بدل الذهبي الصارخ */
.logo-text h1, .logo-text span {
    color: #9C7A44 !important;
}

/* صورة عنوان صفحات "من نحن" و"اتصل بنا": حجم متوسط ويبين منتصف الصورة */
.page-header {
    min-height: 380px !important;
    background-position: center 55% !important;
}

/* مسافة فوق عنوان الصفحات عشان الهيدر الثابت ما يغطي الكلام */
.page-header {
    padding-top: 100px !important;
}

/* قسم "جاهزون لبناء شراكتكم" بصفحة من نحن: بيج بدل الرخام الأسود */
#contact-cta {
    background-image: none !important;
    background-color: #EDE0C4 !important;
    color: #5A4A34 !important;
}
#contact-cta h2 {
    color: #3B2214 !important;
}
#contact-cta p {
    color: #6B5842 !important;
}
#contact-cta .cta-btn {
    background: var(--gold-gradient) !important;
    color: #3B2214 !important;
}

/* خلفية افتراضية لصفحات الأقسام (الكاتلوجات): نفس صورة الهيرو بالرئيسية */
.page-header {
    background-image: linear-gradient(180deg, rgba(59,34,20,.5) 0%, rgba(59,34,20,.6) 100%), url('/frontend/images/banner_hero_new.png');
    background-size: cover;
    background-position: center;
}

/* قسم "تبحث عن مواصفات مفقودة؟" بصفحات الأقسام: بيج بدل الأسود */
.missing-resource-cta {
    background-image: none !important;
    background-color: #EDE0C4 !important;
    color: #5A4A34 !important;
}
.missing-resource-cta h3 {
    color: #3B2214 !important;
}
.missing-resource-cta .cta-p {
    color: #6B5842 !important;
}
.missing-resource-cta .cta-btn {
    background: var(--gold-gradient) !important;
    color: #3B2214 !important;
}

/* نسبة عرض خاصة بصور رأس صفحات الأقسام فقط (ما تأثر على من نحن/اتصل بنا) */
.page-header-category {
    background-position: center 15% !important;
}