/* --------------------------------------------------------------------------
   16. Sticky mobile booking bar
   -------------------------------------------------------------------------- */
.lx-stickybar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 55;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(18, 36, 70, 0.1);
    transform: translateY(120%);
    transition: transform var(--dur) var(--ease);
}

.lx-stickybar.is-visible {
    transform: none;
}

.lx-stickybar__price .a {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--teal-700);
    line-height: 1;
}

.lx-stickybar__price .l {
    font-size: 0.72rem;
    color: var(--ink-soft);
}

.lx-stickybar .lx-btn {
    min-height: 48px;
    flex: 1;
    max-width: 62%;
}

/* --------------------------------------------------------------------------
   17. Reveal-on-scroll
   -------------------------------------------------------------------------- */
.lx-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity var(--dur-slow) var(--ease),
        transform var(--dur-slow) var(--ease);
}

.lx-reveal.is-in {
    opacity: 1;
    transform: none;
}

.lx-reveal[data-d="1"] {
    transition-delay: 80ms;
}
.lx-reveal[data-d="2"] {
    transition-delay: 160ms;
}
.lx-reveal[data-d="3"] {
    transition-delay: 240ms;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .lx-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
    .lx-hero {
        align-items: center;
    }
    .lx-hero__copy {
        max-width: 560px;
    }
    .lx-story,
    .lx-faq {
        grid-template-columns: 1fr;
    }
    .lx-story__media {
        order: -1;
    }
}

