/* colours and fonts come from home-page.css */

.hero-media-container {
    --hero-gutter: max(8%, 130px);
    --controls-bottom: 92px;
    position: relative;
    width: 100%;
    min-height: clamp(560px, calc(100vh - 90px), 820px);
    padding: 64px 0 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--rj-charcoal);
}

    /* brand diagonal band, sits under the controls */
    .hero-media-container::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 70px;
        background: linear-gradient(to top right, var(--rj-red) 50%, transparent 50.5%) left bottom / 45% 100% no-repeat, linear-gradient(to top left, rgba(215,217,214,.6) 50%, transparent 50.5%) right bottom / 75% 100% no-repeat;
        pointer-events: none;
        z-index: 3;
    }

.hero-carousel,
.hero-single-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
    z-index: 0;
}

    .hero-slide.active {
        opacity: 1;
        z-index: 1;
    }

.hero-media-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(60,65,66,.92) 0%, rgba(60,65,66,.8) 30%, rgba(60,65,66,.4) 55%, rgba(60,65,66,.12) 78%, transparent 100%);
    z-index: 2;
}

.hero-media-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: calc(var(--hero-gutter) + 700px);
    padding: 0 5% 0 var(--hero-gutter);
    color: var(--white);
    text-align: left;
    animation: heroContentSlideIn 1s ease-out;
}

@keyframes heroContentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text-container {
    background: rgba(60,65,66,.55);
    padding: 44px;
    border-radius: var(--rj-radius);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--rj-red);
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

.hero-media-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -.5px;
    overflow-wrap: break-word;
}

    .hero-media-content h1::after {
        content: "";
        display: block;
        width: 64px;
        height: 4px;
        background: var(--rj-red);
        margin-top: 20px;
    }

.hero-media-content p {
    max-width: 640px;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    margin: 24px 0 36px 0;
    color: rgba(255,255,255,.92);
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.hero-media-content .btn-gold {
    padding: 17px 44px;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
}

.carousel-dots {
    position: absolute;
    bottom: var(--controls-bottom);
    left: var(--hero-gutter);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    background: rgba(60,65,66,.5);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

    .carousel-dot:hover {
        background: rgba(255,255,255,.8);
    }

    .carousel-dot.active {
        width: 28px;
        background: var(--rj-red);
    }

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(6px);
    transition: background .25s, border-color .25s, box-shadow .25s;
}

    .carousel-nav:hover {
        background: var(--rj-red);
        border-color: var(--rj-red);
        box-shadow: 0 6px 20px rgba(0,0,0,.3);
    }

    .carousel-nav.prev {
        left: 40px;
    }

    .carousel-nav.next {
        right: 40px;
    }

.video-play-button {
    position: absolute;
    bottom: calc(var(--controls-bottom) - 10px);
    right: 50px;
    z-index: 5;
    cursor: pointer;
}

.play-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(60,65,66,.75);
    padding: 12px 24px 12px 12px;
    border-radius: 999px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
    transition: border-color .3s;
}

.video-play-button:hover .play-button-wrapper {
    border-color: var(--rj-red);
}

.play-button-circle {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rj-red);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    box-shadow: 0 6px 20px rgba(191,32,52,.45);
    transition: all .3s ease;
}

    .play-button-circle::before {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 50%;
        border: 2px solid var(--white);
        animation: pulse 2.5s ease-out infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

.video-play-button:hover .play-button-circle {
    background: var(--rj-red-dark);
    border-color: var(--white);
    transform: scale(1.05);
}

.play-button-circle svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    margin-left: 3px;
    fill: var(--white);
}

.play-button-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.play-button-label {
    font-size: .72rem;
    font-weight: 500;
    color: var(--rj-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 20px;
    background: rgba(30,33,34,.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn .3s ease;
    backdrop-filter: blur(8px);
}

    .video-modal.active {
        display: flex;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    background: #000;
    border-radius: var(--rj-radius);
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,.6);
    animation: slideUp .45s cubic-bezier(.4, 0, .2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.video-modal video {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    display: block;
}

.video-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rj-red);
    border: 0;
    border-radius: 50%;
    color: var(--white);
    font-family: var(--rj-font);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all .25s ease;
}

    .video-modal-close:hover {
        background: var(--rj-red-dark);
        transform: rotate(90deg);
    }

.media-type-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 5;
    background: rgba(60,65,66,.7);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
}

/* below 1280px the side arrows would cover the text, so they move to the bottom centre */
@media (max-width: 1279px) {
    .hero-media-container {
        --hero-gutter: 6%;
    }

    .carousel-nav {
        top: auto;
        bottom: var(--controls-bottom);
        transform: none;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

        .carousel-nav.prev {
            left: calc(50% - 50px);
            right: auto;
        }

        .carousel-nav.next {
            left: calc(50% + 6px);
            right: auto;
        }

    .video-play-button {
        right: 6%;
    }
}

@media (max-width: 1024px) {
    .hero-media-container {
        min-height: 0;
        padding: 72px 0 170px;
    }

    .hero-text-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero-media-container {
        --hero-gutter: 20px;
        --controls-bottom: 54px;
        padding: 48px 0 130px;
    }

        .hero-media-container::after {
            height: 40px;
        }

    .hero-media-overlay {
        background: linear-gradient(180deg, rgba(60,65,66,.88) 0%, rgba(60,65,66,.7) 100%);
    }

    .hero-media-content {
        max-width: 100%;
        padding: 0 var(--hero-gutter);
    }

    .hero-text-container {
        padding: 24px;
        border-left-width: 3px;
    }

    .hero-media-content h1::after {
        width: 52px;
        margin-top: 14px;
    }

    .hero-media-content p {
        margin: 18px 0 28px 0;
    }

    .hero-media-content .btn-gold {
        width: auto;
        padding: 15px 34px;
        font-size: .95rem;
    }

    .carousel-dots {
        height: 40px;
        gap: 8px;
        padding: 0 14px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

        .carousel-dot.active {
            width: 22px;
        }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

        .carousel-nav.prev {
            left: calc(50% - 44px);
        }

        .carousel-nav.next {
            left: calc(50% + 4px);
        }

    .video-play-button {
        bottom: calc(var(--controls-bottom) - 6px);
        right: var(--hero-gutter);
    }

    .play-button-wrapper {
        padding: 8px;
    }

    .play-button-text {
        display: none;
    }

    .play-button-circle {
        width: 52px;
        height: 52px;
    }

        .play-button-circle svg {
            width: 20px;
            height: 20px;
        }

    .media-type-badge {
        top: 14px;
        right: 14px;
        font-size: .65rem;
        padding: 6px 12px;
    }

    .video-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-media-container {
        padding: 40px 0 124px;
    }

    .hero-text-container {
        padding: 20px;
    }

    .hero-media-content .btn-gold {
        width: 100%;
        padding: 14px 28px;
    }
}

@media (max-width: 360px) {
    .hero-media-content h1 {
        font-size: 1.9rem;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

        .carousel-nav.prev {
            left: calc(50% - 40px);
        }

    .play-button-circle {
        width: 46px;
        height: 46px;
    }
}

@supports not (object-fit: cover) {
    .hero-media-bg {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .carousel-dot,
    .carousel-nav,
    .play-button-circle,
    .play-button-wrapper,
    .video-modal-content,
    .hero-media-content {
        transition: none;
        animation: none;
    }

        .play-button-circle::before {
            animation: none;
        }
}

@media (prefers-reduced-data: reduce) {
    video.hero-media-bg {
        display: none;
    }
}
