/* =========================================
   تنسيقات شريط التاغات والمحتوى الديناميكي - Dimensions
========================================= */

:root {
    --color-gold: #c5a880;
    --color-dark: #080808;
    --color-gray: #121212;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-text: #ffffff;
    --color-muted: rgba(255, 255, 255, 0.65);
    --transition-pane: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    background-color: var(--color-dark);
    color: var(--color-text);
}

/* ==================== 
   شريط الـ Tag Bar الفاخر 
==================== */
.arch-tagbar-container {
    position: sticky;
    top: 120px;
    margin-top: 160px;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.arch-tag-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.arch-tag-bar::-webkit-scrollbar {
    display: none;
}

.tag-btn {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-muted);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 💡 تعديل اتجاه الأيقونة لتدعم اللغات */
.tag-btn i {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.tag-btn:hover {
    color: #fff;
    border-color: rgba(197, 168, 128, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.tag-btn.active {
    background: var(--color-gold);
    color: #000;
    font-weight: 600;
    border-color: var(--color-gold);
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.25);
}

.tag-btn.active i {
    color: #000;
}

/* ==================== 
   إدارة حركة الـ Panes (إخفاء وإظهار)
==================== */
.arch-service-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-pane);
}

.arch-service-pane.active-pane {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 
   تنسيقات الأقسام المعمارية في الهيرو والداخل 
==================== */
.arch-hero-section {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.arch-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.arch-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.3) 0%, rgba(8, 8, 8, 0.95) 100%);
    z-index: 2;
}

.arch-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.arch-eyebrow {
    display: inline-block;
    color: var(--color-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.arch-title {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.arch-subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.8;
}

/* تفاصيل سكشن المحتوى والمعرض الهندسي */
.arch-details-section {
    padding: 80px 0 120px;
}

.arch-section-title {
    font-size: 2.3rem;
    font-weight: 700;
}

.arch-section-title span { color: var(--color-gold); }

.arch-gold-line {
    width: 70px;
    height: 3px;
    background: var(--color-gold);
    margin-bottom: 30px;
    border-radius: 2px;
}

.arch-paragraph {
    font-size: 1.05rem;
    color: var(--color-muted);
    line-height: 1.9;
}

/* ==================== 
   الكولاج والتداخل المعماري للصور (تم الإصلاح هنا للغات) 
==================== */
.arch-image-collage {
    position: relative;
    display: flex; /* لسهولة التحكم في تموضع الصورة الأساسية */
}

.img-main {
    width: 90%;
    height: 480px;
    background-size: cover; /* 💡 يضمن عمل الصورة إذا كانت Div */
    background-position: center;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin-inline-start: auto; /* 💡 يرسل الصورة الأساسية للجهة المعاكسة تلقائياً لترك مساحة للصورة الصغيرة */
}

.img-float {
    position: absolute;
    bottom: -30px;
    inset-inline-start: 0; /* 💡 الذكاء هنا: لليمين في العربي، ولليسار في التركي/الإنكليزي */
    width: 50%;
    height: 280px;
    background-size: cover; /* 💡 يضمن عمل الصورة إذا كانت Div */
    background-position: center;
    object-fit: cover;
    border-radius: 12px;
    border: 6px solid var(--color-dark);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    z-index: 2; /* يضمن بقاء الصورة الصغيرة فوق الكبيرة */
}

/* سكشن الـ CTA السفلي */
.arch-cta-section {
    padding: 100px 0;
    background-color: var(--color-gray);
    position: relative;
}

.arch-cta-section h2 { font-size: 2.3rem; margin-bottom: 15px; }
.arch-cta-section p { color: var(--color-muted); margin-bottom: 30px; }

.arch-btn-solid {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    background: var(--color-gold);
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

.arch-btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
    color: #ffffff;
}

/* التجاوب مع الجوالات */
@media (max-width: 991px) {
    .arch-tagbar-container { 
        top: 80px; 
        margin-top: 110px; 
    } 
    .arch-image-collage { margin-bottom: 50px; }
    .img-main { width: 100%; }
    /* 💡 التعديل هنا ليتناسب مع الخصائص المنطقية */
    .img-float { width: 55%; inset-inline-start: -10px; } 
}

@media (max-width: 768px) {
    .arch-tag-bar { justify-content: flex-start; padding: 0 15px; }
    .arch-title { font-size: 2.2rem; }
    .img-main { height: 350px; }
    .img-float { height: 200px; }
}

/* ==================== 
   إصلاح محاذاة النصوص للغات الأجنبية (LTR) 
==================== */
[dir="ltr"] .arch-text-content,
[dir="ltr"] .arch-hero-content {
    text-align: left !important;
}

[dir="ltr"] .arch-gold-line {
    margin-left: 0;
    margin-right: auto;
}