/**
 * ==========================================================================
 * قالب: Layout 2 - عصري
 * الوصف: هيرو مقسوم (نص + صورة) + بطاقات 3 أعمدة + مشاريع 2 أعمدة
 * ==========================================================================
 */


/* --- الهيرو مقسوم --- */
.layout2-hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 60px 60px;
    background: var(--cream);
    gap: 60px;
    position: relative;
    overflow: hidden;
}

.layout2-hero-text {
    position: relative;
    z-index: 2;
}

.layout2-hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.layout2-hero-text .hero-en {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 20px;
    direction: ltr;
}

.layout2-hero-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 35px;
    max-width: 500px;
}

.layout2-hero-image {
    position: relative;
    z-index: 2;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

.layout2-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout2-hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--cream-2);
    border: 2px dashed var(--border);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 350px;
}

.layout2-hero-image-placeholder span {
    font-size: 3rem;
    opacity: 0.3;
}

.layout2-hero-image-placeholder p {
    color: var(--text-light);
    font-size: 0.85rem;
}


/* --- الخدمات 3 أعمدة --- */
.layout2-services .services-grid {
    grid-template-columns: repeat(3, 1fr);
}


/* --- المشاريع 2 أعمدة --- */
.layout2-projects .projects-grid {
    grid-template-columns: repeat(2, 1fr);
}


/* --- الإحصائيات شريط أفقي --- */
.layout2-stats .stats-grid {
    display: flex;
    justify-content: center;
    gap: 0;
}

.layout2-stats .stat-item {
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border-light);
    background: transparent;
    padding: 30px 40px;
}

.layout2-stats .stat-item:last-child {
    border-left: none;
}

html[dir="rtl"] .layout2-stats .stat-item {
    border-left: none;
    border-right: 1px solid var(--border-light);
}

html[dir="rtl"] .layout2-stats .stat-item:last-child {
    border-right: none;
}


/* --- من نحن معكوس --- */
.layout2-about .about-grid {
    grid-template-columns: 1fr 1fr;
    direction: ltr;
}

html[dir="rtl"] .layout2-about .about-grid {
    direction: rtl;
}

html[dir="rtl"] .layout2-about .about-grid > :first-child {
    order: 2;
}

html[dir="rtl"] .layout2-about .about-grid > :last-child {
    order: 1;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
    .layout2-services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .layout2-hero {
        grid-template-columns: 1fr;
        padding: 100px 25px 40px;
        min-height: auto;
        gap: 30px;
    }

    .layout2-hero-text h1 {
        font-size: 2.5rem;
    }

    .layout2-hero-image {
        order: -1;
    }

    .layout2-services .services-grid,
    .layout2-projects .projects-grid {
        grid-template-columns: 1fr;
    }

    .layout2-stats .stats-grid {
        flex-wrap: wrap;
    }

    .layout2-stats .stat-item {
        flex: 0 1 50%;
        border: none;
        border-bottom: 1px solid var(--border-light);
    }
}
