/* ==========================================================================
   Block — FAQ
   Mobile-first, breakpoint at 768px
   ========================================================================== */

/* ── Section ── */
.block-faq {
    position: relative;
    padding: var(--section-padding-y) 0;
    background-color: var(--color-warm-grey);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── Inner ── */
.block-faq__inner {
    max-width: var(--grid-max-width);
    margin: 0 auto;
    padding: 0 var(--grid-margin);
}

/* ── White Card ── */
.block-faq__card {
    background-color: var(--color-white);
    border-radius: var(--card-radius);
    padding: 16px;
}

/* ── Container (flex on desktop) ── */
.block-faq__container {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* ── Left Side ── */
.block-faq__left {
    display: flex;
    flex-direction: column;
}

/* ── Heading ── */
.block-faq__heading {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: var(--weight-medium);
    line-height: var(--h2-line-height);
    color: #FF5532;
}

/* ── Media ── */
.block-faq__media {
    position: relative;
    width: 100%;
    height: 350px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.block-faq__media img,
.block-faq__media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.block-faq__iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* ── Right Side ── */
.block-faq__right {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ── Accordion ── */
.block-faq__accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── FAQ Item ── */
.block-faq__item {
    border-bottom: 1px solid var(--color-primary-orange);
}

/* ── Question Button ── */
.block-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.block-faq__question-text {
    font-family: var(--font-body);
    font-size: var(--h6-size);
    font-weight: var(--weight-medium);
    line-height: var(--h6-line-height);
    color: var(--color-grey-ultra-dark);
    flex: 1;
}

/* ── Arrow ── */
.block-faq__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--color-primary-orange);
    transition: transform 0.3s ease;
}

.block-faq__item.is-open .block-faq__arrow {
    transform: rotate(180deg);
}

/* ── Answer ── */
.block-faq__answer {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.block-faq__answer[hidden] {
    display: block;
    max-height: 0;
    opacity: 0;
}

.block-faq__item.is-open .block-faq__answer {
    opacity: 1;
}

.block-faq__answer-inner {
    padding: 8px 0 10px;
    font-family: var(--font-body);
    font-size: var(--body-small-size);
    font-weight: var(--weight-regular);
    line-height: var(--body-small-line-height);
    color: var(--color-grey-dark);
}

/* ── CTA Button ── */
.block-faq__cta {
    display: inline-flex;
    align-items: center;
    height: var(--btn-secondary-height);
    background-color: var(--color-primary-orange);
    border-radius: var(--btn-secondary-radius);
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.2s ease;
}

.block-faq__cta:hover {
    opacity: 0.85;
}

.block-faq__cta-text {
    font-family: var(--font-body);
    font-size: var(--btn-secondary-font-size);
    font-weight: var(--btn-secondary-font-weight);
    color: var(--color-white);
    padding: 0 16px;
    line-height: 1;
}

.block-faq__cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--btn-secondary-icon-size);
    height: var(--btn-secondary-icon-size);
    border-radius: 50%;
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    flex-shrink: 0;
}

.block-faq__cta-icon svg {
    width: 14px;
    height: 14px;
}

/* ══════════════════════════════════════════════════════════════════════════
   Desktop (≥ 768px)
   ══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {

    .block-faq__card {
        padding: var(--space-md);
    }

    .block-faq__container {
        flex-direction: row;
        gap: 26px;
    }

    .block-faq__left {
        flex: 0 0 48%;
    }

    .block-faq__heading {
        font-size: var(--h2-size);
    }

    .block-faq__media {
        flex: 1;
        height: 600px;
    }

    .block-faq__right {
        flex: 0 0 48%;
        overflow-y: auto;
    }
}
