@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,600&family=Poppins:wght@300;400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdf6ef;
    color: #2c1a0e;
    overflow-x: hidden;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.services-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 860;
    min-height: 480px;
    overflow: hidden;
}

.services-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 72px;
    max-width: 680px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   SERVICES TITLE
   ========================================================================== */
.services-main-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3.4rem;
    color: #2c1a0e;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 10px;
    margin-top: -40px;
}
.services-title-divider {
    width: 160px;
    height: 1.5px;
    background-color: #c9a05c;
    border: none;
    margin: 0 0 30px 0;
    position: relative;
}
.services-title-divider::after {
    content: '';
    position: absolute;
    left: 0; top: -3px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background-color: #c9a05c;
}

/* ==========================================================================
   WHITE LABEL CONTENT
   ========================================================================== */
.services-section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #b9863f;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.services-body-text {
    font-size: 0.92rem;
    color: #3a2a1a;
    line-height: 1.75;
    margin-bottom: 10px;
    max-width: 520px;
}
.services-bold-line {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c1a0e;
    margin-bottom: 28px;
    max-width: 520px;
}

/* ==========================================================================
   CONTACT BOX — base styles
   ========================================================================== */
.services-contact-box {
    border: 1.5px solid #d9c5b0;
    border-radius: 10px;
    padding: 22px 26px;
    background-color: rgba(255,255,255,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    
}
.services-contact-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2c1a0e;
    margin-bottom: 4px;
}
.services-contact-text p {
    font-size: 0.8rem;
    color: #6b4f38;
}
.services-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #2c1a0e;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 13px 22px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.services-contact-btn:hover {
    background-color: #b9863f;
    transform: translateX(3px);
}

/* الديسكتوب: Contact جوّا الـ hero، بدون margin زيادة */
.services-contact-desktop {
    display: flex;
    max-width: 600px;
    margin-top: -2px ;
    margin-left: -20px;
}

/* الموبايل: Contact بره الـ hero، مخفي على الديسكتوب */
.services-contact-mobile {
    display: none;
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */
.services-benefits {
    padding: 70px 60px 80px;
    background-color: #fdf6ef;
}
.services-benefits-title {
    text-align: center;
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.services-benefits-title::before,
.services-benefits-title::after {
    content: '';
    flex: 1;
    max-width: 160px;
    height: 1px;
    background-color: #c9a05c;
    opacity: 0.6;
}
.services-benefits-title h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.45rem;
    color: #2c1a0e;
    white-space: nowrap;
}
.services-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.benefit-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
}
.benefit-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #f3e3c8;
    color: #6b3d1e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.benefit-text h4 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #2c1a0e;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.benefit-text p {
    font-size: 0.8rem;
    color: #5a4636;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE — تابلت (991px وأقل)
   ========================================================================== */
@media (max-width: 991.98px) {
    .services-hero-content { padding: 40px 36px; max-width: 58%; }
    .services-main-title { font-size: 2.4rem; }
    .services-contact-desktop { margin-top: -80px; margin-left: 0; }
    .services-benefits { padding: 50px 30px 60px; }
    .services-benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ==========================================================================
   RESPONSIVE — موبايل (767px وأقل)
   الترتيب: نص → صورة → contact → benefits
   ========================================================================== */
@media (max-width: 767.98px) {

    /* الـ hero يتحول لعمود: النص فوق، الصورة تحته */
    .services-hero {
        aspect-ratio: unset;
        min-height: unset;
        display: flex;
        flex-direction: column;
    }

    /* إلغاء الـ overlay */
    .services-hero::before { display: none; }

    /* الصورة: block عادي تحت النص */
    .services-hero-bg {
        position: relative;
        order: 2;
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: center;
    }

    /* النص: فوق بخلفية فاتحة */
    .services-hero-content {
        position: relative;
        order: 1;
        max-width: 100%;
        width: 100%;
        padding: 36px 22px 28px;
        background-color: #fdf6ef;
        justify-content: flex-start;
    }

    /* Contact الديسكتوب: مخفي على الموبايل */
    .services-contact-desktop { display: none; }

    /* Contact الموبايل: ظاهر تحت الـ hero (بعد الصورة) */
    .services-contact-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        text-align: center;
        margin: 24px 16px 40px;
        padding: 24px 20px;
        border: 1.5px solid #d9c5b0;
        border-radius: 10px;
        background-color: #fdf6ef;
        backdrop-filter: none;
    }
    .services-contact-mobile .services-contact-text h4 {
        font-size: 0.95rem;
        font-weight: 700;
    }
    .services-contact-mobile .services-contact-text p {
        font-size: 0.82rem;
        color: #6b4f38;
        margin-top: 4px;
    }
    .services-contact-mobile .services-contact-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 0.82rem;
        background-color: #3d1f0a;
        margin-top: 6px;
    }

    /* النصوص في الموبايل */
    .services-main-title { font-size: 2.2rem; margin-top: 0; }
    .services-section-title { font-size: 1.05rem; }
    .services-body-text { font-size: 0.9rem; line-height: 1.75; }
    .services-bold-line { font-size: 0.9rem; margin-bottom: 0; }

    /* Benefits */
    .services-benefits { padding: 44px 20px 56px; }
    .services-benefits-grid { grid-template-columns: 1fr; gap: 28px; }
    .services-benefits-title h2 { font-size: 1.1rem; white-space: normal; text-align: center; }
}@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,600&family=Poppins:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdf6ef;
    color: #2c1a0e;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.services-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 860;
    min-height: 480px;
    overflow: hidden;
}

