:root {
    --ink: #132420;
    --ink-soft: #3c4f47;
    --paper: #faf7f0;
    --paper-alt: #f1ebdc;
    --line: #e2dac4;
    --brass: #b3863c;
    --brass-dark: #8a6529;
    --brass-tint: #f3e6cd;
}

* {
    box-sizing: border-box;
}



.faq-page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 5rem 1.5rem 6rem;
}

/* ---------- Hero ---------- */
.faq-hero {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.faq-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    /* color: var(--ink); */
    margin-bottom: 0.9rem;
}

.faq-sub {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.faq-search {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
}

.faq-search i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    pointer-events: none;
}

.faq-search input {
    width: 100%;
    padding: 0.85rem 1.1rem 0.85rem 2.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: inherit;
    font-size: 0.97rem;
    color: var(--ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.faq-search input::placeholder {
    color: #9aa39c;
}

.faq-search input:focus {
    border-color: var(--brass);
    box-shadow: 0 0 0 4px rgba(179, 134, 60, 0.15);
}

.faq-search .faq-clear {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ink-soft);
    font-size: 0.85rem;
    padding: 0.25rem;
    display: none;
    cursor: pointer;
}

.faq-search.has-text .faq-clear {
    display: inline-block;
}

/* ---------- Layout ---------- */
.faq-body {
    align-items: flex-start;
}

/* Category rail */
.faq-rail {
    position: sticky;
    top: 2rem;
}

.faq-categories {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.75rem;
}

.faq-cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.93rem;
    color: var(--ink-soft);
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.faq-cat-btn:hover {
    background: var(--paper-alt);
    color: var(--ink);
}

.faq-cat-btn.active {
    background: var(--ink);
    color: var(--paper);
}

.faq-cat-btn .cat-count {
    font-size: 0.78rem;
    opacity: 0.65;
    font-variant-numeric: tabular-nums;
}

.faq-contact-card {
    background: var(--ink);
    color: var(--paper);
    border-radius: 16px;
    padding: 1.5rem 1.4rem;
}

.faq-contact-card i.bi-headset {
    font-size: 1.4rem;
    color: var(--primary);
}

.faq-contact-card h4 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.15rem;
    margin: 0.7rem 0 0.35rem;
}

.faq-contact-card p {
    font-size: 0.88rem;
    color: #c8d3cd;
    margin-bottom: 1.1rem;
    line-height: 1.5;
}

.faq-contact-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brass-tint);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.faq-contact-card a i {
    transition: transform .15s ease;
}

.faq-contact-card a:hover i {
    transform: translateX(3px);
}

/* Mobile category chips */
.faq-chip-row {
    display: none;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.faq-chip-row::-webkit-scrollbar {
    display: none;
}

.faq-chip {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
    cursor: pointer;
}

.faq-chip.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* ---------- Accordion list ---------- */
.faq-group-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--text);
    margin: 2.2rem 0 0.6rem;
}

.faq-group-title:first-child {
    margin-top: 0;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item button.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    background: none;
    border: none;
    padding: 1.15rem 0.1rem;
    cursor: pointer;
    font-family: inherit;
}

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

.faq-item .faq-q-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.faq-item.open .faq-q-icon {
    transform: rotate(45deg);
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.faq-item.open .faq-q-text {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-answer-inner {
    padding: 0 0.1rem 1.3rem 0.1rem;
    max-width: 60ch;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.65;
}

.faq-item mark {
    background: var(--brass-tint);
    color: var(--ink);
    border-radius: 3px;
    padding: 0 0.1em;
}

.faq-no-results {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--ink-soft);
}

.faq-no-results i {
    font-size: 1.6rem;
    color: var(--line);
    display: block;
    margin-bottom: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .faq-rail {
        display: none;
    }

    .faq-chip-row {
        display: flex;
    }

    .faq-page-shell {
        padding: 3.5rem 1.25rem 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .faq-item .faq-q-icon,
    .faq-answer,
    .faq-contact-card a i {
        transition: none;
    }
}