/* الأنماط العامة وإعادة الضبط */
:root {
    --primary-color: #d4af37; /* لون ذهبي أو بني فاتح */
    --secondary-color: #130eaa; /* لون أزرق داكن/بنفسجي */
    --accent-color: #ff9800; /* لون برتقالي (يمكن استخدامه للأزرار) */
    --text-dark: #333;
    --text-light: #fefbf6;
    --bg-light: #fefbf6;
    --bg-dark: #222;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    direction: rtl; /* لضمان الاتجاه من اليمين لليسار للصفحة بالكامل */
    text-align: right; /* محاذاة النص الافتراضية لليمين */
}

.container {
    max-width: 1200px;
    max-height: 200;
    margin: 0 auto;
    padding: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

h1 { font-size: 2.8em; text-align: center; }
h2 { font-size: 2.2em; text-align: center; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 10px;
}

.section-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 10px 5px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #c09e2e;
    border-color: #c09e2e;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #1DA851;
}

.email-btn {
    background-color: #EA4335; /* لون أحمر/برتقالي لـ Gmail */
    color: white;
}

.email-btn:hover {
    background-color: #D32F2F;
}

.site-btn {
    background-color: #4285F4; /* لون أزرق لجوجل */
    color: white;
}
.site-btn:hover {
    background-color: #357ae8;
}

/* قسم المقدمة (Hero Section) */
.hero-section {
    background: linear-gradient(to bottom, #fefbf6, #f0f0f0);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero-logo {
    width: 150px; /* أو حجم مناسب لشعارك */
    height: auto;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-section p {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 30px;
}

/* الأقسام العامة */
section {
    padding: 60px 20px;
    text-align: center;
}

section:nth-of-type(even) { /* خلفية فاتحة للتبادل بين الأقسام */
    background-color: #f7f7f7;
}

/* قسم "ماذا نقدم؟" */
.what-we-offer .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color); /* شريط علوي بلون مميز */
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
}

/* قسم "كيف يعمل؟" */
.how-it-works .steps-container {
    display: flex;
    flex-wrap: wrap; /* للسماح بالالتفاف على الشاشات الصغيرة */
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: calc(33% - 20px); /* 33% لكل عنصر مع مراعاة الفجوات */
    min-width: 280px; /* للتحكم في الحجم الأدنى على الشاشات الصغيرة */
    position: relative;
    padding-top: 50px; /* مساحة لرقم الخطوة */
    border-bottom: 4px solid var(--secondary-color);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%); /* لتوسيط الرقم */
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 0 0 5px rgba(19, 14, 234, 0.2); /* ظل حول الدائرة */
}

.step-item h3 {
    color: var(--secondary-color);
    font-size: 1.7em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.step-item p {
    color: #666;
    margin-bottom: 15px;
}

.step-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-top: 20px;
}


/* قسم "لماذا نحن؟" */
.why-us {
    background-color: var(--bg-light);
}

.why-us .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    border-right: 4px solid var(--accent-color); /* شريط جانبي بلون مميز */
}

.benefit-item i {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.6em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.benefit-item p {
    color: #666;
}


/* قسم التواصل */
.contact-us {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 20px;
}

.contact-us h2 {
    color: rgb(10, 2, 2);
    margin-bottom: 20px;
}

.contact-us p {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #130eaa;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-links .btn {
    min-width: 250px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-links .btn i {
    margin-left: 10px; /* مسافة بين الأيقونة والنص في RTL */
    font-size: 1.2em;
}

/* الفوتر */
footer {
    background-color: var(--bg-dark);
    color: #eee;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 5px;
}

footer h5 {
    color: #aaa;
    font-size: 0.8em;
    margin-top: 5px;
}

/* الاستجابة (Responsive Design) */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .hero-section {
        padding: 60px 20px;
    }

    .what-we-offer .features-grid,
    .why-us .benefits-grid {
        grid-template-columns: 1fr; /* عمود واحد على الشاشات الصغيرة */
    }

    .how-it-works .steps-container {
        flex-direction: column; /* الأقسام عمودية */
        align-items: center;
    }
    .step-item {
        width: 100%; /* عرض كامل */
        max-width: 400px; /* تحديد أقصى عرض للعناصر */
    }

    .contact-links .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    .hero-section p { font-size: 1em; }
    .btn { padding: 10px 20px; font-size: 0.9em; }
}