/* =========================================================
 * Al-Jathnan — Home Hero
 * Shortcode: [aj_hero]
 * Version: 4.6.0
 * Kenya Source → Worldwide Destinations
 * ======================================================= */

/* Elementor is only the shell. The first Hero must start at the viewport edge. */
body.aj-home .elementor:has(.aj-hero),
body.aj-home .elementor-element:has(.aj-hero),
body.aj-home .elementor-widget-shortcode:has(.aj-hero),
body.aj-home .elementor-widget-shortcode:has(.aj-hero) > .elementor-widget-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.aj-home .elementor-widget-shortcode:has(.aj-hero),
body.aj-home .elementor-widget-shortcode:has(.aj-hero) > .elementor-widget-container {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
}

body.aj-home .e-con:has(.aj-hero) {
    --padding-top: 0px;
    --padding-bottom: 0px;
    --padding-left: 0px;
    --padding-right: 0px;
    --margin-top: 0px;
    --margin-bottom: 0px;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.aj-hero {
    position: relative;
    isolation: isolate;
    width: 100vw;
    max-width: 100vw;
    min-height: clamp(680px, 78svh, 820px) !important;
    margin-top: 0;
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #fff;
    color: var(--aj-navy-deep);
    display: flex;
    align-items: stretch;
}

.aj-hero::before {
    content: "";
    position: absolute;
    z-index: -5;
    inset: 0;
    background-image: url("./h-bg.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    pointer-events: none;
}

.aj-hero::after {
    content: "";
    position: absolute;
    z-index: -4;
    inset: 0;
    background: none;
    pointer-events: none;
}

html:not([dir="rtl"]) .aj-hero::after {
    background: none;
}

.aj-hero__backdrop {
    display: none;
    position: absolute;
    z-index: -3;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.aj-hero__backdrop::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    inset-inline-start: -230px;
    top: 105px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
    box-shadow:
        0 0 0 64px rgba(255, 255, 255, .011),
        0 0 0 128px rgba(255, 255, 255, .007);
}

.aj-hero__backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 78px 78px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 5%, #000 30%, transparent 94%);
    mask-image: linear-gradient(to bottom, transparent 5%, #000 30%, transparent 94%);
}

/* WordPress reliably outputs dir="rtl" for RTL languages, but may omit dir="ltr".
 * Therefore non-RTL is treated as the LTR/default layout via html:not([dir="rtl"]). */
.aj-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    direction: ltr;
    grid-template-columns: minmax(350px, .84fr) minmax(0, 1.16fr);
    align-items: center;
    gap: clamp(52px, 6vw, 94px);
    width: min(calc(100% - 112px), 1360px) !important;
    max-width: 1360px !important;
    min-height: clamp(680px, 78svh, 820px) !important;
    margin-inline: auto !important;
    padding-top: 96px;
    padding-right: 0;
    padding-bottom: 40px;
    padding-left: 0;
    flex: 1 1 auto;
}

.aj-hero__content {
    grid-column: 2;
    grid-row: 1;
    direction: rtl;
    width: 100%;
    max-width: 690px;
    justify-self: end;
    padding-right: clamp(8px, 1vw, 18px);
    text-align: right;
}

html:not([dir="rtl"]) .aj-hero__content {
    grid-column: 1;
    direction: ltr;
    justify-self: start;
    padding-right: 0;
    padding-left: clamp(8px, 1vw, 18px);
    text-align: left;
}

.aj-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--aj-navy-deep) !important;
    font-family: var(--aj-font-body);
    font-size: clamp(.96rem, 1.02vw, 1.06rem) !important;
    font-weight: 600;
    line-height: 1.6;
}

.aj-hero__eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    flex: 0 0 34px;
    background: var(--aj-navy-deep) !important;
}

.aj-hero__title {
    max-width: 660px;
    margin: 0;
    color: var(--aj-navy-deep) !important;
    font-family: var(--aj-font-display);
    font-size: var(--aj-display);
    font-weight: 600 !important;
    line-height: 1.3;
    letter-spacing: 0;
    text-wrap: balance;
}

.aj-hero__title-accent {
    display: block;
    margin-top: 3px;
}

.aj-hero__lead {
    max-width: 635px;
    margin: 19px 0 0;
    color: var(--aj-text) !important;
    font-family: var(--aj-font-body);
    font-size: clamp(1rem, 1.1vw, 1.08rem) !important;
    font-weight: 500;
    line-height: 1.9 !important;
}

