/* ==========================================================================
   FAQ Accordion Block — Smith 2.0
   Two-column groups (Figma node 10676:6964): a large serif group label in a
   left rail beside a right-hand column of grouped <details> accordions with
   hairline dividers. First item opens by default. No-JS native disclosure.
   ========================================================================== */

.smith-faq {
    background-color: var(--color-white, #ffffff);
    padding: 7rem 4rem; /* 112 / 64 */
}

.smith-faq__inner {
    max-width: 1280px;
    margin-inline: auto;
}

.smith-faq__heading {
    /* Figma: title constrained to the centered 800px column, 80px above the list */
    max-width: 800px;
    margin: 0 auto 5rem;
    font-family: var(--font-family-heading, "Hoefler Text", Georgia, serif);
    font-weight: 400; /* 400: Smith Style Guide - Hoefler Text is Regular. See docs/DECISIONS.md D8 */
    font-size: 3.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-blue-zodiac, #0e1b44);
}

.smith-faq__intro {
    margin: 0 0 2.5rem;
    font-family: var(--font-family-base, "Barlow", sans-serif);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--color-blue-zodiac, #0e1b44);
}

/* Figma FAQ page: a titled group is a two-column row — the label sits in a
   left rail as a large serif heading, the accordion list fills the right
   column. Label-less groups (Contact / Insights FAQ) stay full-width. */
/* Label-less groups (Insights / Contact FAQ) match the Figma 800px centered column. */
.smith-faq__group:not(.smith-faq__group--two-col) {
    max-width: 800px;
    margin-inline: auto;
}

.smith-faq__group--two-col {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 6.25rem); /* ~100px column gap */
    align-items: start;
}

.smith-faq__group + .smith-faq__group {
    margin-top: clamp(3rem, 6vw, 6rem);
}

.smith-faq__group-label {
    margin: 0;
    padding: 0;
    background: none;
    color: var(--color-blue-zodiac, #0e1b44);
    font-family: var(--font-family-heading, "Hoefler Text", Georgia, serif);
    font-weight: 400;
    font-size: 3rem; /* up to ~48px */
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.smith-faq__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(14, 27, 68, 0.12);
}

.smith-faq__item {
    border-bottom: 1px solid rgba(14, 27, 68, 0.12);
}

.smith-faq__details {
    width: 100%;
}

.smith-faq__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem; /* Figma question row p-20 */
    cursor: pointer;
    list-style: none;
    font-family: var(--font-family-base, "Barlow", sans-serif);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--color-blue-zodiac, #0e1b44);
}

/* Remove the default disclosure triangle across browsers. */
.smith-faq__summary::-webkit-details-marker { display: none; }
.smith-faq__summary::marker { content: ""; }

.smith-faq__summary:hover .smith-faq__question {
    color: var(--color-surfie-green, #0f7e7c);
}

.smith-faq__chevron {
    flex: 0 0 auto;
    color: var(--color-surfie-green, #0f7e7c);
    transition: transform 0.2s ease;
}

.smith-faq__details[open] .smith-faq__chevron {
    transform: rotate(180deg);
}

.smith-faq__answer {
    padding: 0 1.25rem 1.5rem; /* Figma answer px-20 pb-24 */
    font-family: var(--font-family-base, "Barlow", sans-serif);
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(14, 27, 68, 0.85);
}

.smith-faq__answer p { margin: 0 0 1rem; }
.smith-faq__answer p:last-child { margin-bottom: 0; }

.smith-faq__footer {
    /* BZ #36 (Agentis): more breathing room above the closing CTA. */
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.smith-faq__footer-prompt {
    margin: 0;
    font-family: var(--font-family-heading, "Hoefler Text", Georgia, serif);
    font-weight: 400;
    font-size: 2.25rem; /* Figma 36px */
    color: var(--color-blue-zodiac, #0e1b44);
}

@media (max-width: 860px) {
    /* Stack the label above its accordion list on narrow screens. */
    /* Label-less groups (Insights / Contact FAQ) match the Figma 800px centered column. */
.smith-faq__group:not(.smith-faq__group--two-col) {
    max-width: 800px;
    margin-inline: auto;
}

.smith-faq__group--two-col {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .smith-faq__group-label {
        /* Figma mobile: large display label (breaks mid-word), matching hero scale. */
        font-size: 3.25rem;
    }
}

@media (max-width: 768px) {
    .smith-faq { padding: 4rem 1.5rem; }
}


/* ---- Banded FAQ (FAQ page, Figma FAQ 2 10773:71114) ---------------------
   Each titled group is its own full-width section band with the design's
   112px section rhythm; label rail 500px left, accordion right. */
.smith-faq--band { padding: clamp(4rem, 7.8vw, 7rem) clamp(1.5rem, 5vw, 4rem); }
.smith-faq--band .smith-faq__group--two-col { margin-top: 0; }
.smith-faq--intro { padding-bottom: 0; }
.smith-faq--footer-band { padding-top: 0; }
.smith-faq--footer-band .smith-faq__footer { margin-top: 0; }
