/* ==========================================================================
   style.css - ملف التنسيق الموحد الفخم والمتحرك لجميع أزرار ودعوات الاتصال
   ========================================================================== */

/* 1. إعداد المتغيرات اللونية والتصميمية المشتركة */
:root {
    --primary-color: #1a1a1a;    /* أسود فاخر ملوكي */
    --accent-color: #c5a059;     /* ذهبي ملكي دافئ للأصباغ */
    --accent-hover: #b38f4b;     /* درجة أغمق للذهبي */
    --bg-light: #fcfcfc;         
    --bg-card: #ffffff;          
    --text-dark: #2c2c2c;        
    --text-muted: #666666;       
    --white: #ffffff;
    --border-color: #eaeaea;     
    --whatsapp-color: #25d366;   /* لون الواتساب الغني الصافي */
    --phone-color: #007aff;      
    --transition-speed: 0.3s;
}

/* 2. الإعدادات العامة للمتصفح والتوافق */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

/* 3. حاويات التنسيق الهيكلية */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

/* العناوين الموحدة */
.main-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 4. الأزرار العامة وعناصر التفاعل (CTAs) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.btn:active {
    transform: scale(0.98);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* 5. تصميم صفحات الخدمات الداخلية الفردية */
.page-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
    color: var(--white);
    padding: 80px 0 50px 0;
    border-bottom: 3px solid var(--accent-color);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.1rem;
    color: #dddddd;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* شبكة محتوى الخدمة والشرح */
.content-section {
    padding: 50px 0;
}

.service-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .service-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.detail-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-right: 4px solid var(--accent-color);
    padding-right: 12px;
}

.detail-text p {
    font-size: 1rem;
    color: #444444;
    margin-bottom: 20px;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* 6. شبكة الصور الثنائية المقاومة للاهتزاز (Two-Column Responsive Grid) */
.gallery-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* تظهر دائماً على شكل صورتين متجاورتين */
    gap: 15px;
    margin-top: 25px;
}

.gallery-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding-top: 100%; /* نسبة 1:1 لثبات الأبعاد وتجنب CLS */
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
}

.gallery-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

/* ==========================================================================
   تنسيقات النماذج الفاخرة والموحدة (حقول إدخال كبيرة، واحترافية للهواتف)
   ========================================================================== */
.form-card, .form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* حقول مريحة وتفاعلية تماماً للكتابة واللمس على الموبايل */
.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background-color: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.25s ease;
    -webkit-appearance: none; /* حماية مظهر سفاري للآيفون */
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

/* زر إرسال النموذج الفاخر */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #c5a059 0%, #b38f4b 100%);
    color: var(--primary-color) !important;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #b38f4b 0%, #c5a059 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.45);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ==========================================================================
   تنسيقات الفخامة المطلقة (أزرار صلبة بالكامل ومضيئة ذاتياً بأمواج النبض)
   ========================================================================== */

/* زر الواتساب الفاخر - صلب بالكامل وغير شفاف */
.btn-lux-whatsapp {
    background-color: var(--whatsapp-color) !important;
    background: linear-gradient(135deg, #25d366 0%, #1eaf52 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45) !important;
    font-weight: 700 !important;
    border: none !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
    animation: pulseAuraGreen 2.5s infinite ease-in-out;
}

/* زر الاتصال الهاتفي الفاخر - صلب بالكامل ذهبي ملوكي غير شفاف */
.btn-lux-phone {
    background-color: var(--accent-color) !important;
    background: linear-gradient(135deg, #c5a059 0%, #b38f4b 100%) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.45) !important;
    font-weight: 700 !important;
    border: none !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
    animation: pulseAuraGold 2.5s infinite ease-in-out;
}

/* هالات النبض الضوئية الفاخرة للأزرار المصمتة */
@keyframes pulseAuraGreen {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65), 0 4px 12px rgba(0,0,0,0.2); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 6px 18px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 12px rgba(0,0,0,0.2); }
}

@keyframes pulseAuraGold {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.65), 0 4px 12px rgba(0,0,0,0.2); }
    70% { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0), 0 6px 18px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0), 0 4px 12px rgba(0,0,0,0.2); }
}

/* تلوين وضبط أيقونات الأزرار العائمة لمنع أي تداخل أو شفافية */
.floating-btn svg {
    width: 28px !important;
    height: 28px !important;
    fill: #ffffff !important;
    display: block;
}

.floating-btn.btn-lux-phone svg {
    fill: var(--primary-color) !important; /* أيقونة الاتصال داكنة فوق الزر الذهبي لمظهر كلاسيكي */
}

/* زر الصعود للأعلى ملوكي صلب */
.btn-back-to-top {
    background-color: var(--primary-color) !important;
    border: 2px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
    opacity: 1 !important;
}

.btn-back-to-top svg {
    fill: var(--accent-color) !important;
}

/* 9. توافق كامل مع الهواتف الذكية الصغيرة جداً */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.6rem;
    }

    .page-hero {
        padding: 60px 0 40px 0;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%; /* تصبح الأزرار بكامل العرض على الشاشات الصغيرة جداً للتسهيل */
        padding: 12px 20px;
    }

    .gallery-grid-two {
        gap: 10px;
    }
}