.aj-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 27px;
}

.aj-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding-inline: 24px;
    border: 1px solid transparent;
    border-radius: 15px;
    font-family: var(--aj-font-body);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        transform var(--aj-duration) var(--aj-ease),
        background-color var(--aj-duration-fast) var(--aj-ease-soft),
        border-color var(--aj-duration-fast) var(--aj-ease-soft),
        box-shadow var(--aj-duration) var(--aj-ease);
}

.aj-hero__button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

/* Strong selectors prevent Elementor/global anchor colors from whitening the label. */
.aj-hero .aj-hero__button--primary,
.aj-hero .aj-hero__button--primary:visited,
.aj-hero .aj-hero__button--primary span,
.aj-hero .aj-hero__button--primary svg {
    background: #fff;
    color: var(--aj-navy-deep) !important;
}

.aj-hero .aj-hero__button--primary,
.aj-hero .aj-hero__button--primary:visited {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.aj-hero .aj-hero__button--primary:hover,
.aj-hero .aj-hero__button--primary:hover span,
.aj-hero .aj-hero__button--primary:hover svg {
    color: var(--aj-navy-deep) !important;
}

.aj-hero .aj-hero__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, .23);
}

.aj-hero__points {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.aj-hero__points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--aj-text-soft) !important;
    font-family: var(--aj-font-body);
    font-size: .79rem !important;
    font-weight: 500;
    line-height: 1.5;
}

.aj-hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: var(--aj-gold-bright);
    background: rgba(4, 17, 33, .18);
}

.aj-hero__check svg {
    width: 10px;
    height: 10px;
}

.aj-hero__visual {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
    min-width: 0;
    width: 100%;
    align-self: center;
    justify-self: center;
}

html:not([dir="rtl"]) .aj-hero__visual {
    grid-column: 2;
    direction: ltr;
}

