/* ==========================================================================
   Pakistan Bikers - cinematic hero slider
   Self-contained: every selector is namespaced under .pb-hero so none of the
   legacy .hero-style-one rules in style.css can reach it.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,400..800&family=IBM+Plex+Mono:wght@500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

.pb-hero {
    /* Brand green, deepened into a working scale */
    --pb-pine: #16321a;
    --pb-green: #2b602c;
    --pb-lift: #3f8b41;
    --pb-haze: #e7ece6;
    --pb-snow: #f7faf6;
    --pb-ink: #131a15;

    --pb-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --pb-body: 'IBM Plex Sans', 'Barlow', system-ui, sans-serif;
    --pb-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

    --pb-rail-h: 142px;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--pb-ink);
    /* The topbar plus header costs ~170px, so 84svh pushed the route rail below
       the fold on a 1280x800 laptop. 78 keeps the whole hero on screen there
       without shrinking it noticeably on taller displays. */
    height: clamp(560px, 78vh, 860px);
    height: clamp(560px, 78svh, 860px);
}

.pb-hero .swiper,
.pb-hero .swiper-wrapper,
.pb-hero .pb-hero-slide {
    height: 100%;
}

.pb-hero-slide {
    position: relative;
    overflow: hidden;
}

/* --- Photograph + Ken Burns drift ---------------------------------------- */

.pb-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.pb-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.04);
    will-change: transform;
}

.pb-hero-slide.is-active .pb-hero-media img {
    animation: pb-kenburns 10s linear forwards;
}

@keyframes pb-kenburns {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.17) translate3d(-1.4%, -1.2%, 0); }
}

/* Scrim: dark from the bottom-left corner where the copy sits, so the
   photograph stays readable at the top-right. */
.pb-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(9, 15, 10, .92) 0%, rgba(9, 15, 10, .68) 28%, rgba(9, 15, 10, .12) 62%, rgba(9, 15, 10, .34) 100%),
        linear-gradient(to right, rgba(9, 15, 10, .72) 0%, rgba(9, 15, 10, .18) 52%, rgba(9, 15, 10, 0) 88%);
}

/* --- Copy ----------------------------------------------------------------- */

.pb-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    width: min(1320px, 100% - 8vw);
    margin-inline: auto;
    display: flex;
    align-items: flex-end;
    padding-bottom: calc(var(--pb-rail-h) + 18px);
}

.pb-hero-copy {
    max-width: 42rem;
    color: var(--pb-snow);
}

.pb-hero-kicker {
    font-family: var(--pb-mono);
    font-size: clamp(10px, 1.1vw, 12px);
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #a9c7a6;
    margin: 0 0 clamp(14px, 2vw, 22px);
    padding-left: 46px;
    position: relative;
    line-height: 1.5;
}

/* Hairline that ties the kicker to the route rail below */
.pb-hero-kicker::before {
    content: '';
    position: absolute;
    left: 0;
    top: .62em;
    width: 32px;
    height: 2px;
    background: var(--pb-lift);
}

/* Sized so a five-word managed headline still clears the rail on a laptop.
   Editors can and do write long titles, so this has to hold at 4+ lines. */
.pb-hero-title {
    font-family: var(--pb-display);
    font-variation-settings: 'wdth' 115, 'wght' 700;
    font-weight: 700;
    font-size: clamp(2.1rem, 4.4vw, 4.2rem);
    line-height: .92;
    letter-spacing: -.022em;
    text-transform: uppercase;
    color: var(--pb-snow);
    margin: 0 0 clamp(14px, 1.8vw, 22px);
    display: flex;
    flex-wrap: wrap;
    gap: 0 .26em;
}

.pb-hero-word {
    display: inline-block;
}

.pb-hero-lede {
    font-family: var(--pb-body);
    font-size: clamp(14px, 1.25vw, 16.5px);
    line-height: 1.68;
    color: #d3ded1;
    margin: 0 0 clamp(24px, 3vw, 34px);
    max-width: 34rem;
}

.pb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Buttons -------------------------------------------------------------- */

