/* ================================================================
   AMAJED HOME WIDE-SCREEN BALANCE + ARABIC LIGHTING 2026-10-17
   Additive layer, loaded after responsive.css and mobile CSS.
   NO hero image replacement, transform, object-fit or asset selection.
   NO mobile, tablet, header/nav, or other page changes.
   ================================================================ */

/* Give hero copy a predictable share of the existing site container.
   Keep header/logo, page grids and hero aligned by reusing --container. */
@media (min-width: 1280px) and (min-height: 720px) {
    body[data-page="home"] .hero-slider .hero-grid,
    body[dir="rtl"][data-page="home"] .hero-slider .hero-grid {
        width: var(--container) !important;
        grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr) !important;
        column-gap: clamp(24px, 3vw, 55px) !important;
        align-items: center;
        align-content: center;
        padding-top: clamp(104px, 13vh, 152px) !important;
        padding-bottom: clamp(65px, 9vh, 112px) !important;
    }

    body[data-page="home"] .hero-copy,
    body[dir="rtl"][data-page="home"] .hero-copy {
        min-width: 0;
        width: 100%;
        max-width: 820px !important;
        text-align: start;
        align-self: center;
    }

    body[data-page="home"] .home-hero-title,
    body[dir="rtl"][data-page="home"] .home-hero-title {
        width: 100%;
        max-width: 820px !important;
        font-size: clamp(43px, min(3.1vw, 6.5vh), 64px) !important;
        line-height: 1.12 !important;
        text-wrap: pretty;
    }

    body[data-page="home"] .hero-copy > p,
    body[dir="rtl"][data-page="home"] .hero-copy > p {
        width: 100%;
        max-width: 700px !important;
        font-size: clamp(13px, min(.95vw, 1.95vh), 16px) !important;
    }

    body[dir="rtl"][data-page="home"] .hero-copy > p {
        line-height: 1.78 !important;
    }

    body[data-page="home"] .hero-badge {
        inset-inline-end: 0 !important;
        top: clamp(130px, 18vh, 205px) !important;
    }
}

/* Arabic desktop hero formerly had a significantly darker overlay in
   responsive.css. Match English overlay opacity stop-for-stop, mirrored
   horizontally for right-aligned Arabic text and the flipped AR assets.
   Original AR slide 01 and updated flipped AR slides 02-04 stay untouched. */
@media (min-width: 901px) {
    body[dir="rtl"][data-page="home"] .hero-slider::after {
        background:
            linear-gradient(270deg,
                rgba(1, 8, 14, .88) 0%,
                rgba(1, 8, 14, .62) 38%,
                rgba(1, 8, 14, .18) 70%,
                rgba(1, 8, 14, .27) 100%),
            linear-gradient(0deg,
                rgba(1, 8, 14, .64), transparent 55%) !important;
    }
}
