/*
 * FAQ page (/faq). Scoped under .faq-pg.
 */
.faq-pg {
    --fq-green: #0d6526;
    --fq-mint: #eef7f0;
    --fq-ink: #1f2937;
    --fq-body: #4b5563;
    --fq-muted: #6b7280;
    --fq-line: #e5ebe7;
    background: #f7faf8;
    color: var(--fq-body);
    font-size: 16px;
    line-height: 1.65;
    padding-bottom: 72px;
}
.faq-pg *, .faq-pg *::before, .faq-pg *::after { box-sizing: border-box; }
.faq-pg h1, .faq-pg h2 { margin: 0; font-weight: 700; color: var(--fq-ink); }
.faq-wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 575.98px) { .faq-wrap { padding: 0 16px; } }

/* ---------- hero ---------- */
.faq-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #0a4f1e 0%, var(--fq-green) 55%, #1a9a46 100%);
    padding: 64px 0 92px;
}
.faq-hero::before, .faq-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.faq-hero::before { width: 420px; height: 420px; left: -160px; top: -200px; }
.faq-hero::after { width: 300px; height: 300px; right: -90px; bottom: -170px; }
.faq-hero .faq-wrap { position: relative; z-index: 1; }
.faq-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d9f2e0;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: 6px 12px;
    border-radius: 999px;
}
.faq-pg .faq-hero__title { color: #fff; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; margin: 16px 0 10px; }
.faq-pg .faq-hero__lead { color: rgba(255, 255, 255, .88); margin: 0 auto 28px; max-width: 560px; }
.faq-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 0 18px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45);
    cursor: text;
}
.faq-search i { color: var(--fq-muted); }
.faq-pg .faq-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    height: 56px;
    font-size: 16px;
    color: var(--fq-ink);
    background: transparent;
    padding: 0;
}
.faq-search:focus-within { box-shadow: 0 0 0 3px rgba(167, 227, 184, .8), 0 20px 40px -20px rgba(0, 0, 0, .45); }
@media (max-width: 575.98px) { .faq-hero { padding: 44px 0 76px; } .faq-pg .faq-search input { height: 50px; font-size: 15px; } }

/* ---------- topic chips ---------- */
.faq-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: -26px 0 36px;
    position: relative;
    z-index: 2;
}
.faq-pg .faq-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--fq-line);
    background: #fff;
    color: var(--fq-body);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 16px -12px rgba(13, 101, 38, .5);
    transition: background .15s, color .15s, border-color .15s;
}
.faq-pg .faq-cat i { color: var(--fq-green); font-size: 13px; }
.faq-pg .faq-cat:hover { border-color: #cfe5d6; color: var(--fq-green); }
.faq-pg .faq-cat.is-active { background: var(--fq-green); border-color: var(--fq-green); color: #fff; }
.faq-pg .faq-cat.is-active i { color: #fff; }
@media (max-width: 575.98px) {
    .faq-cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: -24px -16px 28px; padding: 0 16px 6px; scrollbar-width: none; }
    .faq-cats::-webkit-scrollbar { display: none; }
    .faq-pg .faq-cat { flex: 0 0 auto; }
}

/* ---------- groups ---------- */
.faq-group { margin-bottom: 36px; }
.faq-group[hidden] { display: none; }
.faq-pg .faq-group__title { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 14px; }
.faq-group__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--fq-mint);
    color: var(--fq-green);
    font-size: 16px;
}
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--fq-line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.faq-item[hidden] { display: none; }
.faq-item[open] { border-color: #cfe5d6; box-shadow: 0 12px 28px -22px rgba(13, 101, 38, .55); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 16px;
    color: var(--fq-ink);
    line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover span { color: var(--fq-green); }
.faq-item summary:focus-visible { outline: 3px solid rgba(13, 101, 38, .35); outline-offset: 2px; border-radius: 12px; }
.faq-item summary i {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--fq-mint);
    color: var(--fq-green);
    font-size: 12px;
    transition: transform .25s ease, background .2s, color .2s;
}
.faq-item[open] summary i { transform: rotate(45deg); background: var(--fq-green); color: #fff; }
.faq-answer { padding: 0 20px 18px; color: var(--fq-body); font-size: 15px; line-height: 1.7; animation: faq-in .25s ease; }
.faq-pg .faq-answer p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.faq-pg .faq-answer ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq-pg .faq-answer li { list-style: disc; }
.faq-pg .faq-answer a, .faq-pg .faq-empty a { color: var(--fq-green); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.faq-pg .faq-answer strong { color: var(--fq-ink); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq-answer { animation: none; } .faq-item summary i { transition: none; } }
.faq-pg .faq-empty { text-align: center; padding: 32px 16px; background: #fff; border: 1px dashed var(--fq-line); border-radius: 12px; margin: 0 0 36px; }

/* ---------- help ---------- */
.faq-help {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--fq-line);
    border-radius: 16px;
    padding: 26px 28px;
}
.faq-help__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--fq-green), #138a3a);
    flex: 0 0 auto;
}
.faq-help__text { flex: 1 1 260px; }
.faq-pg .faq-help__text h2 { font-size: 20px; margin-bottom: 4px; }
.faq-pg .faq-help__text p { margin: 0; color: var(--fq-muted); font-size: 15px; }
.faq-pg .faq-help__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--fq-green);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
}
.faq-pg .faq-help__btn:hover { background: #0a4f1e; color: #fff; }
@media (max-width: 575.98px) { .faq-help { padding: 22px 20px; } .faq-pg .faq-help__btn { width: 100%; justify-content: center; } }