.services-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 72px;
    max-width: 680px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   SERVICES TITLE
   ========================================================================== */
.services-main-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 3.4rem;
    color: #2c1a0e;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 10px;
    margin-top: -40px;
}
.services-title-divider {
    width: 160px;
    height: 1.5px;
    background-color: #c9a05c;
    border: none;
    margin: 0 0 30px 0;
    position: relative;
}
.services-title-divider::after {
    content: '';
    position: absolute;
    left: 0; top: -3px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background-color: #c9a05c;
}

/* ==========================================================================
   WHITE LABEL CONTENT
   ========================================================================== */
.services-section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #b9863f;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.services-body-text {
    font-size: 0.92rem;
    color: #3a2a1a;
    line-height: 1.75;
    margin-bottom: 10px;
    max-width: 520px;
}
.services-bold-line {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c1a0e;
    margin-bottom: 28px;
    max-width: 520px;
}

/* ==========================================================================
   CONTACT BOX — base styles
   ========================================================================== */
.services-contact-box {
    border: 1.5px solid #d9c5b0;
    border-radius: 10px;
    padding: 22px 26px;
    background-color: rgba(255,255,255,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    
}
.services-contact-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2c1a0e;
    margin-bottom: 4px;
}
.services-contact-text p {
    font-size: 0.8rem;
    color: #6b4f38;
}
.services-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #2c1a0e;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 13px 22px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.services-contact-btn:hover {
    background-color: #b9863f;
    transform: translateX(3px);
}

/* الديسكتوب: Contact جوّا الـ hero، بدون margin زيادة */
.services-contact-desktop {
    display: flex;
    max-width: 600px;
    margin-top: -2px ;
    margin-left: -20px;
}

/* الموبايل: Contact بره الـ hero، مخفي على الديسكتوب */
.services-contact-mobile {
    display: none;
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */
.services-benefits {
    padding: 70px 60px 80px;
    background-color: #fdf6ef;
}
.services-benefits-title {
    text-align: center;
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.services-benefits-title::before,
.services-benefits-title::after {
    content: '';
    flex: 1;
    max-width: 160px;
    height: 1px;
    background-color: #c9a05c;
    opacity: 0.6;
}
.services-benefits-title h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.45rem;
    color: #2c1a0e;
    white-space: nowrap;
}
.services-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.benefit-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
}
.benefit-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #f3e3c8;
    color: #6b3d1e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.benefit-text h4 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #2c1a0e;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.benefit-text p {
    font-size: 0.8rem;
    color: #5a4636;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE — تابلت (991px وأقل)
   ========================================================================== */
@media (max-width: 991.98px) {
    .services-hero-content { padding: 40px 36px; max-width: 58%; }
    .services-main-title { font-size: 2.4rem; }
    .services-contact-desktop { margin-top: -80px; margin-left: 0; }
    .services-benefits { padding: 50px 30px 60px; }
    .services-benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ==========================================================================
   RESPONSIVE — موبايل (767px وأقل)
   الترتيب: نص → صورة → contact → benefits
   ========================================================================== */
@media (max-width: 767.98px) {

    /* الـ hero يتحول لعمود: النص فوق، الصورة تحته */
    .services-hero {
        aspect-ratio: unset;
        min-height: unset;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    /* إلغاء الـ overlay */
    .services-hero::before { display: none; }

    /* الصورة: block عادي تحت النص */
    .services-hero-bg {
        position: relative;
        order: 2;
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: center;
    }

    /* النص: فوق بخلفية فاتحة */
    .services-hero-content {
        position: relative;
        order: 1;
        max-width: 100%;
        width: 100%;
        padding: 36px 22px 28px;
        background-color: #fdf6ef;
        justify-content: flex-start;
    }

    /* Contact الديسكتوب: مخفي على الموبايل */
    .services-contact-desktop { display: none; }

    /* Contact الموبايل: ظاهر تحت الـ hero (بعد الصورة) */
    .services-contact-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        text-align: center;
        margin: 24px 16px 40px;
        padding: 24px 20px;
        border: 1.5px solid #d9c5b0;
        border-radius: 10px;
        background-color: #fdf6ef;
        backdrop-filter: none;
        max-width: 100%;
    }
    .services-contact-mobile .services-contact-text h4 {
        font-size: 0.95rem;
        font-weight: 700;
    }
    .services-contact-mobile .services-contact-text p {
        font-size: 0.82rem;
        color: #6b4f38;
        margin-top: 4px;
    }
    .services-contact-mobile .services-contact-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 0.82rem;
        background-color: #3d1f0a;
        margin-top: 6px;
    }

    /* النصوص في الموبايل */
    .services-main-title { font-size: 2.2rem; margin-top: 0; letter-spacing: 2px; }
    .services-section-title { font-size: 1.05rem; }
    .services-body-text { font-size: 0.9rem; line-height: 1.75; max-width: 100%; }
    .services-bold-line { font-size: 0.9rem; margin-bottom: 0; max-width: 100%; }

    /* Benefits */
    .services-benefits { padding: 44px 20px 56px; }
    .services-benefits-grid { grid-template-columns: 1fr; gap: 28px; }
    .services-benefits-title h2 { font-size: 1.1rem; white-space: normal; text-align: center; }
    .services-benefits-title::before,
    .services-benefits-title::after { max-width: 60px; }
}

