/* ============================================================================
 * Component: video-block
 *
 * Mobile: stacked (heading above, poster below, full-width).
 * Desktop: split layout — copy left, poster right, capped height.
 * Portrait videos never exceed ~60vh on desktop so they don't blow the section.
 * ========================================================================= */

.rc-comp-video {
    padding: 48px 16px;
    background: #FFFFFF;
    color: #1A1F26;
    font-family: 'ProximaNova', 'Proxima Nova', 'Noto Sans', sans-serif;
}
.rc-comp-video *,
.rc-comp-video *::before,
.rc-comp-video *::after { box-sizing: border-box; }

/* Inner wrapper — becomes a 2-col grid on desktop */
.rc-comp-video-inner {
    max-width: 1280px;
    margin: 0 auto;
}

/* ---- Copy (heading / sub / hint) ---- */
.rc-comp-video-copy {
    text-align: center;
    margin-bottom: 32px;
}
.rc-comp-video-eyebrow {
    display: inline-block;
    font-family: 'Plakkaat', 'ProximaNova', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #00A356;
    background: #E6F9F0;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.rc-comp-video-h2 {
    font-family: 'ProximaNova', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
}
.rc-comp-video-lead {
    font-size: 17px;
    color: #555E6B;
    margin: 0 0 16px;
    line-height: 1.55;
}
.rc-comp-video-cta-row {
    margin: 0;
}
.rc-comp-video-cta-hint {
    font-size: 14px;
    color: #888;
    display: none; /* show only on desktop split layout */
}

/* ---- Poster button ---- */
.rc-comp-video-media {
    display: flex;
    justify-content: center;
}
.rc-comp-video-poster {
    position: relative;
    display: block;
    width: auto;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(15,23,42,0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rc-comp-video-poster:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.16);
}
.rc-comp-video-poster-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.88;
    border-radius: 20px;
    transition: opacity 0.2s ease, transform 0.4s ease;
}
.rc-comp-video-poster:hover .rc-comp-video-poster-img {
    opacity: 1;
    transform: scale(1.02);
}
.rc-comp-video-poster-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00BF63 0%, #008f4a 100%);
}
.rc-comp-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
    transition: transform 0.15s ease;
}
.rc-comp-video-poster:hover .rc-comp-video-play {
    transform: translate(-50%, -50%) scale(1.08);
}
.rc-comp-video-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    pointer-events: none;
    white-space: nowrap;
}

/* ---- Desktop: split layout ---- */
@media (min-width: 768px) {
    .rc-comp-video { padding: 72px 32px; }

    .rc-comp-video-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: center;
    }
    .rc-comp-video-copy {
        text-align: left;
        margin-bottom: 0;
    }
    .rc-comp-video-h2 { font-size: 36px; }
    .rc-comp-video-cta-hint { display: block; }

    /* Image drives poster size — no forced aspect-ratio, no black bars.
       Cap height so portrait videos don't eat the viewport. */
    .rc-comp-video-poster {
        width: auto;
        max-width: 100%;
    }
    .rc-comp-video-poster-img {
        max-height: 480px;
        width: auto;
        border-radius: 20px;
        object-fit: cover;
    }
}
@media (min-width: 1200px) {
    .rc-comp-video-inner { gap: 64px; }
    .rc-comp-video-h2 { font-size: 40px; }
}

/* ---- Portrait section tightening ---- */
.rc-comp-video.is-portrait {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFBF5 100%);
}

/* ---- Lightbox ---- */
.rc-comp-video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 24px;
}
.rc-comp-video-lightbox.is-open { opacity: 1; }
.rc-comp-video-lightbox-inner {
    width: 100%;
    max-width: 1100px;
    /* aspect-ratio set inline per video */
}
.rc-comp-video-lightbox.is-portrait .rc-comp-video-lightbox-inner {
    max-width: min(420px, calc(100vh - 96px) * 0.5625);
}
.rc-comp-video-lightbox-inner video {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #000;
}
.rc-comp-video-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #1A1F26;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
html.rc-comp-no-scroll, html.rc-comp-no-scroll body { overflow: hidden; }
