/* ===================================================================
   FAQ page
=================================================================== */

.cw-faqpage { padding: 18px 0 10px; }

.cw-faqhero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: var(--radius-md);
    padding: 34px 24px;
    color: #fff;
    margin-bottom: 20px;
}
.cw-faqhero h1 { font-size: 22px; font-weight: 800; margin: 0; }
.cw-faqhero p { font-size: 13px; line-height: 2; margin: 0; color: rgba(255, 255, 255, .82); max-width: 560px; }

/* ---- bottom call-to-action ---- */

.cw-faqcta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    margin-top: 26px;
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.cw-faqcta h2 { font-size: 16px; font-weight: 800; margin: 0; color: var(--ink); }
.cw-faqcta p { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }

.cw-faqcta__call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}
.cw-faqcta__call svg { width: 18px; height: 18px; }
.cw-faqcta__call:hover { background: var(--brand-dark); }

/* ---- accordion ---- */

.cw-acc { display: flex; flex-direction: column; gap: 10px; }

.cw-acc__item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.cw-acc__item.is-open {
    border-color: var(--brand);
    box-shadow: 0 8px 22px rgba(180, 35, 63, .07);
}

.cw-acc__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: start;
}
.cw-acc__q { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.7; }
.cw-acc__item.is-open .cw-acc__q { color: var(--brand); }

.cw-acc__ico {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-soft);
    transition: background .18s ease, transform .22s ease;
}
.cw-acc__ico::before,
.cw-acc__ico::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: translate(-50%, -50%);
    transition: transform .22s ease, opacity .22s ease;
}
.cw-acc__ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.cw-acc__item.is-open .cw-acc__ico { background: var(--brand); }
.cw-acc__item.is-open .cw-acc__ico::before,
.cw-acc__item.is-open .cw-acc__ico::after { background: #fff; }
.cw-acc__item.is-open .cw-acc__ico::after { transform: translate(-50%, -50%) rotate(0deg); }

.cw-acc__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .22s cubic-bezier(.3, .8, .4, 1);
}
.cw-acc__item.is-open .cw-acc__body { grid-template-rows: 1fr; }

.cw-acc__inner { overflow: hidden; }
.cw-acc__inner p {
    margin: 0;
    padding: 0 18px 18px;
    font-size: 13px;
    line-height: 2.1;
    color: #5C534F;
    opacity: 0;
    transition: opacity .2s ease .04s;
}
.cw-acc__item.is-open .cw-acc__inner p { opacity: 1; }

@media (max-width: 640px) {
    .cw-faqhero { padding: 24px 16px; }
    .cw-faqhero h1 { font-size: 19px; }
    .cw-acc__q { font-size: 13px; }
    .cw-faqcta { padding: 22px 16px; }
}