/* ==========================================================================
   RESPONSIVE — موبايل متوسط (575.98px وأقل)
   ========================================================================== */
@media (max-width: 575.98px) {
    .services-hero-bg { height: 220px; }
    .services-hero-content { padding: 30px 18px 24px; }
    .services-main-title { font-size: 1.9rem; }
    .services-section-title { font-size: 0.95rem; letter-spacing: 1px; }
    .services-body-text { font-size: 0.85rem; }
    .services-bold-line { font-size: 0.85rem; }

    .services-contact-mobile {
        margin: 20px 14px 32px;
        padding: 20px 16px;
    }
    .services-contact-mobile .services-contact-text h4 { font-size: 0.88rem; }
    .services-contact-mobile .services-contact-text p { font-size: 0.78rem; }
    .services-contact-mobile .services-contact-btn { font-size: 0.78rem; padding: 13px; }

    .services-benefits { padding: 36px 16px 44px; }
    .services-benefits-title { margin-bottom: 40px; gap: 12px; }
    .services-benefits-title h2 { font-size: 1rem; }
    .benefit-icon { width: 50px; height: 50px; font-size: 1.2rem; }
    .benefit-text h4 { font-size: 0.78rem; }
    .benefit-text p { font-size: 0.76rem; line-height: 1.55; }
}

/* ==========================================================================
   RESPONSIVE — موبايل صغير جداً (380px وأقل)
   ========================================================================== */
@media (max-width: 380px) {
    .services-hero-bg { height: 190px; }
    .services-hero-content { padding: 26px 16px 20px; }
    .services-main-title { font-size: 1.6rem; letter-spacing: 1px; margin-bottom: 6px; }
    .services-title-divider { width: 110px; margin-bottom: 20px; }
    .services-section-title { font-size: 0.85rem; }
    .services-body-text { font-size: 0.8rem; line-height: 1.65; }
    .services-bold-line { font-size: 0.8rem; }

    .services-contact-mobile { margin: 18px 10px 28px; padding: 18px 14px; }
    .services-contact-mobile .services-contact-text h4 { font-size: 0.82rem; }
    .services-contact-mobile .services-contact-text p { font-size: 0.74rem; }

    .services-benefits { padding: 30px 14px 40px; }
    .benefit-item { gap: 14px; }
    .benefit-icon { width: 44px; height: 44px; font-size: 1.05rem; }
    .benefit-text h4 { font-size: 0.74rem; }
    .benefit-text p { font-size: 0.72rem; }
}

/* ==========================================================================
   RESPONSIVE — موبايل بالوضع الأفقي (landscape)
   ========================================================================== */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
    .services-hero-bg { height: 160px; }
    .services-hero-content { padding: 20px 24px; }
    .services-main-title { font-size: 1.7rem; margin-bottom: 4px; }
    .services-title-divider { margin-bottom: 14px; }
}

/* ==========================================================================
   NEW ADDITIONS — language toggle button + Arabic mode
   ========================================================================== */

.lang-toggle-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 999;
    background-color: #2c1a0e;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(44,26,14,0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lang-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(44,26,14,0.4);
}
.lang-toggle-btn i { font-size: 0.9rem; }

@media (max-width: 480px) {
    .lang-toggle-btn {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* Arabic language mode — text only, layout/order untouched */
body.lang-ar {
    font-family: 'Tajawal', sans-serif;
}
body.lang-ar .services-main-title,
body.lang-ar .services-section-title,
body.lang-ar .services-body-text,
body.lang-ar .services-bold-line,
body.lang-ar .services-contact-text h4,
body.lang-ar .services-contact-text p,
body.lang-ar .services-contact-btn,
body.lang-ar .services-benefits-title h2,
body.lang-ar .benefit-text h4,
body.lang-ar .benefit-text p {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}