/*
 * AL.SHEREF interactive hero
 * Story: structural execution revealed as a finished, operational space.
 * Native CSS only so the component remains portable to cPanel hosting.
 */

body.redesign-home .hero.hero-v4.hero-reveal {
    --hero-tap-x: 50%;
    --hero-tap-y: 50%;
    --hero-cover-radius: 72vmax;
    --hero-reveal-x0: 72%;
    --hero-reveal-y0: 50%;
    --hero-reveal-r0: 0px;
    --hero-reveal-x1: 72%;
    --hero-reveal-y1: 50%;
    --hero-reveal-r1: 0px;
    --hero-reveal-x2: 72%;
    --hero-reveal-y2: 50%;
    --hero-reveal-r2: 0px;
    --hero-reveal-x3: 72%;
    --hero-reveal-y3: 50%;
    --hero-reveal-r3: 0px;
    --hero-reveal-x4: 72%;
    --hero-reveal-y4: 50%;
    --hero-reveal-r4: 0px;
    --hero-reveal-x5: 72%;
    --hero-reveal-y5: 50%;
    --hero-reveal-r5: 0px;
    position: relative;
    isolation: isolate;
    min-height: 100dvh !important;
    max-height: none !important;
    padding: 96px clamp(24px, 5vw, 82px) 48px !important;
    overflow: hidden;
    background: #0d1c32 !important;
    color: #f7f8f9;
}

body.redesign-home .hero-reveal-stage,
body.redesign-home .hero-reveal-media,
body.redesign-home .hero-reveal-media img,
body.redesign-home .hero-reveal-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.redesign-home .hero-reveal-stage {
    z-index: 0;
    overflow: hidden;
    background: #0d1c32;
}

body.redesign-home .hero-reveal-stage::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: var(--hero-tap-x);
    top: var(--hero-tap-y);
    width: 92px;
    height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.08),
        0 0 34px rgba(177, 201, 224, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.36);
}

body.redesign-home .hero-reveal.is-tap-feedback .hero-reveal-stage::after {
    animation: hero-tap-feedback 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-tap-feedback {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.36); }
    18% { opacity: 0.72; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.38); }
}

body.redesign-home .hero-reveal-media {
    display: block;
    margin: 0;
}

body.redesign-home .hero-reveal-media img {
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.012);
}

/* Mirror the architectural composition for RTL so the image mass sits
   opposite the Arabic reading column. Both reveal layers use the same
   transform, preserving their exact before/after alignment. */
html[dir="rtl"] body.redesign-home .hero-reveal-media img {
    transform: scaleX(-1) scale(1.012);
}

body.redesign-home .hero-reveal-media-construction img {
    filter: saturate(0.82) contrast(1.05) brightness(0.86);
}

