/*
 * rm/page-hero (Platform) and parts/feature-button. Values from staging Platform
 * post-293.css and getComputedStyle at 1440 / 390:
 *   section 44925c30 / 60b5a28a: padding 9%, container 1600 max, two 50% columns; the copy
 *     column padding 3% 2% 2% of its 590px (17.7px 11.8px), background rgba(255,255,255,.07), radius 25px; background
 *     video under a 95% white overlay (no video here: the content has none); waves top 1em and
 *     bottom 20px #292929.
 *   title (two headings): Platform 2.3em = 40.48/600/1 on two lines; #292929, accent #5E55FC.
 *   text 77c8f59c / 5fc27c4d: Helvetica, Platform 17.6px, line-height
 *     22.88px, #000, paragraphs margin 1em 0; widget margin 15px.
 *   buttons: Roboto 16/500/1, padding 16px 20px, radius 8px, icon 16px after the label, gap 5px,
 *     second button margin-left 25px; Platform #F57C00 bordered #FF3E3E (text #292929) + white bordered #FF3E3E.
 *   ≤767: margin-top 35%, padding 0 5%, image first, columns margin-top 9%.
 */

.rm-page-hero {
    position: relative;
    padding: 9% calc(var(--rm-bleed) + var(--rm-frame) * .09);
    background: var(--rm-white);
}

.rm-page-hero__inner {
    display: flex;
    align-items: stretch;
    max-width: 1600px;
    margin: 0 auto;
}

.rm-page-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50%;
    padding: 17.7px 11.8px 11.8px;
    border-radius: 25px;
    background: rgba(255, 255, 255, .07);
}

.rm-page-hero__title {
    margin: 0;
    color: var(--rm-black);
    font-family: var(--rm-font);
    font-size: 40.48px;
    font-weight: 600;
    line-height: 1;
}

.rm-page-hero__text {
    display: flow-root;
    margin-bottom: 15px;
    color: #000;
    font-family: Helvetica, var(--rm-font-helvetica);
    font-size: 17.6px;
    line-height: 22.88px;
}

.rm-page-hero__text p {
    margin: 1em 0;
}

.rm-page-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.rm-page-hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    border-radius: 25px;
}

.rm-page-hero__image {
    display: block;
    width: 100%;
    height: auto;
}

.rm-page-hero--platform .rm-page-hero__text {
    padding-top: 17px;
}

/* parts/feature-button */
.rm-fbtn-wrap + .rm-fbtn-wrap {
    margin-left: 25px;
}

.rm-fbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 16px 20px;
    border: 0 solid transparent;
    border-radius: 8px;
    background: var(--rm-red);
    color: var(--rm-black);
    font-family: Roboto, var(--rm-font-helvetica);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: underline;
}

.rm-fbtn--2 {
    border-width: 1px;
    border-color: var(--rm-black);
    background: #1976D2;
}

.rm-fbtn:hover,
.rm-fbtn:focus-visible {
    border-color: var(--rm-blurple);
    background: var(--rm-blurple);
    color: var(--rm-black);
}

.rm-fbtn__icon {
    display: inline-flex;
}

.rm-fbtn__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.rm-page-hero--platform .rm-fbtn--1 {
    border-width: 1px;
    border-color: var(--rm-red);
    background: #F57C00;
}

.rm-page-hero--platform .rm-fbtn--2 {
    border-color: var(--rm-red);
    background: var(--rm-white);
    color: var(--rm-red);
}

.rm-page-hero .rm-fbtn:hover,
.rm-page-hero .rm-fbtn:focus-visible {
    border-color: var(--rm-blurple);
    background: var(--rm-blurple);
    color: var(--rm-black);
}

@media (max-width: 767px) {
    .rm-page-hero {
        margin-top: 35%;
        padding: 0 5%;
    }

    .rm-page-hero__inner {
        flex-direction: column-reverse;
    }

    .rm-page-hero__copy,
    .rm-page-hero__media {
        width: 100%;
        margin-top: 9%;
    }

    .rm-page-hero__copy {
        padding: 0 0 40px;
    }

    .rm-fbtn-wrap + .rm-fbtn-wrap {
        margin-left: 0;
    }

    .rm-page-hero__buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* mediaPosition (parts/media.php): media first in the source; stacked (≤767) it stays on top */
.rm-page-hero__inner.rm-media--left {
    flex-direction: row;
}

.rm-page-hero__inner.rm-media--right {
    flex-direction: row-reverse;
}

@media (max-width: 767px) {
    .rm-page-hero__inner.rm-media--left,
    .rm-page-hero__inner.rm-media--right {
        flex-direction: column;
    }
}
