/* ─── FAQ page — page-scoped styles ──────────────────────────────────────── */

/* Hero
   top: clear the sticky header (72px) + breathing room
   bottom: 0 so the category nav sits flush against the hero
*/
#faq-hero {
    padding: calc(var(--header-height) + var(--space-xl)) 0 0;
    background-color: var(--dark);
}

.faq-hero-inner {
    max-width: 680px;
    padding-bottom: var(--space-2xl);
}

.faq-hero-title {
    color: var(--white);
    margin-top: var(--space-xs);
}

.faq-hero-sub {
    margin-top: var(--space-md);
    font-size: var(--fs-body);
    color: var(--white);
    line-height: 1.78;
    max-width: 560px;
}

/* Category quick-links — sticky, flush against hero bottom */
#faq-nav {
    background-color: var(--off-white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: var(--header-height);
    z-index: 10;
    padding: var(--space-sm) 0;
}

.faq-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
    align-items: center;
}

.faq-cat-link {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-black);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    text-decoration: none;
}

.faq-cat-link:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* Section layout — single section-gap top and bottom */
.faq-section {
    padding: var(--section-gap) 0;
}

.faq-section + .faq-section {
    border-top: 1px solid var(--gray-200);
}

.faq-section__head {
    margin-bottom: var(--space-xl);
}

.faq-section__title {
    margin-top: var(--space-xs);
}

/* Accordion list — flex column for exact gap control */
.faq-section__list {
    max-width: 860px;
}

@media (max-width: 768px) {
    #faq-hero {
        padding-top: calc(var(--header-height) + var(--space-md));
    }

    .faq-category-nav {
        gap: var(--space-xs) var(--space-sm);
    }
}