body.redesign-home .hero-reveal-media-finished {
    z-index: 1;
    -webkit-mask-image:
        radial-gradient(circle var(--hero-reveal-r0) at var(--hero-reveal-x0) var(--hero-reveal-y0), #000 0 54%, rgba(0, 0, 0, 0.94) 66%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r1) at var(--hero-reveal-x1) var(--hero-reveal-y1), #000 0 50%, rgba(0, 0, 0, 0.9) 65%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r2) at var(--hero-reveal-x2) var(--hero-reveal-y2), #000 0 48%, rgba(0, 0, 0, 0.86) 64%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r3) at var(--hero-reveal-x3) var(--hero-reveal-y3), #000 0 46%, rgba(0, 0, 0, 0.82) 63%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r4) at var(--hero-reveal-x4) var(--hero-reveal-y4), #000 0 44%, rgba(0, 0, 0, 0.78) 62%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r5) at var(--hero-reveal-x5) var(--hero-reveal-y5), #000 0 42%, rgba(0, 0, 0, 0.72) 60%, transparent 100%);
    mask-image:
        radial-gradient(circle var(--hero-reveal-r0) at var(--hero-reveal-x0) var(--hero-reveal-y0), #000 0 54%, rgba(0, 0, 0, 0.94) 66%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r1) at var(--hero-reveal-x1) var(--hero-reveal-y1), #000 0 50%, rgba(0, 0, 0, 0.9) 65%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r2) at var(--hero-reveal-x2) var(--hero-reveal-y2), #000 0 48%, rgba(0, 0, 0, 0.86) 64%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r3) at var(--hero-reveal-x3) var(--hero-reveal-y3), #000 0 46%, rgba(0, 0, 0, 0.82) 63%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r4) at var(--hero-reveal-x4) var(--hero-reveal-y4), #000 0 44%, rgba(0, 0, 0, 0.78) 62%, transparent 100%),
        radial-gradient(circle var(--hero-reveal-r5) at var(--hero-reveal-x5) var(--hero-reveal-y5), #000 0 42%, rgba(0, 0, 0, 0.72) 60%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    clip-path: none;
    -webkit-clip-path: none;
}

body.redesign-home .hero-reveal-media-finished img {
    filter: saturate(0.92) contrast(1.02) brightness(0.96);
}

body.redesign-home .hero-reveal-shade {
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.86) 32%, rgba(7, 17, 31, 0.44) 55%, rgba(7, 17, 31, 0.12) 78%),
        linear-gradient(0deg, rgba(7, 17, 31, 0.72) 0%, transparent 46%, rgba(7, 17, 31, 0.16) 100%);
}

html[dir="rtl"] body.redesign-home .hero-reveal-shade {
    background:
        linear-gradient(270deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.86) 32%, rgba(7, 17, 31, 0.44) 55%, rgba(7, 17, 31, 0.12) 78%),
        linear-gradient(0deg, rgba(7, 17, 31, 0.72) 0%, transparent 46%, rgba(7, 17, 31, 0.16) 100%);
}

body.redesign-home .hero-reveal .hero-grid-v4,
body.redesign-v3.redesign-v4 .hero-reveal .hero-grid-v4,
body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-grid-v4 {
    position: relative;
    z-index: 3;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    width: min(100%, 1480px) !important;
    min-height: calc(100dvh - 144px) !important;
    margin: 0 auto;
}

body.redesign-home .hero-reveal .hero-content,
body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-content {
    width: min(100%, 690px) !important;
    max-width: 690px !important;
    padding: 0 !important;
}

html[dir="rtl"] body.redesign-home .hero-reveal .hero-content {
    margin-inline-end: auto;
}

body.redesign-home .hero-reveal .hero-title,
html[dir="rtl"] body.redesign-home .hero-reveal .hero-title,
body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-title,
html[dir="rtl"] body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-title {
    width: 100% !important;
    max-width: 12ch !important;
    margin-bottom: 24px !important;
    font-size: clamp(3.25rem, 5.25vw, 5.8rem) !important;
    line-height: 0.95 !important;
    text-wrap: balance;
}

html[lang="ar"] body.redesign-home .hero-reveal .hero-title,
html[lang="ar"] body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-title {
    max-width: 13ch !important;
    font-size: clamp(3rem, 4.8vw, 5.3rem) !important;
    line-height: 1.16 !important;
}

body.redesign-home .hero-reveal .hero-desc {
    max-width: 54ch !important;
    color: #dce1e7 !important;
    text-shadow: 0 2px 20px rgba(5, 13, 25, 0.38);
}

