/**
 * ==========================================================================
 * Layout 4: Showcase (عرض)
 * الوصف: هيرو شريطي + بطاقات عريضة + مشاريع masonry
 * ==========================================================================
 */

/* --- الهيرو الشريطي --- */
.layout4-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 80px;
    text-align: center;
    position: relative;
    background: var(--cream);
    overflow: hidden;
}

.layout4-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(184,134,11,0.06) 0%, transparent 60%);
}

.layout4-hero-inner { position: relative; z-index: 2; max-width: 800px; }

.layout4-hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease both;
}

.layout4-hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.layout4-hero .hero-en {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-light);
    letter-spacing: 3px;
    margin-bottom: 20px;
    direction: ltr;
    animation: fadeInUp 0.8s ease 0.35s both;
}

.layout4-hero p {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.layout4-hero .hero-buttons { animation: fadeInUp 0.8s ease 0.65s both; }

/* Gallery strip */
.layout4-hero-gallery {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease 0.8s both;
}

.layout4-hero-img {
    border-radius: 20px;
    overflow: hidden;
    flex: 1;
    max-height: 250px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.layout4-hero-img:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.layout4-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.layout4-hero-img-1 { flex: 2; }

/* --- الإحصائيات inline --- */
.layout4-stats .stats-grid {
    display: flex;
    justify-content: center;
    gap: 0;
}
.layout4-stats .stat-item {
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border-light);
    background: transparent;
    padding: 30px 50px;
}
.layout4-stats .stat-item:last-child { border-left: none; }
html[dir="rtl"] .layout4-stats .stat-item { border-left: none; border-right: 1px solid var(--border-light); }
html[dir="rtl"] .layout4-stats .stat-item:last-child { border-right: none; }

/* --- الخدمات عريضة --- */
.layout4-services .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.layout4-service-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    text-align: right;
    padding: 35px;
}
html[dir="ltr"] .layout4-service-card { text-align: left; }
.layout4-service-card .service-icon-wrap { margin: 0; flex-shrink: 0; }
.layout4-service-featured { grid-column: 1 / -1; }

/* --- المشاريع masonry --- */
.layout4-projects .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
}
.layout4-projects .project-card:first-child {
    grid-row: span 2;
}
.layout4-projects .project-card:first-child .project-visual {
    height: 100%;
    min-height: 300px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .layout4-services .services-grid { grid-template-columns: 1fr; }
    .layout4-service-featured { grid-column: auto; }
    .layout4-projects .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .layout4-projects .project-card:first-child { grid-row: auto; }
}

@media (max-width: 768px) {
    .layout4-hero { padding: 100px 25px 60px; min-height: auto; }
    .layout4-hero h1 { font-size: 2.8rem; }
    .layout4-hero-gallery { flex-direction: column; margin-top: 40px; }
    .layout4-hero-img { max-height: 180px; }
    .layout4-stats .stats-grid { flex-wrap: wrap; }
    .layout4-stats .stat-item { flex: 0 1 50%; border: none; border-bottom: 1px solid var(--border-light); }
    .layout4-services .services-grid { grid-template-columns: 1fr; }
    .layout4-service-card { flex-direction: column; text-align: center; }
    html[dir="ltr"] .layout4-service-card { text-align: center; }
    .layout4-service-card .service-icon-wrap { margin: 0 auto; }
    .layout4-projects .projects-grid { grid-template-columns: 1fr; }
}
