/* =========================================================
   Sage FAQ
   ========================================================= */

.sage-faq {
    position: relative;
}


/* Topic navigation */

.sage-faq-topics {
    padding: 10px 24px 80px;
}

.sage-faq-topics__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.sage-faq-topics__link {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    border: 1px solid rgba(185, 145, 68, 0.45);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(30, 51, 45, 0.07);
    color: var(--sage-green, #263f38);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.sage-faq-topics__link:hover,
.sage-faq-topics__link:focus-visible {
    transform: translateY(-3px);
    border-color: var(--sage-gold, #b99144);
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(30, 51, 45, 0.11);
    color: var(--sage-green, #263f38);
    text-decoration: none;
}


/* FAQ sections */

.sage-faq__sections {
    width: min(1050px, calc(100% - 48px));
    margin: 0 auto;
}

.sage-faq-section {
    padding: 0 0 95px;
    scroll-margin-top: 140px;
}

.sage-faq-section__header {
    margin-bottom: 32px;
    text-align: center;
}

.sage-faq-section__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--sage-gold, #b99144);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.sage-faq-section__title {
    margin: 0;
    color: var(--sage-green, #263f38);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
}


/* Accordion items */

.sage-faq-accordion {
    display: grid;
    gap: 15px;
}

.sage-faq-item {
    overflow: hidden;
    border: 1px solid rgba(185, 145, 68, 0.38);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(31, 52, 46, 0.06);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.sage-faq-item:has(
    .sage-faq-item__button[aria-expanded="true"]
) {
    border-color: rgba(185, 145, 68, 0.8);
    box-shadow: 0 12px 32px rgba(31, 52, 46, 0.1);
}

.sage-faq-item__heading {
    margin: 0;
    font-size: inherit;
}

.sage-faq-item__button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 26px;
    border: 0;
    background: transparent;
    color: var(--sage-green, #263f38);
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.sage-faq-item__button:hover {
    background: #fffdf8;
}

.sage-faq-item__button:focus-visible {
    outline: 3px solid rgba(185, 145, 68, 0.35);
    outline-offset: -3px;
}

.sage-faq-item__question {
    flex: 1;
}


/* Plus and minus icon */

.sage-faq-item__icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid rgba(185, 145, 68, 0.65);
    border-radius: 50%;
}

.sage-faq-item__icon::before,
.sage-faq-item__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--sage-gold, #b99144);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.sage-faq-item__icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.sage-faq-item__button[aria-expanded="true"]
.sage-faq-item__icon::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}


/* Answer */

.sage-faq-item__panel {
    border-top: 1px solid rgba(185, 145, 68, 0.18);
}

.sage-faq-item__answer {
    padding: 6px 26px 26px;
    color: var(--sage-text, #4a5551);
    font-size: 17px;
    line-height: 1.75;
}

.sage-faq-item__answer > :first-child {
    margin-top: 18px;
}

.sage-faq-item__answer > :last-child {
    margin-bottom: 0;
}

.sage-faq-item__answer a {
    color: var(--sage-green, #263f38);
    font-weight: 700;
    text-decoration-color: var(--sage-gold, #b99144);
    text-underline-offset: 3px;
}

.sage-faq-item__answer ul,
.sage-faq-item__answer ol {
    padding-left: 22px;
}


/* Final CTA */

.sage-faq-cta {
    padding: 85px 24px;
    background:
        linear-gradient(
            135deg,
            #f7f2e8 0%,
            #fbf9f4 100%
        );
}

.sage-faq-cta__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.sage-faq-cta__content {
    max-width: 700px;
}

.sage-faq-cta__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--sage-gold, #b99144);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sage-faq-cta__title {
    margin: 0 0 18px;
    color: var(--sage-green, #263f38);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.1;
}

.sage-faq-cta__content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
}

.sage-faq-cta__buttons {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 12px;
    min-width: 190px;
}


/* Tablet */

@media (max-width: 900px) {

    .sage-faq-topics__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sage-faq-topics__link:last-child {
        grid-column: 1 / -1;
    }

    .sage-faq-cta__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 32px;
    }

    .sage-faq-cta__buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

}


/* Mobile */

@media (max-width: 600px) {

    .sage-faq-topics {
        padding: 5px 20px 60px;
    }

    .sage-faq-topics__inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sage-faq-topics__link:last-child {
        grid-column: auto;
    }

    .sage-faq-topics__link {
        min-height: 62px;
    }

    .sage-faq__sections {
        width: min(100% - 32px, 1050px);
    }

    .sage-faq-section {
        padding-bottom: 70px;
        scroll-margin-top: 100px;
    }

    .sage-faq-section__header {
        margin-bottom: 24px;
    }

    .sage-faq-item__button {
        gap: 18px;
        padding: 20px;
        font-size: 17px;
    }

    .sage-faq-item__answer {
        padding: 4px 20px 22px;
        font-size: 16px;
    }

    .sage-faq-cta {
        padding: 65px 20px;
    }

    .sage-faq-cta__buttons {
        width: 100%;
        flex-direction: column;
    }

    .sage-faq-cta__buttons .sage-button {
        width: 100%;
        justify-content: center;
    }

}