/* Motion. Transform and opacity only, except the one-shot focus ring and the header colour fade. */

html { overflow-x: clip; }
.trust-row, [dir="rtl"] .trust-row {
    left: auto;
    right: auto;
    transform: none;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .26s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
@keyframes rise {
    from { transform: translateY(12px); }
    to { transform: none; }
}
@keyframes gold-once {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}
@keyframes ken {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}
@keyframes sheen {
    0%, 68% { transform: translateX(-130%); }
    84%, 100% { transform: translateX(130%); }
}
@keyframes wa-in {
    from { opacity: 0; transform: scale(.86); }
    to { opacity: 1; transform: none; }
}
@keyframes ring {
    0% { opacity: .75; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.2); }
}
@keyframes draw-stroke {
    from { stroke-dasharray: 120; stroke-dashoffset: 120; }
    to { stroke-dasharray: 120; stroke-dashoffset: 0; }
}
@keyframes rule-in {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes check-pop {
    from { transform: rotate(45deg) scale(0); }
    to { transform: rotate(45deg) scale(1); }
}
@keyframes focus-ring {
    from { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
    to { box-shadow: 0 0 0 3px rgba(212, 175, 55, .55); }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy .eyebrow { animation: fade-up .48s ease backwards; }
    .hero-copy .hero-display { animation: rise .5s ease .07s backwards; }
    .hero-copy h1 { animation: rise .5s ease .14s backwards; }
    .hero-copy .lead { animation: fade-up .48s ease .21s backwards; }
    .hero-actions .btn:nth-child(1) { animation: fade-up .48s ease .28s backwards; }
    .hero-actions .btn:nth-child(2) { animation: fade-up .48s ease .36s backwards; }
    .hero-brand .gold-text {
        background-size: 220% 100%;
        animation: gold-once .62s ease .32s 1 backwards;
    }
    .hero-photo.is-ken img {
        transform-origin: center;
        animation: ken 18s ease-out forwards;
    }

    .btn-gold::after, .nav-plan::after, .search-go::after, .note-btn::after, .sticky-cta-quote::after {
        animation: sheen 6.5s ease-in-out infinite;
    }
    .btn-gold, .nav-plan, .search-go, .view-btn, .note-btn, .sticky-cta-quote, .kc-btn {
        transition: transform .2s ease, box-shadow .2s ease;
    }
    .btn-gold:hover, .nav-plan:hover, .search-go:hover, .view-btn:hover, .note-btn:hover, .kc-btn:hover,
    .btn-gold:focus-visible, .nav-plan:focus-visible, .search-go:focus-visible, .view-btn:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(184, 137, 46, .32);
    }
    .btn-gold:active, .nav-plan:active, .search-go:active, .view-btn:active, .note-btn:active, .kc-btn:active,
    .sticky-cta-quote:active, .sticky-cta-wa:active {
        transform: scale(.98);
    }

    .sticky-wa { animation: wa-in .4s ease 1.5s backwards; }
    .sticky-wa::before {
        content: "";
        position: absolute;
        inset: -5px;
        border-radius: inherit;
        border: 2px solid rgba(233, 201, 121, .75);
        opacity: 0;
        pointer-events: none;
    }
    .sticky-wa.is-breathe::before { animation: ring 1.1s ease; }

    .js .reveal.is-in { transition-delay: var(--d, 0ms); }
    .js .draw-rule.is-in::after {
        transform-origin: left center;
        animation: rule-in .6s ease forwards;
    }
    [dir="rtl"] .js .draw-rule.is-in::after { transform-origin: right center; }
    .js .promise-item.is-in .ico, .js .trust-cell.is-in .ico { animation: draw-stroke .8s ease forwards; }

    .shot img { transition: transform .5s ease; }
    .shot-card:hover, .shot-card:focus-within { transform: translateY(-6px); }
    .shot-card:hover .shot img, .shot-card:focus-within .shot img, .shot-card:active .shot img { transform: scale(1.04); }
    .shot-price strong { position: relative; }
    .shot-price strong::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
        transform: translateX(-130%);
        pointer-events: none;
    }
    .shot-card:hover .shot-price strong::after,
    .shot-card:focus-within .shot-price strong::after { animation: sheen .8s ease; }

    .form input:focus, .form textarea:focus, .form select:focus, .search-field:focus-within {
        animation: focus-ring .25s ease forwards;
    }
    .search-go.is-loading { position: relative; }
    .search-go.is-loading .icon-dir { visibility: hidden; }
    .search-go.is-loading::before {
        content: "";
        width: 1em;
        height: 1em;
        border: 2px solid rgba(1, 69, 40, .25);
        border-top-color: #014528;
        border-radius: 50%;
        animation: spin .7s linear infinite;
    }

    .site-header.is-open .nav > :nth-child(n + 2) { animation: fade-up .36s ease backwards; }
    .site-header.is-open .nav > :nth-child(2) { animation-delay: .04s; }
    .site-header.is-open .nav > :nth-child(3) { animation-delay: .08s; }
    .site-header.is-open .nav > :nth-child(4) { animation-delay: .12s; }
    .site-header.is-open .nav > :nth-child(5) { animation-delay: .16s; }
    .site-header.is-open .nav > :nth-child(6) { animation-delay: .2s; }
    .site-header.is-open .nav > :nth-child(7) { animation-delay: .24s; }
    .site-header.is-open .nav > :nth-child(8) { animation-delay: .28s; }

    .sticky-cta { transition: transform .28s ease; }
    .success-mark span { animation: check-pop .4s ease .12s backwards; }
}

