/**
 * Homepage "Before you join": template-parts/home-faq.php. Matches the sections above it: dark by default, light under
 * html[data-theme="light"]. Scoped to .sbj.
 */

.sbj {
    --sbj-bg: #0a0a0a;
    --sbj-text: #f5f5f2;
    --sbj-text2: #d3d8e0;
    --sbj-gold: #f5c518;
    --sbj-line: #232c3b;
    --sbj-close-bg: linear-gradient(180deg, #1a2231 0%, #111827 100%);
    --sbj-close-line: rgba(245, 197, 24, 0.35);
    --sbj-btn: #f5c518;
    padding: 80px 0 88px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--sbj-bg);
    color: var(--sbj-text);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] .sbj {
    --sbj-bg: #f5f5f5;
    --sbj-text: #1a1a1a;
    --sbj-text2: #4a4f57;
    --sbj-gold: #8a6606;
    --sbj-line: #e2e5ea;
    --sbj-close-bg: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    --sbj-close-line: rgba(138, 102, 6, 0.35);
    --sbj-btn: #d4a10a;
    border-top-color: rgba(0, 0, 0, 0.06);
}
.sbj *, .sbj *::before, .sbj *::after { box-sizing: border-box; }
.sbj :where(h2, p, dl, dt, dd) { margin: 0; padding: 0; }
.sbj :where(p, span, div, h2, dt, dd) { color: inherit; font-size: inherit; }
.sbj :focus-visible { outline: 3px solid var(--sbj-gold); outline-offset: 3px; border-radius: 6px; }
.sbj a { text-decoration: none; }
.sbj-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* Heading on the left; five short answers on the right, all open */
.sbj-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 72px; align-items: start; }
.sbj .sbj-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sbj-gold); }
.sbj .sbj-h2 { margin-top: 14px; font-size: 56px; line-height: 1.04; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; color: var(--sbj-text); }
.sbj .sbj-h2 em { font-style: italic; color: var(--sbj-gold); }
.sbj .sbj-intro { margin-top: 16px; font-size: 18px; color: var(--sbj-text2); }
.sbj .sbj-contact { margin-top: 20px; font-size: 16px; color: var(--sbj-text2); }
.sbj .sbj-contact a, .sbj .sbj-contact a:hover { font-weight: 600; color: var(--sbj-gold); }
.sbj .sbj-contact a:hover { text-decoration: underline; }
.sbj-contact-m { display: none; }
.sbj-qa { border-top: 1px solid var(--sbj-line); }
.sbj-q { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--sbj-line); }
.sbj .sbj-q dt { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--sbj-text); }
.sbj .sbj-q dd { font-size: 16px; line-height: 1.6; color: var(--sbj-text2); }

/* The close: one quiet row with both checkouts */
.sbj-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 56px; padding: 28px 32px; border-radius: 20px; border: 1px solid var(--sbj-close-line); background: var(--sbj-close-bg); }
.sbj .sbj-close-t { font-size: 20px; font-weight: 600; text-wrap: balance; color: var(--sbj-text); }
@media (min-width: 1101px) {
    .sbj-head { position: sticky; top: 120px; }
}
.sbj .sbj-close-t span { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--sbj-text2); }
.sbj-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.sbj a.sbj-cta, .sbj a.sbj-cta:hover { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; background: var(--sbj-btn); color: #111111; font-size: 17px; font-weight: 700; text-align: center; }
.sbj a.sbj-cta:hover { filter: brightness(1.06); }
.sbj a.sbj-alt, .sbj a.sbj-alt:hover { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--sbj-gold); }
.sbj a.sbj-alt:hover { text-decoration: underline; }

/* Tablets: the heading above the answers */
@media (max-width: 1100px) {
    .sbj-grid { grid-template-columns: 1fr; gap: 32px; }
    .sbj-head { max-width: 640px; }
    .sbj .sbj-h2 { font-size: 48px; }
}
/* Phones: question above answer; the contact line after the answers; full-width button */
@media (max-width: 760px) {
    .sbj { padding: 64px 0 72px; font-size: 16px; }
    .sbj-wrap { padding: 0 18px; }
    .sbj-grid { gap: 24px; }
    .sbj .sbj-eyebrow { font-size: 13px; }
    .sbj .sbj-h2 { margin-top: 12px; font-size: 38px; line-height: 1.06; }
    .sbj .sbj-intro { margin-top: 12px; font-size: 16px; }
    .sbj-contact-d { display: none; }
    .sbj-contact-m { display: block; margin-top: -16px; }
    .sbj .sbj-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 44px; margin-top: 0; font-size: 15px; }
    .sbj .sbj-contact a { display: inline-flex; align-items: center; min-height: 44px; }
    .sbj-q { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
    .sbj .sbj-q dt { font-size: 17px; }
    .sbj .sbj-q dd { font-size: 15px; }
    .sbj-close { display: block; margin-top: 24px; padding: 20px; border-radius: 16px; }
    .sbj .sbj-close-t { font-size: 18px; }
    .sbj .sbj-close-t span { font-size: 14px; }
    .sbj-btns { display: block; margin-top: 16px; }
    .sbj a.sbj-cta, .sbj a.sbj-cta:hover { display: flex; width: 100%; padding: 0 16px; font-size: 16px; }
    .sbj a.sbj-alt, .sbj a.sbj-alt:hover { display: flex; justify-content: center; margin-top: 4px; font-size: 15px; text-align: center; }
}
