/* ==========================================================================
   FAQs — light section, centered header, white card with chevron accordion.
   ========================================================================== */

.section.faqs {
    padding-top: 64px;
    padding-bottom: 64px;
    background: var(--color-secondary);
}

/* ---- Header ------------------------------------------------------------- */
.faqs-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    max-width: 856px;
    margin: 0 auto 32px;
}
.faqs-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-label-xs);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-foreground);
}
.faqs-heading { margin: 0; color: var(--color-foreground); }

/* ---- Card --------------------------------------------------------------- */
.faqs-card {
    background: var(--color-background);
    border-radius: var(--radius-sm);
    padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 40px);
}
.faqs-list {
    display: flex;
    flex-direction: column;
}

/* ---- Accordion item ----------------------------------------------------- */
/* Override the beefup plugin defaults (full border, radius, margin, arrow). */
.faqs .beefup {
    border: 0;
    border-radius: 0;
    margin: 0;
    transition: none;
}
.faqs .beefup:hover { border: 0; }
.faqs .beefup__head::after { display: none !important; content: none !important; }

.faqs-item {
    border-bottom: 1px solid #D4D4D4 !important;
}
.faqs-item:last-child { border-bottom: 0 !important; }

.faqs-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    /* Undo beefup's single-line head (nowrap + ellipsis + clip) so long
       questions wrap instead of getting cut off on narrow screens. */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.faqs-question-text {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: var(--text-heading-xs);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-foreground);
    overflow-wrap: break-word;
}
.faqs-chevron {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--color-foreground);
    transition: transform var(--ease-default);
}
.faqs-chevron svg { width: 16px; height: 16px; display: block; }
.faqs-item.is-open .faqs-chevron { transform: rotate(180deg); }

/* ---- Answer ------------------------------------------------------------- */
.faqs-answer {
    padding: 0 0 24px;
    max-width: 92%;
}
.faqs-answer,
.faqs-answer p {
    font-family: var(--font-body);
    font-size: var(--text-paragraph-md);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--color-foreground);
}
.faqs-answer p { margin: 0 0 1em; }
.faqs-answer p:last-child { margin-bottom: 0; }
.faqs-answer a { color: var(--color-navy); text-decoration: underline; }
.faqs-answer a:hover { text-decoration: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .faqs-answer { max-width: 100%; }
    .faqs-question { padding: 16px 0; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .faqs-chevron { transition: none; }
}
