/* --- 1. إعدادات الهوية البصرية والمتغيرات --- */
:root {
    --primary-navy: #161617;
    --accent-gold: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 100%);
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    /* Main luxury font for HEADERS */
    --font-header: "Cinzel", serif;

    /* Standard font for BODY text (Shared) */
    --font-body: "Cairo", sans-serif;
}

/* --- 2. التنسيقات العامة والأساسية --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: var(--font-main); */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    font-family: var(--font-body);
    font-size: 15px;
}

html[lang="en"] body {
    text-transform: none;
    /* Allows lowercase */
}

html[lang="en"] p,
html[lang="en"] span:not(.logo-text span),
html[lang="en"] .product-info p,
html[lang="en"] .footer-col p,
html[lang="en"] .step-item p {
    font-family: var(--font-body);
}

/* Logic for Arabic Pages (html lang="ar") */
html[lang="ar"] body {
    font-size: 16px;
}

/* --- 4. Headers (Always using the Main Font) --- */
h1,
h2,
h3,
.logo-text h1,
nav a,
.cta-btn {
    font-family: var(--font-header);
    /* We keep uppercase for English headers to maintain the "Luxury" look */
}

/* html[lang="en"] h1, 
html[lang="en"] h2, 
html[lang="en"] h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
} */

/* Adjusting the Product Card Titles specifically */
.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}


a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.section {
    padding: 80px 5%;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- 3. الهيدر (القائمة العلوية) --- */
header {
    background-image: url('../images/header_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 15px 5%;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold);
    transition: transform 0.3s ease-in-out, position 0.3s, box-shadow 0.3s;
    transform: translateY(0);
}

/* كلاسات التحكم بالهيدر (JS) */
header.header-hidden-init {
    transform: translateY(-150%);
}

header.fixed-on-scroll {
    position: fixed;
    top: 0;
    transform: translateY(0);
}

header.fixed-init {
    position: fixed;
    top: -1px;
    left: 0;
}

/* تنسيقات الشعار داخل الهيدر */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-img {
    height: 45px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text span {
    font-size: 0.84rem;
    color: var(--accent-gold);
    display: block;
    line-height: 1;
}

/* الملاحة والروابط */
nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.2rem;
}

nav a:hover,
nav a.active {
    color: var(--accent-gold);
}

.cta-btn {
    background: var(--gold-gradient);
    color: var(--primary-navy);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.menu-toggle {
    display: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 4. الصفحة الرئيسية والأقسام --- */
.hero {
    background: url('../images/banner_2.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    max-width: 900px;
    line-height: 0.5;
    color: var(--accent-gold);
}

.hero h1 span {
    color: var(--accent-gold);
    font-size: 2rem;
    color: var(--accent-gold);
}

.hero p {
    font-size: 2.7rem !important;
    max-width: 700px;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--accent-gold);
}

.logo-inBanner {
    width: 200px;
}

.logo-inBanner img {
    width: 100%;
    height: auto;
}

/* الستارة */
.curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-navy);
    z-index: 50;
    transform: translateY(0);
}

.curtain.open {
    animation: openCurtain 1.5s ease-out forwards;
}

@keyframes openCurtain {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
    }
}

/* بطاقات المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

/* شريط الـ CTA النهائي */
.final-cta-bar {
    background-image: url('../images/header_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    padding: 60px 5%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;

}

.final-cta-bar h3 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.final-cta-bar .highlight-number {
    color: var(--accent-gold);
    font-size: 2.5rem;
    font-weight: 900;
    margin-right: 10px;
}

.final-cta-bar .cta-content {
    width: 60%;
}

.cta-large {
    padding: 18px 45px !important;
    font-size: 1.2rem !important;
}

/* --- 5. الفوتر (Footer) --- */
.main-footer {
    background-image: url('../images/header_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    color: #a0aab5;
    padding: 60px 5% 20px;
    border-top: 4px solid var(--accent-gold);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--accent-gold);
    margin-top: 5px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
}

.footer-col .logo-text {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-col .logo-text h2 {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.footer-col ul {
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--accent-gold);
    padding: 0px 5px;
}

.footer-col .social-links a:hover i {
    transition: .3s;
    transform: scale(1.2);
}

.footer-col .social-links a:hover {
    padding: 10px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-details i {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ffffff1a;
    margin-top: 30px;
    font-size: 0.9rem;
}

.social-links {
    margin: 10px 0px;
}

.social-links a {
    font-size: 20px;
    padding: 10px;
}

.footer-p {
    margin-bottom: 12px;
}

/* --- 6. العناصر العائمة --- */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
}

html[dir=ltr] .whatsapp-sticky {
    right: 20px;
}

html[dir=rtl] .whatsapp-sticky {
    left: 20px;
}

.mobile-only-btn {
    display: none;
}

.page-header {
    background-image: url('../images/header_bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    padding: 60px 5%;
    text-align: center;
}

/* --- 7. التجاوب (Media Queries) --- */

/* تابلت وجوال (أقل من 992px) */
@media (max-width: 992px) {
    header {
        justify-content: space-between;
        flex-direction: row-reverse;
    }

    .desktop-only-btn {
        display: none !important;
    }

    .mobile-only-btn {
        display: block;
        margin-top: 20px;
    }

    .mobile-only-btn .cta-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
    }

    .header-logo-img {
        height: 40px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-navy);
        padding: 30px;
        border-bottom: 2px solid var(--accent-gold);
        z-index: 999;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .final-cta-bar {
        text-align: center;
        flex-direction: column;
    }

    .cta-large {
        width: 100%;
        margin-top: 20px;
    }
}

/* جوال فقط (أقل من 768px) */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 2.1rem !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        margin: 5px auto 0;
    }

    .contact-details li {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .whatsapp-sticky {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        left: 15px;
        bottom: 15px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-navy);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gold);

}

html[dir=rtl] .section-header h2::after {
    margin: 10px auto 0px;
}

html[dir=ltr] .section-header h2::after {
    margin: 0px auto 10px;
}

/* --- Language Dropdown --- */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-dropdown {
    position: relative;
    cursor: pointer;
}

.lang-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--accent-gold);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.lang-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
}


