/* CODFIX v5.12.1 HF2 — Slider title + restore 8 homepage services */

/* Slider title: slightly smaller, balanced, and limited to two visual lines. */
.cfx5121-hero-copy h1 {
    font-size: clamp(2.35rem, 3.75vw, 4.15rem) !important;
    line-height: 1.38 !important;
    letter-spacing: -0.018em !important;
    max-width: 18ch !important;
    margin-block: 14px 18px !important;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

[dir="rtl"] .cfx5121-hero-copy h1,
[lang="ar"] .cfx5121-hero-copy h1 {
    font-size: clamp(2.3rem, 3.65vw, 4rem) !important;
    line-height: 1.48 !important;
    letter-spacing: 0 !important;
    word-spacing: 0.04em;
    max-width: 19ch !important;
}

/* Keep the restored legacy services section visually aligned with v5.12.1 typography. */
.cfx33-services-heading h2 {
    line-height: 1.42 !important;
    letter-spacing: -0.02em !important;
}

[dir="rtl"] .cfx33-services-heading h2,
[lang="ar"] .cfx33-services-heading h2 {
    letter-spacing: 0 !important;
    line-height: 1.5 !important;
}

.cfx33-services-heading p,
.cfx33-service-description {
    font-size: 1rem !important;
    line-height: 1.9 !important;
}

.cfx33-service-title {
    font-size: 1.08rem !important;
    line-height: 1.6 !important;
}

@media (max-width: 900px) {
    .cfx5121-hero-copy h1 {
        font-size: clamp(2.05rem, 7vw, 3.15rem) !important;
        line-height: 1.42 !important;
        max-width: 18ch !important;
    }

    [dir="rtl"] .cfx5121-hero-copy h1,
    [lang="ar"] .cfx5121-hero-copy h1 {
        line-height: 1.5 !important;
        max-width: 19ch !important;
    }
}

@media (max-width: 640px) {
    .cfx5121-hero-copy h1,
    [dir="rtl"] .cfx5121-hero-copy h1,
    [lang="ar"] .cfx5121-hero-copy h1 {
        font-size: clamp(1.9rem, 8.4vw, 2.7rem) !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
    }
}