@media (max-width: 860px) {
    .lx-nav__links,
    .lx-nav__cta {
        display: none;
    }
    .lx-nav__burger {
        display: inline-flex;
    }
    .lx-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .lx-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .lx-hero {
        min-height: 100svh;
        padding-top: 84px;
        /* Scroll cue is hidden at this width, so keep the hero base tight. */
        padding-bottom: 3rem;
    }
    .lx-hero__title {
        font-size: clamp(2.6rem, 8.5vw, 3.4rem);
    }
    .lx-hero__rating > span:not(.lx-stars) {
        display: none;
    }
    .lx-hero__trustline {
        font-size: 0.84rem;
        gap: 0.4rem 1rem;
    }
    .lx-bw__head h2 {
        font-size: 1.15rem;
    }
    .lx-bw__grid {
        grid-template-columns: 1fr;
    }
    .lx-bw__free {
        display: none;
    }
    .lx-bw__foot {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .lx-bw__foot .lx-btn {
        max-width: none;
        width: 100%;
    }
    .lx-bw__price {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }
    .lx-trustbar__sep {
        display: none;
    }
    .lx-form__two {
        grid-template-columns: 1fr;
    }
    .lx-footer__grid {
        grid-template-columns: 1fr;
    }
    .lx-scrollcue {
        display: none;
    }
    .lx-stickybar {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lx-hero__bg {
        animation: none;
    }
    .lx-scrollcue svg {
        animation: none;
    }
    .lx-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Impeccable polish: eyebrows removed — headings now lead their sections, so
   drop the top margin that used to sit beneath the kicker.
   -------------------------------------------------------------------------- */
.lx-hero__title,
.lx-pagehead h1,
.lx-section-head h2,
.lx-story h2,
.lx-faq__aside h2,
.lx-contact__aside h2 {
    margin-top: 0;
}

/* ==========================================================================
   v2-motion — motion layer for the redesigned pages.
   Everything is gated under `.lx-motion`, a class added to <html> (before paint)
   only on pages that opt in AND only when the visitor hasn't asked for reduced
   motion. So reduced-motion visitors — and any non-opted page — never see it.
   ========================================================================== */

/* --- Hero headline: fades and rises in like the rest of the hero content, so
   the whole block reads as one coherent entrance rather than the title sliding
   out from behind a clip. The hero photo is the LCP candidate (not the H1), so
   fading the text here doesn't move LCP. */
.lx-motion .lx-hero__title .lx-revline {
    display: block;
    opacity: 0;
    animation: lx-rise 0.8s var(--ease) 0.12s both;
}

.lx-motion .lx-hero__title .lx-revline > span {
    display: block;
}

/* Hero supporting content rises in after the headline; the eye settles on Book. */
@keyframes lx-rise {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lx-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lx-motion .lx-hero__sub,
.lx-motion .lx-hero__trust,
.lx-motion .lx-hero__trustline,
.lx-motion .lx-bw {
    opacity: 0;
    animation: lx-rise 0.8s var(--ease) both;
}

.lx-motion .lx-hero__sub {
    animation-delay: 0.4s;
}
.lx-motion .lx-hero__trust {
    animation-delay: 0.5s;
}
.lx-motion .lx-hero__trustline {
    animation-delay: 0.58s;
}
.lx-motion .lx-bw {
    animation-delay: 0.46s;
    animation-duration: 0.9s;
}

/* Scroll cue keeps its translateX centring, so fade opacity only. */
.lx-motion .lx-scrollcue {
    animation: lx-fade 0.6s var(--ease) 0.9s both;
}

/* --- Inner-page header (about/contact/offers/terms/fleets have no hero image).
   The h1 slides without fading, so it still paints immediately for LCP; the
   supporting line and any filter bar fade up just after. */
@keyframes lx-rise-solid {
    from {
        transform: translateY(24px);
    }
    to {
        transform: none;
    }
}

.lx-motion .lx-pagehead h1 {
    animation: lx-rise-solid 0.7s var(--ease) both;
}

.lx-motion .lx-pagehead p {
    opacity: 0;
    animation: lx-rise 0.8s var(--ease) 0.12s both;
}

/* --- Page-wide scroll reveals. Bolder + broader than the shared default so the
   page visibly assembles on the way down: each block lifts, settles and focuses
   in. Gated on .lx-motion, so reduced-motion visitors keep the shared (instant)
   version and never see any of this. */
.lx-motion .lx-reveal {
    opacity: 0;
    transform: translateY(54px) scale(0.97);
    filter: blur(5px);
    transition:
        opacity 1.1s var(--ease),
        transform 1.35s var(--ease),
        filter 1.1s var(--ease);
}

.lx-motion .lx-reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

.lx-motion .lx-reveal[data-d="1"] {
    transition-delay: 0.1s;
}
.lx-motion .lx-reveal[data-d="2"] {
    transition-delay: 0.2s;
}
.lx-motion .lx-reveal[data-d="3"] {
    transition-delay: 0.3s;
}

/* Hover lift on the fleet, offer and partner cards gets a touch springier so
   the interaction is identical across every card type on the site. */
@media (prefers-reduced-motion: no-preference) {
    .lx-motion .lx-card,
    .lx-motion .lx-offer,
    .lx-motion .lx-partner {
        transition:
            transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
            box-shadow 0.35s var(--ease),
            border-color 0.35s var(--ease);
    }
    .lx-motion .lx-card:hover,
    .lx-motion .lx-offer:hover,
    .lx-motion .lx-partner:hover {
        transform: translateY(-10px);
    }
}

/* Earned idle nudge: a brief cyan (lagoon) ripple off the Book button, fired
   once by motion.js after ~6s of no interaction. */
@keyframes lx-nudge {
    0% {
        box-shadow:
            0 8px 22px rgba(215, 39, 46, 0.32),
            0 0 0 0 rgba(0, 171, 199, 0.45);
    }
    55% {
        box-shadow:
            0 12px 28px rgba(215, 39, 46, 0.42),
            0 0 0 18px rgba(0, 171, 199, 0);
    }
    100% {
        box-shadow:
            0 8px 22px rgba(215, 39, 46, 0.32),
            0 0 0 0 rgba(0, 171, 199, 0);
    }
}

/* One ripple, fired once after idle — honours the "no looping" restraint. */
.lx-motion #bw-go.is-nudge {
    animation: lx-nudge 1.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    .lx-motion #bw-go.is-nudge {
        animation: none;
    }
}

@media (max-width: 600px) {
    .lx-hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: 7.25rem;
    }

    .lx-hero__inner {
        align-items: start;
    }

    .lx-hero__copy {
        padding-top: 0.5rem;
    }

    /* On phones the 42px logo is already as wide as the row can spare next to
       Book now + the burger, so don't enlarge it over the hero — keep it steady
       at the bar size rather than letting it crowd the CTA. */
    .lx-nav {
        --lx-logo-scale: 1;
    }
}
