
/**
 * Services Page — FAQ Section
 *
 * @package BCC
 */

/* =========================================
   FAQ SECTION
========================================= */

.bcc-services-faq {
    padding: 42px 0 76px;
    background: var(--bcc-color-surface, #FFFFFF);
    color: var(--bcc-color-text, #171717);
}

.bcc-services-faq__inner {
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
    max-width: 1800px;
    margin-inline: auto;
    gap: 80px;
}

/* =========================================
   INTRO — CENTERED
========================================= */

.bcc-services-faq__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    text-align: center;
}

.bcc-services-faq__title {
    margin: 0;
    color: var(--bcc-color-text, #171717);
    font-family: var(--bcc-font-heading, "Saans", "Inter", Arial, sans-serif);
    font-size: clamp(44px, 3.65vw, 64px);
    font-weight: var(--bcc-weight-semibold, 600);
    line-height: 1.08;
    letter-spacing: -0.058em;
    text-align: center;
}

.bcc-services-faq__description {
    max-width: 760px;
    margin: 0;
    color: var(--bcc-color-text-muted, #666666);
    font-family: var(--bcc-font-body, "Saans", "Inter", Arial, sans-serif);
    font-size: 21px;
    font-weight: var(--bcc-weight-regular, 400);
    line-height: 1.72;
    letter-spacing: -0.02em;
    text-align: center;
}

/* =========================================
   FAQ GRID
========================================= */

.bcc-services-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 19px;
    align-items: start;
}

/* =========================================
   FAQ ITEM
========================================= */

.bcc-services-faq__item {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: var(--bcc-border-width, 1px) solid var(--bcc-color-border, #E5E5E5);
    border-radius: var(--bcc-border-radius-lg, 16px);
    background: var(--bcc-color-surface-muted, #F0F0EE);
    transition:
        border-color 180ms ease,
        background-color 180ms ease;
}

.bcc-services-faq__item[open] {
    background: var(--bcc-color-surface-muted, #F0F0EE);
}

/* =========================================
   QUESTION
========================================= */

.bcc-services-faq__question {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 27px;
    color: var(--bcc-color-text, #171717);
    font-family: var(--bcc-font-heading, "Saans", "Inter", Arial, sans-serif);
    font-size: 20px;
    font-weight: var(--bcc-weight-semibold, 600);
    line-height: 1.45;
    letter-spacing: -0.025em;
    list-style: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bcc-services-faq__question::-webkit-details-marker {
    display: none;
}

.bcc-services-faq__question::marker {
    content: "";
}

.bcc-services-faq__question > span:first-child {
    flex: 1;
    min-width: 0;
}

/* =========================================
   TOGGLE ICON
========================================= */

.bcc-services-faq__toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    color: var(--bcc-color-text, #171717);
    transition: transform 200ms ease;
}

.bcc-services-faq__toggle::before,
.bcc-services-faq__toggle::after {
    position: absolute;
    display: block;
    width: 15px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    content: "";
}

.bcc-services-faq__toggle::after {
    transform: rotate(90deg);
    transition: transform 200ms ease;
}

.bcc-services-faq__item[open] .bcc-services-faq__toggle {
    transform: rotate(45deg);
}

/* =========================================
   ANSWER
========================================= */

.bcc-services-faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition:
        grid-template-rows 260ms ease,
        padding 260ms ease;
}

.bcc-services-faq__answer p {
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 27px;
    color: var(--bcc-color-text-muted, #666666);
    font-family: var(--bcc-font-body, "Saans", "Inter", Arial, sans-serif);
    font-size: 18px;
    font-weight: var(--bcc-weight-regular, 400);
    line-height: 1.8;
    letter-spacing: -0.015em;
    opacity: 0;
    transition:
        opacity 180ms ease,
        padding 260ms ease;
}

.bcc-services-faq__item[open] .bcc-services-faq__answer {
    grid-template-rows: 1fr;
}

.bcc-services-faq__item[open] .bcc-services-faq__answer p {
    padding: 0 27px 25px;
    opacity: 1;
}

/* =========================================
   CONTACT CTA
========================================= */

.bcc-services-faq__actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bcc-services-faq__button {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 16px 24px;
    border: 1px solid var(--bcc-color-primary, #171717);
    border-radius: var(--bcc-border-radius-pill, 999px);
    background: var(--bcc-color-primary, #171717);
    color: var(--bcc-color-surface, #FFFFFF);
    font-family: var(--bcc-font-body, "Saans", "Inter", Arial, sans-serif);
    font-size: 15px;
    font-weight: var(--bcc-weight-medium, 500);
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-decoration: none;
    transition:
        background-color 200ms ease,
        color 200ms ease,
        border-color 200ms ease;
}

.bcc-services-faq__button:hover {
    border-color: var(--bcc-color-accent, #FFE500);
    background: var(--bcc-color-accent, #FFE500);
    color: var(--bcc-color-primary, #171717);
}

.bcc-services-faq__button:focus-visible {
    outline: 2px solid var(--bcc-color-primary, #171717);
    outline-offset: 4px;
}

.bcc-services-faq__button > span:last-child {
    display: inline-block;
    font-size: 19px;
    line-height: 1;
    transition: transform 200ms ease;
}

.bcc-services-faq__button:hover > span:last-child {
    transform: translate(2px, -2px);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {
    .bcc-services-faq {
        padding: 56px 0 64px;
    }

    .bcc-services-faq__inner {
        gap: 54px;
    }

    .bcc-services-faq__intro {
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .bcc-services-faq__title {
        font-size: clamp(42px, 5vw, 56px);
        text-align: center;
    }

    .bcc-services-faq__description {
        font-size: 18px;
        line-height: 1.7;
        text-align: center;
    }

    .bcc-services-faq__grid {
        column-gap: 14px;
        row-gap: 14px;
    }

    .bcc-services-faq__item {
        border-radius: var(--bcc-border-radius-md, 14px);
    }

    .bcc-services-faq__question {
        min-height: 88px;
        gap: 18px;
        padding: 21px 22px;
        font-size: 17px;
    }

    .bcc-services-faq__answer p {
        padding-right: 22px;
        padding-left: 22px;
        font-size: 15px;
        line-height: 1.75;
    }

    .bcc-services-faq__item[open] .bcc-services-faq__answer p {
        padding: 0 22px 22px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {
    .bcc-services-faq {
        padding: 48px 0 54px;
    }

    .bcc-services-faq__inner {
        width: calc(100% - 32px);
        gap: 34px;
    }

    .bcc-services-faq__intro {
        align-items: center;
        gap: 14px;
        text-align: center;
    }

    .bcc-services-faq__title {
        font-size: clamp(36px, 9vw, 46px);
        line-height: 1.08;
        text-align: center;
    }

    .bcc-services-faq__description {
        font-size: 15px;
        line-height: 1.7;
        text-align: center;
    }

    .bcc-services-faq__grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
    }

    .bcc-services-faq__item {
        border-radius: var(--bcc-border-radius-sm, 6px);
    }

    .bcc-services-faq__question {
        min-height: 76px;
        gap: 16px;
        padding: 19px 18px;
        font-size: 16px;
        line-height: 1.45;
    }

    .bcc-services-faq__toggle {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    .bcc-services-faq__toggle::before,
    .bcc-services-faq__toggle::after {
        width: 14px;
    }

    .bcc-services-faq__answer p {
        padding-right: 18px;
        padding-left: 18px;
        font-size: 14px;
        line-height: 1.75;
    }

    .bcc-services-faq__item[open] .bcc-services-faq__answer p {
        padding: 0 18px 19px;
    }

    .bcc-services-faq__actions {
        width: 100%;
    }

    .bcc-services-faq__button {
        min-height: 52px;
        gap: 18px;
        padding: 15px 21px;
        font-size: 14px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .bcc-services-faq__item,
    .bcc-services-faq__toggle,
    .bcc-services-faq__toggle::after,
    .bcc-services-faq__answer,
    .bcc-services-faq__answer p,
    .bcc-services-faq__button,
    .bcc-services-faq__button > span:last-child {
        transition: none;
    }
}