/*
 * Home page blocks: rm/home-hero, rm/intro, rm/features, rm/home-testimonials,
 * plus Home's instance of rm/logo-strip. Values from staging post-21.css
 * (elementor-21) and getComputedStyle on https://wordpress.reelmetrics.com/.
 */

/* Hero: rounded box, video under the shared gradient, content at the bottom. Sizes as the Product hero (product.css) */
.rm-home-hero {
    max-width: var(--rm-container);
    margin: 0 auto;
    padding: 30px var(--rm-gutter) 0;
}

.rm-home-hero__box {
    z-index: 1;
    overflow: hidden;
    background: #191919 center / cover no-repeat;
}

.rm-home-hero__box::before,
.rm-home-hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--rm-hero-box-gradient);
}

.rm-home-hero__media {
    overflow: hidden;
    border-radius: inherit;
}

.rm-home-hero__media::before {
    z-index: 1;
    background: var(--rm-hero-box-gradient);
}

@media (max-width: 1199px) {
    .rm-home-hero__media::before {
        background: linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .6) 60%, rgba(0, 0, 0, .3) 100%);
    }
}

.rm-home-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 62%;
}

.rm-home-hero__title {
    margin: 0;
    color: var(--rm-white);
    font-size: 88px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -3px;
}

.rm-home-hero__title .rm-accent {
    color: var(--rm-title-accent, var(--rm-red));
}

.rm-home-hero__title--medium {
    font-size: 64px;
    letter-spacing: -2px;
}

.rm-home-hero__title--small {
    font-size: 48px;
    letter-spacing: -1.5px;
}

.rm-home-hero__text {
    margin: 0;
    color: var(--rm-white);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
}

.rm-home-hero__buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    justify-items: start;
    gap: 20px;
    width: fit-content;
}

.rm-home-hero__button.rm-btn--blurple {
    line-height: 1.4;
}

.rm-home-hero__button.rm-btn--blurple:hover,
.rm-home-hero__button.rm-btn--blurple:focus-visible {
    background: #4F49E3;
}

.rm-home-hero__button.rm-btn--light {
    padding: 21px;
    border-radius: 80px;
    color: #191919;
    font-family: var(--rm-font);
    font-size: var(--rm-type-18l);
    font-weight: 300;
    line-height: 1.4;
}

/* Intro + features: one lavender panel (403aea1) split over two blocks */
.rm-home-intro,
.rm-home-features {
    max-width: var(--rm-container);
    margin: 0 auto;
    padding: 0 var(--rm-gutter);
}

.rm-home-intro {
    margin-top: 40px;
}

.rm-home-intro__panel,
.rm-home-features__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--rm-lavender);
}

.rm-home-intro__panel {
    padding: 70px 20px 0;
    border-radius: 40px 40px 0 0;
}

.rm-home-intro__body {
    width: 62.29%;
}

.rm-home-intro__text {
    margin: 0;
    padding: 1em 0;
    color: var(--rm-black);
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -3px;
}

.rm-home-features {
    padding-bottom: 10px;
    overflow-x: clip;
}

.rm-home-features__panel {
    padding: 0 20px 70px;
    border-radius: 0 0 40px 40px;
}

.rm-home-features__title {
    align-self: flex-start;
    width: 49.998%;
    margin: 20px 0;
    padding-left: 50px;
    font-size: 65px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.rm-home-feature {
    width: 100%;
    max-width: 1370px;
    margin: 10px 0;
    padding: 50px;
    border-radius: 40px;
    background: var(--rm-white);
}

.rm-home-feature__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rm-home-feature__copy {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    width: 40%;
    padding: 10px;
}

/* staging's first card differs from the other two: wider copy, 14px gaps */
.rm-home-feature:first-of-type .rm-home-feature__copy {
    gap: 14px;
    width: 43.07%;
}

.rm-home-feature__title {
    margin: 0;
    font-size: 45px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -2.8px;
}

.rm-home-feature__text {
    font-size: var(--rm-type-20l);
    font-weight: 300;
    line-height: 1.5;
}

.rm-home-feature__text p {
    margin: 1em 0;
}

.rm-home-feature__media {
    flex: 0 0 auto;
    width: 44%;
}

.rm-home-feature__image {
    display: block;
    width: 100%;
}

/* A play-once video (parts/media.php `once`, 2026-11-30): framed as a white screen like the
   Product showcase, with a soft shadow; the replay button sits in its corner (media.css). */
.rm-home-feature__media .rm-media-once {
    overflow: hidden;
    border-radius: 16px;
    background: var(--rm-white);
    box-shadow: 0 24px 48px -24px rgba(41, 41, 41, .3), 0 0 0 1px rgba(41, 41, 41, .08);
}

/* Home's logo strip (09f05c9): 70vh high, centred vertically */
.rm-logo-section.rm-logo-section--home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70vh;
}

/* Testimonials (7b4ef41 / b90f850) */
.rm-home-testimonials {
    max-width: var(--rm-container);
    margin: 0 auto;
    padding: 10px var(--rm-gutter);
    --rm-per-view: 1;
}

.rm-home-testimonials__carousel {
    position: relative;
}

.rm-home-testimonials__viewport {
    overflow: hidden;
    touch-action: pan-y;
}

.rm-home-testimonials__track {
    display: flex;
}

.rm-home-testimonial {
    flex: 0 0 calc(100% / var(--rm-per-view));
    min-width: 0;
    padding: 10px 20px;
}

.rm-home-testimonial__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 0;
}

.rm-home-testimonial__person {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 50.56%;
}

.rm-home-testimonial__photo {
    flex: 0 1 auto;
    width: 80px;
}

