/* ===== Home hero redesign (hero-v2) =====
   Full-bleed looped background video (falls back to a dark solid color
   until one is set) with centered white text, and a plain booking bar in
   its own section right below — replaces the old .hero-three, which also
   used GSAP SplitText and visually reversed Latin characters under
   dir="rtl" (an untranslated English heading rendered as mirrored
   gibberish); this version writes real bilingual copy instead. */

.hero-v2 {
    position: relative;
    background-color: #14161a;
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 20px;
    border-radius: 24px;
}
.hero-v2__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-v2__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .78));
    z-index: 1;
}
.hero-v2 > .container {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 100px;
}

.hero-v2__content {
    max-width: 780px;
}

.hero-v2__eyebrow {
    display: inline-block;
    background-color: rgba(var(--travhub-base-rgb), .25);
    color: var(--travhub-white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 22px;
}

.hero-v2__title {
    font-size: 68px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--travhub-white);
    margin-bottom: 24px;
}

.hero-v2__text {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
    max-width: 480px;
    margin: 0 0 36px;
}

.hero-v2__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 60px;
}

.hero-v2__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--travhub-white);
    text-decoration: none;
    transition: color 250ms ease;
}
.hero-v2__link i {
    font-size: 13px;
    color: var(--travhub-white);
    transition: transform 250ms ease;
}
.hero-v2__link:hover { opacity: .8; }
.hero-v2__link:hover i { transform: translateX(4px); }
[dir="rtl"] .hero-v2__link:hover i { transform: translateX(-4px); }

.hero-v2__stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 34px;
}
.hero-v2__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-inline-start: 22px;
    border-inline-start: 2px solid rgba(255, 255, 255, .2);
}
.hero-v2__stat:first-child {
    padding-inline-start: 0;
    border-inline-start: none;
}
.hero-v2__stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--travhub-white);
    line-height: 1;
}
.hero-v2__stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
}

/* ---- Floating quick-search card, hero's opposite corner (Kora-style):
   a car photo joined to the form on the side facing the hero text ---- */
.hero-v2__card {
    position: absolute;
    bottom: 40px;
    inset-inline-end: 40px;
    z-index: 3;
    display: flex;
    width: 600px;
    background-color: rgba(255, 255, 255, .97);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
    overflow: hidden;
}
.hero-v2__card__media {
    position: relative;
    flex: 0 0 240px;
}
.hero-v2__card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1s ease, transform 4.5s ease-out;
}
/* the photo showing now: fades in and settles from a slight zoom */
.hero-v2__card__media img.is-on {
    opacity: 1;
    transform: scale(1);
}
.hero-v2__card--plain { width: 340px; }   /* no fleet photos yet: the form alone */
@media (prefers-reduced-motion: reduce) {
    .hero-v2__card__media img { transition: none; transform: none; }
}
.hero-v2__card__form {
    flex: 1;
    min-width: 0;
    padding: 20px 22px;
}
.hero-v2__card__title {
    font-weight: 700;
    font-size: 16px;
    color: var(--travhub-black);
    margin-bottom: 12px;
}
.hero-v2__card__field {
    margin-bottom: 12px;
}
.hero-v2__card__field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--travhub-text);
    margin-bottom: 4px;
}
.hero-v2__card__field select,
.hero-v2__card__field input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--travhub-black);
    background-color: transparent;
}
.hero-v2__card__field select:focus,
.hero-v2__card__field input:focus {
    outline: none;
    border-color: var(--travhub-base);
}
.hero-v2__card__row {
    display: flex;
    gap: 10px;
}
.hero-v2__card__row .hero-v2__card__field {
    flex: 1;
    min-width: 0;
}
.hero-v2__card__btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

@media (max-width: 1399px) {
    .hero-v2__card { width: 540px; }
    .hero-v2__card--plain { width: 340px; }
    .hero-v2__card__media { flex-basis: 200px; }
}

@media (max-width: 991px) {
    .hero-v2 {
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding-bottom: 40px;
    }
    .hero-v2__card {
        position: static;
        width: calc(100% - 32px);
        max-width: 540px;
        margin: 0 auto;
    }
    .hero-v2__card--plain { max-width: 340px; }
}

@media (max-width: 575px) {
    .hero-v2__card { flex-direction: column; }
    .hero-v2__card__media { flex-basis: 140px; }
}

@media (max-width: 767px) {
    .hero-v2 { min-height: calc(100vh - 16px); margin: 8px; border-radius: 18px; }
    .hero-v2 > .container { padding-top: 120px; padding-bottom: 40px; }
    .hero-v2__title { font-size: 32px; }
    .hero-v2__text { font-size: 15px; }
    .hero-v2__actions { margin-bottom: 34px; }
    .hero-v2__stats { gap: 22px; margin-bottom: 30px; }
}

/* ===== Floating pill header, home page hero only =====
   The real header stays a normal solid bar on every other page
   (see .main-header--three:not(.sticky-header--cloned) in
   header-custom.css). On the home page only, parts/header.php also adds
   .main-header--floating; the header is split into THREE separate rounded
   pills (logo alone, nav alone, utility buttons alone) with the hero image
   visible in the gaps between them, rather than one bar spanning the full
   width. .main-header__group wraps each piece for this purpose — it's
   `display:contents` everywhere by default (invisible to layout, so every
   other page/state is unaffected) and only becomes a real flex/pill box
   here. The scroll-cloned copy (.sticky-header--cloned) is excluded so the
   header still becomes a normal solid bar once the user scrolls past the
   hero, matching the pattern already used for the non-floating case. */
