/* ============================================================
   FAQ PAGE
   ============================================================ */

.faq-section {
    width: 100%;

    padding:
        clamp(5rem, 10vw, 9rem)
        1.5rem
        clamp(7rem, 14vw, 12rem);

    background: var(--bg);
}


.faq-section__inner {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;
}


/* ============================================================
   HEADER
   ============================================================ */

.faq-section__header {
    max-width: 650px;

    margin:
        0 auto
        clamp(3.5rem, 7vw, 5rem);

    text-align: center;
}


.faq-section__header .section-label {
    display: block;

    margin-bottom: 1.25rem;

    color: var(--gold-light);

    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 500;

    letter-spacing: 0.24em;
    text-transform: uppercase;
}


.faq-section__title {
    margin: 0;

    color: var(--ivory);

    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;

    line-height: 1.2;
    letter-spacing: 0.03em;
}


.faq-section__intro {
    max-width: 520px;

    margin:
        1.5rem auto
        0;

    color: var(--text-muted);

    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;

    line-height: 1.9;
}


/* ============================================================
   FAQ LIST
   ============================================================ */

.faq-list {
    width: 100%;

    border-top:
        1px solid
        rgba(182, 154, 98, 0.28);
}


/* ============================================================
   FAQ ITEM
   ============================================================ */

.faq-item {
    border-bottom:
        1px solid
        rgba(182, 154, 98, 0.28);
}


/* ============================================================
   QUESTION
   ============================================================ */

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding:
        1.65rem 0;

    border: 0;

    background: transparent;

    color: var(--ivory);

    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;

    line-height: 1.5;
    text-align: left;

    letter-spacing: 0.04em;

    cursor: pointer;

    transition:
        color 300ms var(--ease-soft);
}


.faq-item__question:hover {
    color: var(--gold-light);
}


.faq-item__question:focus-visible {
    outline: none;

    color: var(--gold-light);
}


/* ============================================================
   QUESTION TEXT
   ============================================================ */

.faq-item__question-text {
    padding-right: 2rem;
}


/* ============================================================
   PLUS / MINUS ICON
   ============================================================ */

.faq-item__icon {
    position: relative;

    flex: 0 0 auto;

    width: 1rem;
    height: 1rem;

    margin-left: 1rem;
}


.faq-item__icon span {
    position: absolute;

    top: 50%;
    left: 50%;

    display: block;

    width: 0.8rem;
    height: 1px;

    background:
        var(--gold);

    transition:
        transform 350ms var(--ease-soft),
        background-color 300ms var(--ease-soft);
}


.faq-item__icon span:first-child {
    transform:
        translate(-50%, -50%);
}


.faq-item__icon span:last-child {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}


/* ============================================================
   OPEN STATE
   ============================================================ */

.faq-item.is-open
    .faq-item__icon span:last-child {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}


.faq-item.is-open
    .faq-item__question {
    color: var(--gold-light);
}


/* ============================================================
   ANSWER
   ============================================================ */

.faq-item__answer-wrapper {
    display: grid;

    grid-template-rows: 0fr;

    opacity: 0;

    transition:
        grid-template-rows 450ms var(--ease-soft),
        opacity 300ms var(--ease-soft);
}


.faq-item__answer-wrapper[aria-hidden="false"] {
    grid-template-rows: 1fr;

    opacity: 1;
}


.faq-item__answer {
    min-height: 0;

    overflow: hidden;

    padding-right: 3rem;

    color: var(--text-muted);

    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;

    line-height: 1.9;
}


/*
 * Extra bottom spacing when open.
 */

.faq-item.is-open
    .faq-item__answer {
    padding-bottom: 1.75rem;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .faq-section {
        padding:
            4.5rem 1.25rem
            6rem;
    }


    .faq-section__header {
        margin-bottom: 3rem;
    }


    .faq-section__title {
        font-size: 1.7rem;
    }


    .faq-section__intro {
        font-size: 0.68rem;
        line-height: 1.8;
    }


    .faq-item__question {
        padding:
            1.4rem 0;

        font-size: 0.66rem;
    }


    .faq-item__question-text {
        padding-right: 1.5rem;
    }


    .faq-item__answer {
        padding-right: 1.5rem;

        font-size: 0.66rem;
        line-height: 1.85;
    }


    .faq-item.is-open
        .faq-item__answer {
        padding-bottom: 1.5rem;
    }

}