/* ==========================================================================
   RK COLLECTION — HOMEPAGE FAQ
   Final homepage section, directly above the footer. Builds on the base
   .faq rules in core.css (the 0fr → 1fr answer animation) and is the only
   place the section's look is set.

   Desktop: sticky intro + help card on the left, accordion of separate
   cards on the right. Answers line up with their question text.
   ========================================================================== */

.faq {
    --faq-pad-x: 26px;     /* card side padding */
    --faq-num: 38px;       /* number circle */
    --faq-gap: 18px;       /* number → question */
    --faq-toggle: 36px;    /* plus / minus button */

    padding: 104px 0 112px;
    background:
        radial-gradient(circle at 6% 12%, rgba(190, 145, 70, 0.12), transparent 30%),
        linear-gradient(160deg, #faf6ef 0%, #f3ebdf 100%);
    border-top: 1px solid rgba(118, 63, 43, 0.12);
}

.faq::before {
    display: none;
}

.faq .faq__inner {
    display: grid;
    grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
    width: min(1180px, calc(100% - 64px));
    max-width: none;
    margin: 0 auto;
    padding-inline: 0;
}

/* --------------------------------------------------------------------------
   Intro column
   -------------------------------------------------------------------------- */
.faq .faq__intro {
    position: sticky;
    top: 130px;
}

.faq .faq__head {
    max-width: 400px;
    margin: 0;
    text-align: left;
}

.faq .faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    color: #a47727;
    font: 600 10.5px/1 var(--font-label);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.faq .faq__eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: #b88a37;
}

.faq .faq__title {
    max-width: 380px;
    margin: 0 0 20px;
    color: #59191e;
    font: 400 clamp(38px, 3.6vw, 52px)/1.04 var(--font-display);
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.faq .faq__subtitle {
    max-width: 380px;
    margin: 0;
    color: #6b5850;
    font-size: 15px;
    line-height: 1.75;
}

/* Help card: the maroon anchor of the section */
.faq .faq__foot {
    display: block;
    max-width: 400px;
    margin: 36px 0 0;
    padding: 28px;
    border: 0;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(207, 164, 81, 0.22), transparent 55%),
        #5a141b;
    box-shadow: 0 22px 48px rgba(77, 22, 27, 0.18);
}

.faq .faq__foot-title {
    margin: 0 0 8px;
    color: #fbf3e6;
    font: 500 20px/1.3 var(--font-display);
    letter-spacing: -0.01em;
}

.faq .faq__foot-text {
    margin: 0 0 22px;
    color: rgba(251, 243, 230, 0.78);
    font-size: 14px;
    line-height: 1.65;
}

.faq .faq__foot-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
}

.faq .faq__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
    padding: 0 22px 0 18px;
    border-radius: 999px;
    background: #f5c877;
    color: #3c070e;
    font: 600 13.5px/1 var(--font-body);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.faq .faq__cta:hover {
    background: #fce7bb;
    color: #3c070e;
    transform: translateY(-1px);
}

.faq .faq__cta-icon {
    display: inline-flex;
}

.faq .faq__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbf3e6;
    font: 500 13.5px/1 var(--font-body);
    text-decoration: underline;
    text-decoration-color: rgba(251, 243, 230, 0.4);
    text-underline-offset: 5px;
    transition: text-decoration-color 0.2s ease;
}

.faq .faq__link:hover {
    color: #fff;
    text-decoration-color: #f5c877;
}

/* --------------------------------------------------------------------------
   Accordion: one card per question
   -------------------------------------------------------------------------- */
.faq .faq__accordion {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
    background: none;
    box-shadow: none;
}

.faq .faq__item {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(117, 72, 48, 0.14);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.86);
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.3s ease, background-color 0.25s ease;
}

.faq .faq__item + .faq__item {
    border-top: 1px solid rgba(117, 72, 48, 0.14);
}

.faq .faq__item:hover {
    transform: none;
    border-color: rgba(176, 130, 48, 0.45);
    box-shadow: 0 10px 26px rgba(77, 36, 27, 0.06);
}

.faq .faq__item.is-open {
    border-color: rgba(104, 30, 36, 0.28);
    background: #fffdf9;
    box-shadow: inset 3px 0 0 #681e24, 0 18px 40px rgba(77, 36, 27, 0.09);
}

.faq .faq__question {
    margin: 0;
    font: inherit;
}

.faq .faq__button {
    display: grid;
    grid-template-columns: var(--faq-num) minmax(0, 1fr) var(--faq-toggle);
    gap: 0 var(--faq-gap);
    align-items: center;
    width: 100%;
    min-height: 84px;
    padding: 20px var(--faq-pad-x);
    border: 0;
    border-radius: 18px;
    background: none;
    text-align: left;
    cursor: pointer;
}