.rm-home-testimonial__photo img {
    display: block;
    width: 100%;
}

.rm-home-testimonial__who {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    width: 78.02%;
}

.rm-home-testimonial__name {
    margin: 0;
    font-family: var(--rm-font-helvetica);
    font-size: var(--rm-type-20l);
    font-weight: 400;
    line-height: 1.3;
}

.rm-home-testimonial__role {
    margin: 0;
    font-size: var(--rm-type-18l);
    font-weight: 300;
    line-height: 1.3;
}

.rm-home-testimonial__quote {
    width: 100%;
    margin: 0;
    font-size: 45px;
    font-weight: 400;
    line-height: 1.05;
}

.rm-home-testimonial__quote p {
    margin: 1em 0;
}

.rm-home-testimonial__quote .rm-accent {
    color: var(--rm-red);
}

.rm-home-testimonial__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45%;
    min-height: 60px;
    padding: 25px 30px;
    border-radius: 80px;
    background: var(--rm-black);
    color: var(--rm-white);
    font-family: var(--rm-font-helvetica);
    font-size: var(--rm-type-20l);
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

a.rm-home-testimonial__cta:hover,
a.rm-home-testimonial__cta:focus-visible {
    background: var(--rm-grey);
}

.rm-home-testimonials__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(238, 238, 238, .9);
    font-size: 25px;
    cursor: pointer;
    transform: translateY(-50%);
}

.rm-home-testimonials__arrow svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

html:not(.rm-js) .rm-home-testimonials__arrow {
    display: none;
}

.rm-home-testimonials__arrow--prev {
    left: 0;
}

.rm-home-testimonials__arrow--next {
    right: 0;
}

.rm-home-testimonials__arrow:focus-visible {
    outline: 2px solid var(--rm-blurple);
    outline-offset: 2px;
}

/* Tablet (Elementor ≤1024) */
@media (max-width: 1024px) {
    .rm-home-hero__box {
        min-height: 480px;
        padding: 28px;
        border-radius: 32px;
    }

    .rm-home-hero__content {
        width: 80%;
    }

    .rm-home-hero__title {
        font-size: 48px;
        line-height: 1.2;
    }

    .rm-home-hero__title--medium {
        font-size: 35px;
        letter-spacing: -2px;
    }

    .rm-home-hero__title--small {
        font-size: 26px;
        letter-spacing: -1.5px;
    }

    .rm-home-hero__text {
        font-size: 18px;
    }

    .rm-home-hero__button.rm-btn--blurple {
        font-size: 16.02px;
    }

    .rm-home-intro__body {
        width: 100%;
        max-width: 897px;
    }

    .rm-home-intro__text {
        font-size: 28.95px;
    }

    .rm-home-features__title {
        width: 100%;
        max-width: 980px;
        margin: 0 97.33px 0 40.03px;
        font-size: 41.28px;
        line-height: 1.2;
    }

    .rm-home-feature {
        margin: 20px 0;
    }

    .rm-home-feature__row {
        flex-direction: column-reverse;
        align-items: center;
    }

    .rm-home-feature__copy,
    .rm-home-feature:first-of-type .rm-home-feature__copy {
        width: 100%;
    }

    .rm-home-feature__media {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .rm-home-feature__image {
        width: 585px;
        max-width: 100%;
        height: auto;
    }

    .rm-home-feature__media .rm-media-once {
        width: 585px;
        max-width: 100%;
        border-radius: 12px;
    }

    .rm-home-feature__title {
        font-size: 26.28px;
        line-height: 1.2;
    }

    .rm-home-testimonials {
        --rm-per-view: 2;
    }

    .rm-home-testimonial__person {
        gap: 15px;
        width: 455px;
        max-width: 100%;
    }

    .rm-home-testimonial__who {
        width: 355px;
    }

    .rm-home-testimonial__quote {
        font-size: 26.28px;
        line-height: 1.2;
    }

    .rm-home-testimonial__cta {
        width: 275px;
        max-width: 100%;
        padding: 19px 20px;
    }
}

/* Mobile (Elementor ≤767) */
@media (max-width: 767px) {
    .rm-home-hero {
        padding: 20px 20px 0;
    }

    .rm-home-hero__box {
        min-height: 420px;
        padding: 24px 20px;
        border-radius: 28px;
    }

    .rm-home-hero__box::before {
        background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .15) 100%);
    }

    .rm-home-hero__content {
        width: 100%;
    }

    .rm-home-hero__title {
        font-size: 38px;
    }

    .rm-home-hero__title--medium {
        font-size: 28px;
    }

    .rm-home-hero__title--small {
        font-size: 21px;
    }

    .rm-home-hero__buttons {
        grid-template-columns: 1fr;
    }

    .rm-home-hero__button.rm-btn--blurple {
        font-size: 16.92px;
    }

    .rm-home-intro__text {
        font-size: 25.76px;
    }

    .rm-home-features__title {
        margin: 0;
        padding-left: 28px;
        font-size: 29.92px;
    }

    .rm-home-feature {
        padding: 20px;
    }

    .rm-home-feature__title {
        font-size: 23.85px;
    }

    .rm-home-testimonials {
        --rm-per-view: 1;
    }

    .rm-home-testimonial__photo {
        flex-shrink: 0;
    }

    .rm-home-testimonial__who {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .rm-home-testimonial__quote {
        font-size: 23.85px;
    }

    .rm-home-testimonial__cta {
        padding: 16px 20px;
    }
}

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

.rm-home-feature__row.rm-media--right {
    flex-direction: row-reverse;
}

@media (max-width: 1024px) {
    .rm-home-feature__row.rm-media--left,
    .rm-home-feature__row.rm-media--right {
        flex-direction: column;
    }
}
