/*
 * Arabic landing page.
 * Extends the shared front-page design system with RTL-specific typography
 * and the small set of page-only components used by page-ar.php.
 */

.rf-home-ar {
    direction: rtl;
    text-align: right;
}

.rf-home-ar,
.rf-home-ar * {
    font-family: "Noto Sans Arabic", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rf-home-ar h1,
.rf-home-ar h2,
.rf-home-ar h3 {
    letter-spacing: 0;
}

.rf-home-ar h1 {
    line-height: 1.25;
}

.rf-home-ar h2 {
    line-height: 1.22;
}

.rf-home-ar h3 {
    line-height: 1.45;
}

.rf-home-ar p {
    line-height: 1.9;
}

.rf-home-ar bdi {
    font-family: inherit;
}

body.rf-ar-site-chrome .ltd-banner,
body.rf-ar-site-chrome .ltd-banner *,
body.rf-ar-site-chrome header,
body.rf-ar-site-chrome header *,
body.rf-ar-site-chrome footer,
body.rf-ar-site-chrome footer * {
    font-family: "Noto Sans Arabic", "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.rf-ar-site-chrome footer {
    direction: rtl;
    text-align: right;
}

body.rf-ar-site-chrome footer .footer-col > p {
    padding-right: 0 !important;
    padding-left: 20px;
}

.rf-home-ar .rf-hero-copy > .rf-eyebrow {
    margin-bottom: 18px;
}

.rf-ar-hero-single {
    max-width: 940px;
    text-align: center;
}

.rf-ar-hero-single .rf-hero-copy {
    text-align: center;
}

.rf-ar-hero-single .rf-hero-copy h1,
.rf-ar-hero-single .rf-ar-hero-lead {
    margin-inline: auto;
}

.rf-ar-hero-single .rf-actions,
.rf-ar-hero-single .rf-micro-proof {
    justify-content: center;
}

.rf-home-ar .rf-ar-hero-lead {
    max-width: 650px;
    margin-bottom: 26px;
}

.rf-home-ar .rf-hero h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(43px, 4.4vw, 62px);
}

.rf-home-ar .rf-micro-proof i,
.rf-home-ar .rf-card-icon {
    font-family: "Noto Sans Arabic", "Outfit", sans-serif;
}

/* Arabic feature visuals */

.rf-ar-rtl-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rf-ar-rtl-visual span {
    color: var(--rf-ink);
    font-size: 13px;
    font-weight: 700;
}

.rf-ar-rtl-visual i {
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 19px;
    background: #a8c7ed;
}

.rf-ar-logic-mini {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.rf-ar-logic-mini span {
    color: var(--rf-muted);
    font-size: 12px;
    font-weight: 700;
}

.rf-ar-logic-mini b {
    align-self: flex-start;
    padding: 8px 11px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--rf-brand);
    font-size: 10px;
}

.rf-home-ar .rf-check-list {
    padding: 0;
}

.rf-home-ar .rf-feature-copy,
.rf-home-ar .rf-check-list,
.rf-home-ar .rf-faq-wrap,
.rf-home-ar .rf-faq-question {
    text-align: right;
}

.rf-home-ar .rf-faq-answer p {
    padding: 0 0 22px 48px;
}

.rf-ar-rtl-comparison {
    display: grid;
    min-height: 410px;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 16px;
    padding: 34px;
    background: var(--rf-surface-2);
}

.rf-ar-rtl-comparison > div {
    padding: 24px;
    border: 1px solid #a9cbf7;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--rf-shadow-sm);
}

.rf-ar-rtl-comparison > div.is-muted {
    border-color: var(--rf-line);
    opacity: 0.65;
    box-shadow: none;
}

.rf-ar-rtl-comparison span,
.rf-ar-rtl-comparison strong,
.rf-ar-rtl-comparison small {
    display: block;
}

.rf-ar-rtl-comparison span {
    margin-bottom: 35px;
    color: var(--rf-brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.rf-ar-rtl-comparison strong {
    min-height: 54px;
    color: var(--rf-ink);
    font-size: 17px;
    line-height: 1.7;
}

.rf-ar-rtl-comparison small {
    margin-top: 18px;
    color: var(--rf-muted);
    font-size: 11px;
    line-height: 1.6;
}

.rf-home-ar .rf-branding-form {
    text-align: center;
}

/* Comparison table */

.rf-ar-comparison-section {
    background: #eef5ff;
}

.rf-ar-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rf-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--rf-shadow-sm);
}

.rf-ar-comparison-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: var(--rf-ink);
    text-align: right;
}

.rf-ar-comparison-table th,
.rf-ar-comparison-table td {
    padding: 19px 22px;
    border-bottom: 1px solid var(--rf-line);
    font-size: 14px;
}

.rf-ar-comparison-table th {
    color: var(--rf-ink);
    background: #f9fbfe;
    font-weight: 800;
}

.rf-ar-comparison-table th:nth-child(2) {
    color: #ffffff;
    background: var(--rf-brand);
}

.rf-ar-comparison-table tr:last-child td {
    border-bottom: 0;
}

.rf-ar-comparison-table td:first-child {
    font-weight: 700;
}

.rf-ar-comparison-table .is-yes {
    color: var(--rf-green);
    background: #f5fcf8;
    font-weight: 800;
}

.rf-ar-comparison-table .is-partial {
    color: #a15c07;
}

.rf-ar-comparison-table .is-no {
    color: #8b95a7;
}

/* Use cases */

.rf-ar-usecase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.rf-ar-usecase-grid .rf-build-card {
    min-height: 310px;
}

.rf-ar-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.rf-ar-tags span {
    padding: 6px 10px;
    border-radius: 99px;
    color: var(--rf-brand-dark);
    background: var(--rf-brand-light);
    font-size: 11px;
    font-weight: 700;
}

/* Shared blocks adjusted for RTL */

.rf-home-ar .rf-migration::after {
    right: auto;
    left: -180px;
}

.rf-home-ar .rf-migration-tools img {
    margin-right: 0;
    margin-left: 0;
}

.rf-home-ar .rf-final-cta::before {
    right: -200px;
    left: auto;
}

.rf-home-ar .rf-final-cta::after {
    right: auto;
    left: -120px;
}

@media (max-width: 980px) {
    .rf-home-ar .rf-hero-copy,
    .rf-home-ar .rf-feature-copy,
    .rf-home-ar .rf-migration-copy {
        text-align: center;
    }

    .rf-home-ar .rf-ar-hero-lead {
        margin-inline: auto;
    }

    .rf-home-ar .rf-check-list {
        text-align: right;
    }
}

@media (max-width: 680px) {
    .rf-home-ar .rf-hero h1 {
        font-size: 40px;
    }

    .rf-ar-rtl-comparison,
    .rf-ar-usecase-grid {
        grid-template-columns: 1fr;
    }

    .rf-ar-rtl-comparison {
        min-height: auto;
        padding: 20px;
    }

    .rf-home-ar .rf-faq-answer p {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .rf-home-ar .rf-hero h1 {
        font-size: 36px;
    }
}
