/* ============================================================
   Location Hub — FAQs
   File: assets/css/hub/hub-faqs.css
   Scope: .hub-faqs__* classes only
   Figma: "FAQs" node 2073:392 — navy bg, audience tabs + accordion.
   Adapted from the older assets/css/location/lp-faqs.css pattern.
   ============================================================ */

.hub-faqs {
    background: var(--hub-navy);
    color: var(--hub-cream);
    padding: var(--hub-section-pad) 0;
}

.hub-faqs__header {
    text-align: center;
    margin-bottom: 40px;
}

.hub-faqs__heading {
    font-family: var(--hub-font-serif);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.25;
    color: var(--hub-cream);
    margin: 0 auto;
    max-width: 620px;
}

.hub-faqs__tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 48px;
    max-width: 826px;
}

.hub-faqs__tab {
    font-family: var(--hub-font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--hub-stat-label);
    background: transparent;
    border: 1px solid rgba(245, 240, 236, 0.3);
    border-radius: var(--hub-radius-pill);
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hub-faqs__tab.is-active {
    background: var(--hub-blue);
    border-color: var(--hub-blue);
    color: var(--hub-white);
}

.hub-faqs__panel {
    display: none;
}

.hub-faqs__panel.is-active {
    display: block;
}

.hub-faqs__accordion {
    display: flex;
    flex-direction: column;
    max-width: 826px;
    margin: 0 auto;
}

.hub-faqs__item {
    border-bottom: 1px solid rgba(245, 240, 236, 0.25);
    padding: 32px 0;
    cursor: pointer;
}

.hub-faqs__item:first-child {
    border-top: 1px solid rgba(245, 240, 236, 0.25);
}

.hub-faqs__item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.hub-faqs__item-question {
    font-family: var(--hub-font-serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--hub-cream);
    line-height: 1.35;
    flex: 1;
}

.hub-faqs__item-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-faqs__icon-plus,
.hub-faqs__icon-minus {
    width: 16px;
    height: 16px;
}

.hub-faqs__item-toggle .hub-faqs__icon-minus {
    display: none;
}

.hub-faqs__item.is-open .hub-faqs__icon-plus {
    display: none;
}

.hub-faqs__item.is-open .hub-faqs__icon-minus {
    display: block;
}

.hub-faqs__item-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.hub-faqs__item.is-open .hub-faqs__item-body {
    max-height: 600px;
    opacity: 1;
    padding-top: 16px;
}

.hub-faqs__item-answer {
    font-family: var(--hub-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    color: var(--hub-stat-label);
    margin: 0;
}


/* ============================
   RESPONSIVE — FAQs
   ============================ */

@media (max-width: 768px) {
    .hub-faqs__heading {
        font-size: 32px;
    }

    .hub-faqs__item-question {
        font-size: 18px;
    }
}