.pb-hero .pb-btn {
    font-family: var(--pb-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 16px 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background .28s ease, color .28s ease, border-color .28s ease, transform .28s ease;
}

.pb-hero .pb-btn-solid {
    background: var(--pb-green);
    color: #fff;
}

.pb-hero .pb-btn-solid:hover,
.pb-hero .pb-btn-solid:focus-visible {
    background: var(--pb-lift);
    transform: translateY(-2px);
    color: #fff;
}

.pb-hero .pb-btn-ghost {
    background: transparent;
    color: var(--pb-snow);
    border-color: rgba(247, 250, 246, .42);
}

.pb-hero .pb-btn-ghost:hover,
.pb-hero .pb-btn-ghost:focus-visible {
    background: rgba(247, 250, 246, .1);
    border-color: var(--pb-snow);
    color: var(--pb-snow);
    transform: translateY(-2px);
}

.pb-hero .pb-btn-ghost span {
    transition: transform .28s ease;
}

.pb-hero .pb-btn-ghost:hover span {
    transform: translateX(4px);
}

/* --- Entrance choreography ------------------------------------------------ */

.pb-hero-kicker,
.pb-hero-word,
.pb-hero-lede,
.pb-hero-actions {
    opacity: 0;
    transform: translateY(26px);
}

.pb-hero-slide.is-active .pb-hero-kicker,
.pb-hero-slide.is-active .pb-hero-word,
.pb-hero-slide.is-active .pb-hero-lede,
.pb-hero-slide.is-active .pb-hero-actions {
    opacity: 1;
    transform: none;
    transition: opacity .82s cubic-bezier(.22, .68, .28, 1), transform .82s cubic-bezier(.22, .68, .28, 1);
}

.pb-hero-slide.is-active .pb-hero-kicker { transition-delay: .14s; }
.pb-hero-slide.is-active .pb-hero-word   { transition-delay: calc(.24s + var(--i, 0) * .058s); }
.pb-hero-slide.is-active .pb-hero-lede   { transition-delay: .52s; }
.pb-hero-slide.is-active .pb-hero-actions { transition-delay: .62s; }

/* --- Arrows --------------------------------------------------------------- */

.pb-hero-arrows {
    position: absolute;
    z-index: 4;
    right: 4vw;
    bottom: calc(var(--pb-rail-h) + 18px);
    display: flex;
    gap: 8px;
}

.pb-hero-arrow {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(247, 250, 246, .34);
    border-radius: 50%;
    background: rgba(9, 15, 10, .3);
    backdrop-filter: blur(6px);
    color: var(--pb-snow);
    cursor: pointer;
    transition: background .28s ease, border-color .28s ease, transform .28s ease;
}

.pb-hero-arrow svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: square;
}

.pb-hero-arrow:hover {
    background: var(--pb-green);
    border-color: var(--pb-green);
    transform: translateY(-2px);
}

/* --- Route rail: pagination + progress in one device ---------------------- */

.pb-route {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--pb-rail-h);
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(9, 15, 10, .78), rgba(9, 15, 10, 0));
    pointer-events: none;
}

.pb-route-shell {
    pointer-events: auto;
    width: min(1320px, 100% - 8vw);
    margin-inline: auto;
    padding-bottom: 24px;
}

.pb-route-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 34px;
}

.pb-route-rail,
.pb-route-fill {
    position: absolute;
    left: 0;
    bottom: 5px;
    height: 1px;
}

.pb-route-rail {
    width: 100%;
    background: rgba(247, 250, 246, .24);
}

.pb-route-fill {
    width: 0;
    background: var(--pb-lift);
    box-shadow: 0 0 12px rgba(63, 139, 65, .85);
}

.pb-route-station {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 4px 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: rgba(215, 228, 213, .6);
    transition: color .3s ease;
}

.pb-route-station:hover,
.pb-route-station.is-active {
    color: var(--pb-snow);
}

.pb-route-thumb {
    width: 74px;
    height: 46px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(247, 250, 246, .22);
    opacity: .42;
    filter: grayscale(1);
    transform: translateY(6px) scale(.94);
    transition: opacity .38s ease, filter .38s ease, transform .38s ease, border-color .38s ease;
}

.pb-route-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-route-station:hover .pb-route-thumb,
.pb-route-station.is-active .pb-route-thumb {
    opacity: 1;
    filter: grayscale(0);
    transform: none;
    border-color: rgba(247, 250, 246, .55);
}

