/* ============================================================
   LoanRateCheck — faq.css
   FAQ page styles — supplements style.css
   Place at: /faq/faq.css
   ============================================================ */

/* ── ACCESSIBILITY ───────────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── HERO ────────────────────────────────────────────────────── */
.faq-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3d5c 60%, #26527a 100%);
    padding: 36px 24px 44px;
    position: relative;
}
.faq-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.faq-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.faq-hero .breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    font-size: .8rem; margin-bottom: 14px;
}
.faq-hero .breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.faq-hero .breadcrumb a:hover { color: var(--gold-light); }
.faq-hero .breadcrumb span:last-child { color: rgba(255,255,255,.75); }
.faq-hero .bc-sep { color: rgba(255,255,255,.3); }

.faq-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 700; color: #fff;
    line-height: 1.2; margin-bottom: 10px;
}
.faq-hero-sub {
    font-size: 1rem; color: rgba(255,255,255,.68);
    font-weight: 300; line-height: 1.6; margin-bottom: 24px;
}

/* ── SEARCH BAR ──────────────────────────────────────────────── */
.faq-search-wrap {
    position: relative;
    max-width: 520px;
}
.faq-search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 1rem; pointer-events: none;
    line-height: 1;
}
.faq-search-input {
    width: 100%; height: 48px;
    padding: 0 44px 0 42px;
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 24px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-family: 'Source Sans 3', sans-serif;
    font-size: .97rem;
    outline: none;
    transition: border-color .2s, background .2s;
    appearance: none;
}
.faq-search-input::placeholder { color: rgba(255,255,255,.45); }
.faq-search-input:focus {
    border-color: var(--gold-light);
    background: rgba(255,255,255,.15);
}
.faq-search-clear {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.5); font-size: .8rem;
    cursor: pointer; display: none; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    transition: color .2s;
}
.faq-search-clear:hover { color: #fff; }

.faq-no-results {
    margin-top: 12px;
    font-size: .88rem; color: rgba(255,255,255,.65);
}
.faq-no-results a { color: var(--gold-light); }

/* ── PAGE LAYOUT ─────────────────────────────────────────────── */
.faq-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
}

/* ── JUMP NAV ────────────────────────────────────────────────── */
.faq-jumpnav {
    position: sticky;
    top: 80px;
}
.faq-jumpnav-inner {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 20px 18px;
}
.faq-jumpnav-label {
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-muted); margin-bottom: 12px;
}
.faq-jumpnav-list {
    list-style: none; padding: 0;
    display: flex; flex-direction: column; gap: 2px;
    margin-bottom: 20px;
}
.faq-jumpnav-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    font-size: .86rem; font-weight: 600; color: var(--navy);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.faq-jumpnav-link:hover,
.faq-jumpnav-link.jn-active {
    background: #eef5ff;
    color: var(--navy-mid);
    border-color: var(--border);
}
.faq-jn-icon { flex-shrink: 0; font-size: .95rem; }

.faq-calc-cta {
    display: block; text-align: center;
    padding: 10px 14px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .84rem; font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}
.faq-calc-cta:hover { background: var(--navy-mid); }

/* ── FAQ BODY ────────────────────────────────────────────────── */
.faq-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── CATEGORY SECTION ────────────────────────────────────────── */
.faq-category { }

.faq-cat-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}
.faq-cat-icon { font-size: 1.4rem; line-height: 1; }
.faq-cat-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem; font-weight: 700; color: var(--navy);
    margin: 0;
}

/* ── FAQ ACCORDION ITEMS ─────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.faq-item:hover {
    box-shadow: var(--shadow-sm);
}
.faq-item.faq-open {
    border-color: var(--navy-light);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px;
    background: none; border: none;
    cursor: pointer; text-align: left;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    transition: background .15s;
}
.faq-question:hover { background: #f7f9fc; }
.faq-item.faq-open .faq-question { background: #f0f6ff; }

.faq-q-text {
    font-size: 1rem; font-weight: 700; color: var(--navy);
    line-height: 1.4; flex: 1;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform .25s ease, color .2s;
    display: flex; align-items: center;
}
.faq-item.faq-open .faq-chevron {
    transform: rotate(180deg);
    color: var(--navy-mid);
}

.faq-answer {
    overflow: hidden;
    border-top: 1px solid var(--border);
}
.faq-answer[hidden] { display: none; }

.faq-answer-inner {
    padding: 18px 20px 20px;
}
.faq-answer-inner p {
    font-size: .95rem;
    color: var(--slate);
    line-height: 1.7;
    margin: 0;
}
.faq-answer-inner a {
    color: var(--navy-mid);
    text-decoration: none;
    font-weight: 600;
}
.faq-answer-inner a:hover { text-decoration: underline; }

/* ── BOTTOM CTA ──────────────────────────────────────────────── */
.faq-bottom-cta {
    background: linear-gradient(135deg, var(--navy) 0%, #2c5f8a 100%);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
}
.faq-cta-inner { max-width: 420px; margin: 0 auto; }
.faq-cta-icon { font-size: 2rem; margin-bottom: 10px; }
.faq-bottom-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 700;
    color: #fff; margin-bottom: 8px;
}
.faq-bottom-cta p {
    font-size: .9rem; color: rgba(255,255,255,.65);
    line-height: 1.6; margin-bottom: 20px;
}
.faq-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(200,146,58,.4);
    transition: filter .15s, transform .15s;
}
.faq-cta-btn:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
    .faq-layout {
        grid-template-columns: 1fr;
        padding: 32px 16px 56px;
    }
    .faq-jumpnav {
        position: static;
    }
    .faq-jumpnav-list {
        flex-direction: row; flex-wrap: wrap; gap: 6px;
    }
    .faq-jumpnav-link { font-size: .8rem; padding: 6px 10px; }
}

@media (max-width: 480px) {
    .faq-hero-title { font-size: 1.75rem; }
    .faq-question { padding: 15px 16px; }
    .faq-answer-inner { padding: 15px 16px 18px; }
    .faq-q-text { font-size: .93rem; }
    .faq-bottom-cta { padding: 28px 20px; }
}
