
/* ==========================================
   MOSTPLAY PARTNERS - FAQ SECTION
========================================== */

.mp-faq {
    --mp-faq-bg: #ffffff;
    --mp-faq-heading: #171f1d;
    --mp-faq-text: #5f6d68;
    --mp-faq-green: #163e90;
    --mp-faq-yellow: #ffd600;
    --mp-faq-line: #e2e6e3;

    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 20px 0 60px;

    background-color: var(--mp-faq-bg);
    color: var(--mp-faq-heading);
    overflow: hidden;
}

.mp-faq *,
.mp-faq *::before,
.mp-faq *::after {
    box-sizing: border-box;
}

/* Optional ACF background image */

.mp-faq__background {
    position: absolute;
    inset: 0;
    z-index: -1;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0.18;
    pointer-events: none;
}

/* ==========================================
   TWO-COLUMN LAYOUT
========================================== */

.mp-faq__container {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 0.88fr)
        minmax(0, 1.12fr);

    align-items: start;
    gap: clamp(60px, 9vw, 150px);

    width: min(calc(100% - 80px), 1320px);
    margin: 0 auto;
}

/* ==========================================
   LEFT INTRODUCTION
========================================== */

.mp-faq__intro {
    min-width: 0;
    padding-top: 7px;
}

.mp-faq__eyebrow {
    position: relative;
    display: inline-block;

    margin: 0 0 36px;
    padding-bottom: 15px;

    color: #232c27;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}

.mp-faq__eyebrow::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 0;

    width: 55px;
    height: 4px;

    border-radius: 5px;
    background: var(--mp-faq-yellow);
}

.mp-faq__heading {
    max-width: 550px;
    margin: 0 0 24px;

    color: var(--mp-faq-heading);
    font-size: clamp(39px, 3.9vw, 61px);
    font-weight: 800;
    line-height: 1.11;
    letter-spacing: -1.8px;
}

.mp-faq__description {
    max-width: 480px;
    margin-bottom: 30px;

    color: var(--mp-faq-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
}

.mp-faq__description p {
    margin: 0 0 14px;
}

.mp-faq__description p:last-child {
    margin-bottom: 0;
}

/* Text-style CTA, matching reference */

.mp-faq__cta {
    display: inline-flex;
    align-items: center;
    gap: 17px;

    max-width: 100%;

    color: #4c504f;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;

    transition: color 250ms ease;
}

.mp-faq__cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;

    transition: transform 250ms ease;
}

.mp-faq__cta:hover {
    color: #0e2749;
}

.mp-faq__cta:hover svg {
    transform: translateX(5px);
}

.mp-faq__cta:focus-visible {
    outline: 3px solid var(--mp-faq-yellow);
    outline-offset: 5px;
    border-radius: 2px;
}

/* ==========================================
   RIGHT ACCORDION
========================================== */

.mp-faq__list {
    min-width: 0;
    width: 100%;

    border-top: 1px solid var(--mp-faq-line);
}

.mp-faq__item {
    border-bottom: 1px solid var(--mp-faq-line);
}

.mp-faq__item-title {
    margin: 0;
    padding: 0;
}

.mp-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    width: 100%;
    min-height: 92px;
    padding: 27px 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;

    color: #27322d;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;

    cursor: pointer;
    appearance: none;

    transition: color 250ms ease;
}

.mp-faq__question:hover,
.mp-faq__question[aria-expanded="true"] {
    color: var(--mp-faq-green);
}

.mp-faq__question:focus-visible {
    outline: 3px solid var(--mp-faq-yellow);
    outline-offset: -3px;
}

.mp-faq__question-text {
    display: block;
    min-width: 0;
}

/* Plus / minus icon */

.mp-faq__toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    color: #2b3933;
}

.mp-faq__toggle svg {
    width: 22px;
    height: 22px;
}

.mp-faq__plus-vertical {
    transform-origin: center;
    transition:
        opacity 280ms ease,
        transform 280ms ease;
}

.mp-faq__question[aria-expanded="true"]
.mp-faq__plus-vertical {
    opacity: 0;
    transform: rotate(90deg);
}

/* ==========================================
   SMOOTH ACCORDION EXPANSION
========================================== */

.mp-faq__answer-wrap {
    display: grid;
    grid-template-rows: 0fr;

    opacity: 0;

    transition:
        grid-template-rows 420ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 350ms ease;
}

.mp-faq__answer-inner {
    min-height: 0;
    overflow: hidden;
}

