/* suater.css — مستخرج من page-suater-jaddeh.php */

/* إعدادات المتغيرات الأساسية */
    :root {
        --primary-gold: #C5A059;
        --secondary-gold: #8E6D2F;
        --dark-bg: #0a0a0a;
        --surface-bg: #121212;
        --glass-border: rgba(197, 160, 89, 0.15);
    }

    /* تحسينات الخط والاتجاه */
    body {
        font-family: 'Noto Kufi Arabic', sans-serif;
        background-color: var(--dark-bg);
        color: #f3f4f6;
        overflow-x: hidden;
    }

    .swater-master-wrapper {
        direction: rtl;
        background-color: var(--dark-bg);
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    /* تأثيرات النصوص الذهبية */
    .gold-text {
        background: linear-gradient(135deg, #F3E2B3 10%, #C5A059 50%, #8E6D2F 90%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: inline-block;
    }

    /* تحسين الأزرار */
    .btn-interact {
        background: linear-gradient(45deg, var(--secondary-gold), var(--primary-gold));
        color: #000 !important; /* لون نص واضح */
        font-weight: 800;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-radius: 1rem;
        position: relative;
        overflow: hidden;
        z-index: 30; /* فوق أي overlay */
    }

    .btn-interact::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.2);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.4s ease;
        z-index: -1;
    }

    .btn-interact:hover::before {
        transform: scaleX(1);
    }

    .btn-interact:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
    }
    
    .btn-interact span {
        position: relative;
        z-index: 40;
        color: #000 !important;
    }

    /* البطاقات الزجاجية المحسنة */
    .glass-card {
        background: rgba(30, 30, 30, 0.4);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 1.5rem;
        transition: all 0.4s ease;
    }

    .glass-card:hover {
        border-color: var(--primary-gold);
        background: rgba(197, 160, 89, 0.08);
        transform: translateY(-5px);
    }

    /* سلايدر سينمائي */
    .hero-slider-container {
        position: relative;
        height: 100vh;
        min-height: 600px;
        /* <!-- AI ADDITION --> Fix for mobile viewport height */
        height: 100dvh; 
        width: 100%;
        overflow: hidden;
    }

    .slide-item {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
        z-index: 1;
    }

    .slide-item.active {
        opacity: 1;
        z-index: 2;
    }

    .slide-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.1);
        transition: transform 10s linear;
        will-change: transform;
    }

    .slide-item.active .slide-image {
        transform: scale(1);
    }
    
    .hero-content {
        position: absolute;
        inset: 0;
        z-index: 10;
        display: flex;
        align-items: center; 
        justify-content: center;
        padding-top: 3rem;        
    }

    /* تحسينات الفلتر والمعرض */
    .filter-btn {
        transition: all 0.3s ease;
    }
    
    .filter-btn.active {
        background-color: var(--primary-gold);
        color: #000;
        border-color: var(--primary-gold);
    }

    .portfolio-item {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    
    .portfolio-item.hidden {
        display: none; 
    }
    
    .portfolio-item.fade-in {
        animation: fadeIn 0.6s forwards;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    /* الفواصل */
    .section-divider {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* زر واتساب العائم */
    .floating-whatsapp {
        position: fixed;
        bottom: 30px;
        left: 30px;
        background-color: #25D366;
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
        z-index: 9999;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .floating-whatsapp:hover {
        transform: scale(1.1);
    }

    /* تعديلات الجوال (Responsive) - تم التحديث لتحسين UX */
    @media (max-width: 768px) {
        .hero-slider-container {
            height: 100vh; /* ثبات كامل للشاشة */
            height: 100dvh;
            min-height: 550px;
        }

        .hero-content {
            align-items: center; /* توسيط المحتوى عمودياً للهاتف */
            padding-top: 4rem;
            padding-bottom: 2rem;
            height: 100%;
            /* <!-- AI ADDITION --> إضافة خلفية متدرجة لقراءة النص */
            background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
        }

        .hero-content > div {
            transform: none !important; /* إلغاء الإزاحة التي تسبب القطع */
            margin-top: auto;
            margin-bottom: auto;
            width: 100%;
        }
        
        .hero-content h1 {
            font-size: 1.8rem !important; /* تصغير العنوان قليلاً */
            line-height: 1.3;
        }
        
        .hero-content p {
            font-size: 1rem !important;
            margin-bottom: 1.5rem !important;
        }

        .btn-interact {
            font-size: 1rem;
            padding: 0.8rem 1.2rem;
            width: 100%;
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .hero-cta-container {
            flex-direction: column;
            width: 100%;
        }
    }
    
    
    /* ============================================================ */
/* sw-additions.css — CSS للأقسام الجديدة فقط                   */
/* Mobile First | RTL | لا تعارض مع الكود القائم               */
/* ============================================================ */

/* ------------------------------------------------------------ */
/* 1. قسم المناطق — sw-local-                                   */
/* ------------------------------------------------------------ */

.sw-local-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .sw-local-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sw-local-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sw-local-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.sw-local-card:hover {
    border-color: var(--primary-gold);
    background: rgba(197, 160, 89, 0.07);
    transform: translateY(-4px);
}

.sw-local-icon {
    font-size: 2rem;
    line-height: 1;
}

.sw-local-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: #C5A059;
    margin: 0;
}

.sw-local-desc {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.sw-local-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: #C5A059;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    align-self: flex-start;
}


/* ------------------------------------------------------------ */
/* 2. جدول المقارنة — sw-compare-                               */
/* ------------------------------------------------------------ */

.sw-compare-table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(197, 160, 89, 0.15);
    display: none;
}

@media (min-width: 768px) {
    .sw-compare-table-wrap {
        display: block;
    }
}

.sw-compare-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    font-size: 0.9rem;
}

.sw-compare-th {
    background: rgba(197, 160, 89, 0.08);
    color: #C5A059;
    font-weight: 800;
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    white-space: nowrap;
}

.sw-compare-th-label {
    text-align: right;
    color: #e5e7eb;
}

.sw-compare-th-featured {
    background: rgba(197, 160, 89, 0.18);
    border-right: 2px solid rgba(197, 160, 89, 0.5);
    border-left: 2px solid rgba(197, 160, 89, 0.5);
}

.sw-compare-row td {
    padding: 0.875rem 1.25rem;
    text-align: center;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.sw-compare-row-alt td {
    background: rgba(255,255,255,0.02);
}

.sw-compare-label {
    text-align: right !important;
    font-weight: 700;
    color: #f3f4f6 !important;
    white-space: nowrap;
}

.sw-compare-featured {
    background: rgba(197, 160, 89, 0.06) !important;
    border-right: 2px solid rgba(197, 160, 89, 0.3) !important;
    border-left: 2px solid rgba(197, 160, 89, 0.3) !important;
}

.sw-compare-stars {
    color: #F59E0B;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.sw-compare-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.sw-compare-badge-best { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.sw-compare-badge-good { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.sw-compare-badge-avg  { background: rgba(234,179,8,0.15);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.3); }

.sw-compare-price {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.sw-compare-price-low     { background: rgba(34,197,94,0.15);  color: #4ade80; }
.sw-compare-price-mid     { background: rgba(234,179,8,0.15);  color: #fbbf24; }
.sw-compare-price-high    { background: rgba(239,68,68,0.15);  color: #f87171; }

/* Mobile: بطاقات بدل الجدول */
.sw-compare-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sw-compare-mobile {
        display: none;
    }
}

.sw-compare-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
    position: relative;
}

.sw-compare-card-featured {
    border-color: rgba(197, 160, 89, 0.5) !important;
    background: rgba(197, 160, 89, 0.07) !important;
}

.sw-compare-badge-top {
    position: absolute;
    top: 0;
    right: 0;
    background: #C5A059;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 0 1.25rem 0 0.75rem;
}

.sw-compare-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #C5A059;
    margin-bottom: 0.75rem;
}

.sw-compare-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.sw-compare-card-row span:first-child { color: #9ca3af; }
.sw-compare-card-row span:last-child  { color: #e5e7eb; font-weight: 600; text-align: left; }


/* ------------------------------------------------------------ */
/* 3. دليل الأسعار — sw-price-                                  */
/* ------------------------------------------------------------ */

.sw-price-table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(197, 160, 89, 0.15);
    display: none;
}

@media (min-width: 768px) {
    .sw-price-table-wrap {
        display: block;
    }
}

.sw-price-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    font-size: 0.9rem;
}

.sw-price-table thead th {
    background: rgba(197, 160, 89, 0.1);
    color: #C5A059;
    font-weight: 800;
    padding: 1rem 1.5rem;
    text-align: right;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.sw-price-table tbody td {
    padding: 0.875rem 1.5rem;
    text-align: right;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.sw-price-alt td { background: rgba(255,255,255,0.02); }

.sw-price-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.sw-price-eco     { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.sw-price-mid     { background: rgba(234,179,8,0.15);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.25); }
.sw-price-high    { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.sw-price-luxury  { background: rgba(197,160,89,0.15); color: #C5A059; border: 1px solid rgba(197,160,89,0.4); }

.sw-price-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .sw-price-mobile { display: none; }
}

.sw-price-card { padding: 1.25rem; border-radius: 1.25rem; }

.sw-price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sw-price-card-title { font-weight: 800; color: #f3f4f6; font-size: 0.95rem; }
.sw-price-card-use   { font-size: 0.8rem; color: #9ca3af; margin-bottom: 0.375rem; }
.sw-price-card-life  { font-size: 0.8rem; color: #6b7280; }
.sw-price-card-life strong { color: #C5A059; }


/* ------------------------------------------------------------ */
/* 4. المشاريع — sw-project-                                    */
/* ------------------------------------------------------------ */

.sw-project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .sw-project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sw-project-card {
    padding: 1.75rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sw-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sw-project-location { font-size: 0.8rem; color: #9ca3af; }

.sw-project-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}

.sw-project-done {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
}

.sw-project-title { font-size: 1.2rem; font-weight: 800; color: #f3f4f6; margin: 0; }

.sw-project-block {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sw-project-problem  { background: rgba(239,68,68,0.07);  border: 1px solid rgba(239,68,68,0.15); }
.sw-project-solution { background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.15); }
.sw-project-result   { background: rgba(34,197,94,0.07);  border: 1px solid rgba(34,197,94,0.15); }

.sw-project-block-label { font-size: 0.75rem; font-weight: 800; color: #9ca3af; letter-spacing: 0.03em; }
.sw-project-block p     { font-size: 0.875rem; color: #d1d5db; line-height: 1.7; margin: 0; }


/* ------------------------------------------------------------ */
/* 5. روابط داخلية — sw-link-                                   */
/* ------------------------------------------------------------ */

.sw-link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .sw-link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
    .sw-link-grid { grid-template-columns: repeat(3, 1fr); }
}

.sw-link-card {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.sw-link-card:hover {
    border-color: var(--primary-gold);
    background: rgba(197, 160, 89, 0.07);
    transform: translateY(-3px);
}

.sw-link-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; margin-top: 0.2rem; }

.sw-link-content { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.sw-link-title   { font-size: 1.05rem; font-weight: 800; color: #f3f4f6; margin: 0; }
.sw-link-desc    { font-size: 0.825rem; color: #9ca3af; line-height: 1.6; margin: 0; }
.sw-link-cta     { font-size: 0.75rem; font-weight: 700; color: #C5A059; margin-top: 0.25rem; display: inline-block; }