body.redesign-home .hero-reveal-toggle {
    position: absolute;
    z-index: 4;
    right: clamp(24px, 5vw, 82px);
    bottom: 30px;
    min-height: 42px;
    padding: 4px 0 2px;
    border: 0;
    border-bottom: 1px solid rgba(244, 247, 250, 0.55);
    border-radius: 0;
    background: transparent;
    color: #f4f7fa;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

html[dir="rtl"] body.redesign-home .hero-reveal-toggle {
    right: auto;
    left: clamp(24px, 5vw, 82px);
}

body.redesign-home .hero-reveal-toggle:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

body.redesign-home .hero-reveal-toggle:active {
    transform: translateY(0) scale(0.98);
}

body.redesign-home .hero-reveal-toggle:focus-visible {
    outline: 2px solid #f4f7fa;
    outline-offset: 7px;
}

body.redesign-home .hero-reveal.is-reveal-complete .hero-reveal-media-finished {
    -webkit-mask-image: linear-gradient(#000, #000) !important;
    mask-image: linear-gradient(#000, #000) !important;
}

@media (min-width: 768px) {
    /* Pointer tracking is self-explanatory on desktop; removing the visible
       instruction keeps the hero quieter and more premium. */
    body.redesign-home .hero-reveal-toggle {
        display: none;
    }
}

@media (hover: none), (pointer: coarse) {
    body.redesign-home .hero-reveal-media-finished {
        -webkit-mask-image: none;
        mask-image: none;
        clip-path: circle(0 at var(--hero-tap-x) var(--hero-tap-y));
        -webkit-clip-path: circle(0 at var(--hero-tap-x) var(--hero-tap-y));
        transition: clip-path 760ms cubic-bezier(0.65, 0, 0.35, 1), -webkit-clip-path 760ms cubic-bezier(0.65, 0, 0.35, 1);
        will-change: clip-path;
    }

    body.redesign-home .hero-reveal.is-reveal-complete .hero-reveal-media-finished {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        clip-path: circle(var(--hero-cover-radius) at var(--hero-tap-x) var(--hero-tap-y)) !important;
        -webkit-clip-path: circle(var(--hero-cover-radius) at var(--hero-tap-x) var(--hero-tap-y)) !important;
    }

    body.redesign-home .hero-reveal-toggle {
        bottom: 22px;
    }
}

@media (max-width: 767px) {
    body.redesign-home .hero.hero-v4.hero-reveal {
        min-height: 100dvh !important;
        padding: 92px 20px 76px !important;
    }

    body.redesign-home .hero-reveal-media-finished {
        -webkit-mask-image: none;
        mask-image: none;
        clip-path: circle(0 at var(--hero-tap-x) var(--hero-tap-y));
        -webkit-clip-path: circle(0 at var(--hero-tap-x) var(--hero-tap-y));
        transition: clip-path 760ms cubic-bezier(0.65, 0, 0.35, 1), -webkit-clip-path 760ms cubic-bezier(0.65, 0, 0.35, 1);
        will-change: clip-path;
    }

    body.redesign-home .hero-reveal.is-reveal-complete .hero-reveal-media-finished {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        clip-path: circle(var(--hero-cover-radius) at var(--hero-tap-x) var(--hero-tap-y)) !important;
        -webkit-clip-path: circle(var(--hero-cover-radius) at var(--hero-tap-x) var(--hero-tap-y)) !important;
    }

    body.redesign-home .hero-reveal-media img {
        object-position: center;
        transform: scale(1.018);
    }

    html[dir="rtl"] body.redesign-home .hero-reveal-media img {
        transform: scaleX(-1) scale(1.018);
    }

    body.redesign-home .hero-reveal-shade,
    html[dir="rtl"] body.redesign-home .hero-reveal-shade {
        background:
            linear-gradient(0deg, rgba(7, 17, 31, 0.97) 0%, rgba(7, 17, 31, 0.88) 38%, rgba(7, 17, 31, 0.38) 70%, rgba(7, 17, 31, 0.2) 100%),
            linear-gradient(90deg, rgba(7, 17, 31, 0.48), transparent 80%);
    }

    body.redesign-home .hero-reveal .hero-grid-v4,
    body.redesign-v3.redesign-v4 .hero-reveal .hero-grid-v4,
    body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-grid-v4 {
        align-items: end !important;
        min-height: calc(100dvh - 168px) !important;
    }

    body.redesign-home .hero-reveal .hero-content,
    body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-content {
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 !important;
        padding: 0 0 18px !important;
    }

    body.redesign-home .hero-reveal .hero-kicker-v4 {
        margin-bottom: 16px !important;
        font-size: 0.68rem !important;
    }

    body.redesign-home .hero-reveal .hero-title,
    html[dir="rtl"] body.redesign-home .hero-reveal .hero-title,
    body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-title,
    html[dir="rtl"] body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-title {
        max-width: 12ch !important;
        margin-bottom: 17px !important;
        font-size: clamp(2.25rem, 10.2vw, 3.65rem) !important;
        line-height: 0.98 !important;
    }

    body.redesign-home .hero-reveal .hero-title > span,
    body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-title > span {
        white-space: normal !important;
    }

    html[lang="ar"] body.redesign-home .hero-reveal .hero-title,
    html[lang="ar"] body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-title {
        max-width: 13ch !important;
        font-size: clamp(2.3rem, 9.8vw, 3.55rem) !important;
        line-height: 1.18 !important;
    }

    body.redesign-home .hero-reveal .hero-desc {
        max-width: 38ch !important;
        margin-bottom: 22px !important;
        font-size: 0.91rem !important;
        line-height: 1.55 !important;
    }

    body.redesign-home .hero-reveal .hero-btns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 9px !important;
        width: 100% !important;
    }

    body.redesign-home .hero-reveal .hero-btns a {
        min-width: 0 !important;
        min-height: 48px !important;
        padding-inline: 13px !important;
        font-size: 0.72rem !important;
        white-space: nowrap;
    }

    body.redesign-home .hero-reveal-toggle,
    html[dir="rtl"] body.redesign-home .hero-reveal-toggle {
        position: absolute;
        width: 1px;
        height: 1px;
        min-height: 0;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
}

@media (max-width: 380px) {
    body.redesign-home .hero-reveal .hero-title,
    html[dir="rtl"] body.redesign-home .hero-reveal .hero-title,
    body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-title,
    html[dir="rtl"] body.redesign-v3.redesign-v4.redesign-v41.redesign-v42 .hero-reveal .hero-title {
        font-size: clamp(2.15rem, 9.8vw, 3rem) !important;
    }

    body.redesign-home .hero-reveal .hero-btns {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.redesign-home .hero-reveal .hero-content {
        animation: hero-reveal-content-in 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes hero-reveal-content-in {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    body.redesign-home .hero-reveal-stage::after {
        display: none;
    }
    body.redesign-home .hero-reveal-media-finished,
    body.redesign-home .hero-reveal.is-reveal-complete .hero-reveal-media-finished {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        clip-path: inset(0 0 0 50%) !important;
        -webkit-clip-path: inset(0 0 0 50%) !important;
        transition: none !important;
        will-change: auto;
    }

    html[dir="rtl"] body.redesign-home .hero-reveal-media-finished,
    html[dir="rtl"] body.redesign-home .hero-reveal.is-reveal-complete .hero-reveal-media-finished {
        clip-path: inset(0 50% 0 0) !important;
        -webkit-clip-path: inset(0 50% 0 0) !important;
    }

    body.redesign-home .hero-reveal-toggle {
        display: none;
    }
}

@supports not ((-webkit-mask-image: radial-gradient(circle at center, #000, transparent)) or (mask-image: radial-gradient(circle at center, #000, transparent))) {
    body.redesign-home .hero-reveal-media-finished {
        -webkit-mask-image: none;
        mask-image: none;
        clip-path: circle(var(--hero-reveal-r0) at var(--hero-reveal-x0) var(--hero-reveal-y0));
        -webkit-clip-path: circle(var(--hero-reveal-r0) at var(--hero-reveal-x0) var(--hero-reveal-y0));
    }

    body.redesign-home .hero-reveal.is-reveal-complete .hero-reveal-media-finished {
        clip-path: circle(150vmax at 50% 50%) !important;
        -webkit-clip-path: circle(150vmax at 50% 50%) !important;
    }
}