.mp-faq__answer {
    max-width: 570px;
    padding: 0 42px 0 0;

    color: var(--mp-faq-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;

    transform: translateY(-7px);

    transition:
        padding 420ms ease,
        transform 420ms ease;
}

.mp-faq__answer p {
    margin: 0 0 12px;
}

.mp-faq__answer p:last-child {
    margin-bottom: 0;
}

/* Expanded item */

.mp-faq__item.is-open .mp-faq__answer-wrap {
    grid-template-rows: 1fr;
    opacity: 1;
}

.mp-faq__item.is-open .mp-faq__answer {
    padding-bottom: 27px;
    transform: translateY(0);
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
========================================== */

/*
 * Content stays visible when JS is unavailable.
 * JS adds .mp-faq--animate before revealing.
 */

.mp-faq.mp-faq--animate .mp-faq__intro {
    opacity: 0;
    transform: translate3d(-65px, 0, 0);

    transition:
        opacity 900ms ease,
        transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mp-faq.mp-faq--animate .mp-faq__item {
    opacity: 0;
    transform: translate3d(65px, 0, 0);

    transition:
        opacity 850ms ease,
        transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mp-faq.mp-faq--animate .mp-faq__intro.is-visible,
.mp-faq.mp-faq--animate .mp-faq__item.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ==========================================
   LAPTOP
========================================== */

@media (max-width: 1199px) {

    .mp-faq {
        padding: 90px 0 100px;
    }

    .mp-faq__container {
        width: min(calc(100% - 60px), 1100px);
        gap: 55px;
    }

    .mp-faq__heading {
        font-size: clamp(38px, 4vw, 52px);
    }

    .mp-faq__question {
        min-height: 82px;
        font-size: 16px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .mp-faq {
        padding: 76px 0 85px;
    }

    .mp-faq__container {
        grid-template-columns: 1fr;
        gap: 45px;

        width: min(calc(100% - 48px), 700px);
    }

    .mp-faq__heading {
        max-width: 600px;
        font-size: clamp(40px, 6vw, 55px);
    }

    .mp-faq__description {
        max-width: 610px;
    }

    .mp-faq__question {
        min-height: 78px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .mp-faq {
        padding: 62px 0 72px;
    }

    .mp-faq__container {
        width: calc(100% - 36px);
        gap: 35px;
    }

    .mp-faq__eyebrow {
        margin-bottom: 27px;
        padding-bottom: 13px;

        font-size: 11px;
        letter-spacing: 1.7px;
    }

    .mp-faq__eyebrow::after {
        width: 45px;
        height: 3px;
    }

    .mp-faq__heading {
        margin-bottom: 19px;

        font-size: clamp(34px, 8vw, 44px);
        letter-spacing: -1.2px;
        line-height: 1.14;
    }

    .mp-faq__description {
        margin-bottom: 25px;
        font-size: 14px;
        line-height: 1.8;
    }

    .mp-faq__cta {
        font-size: 11px;
        letter-spacing: 0.6px;
        gap: 10px;
    }

    .mp-faq__question {
        min-height: 74px;
        padding: 21px 0;
        gap: 15px;

        font-size: 15px;
        line-height: 1.5;
    }

    .mp-faq__toggle {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }

    .mp-faq__answer {
        padding-right: 16px;
        font-size: 14px;
        line-height: 1.75;
    }

    .mp-faq__item.is-open .mp-faq__answer {
        padding-bottom: 22px;
    }

    .mp-faq.mp-faq--animate .mp-faq__intro {
        transform: translate3d(-30px, 0, 0);
    }

    .mp-faq.mp-faq--animate .mp-faq__item {
        transform: translate3d(30px, 0, 0);
    }

    .mp-faq.mp-faq--animate .mp-faq__intro.is-visible,
    .mp-faq.mp-faq--animate .mp-faq__item.is-visible {
        transform: translate3d(0, 0, 0);
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .mp-faq.mp-faq--animate .mp-faq__intro,
    .mp-faq.mp-faq--animate .mp-faq__item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .mp-faq__answer-wrap,
    .mp-faq__answer,
    .mp-faq__plus-vertical,
    .mp-faq__cta svg {
        transition: none !important;
    }
}



/* ==========================================
   FAQ DESIGN REFINEMENTS
========================================== */

/* 1. Remove top line above first FAQ question */

.mp-faq__list {
    border-top: none;
}

/* 2. Match FAQ heading to reference image */

.mp-faq__heading {
    font-size: clamp(38px, 3.2vw, 50px);
    font-weight: 400;
    line-height: 1.17;
    letter-spacing: -1.5px;
    color: #1c2038;
    max-width: 560px;
}

/* 3. Keep the heading readable on tablets */

@media (max-width: 900px) {
    .mp-faq__heading {
        font-size: clamp(37px, 5vw, 48px);
        font-weight: 400;
        line-height: 1.18;
    }
}

/* 4. Mobile heading */

@media (max-width: 600px) {
    .mp-faq__heading {
        font-size: clamp(32px, 8vw, 40px);
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: -1px;
    }
}




/* ==========================================
   FAQ - REDUCE EXTRA VERTICAL SPACE
========================================== */

/* Desktop */
@media (min-width: 1200px) {
    .mp-faq {
        padding-top: 55px;
        padding-bottom: 60px;
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1199px) {
    .mp-faq {
        padding-top: 50px;
        padding-bottom: 55px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .mp-faq {
        padding-top: 40px;
        padding-bottom: 45px;
    }
}
