/* ═══════════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════════ */
.reviews-hero {
    height: 900px;
    width: 100%;
}

.reviews-hero__bg {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.reviews-hero__overlay {
    inset: 0;
    background: var(--black-55);
}

.reviews-hero__content {
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    text-align: center;
}

.reviews-hero__title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 61px;
    line-height: 1;
    color: var(--white);
}

.reviews-hero__desc {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: var(--white-70);
    max-width: 680px;
}

/* ─── Accent button (yellow 3-piece parallelogram) ────────────────────────── */

.btn-accent {
    display: inline-flex;
    align-items: center;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-accent__left {
    width: 20px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}
.btn-accent__left img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; max-width: none;
}

.btn-accent__center {
    background: var(--accent);
    height: 50px;
    padding: 15px 20px;
    font-family: var(--font-plus);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black);
    white-space: nowrap;
}

.btn-accent__right-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-accent__rotate {
    flex: none;
    transform: rotate(180deg);
}
.btn-accent__right {
    width: 20px;
    height: 50px;
    position: relative;
}
.btn-accent__right img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; max-width: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO SECTION
═══════════════════════════════════════════════════════════════════════════ */

.reviews-video {
    padding: 120px 140px;
}

.reviews-video__inner {
    gap: 198px;
}

/* ─── Left: text ──────────────────────────────────────────────────────────── */

.reviews-video__left {
    width: 680px;
    flex-shrink: 0;
    gap: 30px;
}

/* ─── Tag (CSS-only arrow) ────────────────────────────────────────────────── */

.reviews-tag {
    background: var(--second-bg);
    border-left: 3px solid var(--accent);
    padding: 10px 5px 10px 15px;
    align-self: flex-start;
}
.reviews-tag::after {
    content: '';
    position: absolute;
    right: -15px; top: 0; bottom: 0;
    width: 15px;
    background: var(--second-bg);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.reviews-tag span {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black-70);
    text-transform: uppercase;
}

.reviews-video__title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 49px;
    line-height: normal;
    color: var(--black);
    text-transform: capitalize;
}

.reviews-video__text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.reviews-video__text p {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: var(--black-70);
}

/* ─── Slider controls ─────────────────────────────────────────────────────── */

.reviews-video__controls {
    flex-shrink: 0;
    justify-content: center;
}

.slider-nav {
    position: absolute;
    top: calc((100% - 40px) / 2);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    width: 50px;
    height: 40px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    opacity: 0.6;
}

.slider-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--black);
    transform: skew(-15deg);
}

.slider-nav--prev {
    left: -132px;
}

.slider-nav--next {
    right: -132px;
}

.slider-nav svg {
    position: relative;
    z-index: 1;
}

.slider-nav.swiper-button-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.reviews-video__pagination img {
    display: block;
    height: 10px;
    width: auto;
}

/* ─── Right: Swiper carousel ──────────────────────────────────────────────── */

.reviews-swiper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    width: 365px;
    height: 650px;
    flex-shrink: 0;
    overflow: visible;
}

.reviews-swiper__viewport {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.reviews-video__slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.reviews-video__slide > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    max-width: none;
}
.reviews-video__slide iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none;
    display: block;
}

.reviews-video__play {
    inset: 0;
    transition: opacity 0.2s;
}
.reviews-video__play:hover { opacity: 0.85; }

.reviews-video__play-bg {
    width: 80px;
    height: 80px;
    position: relative;
}
.reviews-video__play-bg > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; max-width: none;
}

.reviews-video__play-icon {
    width: 30px;
    height: 30px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.reviews-video__play-icon img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; max-width: none;
}

/* ─── Swiper pagination (bullets) ────────────────────────────────────────── */

.reviews-video__pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reviews-video__pagination .swiper-pagination-bullet {
    display: block;
    width: 25px;
    height: 20px;
    border-radius: 0;
    background: var(--black);
    clip-path: polygon(26% 0, 100% 0, 74% 100%, 0 100%);
    opacity: 1;
    margin: 0 !important;
    transition: background 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.reviews-video__pagination .swiper-pagination-bullet-active {
    background: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REVIEWS SECTION
═══════════════════════════════════════════════════════════════════════════ */

.reviews-section {
    padding: 40px 0 100px;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */

.reviews-section__header {
    gap: 20px;
    padding-bottom: 60px;
    text-align: center;
}
.reviews-section__header .reviews-tag {
    align-self: center;
}

.reviews-section__title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 39px;
    line-height: 1;
    color: var(--black);
}

.reviews-section__subtitle {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: var(--black-70);
    max-width: 680px;
}

/* ─── Grid ────────────────────────────────────────────────────────────────── */

.reviews-grid {
    gap: 40px;
    align-items: flex-start;
}

.reviews-col {
    flex: 1;
    gap: 40px;
}
.reviews-col[data-column-index="1"] {
    padding-top: 100px;
}

/* ─── Review card ─────────────────────────────────────────────────────────── */

.review-card {
    background: var(--second-bg);
    border-left: 5px solid var(--accent);
    padding: 43px 30px 39px 35px;
    gap: 19px;
    clip-path: polygon(
            0 0,
            100% 0,
            100% calc(100% - 40px),
            calc(100% - 40px) 100%,
            0 100%
    );
}

.review-card__body {
    gap: 11px;
    flex: 1;
}

.review-card__title {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: var(--black);
}

.review-card__text {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: var(--black-70);
}

.review-card__author {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: normal;
    color: var(--black);
}

.review-card__corner {
    width: 20px;
    height: 20px;
    top: 0;
    right: 0;
}
.review-card__corner img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; max-width: none;
}

/* ─── Load more ───────────────────────────────────────────────────────────── */

.reviews-section__loadmore {
    padding-top: 60px;
}

.btn-accent__load-more.btn-accent--loading {
    pointer-events: none;
}

.btn-accent__load-more .btn-accent__loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-accent__load-more.btn-accent--loading .btn-accent__label {
    display: none;
}

.btn-accent__load-more.btn-accent--loading .btn-accent__loading {
    display: inline-flex;
}

.btn-accent__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(51, 54, 57, 0.3);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: reviews-button-spin 0.8s linear infinite;
}