.aj-hero__visual-stage {
    position: relative;
    width: min(100%, 430px);
    min-height: 430px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 28px;
    background-color: #e6e6e5;
    background-image: url("./hero-visual-card.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 24px 54px rgba(18, 34, 52, .12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.aj-hero__visual-top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 0;
}

.aj-hero__visual-top > span:first-child {
    color: rgba(15, 34, 52, .72);
    font-family: var(--aj-font-body);
    font-size: .75rem;
    font-weight: 600;
}

.aj-hero__kenya-mark {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 3px solid rgba(255, 255, 255, .84);
    border-radius: 50%;
    background:
        linear-gradient(
            to bottom,
            #151515 0%,
            #151515 30%,
            #fff 30%,
            #fff 34%,
            #9b1d27 34%,
            #9b1d27 66%,
            #fff 66%,
            #fff 70%,
            #174f32 70%,
            #174f32 100%
        );
}

.aj-hero__visual-copy {
    position: absolute;
    z-index: 3;
    top: 42%;
    right: 24px;
    left: 24px;
    transform: translateY(-50%);
    text-align: center;
}

.aj-hero__visual-copy strong {
    display: block;
    color: #10283b !important;
    font-size: clamp(3rem, 4.9vw, 4.45rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.045em;
    white-space: nowrap;
}

.aj-hero__visual-copy span {
    display: block;
    margin-top: 14px;
    color: rgba(16, 40, 59, .7) !important;
    font-family: var(--aj-font-body);
    font-size: .72rem;
    font-weight: 500;
}

.aj-hero__route {
    position: absolute;
    z-index: 4;
    right: 18px;
    bottom: 17px;
    left: 18px;
    padding: 13px 17px 15px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 18px;
    background: rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.aj-hero__route-graphic {
    height: 52px;
    color: var(--aj-gold-bright);
}

.aj-hero__route-graphic svg {
    width: 100%;
    height: 100%;
}

.aj-hero__route-traveler {
    color: #e9c76f;
}

.aj-hero__route-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 12px;
    margin-top: 1px;
}

.aj-hero__route-meta > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.aj-hero__route-source {
    text-align: start;
}

.aj-hero__route-destination {
    text-align: end;
}

.aj-hero__route-direction {
    align-self: center;
    color: var(--aj-gold-bright) !important;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1;
}

.aj-hero__route-meta small {
    color: rgba(16, 40, 59, .67) !important;
    font-family: var(--aj-font-body);
    font-size: .62rem;
    font-weight: 500;
}

.aj-hero__route-meta strong {
    color: #10283b !important;
    font-family: var(--aj-font-body);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.5;
}

/* In English the visual route mirrors naturally: Kenya remains source, world remains destination. */
html:not([dir="rtl"]) .aj-hero__route-graphic {
    transform: scaleX(-1);
}

html:not([dir="rtl"]) .aj-hero__route-direction {
    transform: scaleX(-1);
}

.aj-hero__bottom-rule {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent);
}

.aj-hero [data-aj-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 720ms var(--aj-ease),
        transform 720ms var(--aj-ease);
}

.aj-hero [data-aj-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.aj-hero__visual[data-aj-reveal] {
    transition-delay: 100ms;
}


/* Mobile-only route summary. The desktop visual remains untouched. */
.aj-hero__mobile-route {
    display: none;
}

@media (max-width: 1100px) {
    .aj-hero {
        min-height: 650px !important;
    }
    .aj-hero__inner {
        grid-template-columns: minmax(315px, .78fr) minmax(0, 1.22fr);
        width: min(calc(100% - 72px), 1360px) !important;
        gap: 40px;
        min-height: 650px !important;
        padding-top: 88px;
        padding-bottom: 36px;
    }

    .aj-hero__visual-stage {
        min-height: 410px;
    }
}

@media (max-width: 900px) {
    .aj-hero {
        min-height: auto !important;
        margin-top: 0 !important;
        align-items: flex-start;
    }
    .aj-hero::before {
        background-position: 42% center;
    }
    .aj-hero::after,
    html:not([dir="rtl"]) .aj-hero::after {
        background: none;
    }
    .aj-hero__inner,
    html:not([dir="rtl"]) .aj-hero__inner {
        direction: ltr;
        grid-template-columns: minmax(0, 1fr);
        width: 100% !important;
        max-width: 680px !important;
        min-height: auto !important;
        gap: 0;
        margin-inline: auto !important;
        padding: 88px 24px 32px !important;
        box-sizing: border-box;
    }
    .aj-hero__content,
    html:not([dir="rtl"]) .aj-hero__content {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: none;
        justify-self: stretch;
        padding: 0;
    }
    html[dir="rtl"] .aj-hero__content {
        direction: rtl;
        text-align: right;
    }
    html:not([dir="rtl"]) .aj-hero__content {
        direction: ltr;
        text-align: left;
    }
    .aj-hero__visual,
    html:not([dir="rtl"]) .aj-hero__visual {
        display: none !important;
    }
    .aj-hero__eyebrow {
        gap: 8px;
        margin: 0 0 10px;
        font-size: .78rem !important;
        line-height: 1.5;
    }
    .aj-hero__eyebrow::before {
        width: 22px;
        flex-basis: 22px;
    }
    .aj-hero__title {
        width: 100%;
        max-width: 520px;
        margin: 0;
        font-size: clamp(1.95rem,7vw,2.4rem);
        line-height: 1.3;
        letter-spacing: 0;
        text-wrap: balance;
    }
    .aj-hero__title-accent {
        margin-top: 2px;
    }
    .aj-hero__lead {
        width: 100%;
        max-width: 560px;
        margin: 14px 0 0;
        font-size: .86rem !important;
        line-height: 1.78 !important;
    }
    .aj-hero__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        margin: 20px 0 0;
    }
    .aj-hero__button {
        width: 100%;
        min-width: 0;
        min-height: 49px;
        padding-inline: 14px;
        border-radius: 13px;
        font-size: .83rem;
    }
    .aj-hero__points {
        display: none !important;
    }
    .aj-hero__mobile-route {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(64px, .72fr) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-top: 16px;
        padding: 13px 14px;
        border: 1px solid rgba(255,255,255,.11);
        border-radius: 16px;
        background: var(--aj-navy);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    .aj-hero__mobile-route-side {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
    }
    .aj-hero__mobile-route-side > span:last-child {
        display: grid;
        gap: 1px;
        min-width: 0;
    }
    .aj-hero__mobile-route-side small {
        color: #fff !important;
        opacity: .78;
        font-size: .56rem;
        line-height: 1.4;
        white-space: nowrap;
    }
    .aj-hero__mobile-route-side strong {
        overflow: hidden;
        color: #fff !important;
        font-size: .72rem;
        font-weight: 700;
        line-height: 1.45;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .aj-hero__mobile-route .aj-hero__kenya-mark {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        border-width: 2px;
    }
    .aj-hero__mobile-route-path {
        display: flex;
        align-items: center;
        gap: 4px;
        color: var(--aj-gold-bright);
    }
    .aj-hero__mobile-route-path > span {
        position: relative;
        display: block;
        width: 100%;
        border-top: 1px dashed rgba(225,184,96,.62);
    }
    .aj-hero__mobile-route-path > span::after {
        content: "";
        position: absolute;
        z-index: 2;
        top: 50%;
        inset-inline-start: 0;
        width: 7px;
        height: 7px;
        border: 1px solid rgba(255,255,255,.92);
        border-radius: 50%;
        background: #ffe8a2;
        box-shadow: 0 0 5px #fff,0 0 11px #e9c76f,0 0 18px rgba(233,199,111,.6);
        transform: translateY(-50%);
        animation: aj-hero-mobile-trip 3.4s cubic-bezier(.42,0,.22,1) infinite;
    }
    .aj-hero__mobile-route-path svg {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
    }
    html:not([dir="rtl"]) .aj-hero__mobile-route-path svg {
        transform: scaleX(-1);
    }
}

@keyframes aj-hero-mobile-trip {
    0% { inset-inline-start: 0; opacity: 0; }
    10% { opacity: 1; }
    88% { opacity: 1; }
    100% { inset-inline-start: calc(100% - 7px); opacity: 0; }
}

@media (max-width: 480px) {
    .aj-hero__inner,
    html:not([dir="rtl"]) .aj-hero__inner {
        width: 100% !important;
        padding: 78px 24px 28px !important;
        box-sizing: border-box;
    }
    .aj-hero__title{font-size:1.85rem;line-height:1.3;}
    .aj-hero__lead {
        font-size: .79rem !important;
        line-height: 1.72 !important;
    }
    .aj-hero__button {
        min-height: 47px;
        font-size: .79rem;
    }
    .aj-hero__mobile-route {
        grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
        gap: 7px;
        padding: 12px;
    }
    .aj-hero__mobile-route-side {
        gap: 7px;
    }
    .aj-hero__mobile-route-side small {
        font-size: .51rem;
    }
    .aj-hero__mobile-route-side strong {
        font-size: .66rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aj-hero *,
    .aj-hero *::before,
    .aj-hero *::after {
        animation: none !important;
        transition: none !important;
    }
    .aj-hero [data-aj-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
    .aj-hero__route-traveler,
    .aj-hero__mobile-route-path > span::after {
        display: none !important;
    }
}
/* English Hero typography is composed independently from Arabic. */
html:not([dir="rtl"]) .aj-hero__title{letter-spacing:-.01em;line-height:1.3;}
html:not([dir="rtl"]) .aj-hero__lead{line-height:1.72;}
@media(max-width:900px){html:not([dir="rtl"]) .aj-hero__title{letter-spacing:-.01em;line-height:1.3;}html:not([dir="rtl"]) .aj-hero__lead{line-height:1.7;}}
@media(max-width:480px){html:not([dir="rtl"]) .aj-hero__title{font-size:1.85rem;}}

/* Navy CTA and high-contrast service checkmarks on the light hero. */
.aj-hero .aj-hero__button--primary,.aj-hero .aj-hero__button--primary:visited{background:#10243b!important;border-color:#10243b!important;color:#fff!important;box-shadow:0 14px 34px rgba(16,36,59,.2)}
.aj-hero .aj-hero__button--primary span,.aj-hero .aj-hero__button--primary svg,.aj-hero .aj-hero__button--primary:hover span,.aj-hero .aj-hero__button--primary:hover svg{background:transparent!important;color:#fff!important}
.aj-hero .aj-hero__button--primary:hover,.aj-hero .aj-hero__button--primary:focus-visible{background:#1d3b5a!important;color:#fff!important}
.aj-hero .aj-hero__check{background:#10243b!important;border-color:#10243b!important;color:#fff!important}
.aj-hero .aj-hero__check svg,.aj-hero .aj-hero__check svg path{color:#fff!important;stroke:#fff!important}