.faq .faq__button:focus-visible {
    outline: 2px solid #b88a37;
    outline-offset: -4px;
}

.faq .faq__index {
    display: grid;
    place-items: center;
    grid-column: auto;     /* core.css stacks it on its own row on phones */
    width: var(--faq-num);
    height: var(--faq-num);
    margin: 0;
    border: 1px solid rgba(176, 130, 48, 0.4);
    border-radius: 50%;
    background: transparent;
    background-image: none;
    color: #9a6f24;
    font: 600 12px/1 var(--font-label);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.faq .faq__button:hover .faq__index {
    border-color: #b88a37;
    color: #7a5518;
}

.faq .faq__item.is-open .faq__index {
    border-color: #681e24;
    background: #681e24;
    background-image: none;
    color: #fff;
}

.faq .faq__question-text {
    color: #3a2925;
    font: 500 clamp(16px, 1.35vw, 18.5px)/1.4 var(--font-display);
    letter-spacing: -0.005em;
}

.faq .faq__button:hover .faq__question-text,
.faq .faq__item.is-open .faq__question-text {
    color: #681e24;
}

/* Plus that turns into a minus on a filled circle */
.faq .faq__toggle {
    position: relative;
    justify-self: end;
    width: var(--faq-toggle);
    height: var(--faq-toggle);
    margin: 0;
    border: 1px solid rgba(100, 70, 57, 0.22);
    border-radius: 50%;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.faq .faq__toggle::before,
.faq .faq__toggle::after {
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    margin: -0.75px 0 0 -7px;
    background: #6d554c;
}

.faq .faq__toggle::after {
    transform: rotate(90deg);
    opacity: 1;
}

.faq .faq__button:hover .faq__toggle {
    border-color: #681e24;
}

.faq .faq__item.is-open .faq__toggle {
    border-color: #681e24;
    background: #681e24;
}

.faq .faq__item.is-open .faq__toggle::before,
.faq .faq__item.is-open .faq__toggle::after {
    background: #fff;
}

.faq .faq__item.is-open .faq__toggle::after {
    transform: rotate(180deg);
    opacity: 0;
}

/* Answer starts exactly under the question text. The padding sits on the
   paragraph, inside the clipped wrapper, so a closed answer collapses to 0. */
.faq .faq__answer-content {
    width: 100%;
    padding: 0;
}

.faq .faq__answer-content p {
    box-sizing: content-box;
    max-width: 62ch;
    margin: 0;
    padding: 0
        calc(var(--faq-pad-x) + var(--faq-toggle) + var(--faq-gap))
        24px
        calc(var(--faq-pad-x) + var(--faq-num) + var(--faq-gap));
    color: #5c4a43;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
}

@media (prefers-reduced-motion: reduce) {
    .faq .faq__item,
    .faq .faq__toggle,
    .faq .faq__toggle::before,
    .faq .faq__toggle::after,
    .faq .faq__answer-panel,
    .faq .faq__cta {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Tablet: intro on top, help card beside the heading
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .faq {
        padding: 76px 0 84px;
    }

    .faq .faq__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        width: min(720px, calc(100% - 40px));
    }

    .faq .faq__intro {
        position: static;
        display: grid;
        grid-template-columns: 1fr minmax(0, 300px);
        gap: 32px;
        align-items: end;
    }

    .faq .faq__foot {
        margin: 0;
    }
}

/* --------------------------------------------------------------------------
   Phone: one column, accordion first-class, help card after the questions
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .faq {
        --faq-pad-x: 16px;
        --faq-num: 30px;
        --faq-gap: 12px;
        --faq-toggle: 32px;

        padding: 60px 0 68px;
    }

    .faq .faq__inner {
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: calc(100% - 32px);
    }

    /* Let the help card drop below the questions */
    .faq .faq__intro {
        display: contents;
    }

    .faq .faq__head {
        order: 1;
    }

    .faq .faq__accordion {
        order: 2;
        gap: 10px;
    }

    .faq .faq__foot {
        order: 3;
        max-width: none;
        padding: 24px 22px;
    }

    .faq .faq__title {
        font-size: 36px;
    }

    .faq .faq__subtitle {
        font-size: 14px;
    }

    .faq .faq__button {
        min-height: 72px;
        padding-block: 16px;
    }

    .faq .faq__item,
    .faq .faq__button {
        border-radius: 14px;
    }

    .faq .faq__question-text {
        font-size: 15.5px;
    }

    /* Narrow screens: answer runs to the card edge, not under the toggle */
    .faq .faq__answer-content p {
        padding: 0 var(--faq-pad-x) 20px calc(var(--faq-pad-x) + var(--faq-num) + var(--faq-gap));
        font-size: 14.5px;
    }
}