.stats-band {
    background: #014528;
    color: #FAF8F2;
    padding: 2.2rem 0;
    background-image:
        radial-gradient(circle at 0 0, rgba(233, 201, 121, .16), transparent 32%),
        repeating-linear-gradient(45deg, rgba(250, 248, 242, .04) 0 1px, transparent 1px 16px);
}
.stats-band.is-compact { padding: 1.15rem 0; margin: 1rem 0 1.2rem; border-radius: 18px; }
.listing-main .stats-band.is-compact { margin: .8rem 0 1rem; }
.listing-main .stats-band.is-compact .wrap { width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem 0; }
.stat { padding: .35rem 1rem; border-inline-start: 1px solid rgba(212, 175, 55, .45); }
.stat-num {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1;
    color: #FAF8F2;
    font-variant-numeric: tabular-nums;
}
.stats-band.is-compact .stat-num { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.stat-num .plus {
    margin-inline-start: .06em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label { margin: .4rem 0 0; color: rgba(250, 248, 242, .86); font-size: .95rem; }
.stat-licence { display: flex; align-items: center; }
.stat-licence .stat-label {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: #FAF8F2;
    line-height: 1.35;
}
html[lang="ur"] .stat-label, html[lang="ur"] .stat-licence .stat-label {
    font-family: "Noto Nastaliq Urdu", var(--sans);
    line-height: 1.8;
    font-weight: 700;
}

.wa-tip {
    position: fixed;
    z-index: 26;
    inset-inline-end: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: .4rem;
    max-width: min(240px, calc(100vw - 32px));
    margin: 0;
    padding: .55rem .55rem .55rem .75rem;
    border-radius: 14px;
    background: #FAF8F2;
    color: #102A22;
    box-shadow: 0 12px 28px rgba(1, 69, 40, .18);
    font-size: .88rem;
    font-weight: 600;
}
.wa-tip[hidden] { display: none; }
.wa-tip-x {
    border: 0;
    background: transparent;
    color: #014528;
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    cursor: pointer;
}
.note-btn::after, .sticky-cta-quote::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .45) 50%, transparent 68%);
    transform: translateX(-130%);
    pointer-events: none;
}

.sticky-cta { display: none; }
@media (max-width: 767px) {
    body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: .8rem 0; }
    .sticky-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
        position: fixed;
        z-index: 30;
        inset-inline: 0;
        bottom: 0;
        padding: .55rem 12px calc(.55rem + env(safe-area-inset-bottom));
        background: rgba(1, 69, 40, .97);
        transform: translateY(110%);
        pointer-events: none;
    }
    body.cta-on .sticky-cta { transform: none; pointer-events: auto; }
    body.cta-on .sticky-wa, body.cta-on .wa-tip { visibility: hidden; opacity: 0; pointer-events: none; }
    .sticky-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        border-radius: 999px;
        text-decoration: none;
        font-family: var(--display);
        font-weight: 700;
    }
    .sticky-cta-wa { background: #128C7E; color: #fff; }
    .sticky-cta-quote {
        position: relative;
        overflow: hidden;
        background: var(--gold-gradient);
        color: #014528;
    }
}

.success-mark { margin: 0 0 .8rem; }
.success-mark span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #0B5E3B;
}
.success-mark span::after {
    content: "";
    width: 10px;
    height: 18px;
    margin-top: -3px;
    border: solid #0B5E3B;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.search-go.is-loading::before { display: inline-block; }

@keyframes airline-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.airline-track { display: contents; }
.airline-tile[aria-hidden="true"] { display: none; }
.airline-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .airline-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .airline-logos { grid-template-columns: 1fr 1fr; }
    .airline-tile img { height: 32px; }
    .airline-tile[data-brand="saudia"] img,
    .airline-tile[data-brand="emirates"] img { height: 48px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .airline-logos { display: block; overflow: hidden; grid-template-columns: none; }
    .airline-track {
        display: flex;
        align-items: center;
        gap: .7rem;
        width: max-content;
        animation: airline-slide 32s linear infinite;
    }
    [dir="rtl"] .airline-track { animation-direction: reverse; }
    .airline-logos:hover .airline-track,
    .airline-logos:focus-within .airline-track,
    .airline-logos.is-paused .airline-track { animation-play-state: paused; }
    .airline-tile, .airline-tile[aria-hidden="true"] {
        display: flex;
        flex: 0 0 46vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .hero-copy .eyebrow, .hero-copy .hero-display, .hero-copy h1, .hero-copy .lead, .hero-actions .btn,
    .hero-photo img, .btn-gold::after, .nav-plan::after, .search-go::after, .sticky-wa, .sticky-wa::before,
    .js .reveal, .js .draw-rule::after, .shot img, .success-mark span {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .shot-card:hover, .shot-card:focus-within, .btn-gold:hover, .search-go:hover, .view-btn:hover { transform: none; }
    .sticky-cta { transition: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .sticky-cta { transform: none; display: none; }
    body.cta-on .sticky-cta { display: grid; }
}