@keyframes reviews-button-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════════════════════════ */
body.page-template-reviews .section-get-started {
    margin-bottom: 160px;
}
.section-cta {
    padding: 0 140px;
    margin: auto;
}

.section-cta__wrap {
    background: var(--second-bg);
    width: 100%;
    display: flex;
    overflow: hidden;
}

.section-cta__wrap--yellow {
    background: var(--accent);
}

.section-cta__left {
    width: 680px;
    flex-shrink: 0;
    padding: 80px 40px 80px 80px;
    gap: 20px;
}

.section-cta__tag {
    background: var(--white);
    border-left: 3px solid var(--black);
    padding: 10px 5px 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    position: relative;
}
.section-cta__tag span {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black-70);
    text-transform: uppercase;
}
.section-cta__tag-arrow {
    position: absolute;
    right: -15px; top: 0; bottom: 0;
    width: 15px;
    background: var(--white);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.section-cta__title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 39px;
    line-height: 1;
    color: var(--black);
}

.section-cta__desc {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: var(--black);
}

.section-cta__form { gap: 20px; width: 100%; }
.section-cta__form-fields { gap: 10px; }
.section-cta__row { gap: 20px; }

.section-cta__input {
    border-bottom: 1px solid var(--black-30);
    padding: 20px 0;
}
.section-cta__row .section-cta__input { flex: 1; }

.section-cta__input-field,
.section-cta__textarea {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: var(--black-30);
    width: 100%;
}
.section-cta__input-field::placeholder,
.section-cta__textarea::placeholder { color: var(--black-30); }
.section-cta__textarea { resize: none; height: 80px; display: block; }

.section-cta__privacy {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: var(--black-70);
}
.section-cta__privacy-link {
    color: var(--black);
    text-decoration: underline;
}

.section-cta__submit { justify-content: flex-start; }

/* right: image */
.section-cta__right {
    flex: 1;
    min-height: 500px;
    overflow: hidden;
    position: relative;
}
.section-cta__right > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    max-width: none;
    object-fit: cover;
}

.section-cta__fade {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 100px;
    background: linear-gradient(to right, var(--second-bg), transparent);
}
.section-cta__fade--yellow {
    background: linear-gradient(to right, var(--accent), transparent);
}

/* ─── Primary button (black 3-piece parallelogram) ────────────────────────── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-primary__left {
    width: 20px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}
.btn-primary__left img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; max-width: none;
}

.btn-primary__center {
    background: var(--black);
    height: 50px;
    padding: 15px 20px;
    font-family: var(--font-plus);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--white);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary__right-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-primary__rotate {
    flex: none;
    transform: rotate(180deg);
}
.btn-primary__right {
    width: 20px;
    height: 50px;
    position: relative;
}
.btn-primary__right img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block; max-width: none;
}

@media (max-width: 991px) {
    .reviews-hero {
        height: auto;
        min-height: 100vh;
    }
    body.page-template-reviews .reviews-swiper {
        width: 100vw;
        height: 490px;
        margin-left: calc(50% - 50vw);
        gap: 20px;
    }
    body.page-template-reviews .reviews-swiper__viewport {
        width: 100%;
    }
    body.page-template-reviews .reviews-swiper__viewport .swiper-slide {
        width: calc(100vw - 80px);
    }
    body.page-template-reviews .reviews-swiper .slider-nav {
        display: none;
    }
    body.page-template-reviews .reviews-video {
        padding-bottom: 80px;
    }
    body.page-template-reviews .reviews-col[data-column-index="1"] {
        padding-top: 0;
    }

    .reviews-section__header {
        align-items: flex-start;
        text-align: left;
    }
    .reviews-section__header .reviews-tag {
        align-self: flex-start;
    }
}