.pb-route-label {
    font-family: var(--pb-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pb-route-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(9, 15, 10, .9);
    border: 1px solid rgba(247, 250, 246, .45);
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

.pb-route-station.is-active .pb-route-dot {
    background: var(--pb-lift);
    border-color: var(--pb-lift);
    transform: scale(1.25);
}

/* Dot must sit on the rail, so it comes last visually */
.pb-route-station {
    justify-content: flex-end;
}

.pb-route-station .pb-route-dot {
    order: 3;
    margin-bottom: 1px;
}

.pb-route-station .pb-route-label { order: 2; }
.pb-route-station .pb-route-thumb { order: 1; }

/* --- Pause / play --------------------------------------------------------- */

.pb-route-toggle-icon {
    width: 9px;
    height: 11px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.pb-hero.is-paused .pb-route-toggle-icon {
    width: 0;
    height: 0;
    border-left: 9px solid currentColor;
    border-right: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.pb-hero .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --- Focus ---------------------------------------------------------------- */

.pb-hero a:focus-visible,
.pb-hero button:focus-visible {
    outline: 2px solid var(--pb-lift);
    outline-offset: 3px;
}

/* --- No-JS / Swiper-missing fallback -------------------------------------- */

.pb-hero:not(.is-ready) .swiper-wrapper {
    display: block;
}

.pb-hero:not(.is-ready) .pb-hero-slide {
    display: none;
}

.pb-hero:not(.is-ready) .pb-hero-slide:first-child {
    display: block;
}

.pb-hero:not(.is-ready) .pb-hero-kicker,
.pb-hero:not(.is-ready) .pb-hero-word,
.pb-hero:not(.is-ready) .pb-hero-lede,
.pb-hero:not(.is-ready) .pb-hero-actions {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    .pb-hero { --pb-rail-h: 104px; }

    .pb-route-thumb { display: none; }

    .pb-route-track { min-height: 26px; }
}

@media (max-width: 991px) {
    .pb-hero {
        height: clamp(540px, 80vh, 760px);
        height: clamp(540px, 80svh, 760px);
    }

    .pb-hero-inner,
    .pb-route-shell {
        width: min(1320px, 100% - 10vw);
    }

    /* Swipe replaces the arrows on touch, but the pause control has to stay:
       an auto-advancing carousel needs a stop for WCAG 2.2.2. */
    .pb-hero-arrow[data-pb-prev],
    .pb-hero-arrow[data-pb-next] { display: none; }
}

@media (max-width: 767px) {
    .pb-hero {
        --pb-rail-h: 78px;
        height: clamp(520px, 78vh, 700px);
        height: clamp(520px, 78svh, 700px);
    }

    .pb-hero-media img { object-position: center 38%; }

    /* On a phone the scrim has to work top-to-bottom, not corner-to-corner */
    .pb-hero-scrim {
        background: linear-gradient(to top, rgba(9, 15, 10, .88) 0%, rgba(9, 15, 10, .66) 34%, rgba(9, 15, 10, .26) 70%, rgba(9, 15, 10, .44) 100%);
    }

    /* Full-width CTAs leave no room beside them, so the pause control moves
       out of the copy column entirely. */
    .pb-hero-arrows {
        top: 16px;
        right: 4vw;
        bottom: auto;
    }

    .pb-hero-kicker {
        padding-left: 0;
        letter-spacing: .18em;
    }

    .pb-hero-kicker::before { display: none; }

    .pb-hero-title { font-size: clamp(2.3rem, 11vw, 3.4rem); }

    .pb-hero-lede {
        font-size: 14px;
        line-height: 1.6;
    }

    .pb-hero-actions { gap: 10px; }

    .pb-hero .pb-btn {
        padding: 14px 22px;
        font-size: 10.5px;
        letter-spacing: .12em;
        flex: 1 1 auto;
        justify-content: center;
    }

    .pb-route-shell { padding-bottom: 20px; }

    .pb-route-label { display: none; }

    .pb-hero-arrows { gap: 6px; }

    .pb-hero-arrow {
        width: 42px;
        height: 42px;
    }

    .pb-route-track {
        min-height: 0;
        gap: 0;
    }

    .pb-route-station { padding: 10px 4px 0; }

    .pb-route-rail,
    .pb-route-fill { bottom: 4px; }
}

@media (max-width: 400px) {
    .pb-hero-title { font-size: clamp(2rem, 10.5vw, 2.7rem); }

    .pb-hero-actions { flex-direction: column; }

    .pb-hero .pb-btn { width: 100%; }
}

/* Short landscape phones: never let the CTAs fall off the fold */
@media (max-height: 520px) and (orientation: landscape) {
    .pb-hero {
        height: auto;
        min-height: 460px;
        padding-top: 40px;
    }

    .pb-hero-title { font-size: clamp(1.9rem, 5.4vw, 2.6rem); }

    .pb-hero-lede { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pb-hero-slide .pb-hero-media img,
    .pb-hero-slide.is-active .pb-hero-media img {
        animation: none;
        transform: scale(1.04);
    }

    .pb-hero-kicker,
    .pb-hero-word,
    .pb-hero-lede,
    .pb-hero-actions {
        opacity: 1;
        transform: none;
    }

    .pb-hero-slide.is-active .pb-hero-kicker,
    .pb-hero-slide.is-active .pb-hero-word,
    .pb-hero-slide.is-active .pb-hero-lede,
    .pb-hero-slide.is-active .pb-hero-actions {
        transition: none;
        transition-delay: 0s;
    }

    .pb-hero .pb-btn,
    .pb-hero-arrow,
    .pb-route-thumb {
        transition-duration: .01ms;
    }
}
