/* =========================================================
   FAYADH WEBSITE — FOR SERVICE PROVIDERS
   The app's provider promotion: heading, the three benefits
   (Connect / Grow / Get Trusted), a button to the app, and
   the provider image, inside one rounded panel.
========================================================= */


/* =========================================================
   1. SECTION & PANEL
========================================================= */

.providers {
    background: var(--white);
}

.provider-panel {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;

    gap: 32px;

    padding: 40px 0 0 44px;

    overflow: hidden;

    background:
        radial-gradient(circle at 15% 0%, var(--secondary-tint), transparent 45%),
        var(--background-cool);

    border: 1px solid var(--border);
    border-radius: 24px;
}

/* In Arabic the padding mirrors (content on the right). */

html[dir="rtl"] .provider-panel {
    padding: 40px 44px 0 0;
}


/* =========================================================
   2. CONTENT
========================================================= */

.provider-content {
    padding-bottom: 40px;
}

/* Heading: "Are you a" + highlighted "Service Provider?" (like the app) */

/* Same size as the other section titles. */

.provider-title {
    margin-top: 12px;

    color: var(--heading);

    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}

html[dir="rtl"] .provider-title {
    line-height: 1.4;
}

.provider-title-highlight {
    color: var(--primary);
}

.provider-text {
    max-width: 460px;

    margin-top: 10px;

    color: var(--text);

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   3. BENEFITS
========================================================= */

.benefits {
    margin-top: 20px;

    display: grid;

    gap: 12px;

    list-style: none;
}

.benefit {
    display: flex;
    align-items: center;

    gap: 14px;
}

.benefit-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--primary-light);
    color: var(--primary);

    border-radius: 50%;
}

.benefit-icon svg {
    width: 20px;
    height: 20px;
}

.benefit-text {
    display: flex;
    flex-direction: column;

    gap: 2px;

    color: var(--text);

    font-size: 13px;
    line-height: 1.4;
}

.benefit-text strong {
    color: var(--heading);

    font-size: 15px;
    font-weight: 800;
}


/* Buttons: register (to the app) + learn more (providers.html) */

.provider-actions {
    margin-top: 24px;

    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================================
   4. IMAGE
   Sits on the panel's bottom edge. Mirrored in Arabic so its
   green shapes still face the text.
========================================================= */

.provider-media {
    align-self: end;
}

.provider-media img {
    width: 100%;
    height: auto;
}

html[dir="rtl"] .provider-media img {
    transform: scaleX(-1);
}


/* =========================================================
   5. RESPONSIVE
   Below 900px the image goes under the text.
========================================================= */

@media (max-width: 900px) {

    .provider-panel,
    html[dir="rtl"] .provider-panel {
        grid-template-columns: 1fr;

        gap: 0;

        padding: 32px 24px 0;

        text-align: center;
    }

    .provider-content {
        padding-bottom: 24px;
    }

    .provider-text {
        margin-inline: auto;
    }

    .provider-actions {
        justify-content: center;
    }

    .benefits {
        max-width: 340px;

        margin-inline: auto;

        text-align: start;
    }

    /* The photo's straight edge meets the panel's edge, like on
       desktop: cancel the panel padding on the inline-end side. */

    .provider-media {
        width: 100%;
        max-width: 480px;

        margin-inline-start: auto;
        margin-inline-end: -24px;
    }

}

@media (max-width: 520px) {

    .provider-panel,
    html[dir="rtl"] .provider-panel {
        padding: 28px 20px 0;

        border-radius: 20px;
    }

    .provider-media {
        margin-inline-end: -20px;
    }

    .provider-actions .button {
        width: 100%;

        white-space: normal;
    }

}
