/* Component — FAQs "Frequently Asked Questions" (components/faqs/faqs.php) */

.faqs {
    background: var(--color-navy-deep);
    color: var(--color-off-white);
    border-radius: var(--radius-section);
    max-width: var(--content-max);
    margin-inline: auto;
    padding: 80px var(--side-padding);
}

/* Eyebrow — Montserrat SemiBold 24, mint (Figma). */
.faqs .eyebrow {
    color: var(--color-mint-light);
    font-size: 24px;
    letter-spacing: normal;
    margin-bottom: 16px;
}
/* Title — DM Serif Display 40, gold gradient clipped to the text (Figma). */
.faqs__title {
    font-family: var(--font-display);
    font-weight: var(--weight-regular);
    font-size: 40px;
    margin: 0 0 40px;
    /* Shrink to the text width so the gradient spans the letters edge-to-edge
       (dark → light → dark); a full-width block would only show its left half. */
    width: fit-content;
    max-width: 100%;
    background: var(--gradient-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-gold); /* fallback */
}

/* Tabs — radius 8, Montserrat Bold 18; active = white fill + navy text. */
.faqs__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}
.faqs .btn--tab {
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
    font-size: 18px;
    color: var(--color-off-white);
    background: transparent;
    border: 1px solid var(--color-off-white);
    border-radius: 8px;
    padding: 12px 28px;
}
.faqs .btn--tab.is-active {
    background: var(--color-off-white);
    color: var(--color-navy-mid);
    box-shadow: none;
}

.faqs__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
}
/* Residential Lending FAQ has no tabs, so add extra breathing room below the
   title where the tab row would otherwise sit. */
.page-template-template-residential-lending .faqs__title {
    margin-bottom: 64px;
}
/* Image: large rounded top-right corner (Figma). */
.faqs__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px 96px 16px 16px;
    object-fit: cover;
}

.faq-col {
    display: flex;
    flex-direction: column;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: var(--weight-semibold);
    color: var(--color-off-white);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q-text { flex: 1; }

/* Toggle — 52px circle, F7F9F8 border, mint icon; hover = black border, mint fill, teal icon. */
.faq-item__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--color-off-white);
    color: var(--color-mint-light);
    transition: var(--transition);
}
.faq-item__toggle svg { transition: transform 0.3s ease; }
.faq-item[open] .faq-item__toggle svg { transform: rotate(180deg); }
.faq-item__q:hover .faq-item__toggle {
    border-color: #000;
    background: var(--color-mint-light);
    color: var(--color-step-teal);
}

/* Answer — Montserrat Regular 18, off-white. */
.faq-item__a {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: var(--weight-regular);
    line-height: 1.6;
    color: var(--color-off-white);
    margin: 0;
    padding: 0 80px 18px 0;
}
.faq-item__a p { margin: 0 0 14px; }
.faq-item__a p:last-child { margin-bottom: 0; }

/* View More link — Montserrat Bold 18, off-white, bottom-right. */
.faqs__more {
    align-self: flex-end;
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
    font-size: 18px;
    color: var(--color-off-white);
}
.faqs__more:hover { color: var(--color-gold); }

@media (max-width: 1024px) {
    .faqs { border-radius: 0; padding: 56px 24px; }
    .faqs__grid { grid-template-columns: 1fr; gap: 32px; }
    .faqs__title { font-size: 32px; }
    .faq-item__a { padding-right: 0; }
}