.main-header__group {
    display: contents;
}
.main-header--three.main-header--floating:not(.sticky-header--cloned) {
    position: absolute;
    top: 44px;
    left: 20px;
    right: 20px;
    width: auto;
    z-index: 20;
    margin: 0;
    /* No fill here — the hero image shows through the gaps between the
       three pills on purpose. Only each pill itself (below) is solid. */
    background: none;
    box-shadow: none;
}
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__inner {
    /* the three pills (logo · menu · buttons) sit together in the middle */
    justify-content: center;
    padding: 0;
    gap: 24px;
}
/* the pills use the full width between the 20px edges, not the 1170px container */
.main-header--three.main-header--floating:not(.sticky-header--cloned) > .container,
.main-header--three.main-header--floating:not(.sticky-header--cloned) > .container-fluid {
    max-width: none;
    width: auto;
    padding-inline: 0;
}
/* menu spacing by gap, not the template's physical margins (one of them is
   !important and added 30px on the wrong side in Arabic → uneven gaps) */
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-menu .main-menu__list {
    gap: 30px;
}
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-menu .main-menu__list > li + li {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline-start: 0 !important;
}
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__group--logo,
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__group--nav,
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__right {
    display: flex;
    align-items: center;
    height: 64px;
    background-color: var(--travhub-white);
    border: 1px solid rgba(var(--travhub-black-rgb), 0.06);
    border-radius: 999px;
    /* Tighter/closer shadow than before — the old 34px blur bled across
       the gap into the neighboring pill once the gap stopped being the
       (dark) hero image, erasing the visual line between capsules. The
       border above is the real separator now; the shadow just adds depth. */
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__group--logo {
    padding-inline: 14px;
}
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__group--nav {
    padding-inline: 28px;
}
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__right {
    padding-inline: 22px;
}
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-menu .main-menu__list > li {
    padding-top: 14px;
    padding-bottom: 14px;
}
/* The logo image otherwise renders at a fixed 72px tall (matching the
   admin header's tile size) with zero padding on this variant — taller
   than the 64px pill itself, so it visually broke out of the rounded
   shape. Shrink it and give it real breathing room instead. */
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__logo {
    padding-block: 8px;
    padding-inline: 0;
    justify-content: center;
}
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__logo .brand-mark__img {
    /* a wide logo (e.g. a wordmark) is capped by width so it doesn't push the menu onto two lines */
    height: 40px;
    max-width: 170px;
    /* The uploaded logo file is a solid white square (not a transparent
       PNG), so it otherwise shows as a visible white chip on top of the
       pill's own near-white background. Multiply blend makes white pixels
       disappear into whatever's behind them while keeping the dark
       linework, without needing a re-exported transparent logo. */
    mix-blend-mode: multiply;
}
/* A menu label never breaks onto a second line ("من نحن", "تواصل معنا"…);
   on narrower desktops the gaps tighten instead. */
.main-header--three.main-header--floating:not(.sticky-header--cloned) .main-menu .main-menu__list > li > a {
    white-space: nowrap;
}
@media (max-width: 1500px) {
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__group--nav {
        padding-inline: 22px;
    }
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-menu .main-menu__list {
        gap: 22px;
    }
}
@media (max-width: 1320px) {
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__group--nav {
        padding-inline: 16px;
    }
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-menu .main-menu__list {
        gap: 16px;
    }
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-menu .main-menu__list > li > a {
        font-size: 15px;
    }
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__right {
        padding-inline: 12px;
    }
}
@media (max-width: 1400px) {
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__inner { gap: 16px; }
}
@media (max-width: 1260px) {
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-menu .main-menu__list {
        gap: 12px;
    }
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-menu .main-menu__list > li > a {
        font-size: 14px;
    }
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__logo .brand-mark__img {
        max-width: 140px;
    }
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__inner {
        gap: 8px;
    }
}
/* The nav links themselves collapse into the hamburger menu below 1200px
   (see .main-menu .main-menu__list in travhub.css) — without this, its
   pill wrapper kept rendering as an empty floating oval with nothing in it. */
@media (max-width: 1199px) {
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__group--nav {
        display: none;
    }
    /* menu collapsed: logo on one side, the menu button / buttons on the other */
    .main-header--three.main-header--floating:not(.sticky-header--cloned) .main-header__inner {
        justify-content: space-between;
    }
}
@media (max-width: 991px) {
    .main-header--three.main-header--floating:not(.sticky-header--cloned) {
        top: 28px;
        left: 20px;
        right: 20px;
    }
}

/* Flighajo: on the dark hero photo the main button uses the logo's sand
   colour (slate text) so it stands out; hover fills back to slate. */
.hero-v2__actions .travhub-btn { background-color: var(--flighajo-sand, #E8CBB1); color: var(--travhub-base, #263B41); }
.hero-v2__actions .travhub-btn:hover { color: var(--travhub-white, #fff); }
.hero-v2__stats strong, .hero-v2__stats b { color: var(--flighajo-sand, #E8CBB1); }
.hero-v2__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 14px; border-radius: 999px;
    background: rgba(232, 203, 177, .16); border: 1px solid rgba(232, 203, 177, .45); color: var(--flighajo-sand, #E8CBB1);
    font-size: 14px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(4px); }
.hero-v2__title .hero-v2__accent { color: var(--flighajo-sand, #E8CBB1); }

/* Inner-page hero titles carry the search phrases (e.g. "Amman Airport Transfers & Pickup"),
   so they are longer than the theme's one-word titles: smaller type, balanced wrapping. */
.page-header__title { max-width: 980px; margin-inline: auto; font-size: 30px; line-height: 1.2; text-wrap: balance; }
@media (min-width: 768px) { .page-header__title { font-size: 44px; } }
.page-header__kicker { margin: 10px auto 14px; max-width: 760px; font-size: 15px; font-weight: 600; letter-spacing: .02em; opacity: .85; }
@media (min-width: 768px) { .page-header__kicker { font-size: 17px; } }
