/* Homepage only: keep all banners in one sliding track. */
.hero.hero-carousel {
    display: block;
    min-height: 0;
    padding: 0;
    background: #0f2040;
    isolation: isolate;
    touch-action: pan-y;
}

.hero-carousel .hero-track {
    display: flex;
    transition: transform 750ms ease-in-out;
}

.hero-carousel .hero-slide {
    flex: 0 0 100%;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 0 90px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-carousel .hero-slide-original {
    background-image: url('images/new/Home-Banner1.png');
    background-position: bottom right;
}

.hero-carousel .hero-slide-partnership {
    background-image: url('images/operational-banner-plain.png');
}

.hero-carousel .hero-slide-transit {
    position: relative;
}

.hero-carousel .hero-slide-transit img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-carousel .hero-slide-transit::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(15, 32, 64, 0.88), rgba(15, 32, 64, 0.58) 38%, rgba(15, 32, 64, 0.08) 68%, transparent);
    pointer-events: none;
}

.hero-carousel .hero-content {
    width: 100%;
    display: block;
}

.hero-carousel .hero-text {
    max-width: 720px;
    padding: 0;
    min-height: 0;
    animation: none;
    text-align: left;
    align-items: flex-start;
}

.hero-carousel .hero-services-highlight {
    white-space: normal;
}

.hero-carousel .hero-text p {
    margin: 0 0 28px;
}

.hero-carousel .hero-text .hero-eyebrow {
    color: #dab164;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.hero-carousel .hero-partnership-heading {
    color: #fff;
    font-size: clamp(44px, 4.8vw, 78px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-carousel .hero-partnership-heading span {
    display: block;
    color: #dab164;
    font-size: 0.8em;
    line-height: 1.15;
}

.hero-carousel .hero-partnership-heading .hero-heading-main {
    color: inherit;
    font-size: 1em;
    line-height: inherit;
}

.hero-carousel .hero-partnership-heading .hero-heading-accent {
    margin-top: 0.15em;
}

.hero-carousel .hero-text .hero-supporting-text {
    max-width: 600px;
}

.hero-carousel .hero-slide-transit .hero-text {
    max-width: 660px;
}

.hero-carousel .hero-slide-transit .hero-partnership-heading {
    font-size: clamp(34px, 3.2vw, 56px);
}

.hero-carousel .hero-slide-transit .hero-partnership-heading span {
    font-size: 1em;
}

.hero-carousel .hero-slide-transit .hero-partnership-heading .hero-heading-ending {
    display: flex;
    align-items: baseline;
    column-gap: 0.3em;
    margin-top: 0.15em;
    font-size: 0.8em;
    line-height: 1.15;
    white-space: nowrap;
}

.hero-carousel .hero-slide-transit .hero-partnership-heading .hero-heading-ending > span {
    display: inline;
    margin-top: 0;
    font-size: 1em;
    line-height: inherit;
}

.hero-carousel .hero-slide-transit .hero-heading-ending .hero-heading-with,
.hero-carousel .hero-slide-transit .hero-heading-ending .hero-heading-accent {
    color: #dab164;
}

.hero-carousel .hero-slide-transit .hero-supporting-text {
    max-width: 520px;
}

/* Keep the enquiry form clear of the fixed navigation when the banner CTA is used. */
#contactForm {
    scroll-margin-top: 140px;
}

.hero-carousel .hero-text .cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
}

.hero-carousel .hero-controls {
    position: absolute;
    z-index: 20;
    bottom: 22px;
    right: clamp(20px, 3.5vw, 50px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-carousel .hero-controls[hidden] {
    display: none;
}

.hero-carousel .hero-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #dab164;
    border-radius: 50%;
    background: rgba(15, 32, 64, 0.9);
    color: #fff;
    cursor: pointer;
}

.hero-carousel .hero-control svg {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.hero-carousel .hero-control:hover {
    background: #dab164;
    color: #0f2040;
}

.hero-carousel button:focus-visible,
.hero-carousel a:focus-visible {
    outline: 2px solid #dab164;
    outline-offset: 3px;
}

@media (min-width: 561px) {
    .hero-carousel .hero-slide-transit .hero-text,
    .hero-carousel .hero-slide-partnership .hero-text {
        display: grid;
        width: 100%;
        max-width: 660px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        align-items: start;
        justify-items: start;
    }

    .hero-carousel .hero-text .hero-eyebrow {
        min-height: 1.6em;
    }

    .hero-carousel .hero-text .hero-partnership-heading {
        width: 100%;
        font-size: clamp(34px, 3.2vw, 56px);
    }

    .hero-carousel .hero-text .hero-partnership-heading .hero-heading-main {
        min-height: 3.3em;
    }

    .hero-carousel .hero-slide-transit .hero-partnership-heading .hero-heading-main {
        max-width: 12em;
    }

    .hero-carousel .hero-text .hero-partnership-heading .hero-heading-accent {
        font-size: 0.8em;
        white-space: nowrap;
    }

    .hero-carousel .hero-text .hero-supporting-text {
        max-width: 520px;
        min-height: 6.4em;
    }
}

@media (max-width: 1024px) {
    .hero-carousel .hero-slide {
        min-height: 620px;
    }

    .hero-carousel .hero-slide-partnership {
        background-image: linear-gradient(90deg, rgba(15, 32, 64, 0.6), rgba(15, 32, 64, 0.1)), url('images/operational-banner-plain.png');
        background-position: 65% center;
    }
}

@media (max-width: 560px) {
    .hero-carousel .hero-slide {
        min-height: 610px;
        padding: 140px 0 100px;
    }

    .hero-carousel .hero-slide-transit,
    .hero-carousel .hero-slide-partnership {
        align-items: stretch;
    }

    .hero-carousel .hero-slide-transit .hero-content,
    .hero-carousel .hero-slide-partnership .hero-content {
        display: flex;
        align-items: stretch;
    }

    .hero-carousel .hero-slide-transit .hero-text,
    .hero-carousel .hero-slide-partnership .hero-text {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto 1fr auto;
        align-items: start;
        justify-items: start;
    }

    .hero-carousel .hero-slide-transit img {
        object-position: 75% center;
    }

    .hero-carousel .hero-slide-transit::before {
        background: linear-gradient(90deg, rgba(15, 32, 64, 0.94), rgba(15, 32, 64, 0.76) 70%, rgba(15, 32, 64, 0.55));
    }

    .hero-carousel .hero-content {
        padding: 0 24px;
    }

    .hero-carousel .hero-text h1 {
        font-size: 54px;
        margin-bottom: 22px;
    }

    .hero-carousel .hero-text p {
        max-width: 100%;
        font-size: 18px;
        margin: 0 0 22px;
    }

    .hero-carousel .hero-text .hero-eyebrow {
        font-size: 14px;
        min-height: 2.9em;
    }

    .hero-carousel .hero-text .hero-partnership-heading {
        font-size: clamp(32px, 9.2vw, 50px);
        line-height: 1.06;
        width: 100%;
    }

    .hero-carousel .hero-text .hero-partnership-heading .hero-heading-accent {
        font-size: clamp(22px, 5.8vw, 30px);
        white-space: nowrap;
    }

    .hero-carousel .hero-slide-transit .hero-partnership-heading .hero-heading-ending {
        font-size: clamp(18px, 5.8vw, 30px);
    }

    .hero-carousel .hero-text .hero-services-highlight {
        display: none;
    }

    .hero-carousel .hero-text .cta-button {
        padding: 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel .hero-track {
        transition: none;
    }
}