.lang-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--primary-navy);
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    min-width: 120px;
    display: none;
    /* مخفية افتراضياً */
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.lang-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: right;
}

.lang-menu li a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

/* إظهار القائمة عند التحويم */
.db-block {
    display: block;
}

/* تنسيق خاص للجوال */
@media (max-width: 992px) {
    .lang-btn {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 850px) {
    .process-flow::before {
        display: none;
    }
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* .resource-category {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.resource-category h3 {
    color: var(--primary-navy);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.resource-category h3 i {
    color: var(--accent-gold);
} */

.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.document-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.document-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doc-icon {
    font-size: 2.5rem;
    color: #ff4d4d;
}

.document-info {
    flex-grow: 1;
}

.document-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-navy);
    font-size: 1.1rem;
}

.document-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.download-link {
    color: var(--primary-navy);
    font-size: 1.2rem;
    transition: 0.3s;
}

.download-link:hover {
    color: var(--accent-gold);
}

.missing-resource-cta {
    margin-top: 60px;
    background: var(--primary-navy);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.missing-resource-cta h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

/* .missing-resource-cta .cta-btn {
    background: white;
    color: var(--primary-navy);
    margin-top: 20px;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
} */

/* تنسيقات خاصة بقسم الموارد */

.resources-grid {
    /* display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px; */
    margin-top: 40px;
}

.resource-category {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.resource-category h3 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

.resource-category .documents-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.resource-category .documents-list div {
    display: flex;
}

.resource-category .documents-list .document-item {
    display: inline-flex;
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #ccc;
    width: 48%;
}

.resource-category .documents-list .document-item:last-child {
    border-bottom: none;
}

.document-info {
    display: flex;
    align-items: center;
}

.document-info i {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-left: 15px;
    margin-right: 15px;
}

.download-link {
    color: var(--accent-gold);
    font-weight: 600;
}

.download-link i {
    margin-left: 8px;
    color: var(--accent-gold);
    margin-right: 8px;
}

.download-link:hover {
    color: var(--primary-navy);
}

/* دعوة للعمل في حالة عدم العثور على المورد */
.missing-resource-cta {
    background-image: url('../images/header_bg.png');
    color: white;
    padding: 30px;
    margin-top: 50px;
    border-radius: 10px;
    text-align: center;
}

.missing-resource-cta h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .resource-category .documents-list .document-item {
        width: 100%;
    }

}

.cta-p {
    margin-bottom: 35px;
}