/* ═══ FAQ — premium knowledge centre ═══ */

@keyframes faqFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faqAnswerIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-animate > * {
    animation: faqFadeUp .8s cubic-bezier(.22, 1, .36, 1) both;
}

.faq-animate > *:nth-child(1) { animation-delay: .06s; }
.faq-animate > *:nth-child(2) { animation-delay: .12s; }
.faq-animate > *:nth-child(3) { animation-delay: .18s; }
.faq-animate > *:nth-child(4) { animation-delay: .24s; }
.faq-animate > *:nth-child(5) { animation-delay: .3s; }
.faq-animate > *:nth-child(6) { animation-delay: .36s; }

.faq-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .04;
    background-image:
        linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── Typography ── */
.faq-section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.faq-section-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: var(--heading);
}

.faq-section-intro {
    margin: .875rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text-muted);
}

/* ── Information strip ── */
.faq-strip {
    padding: 2.5rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--warm-mid);
}

.faq-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.faq-strip__block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .625rem;
    min-height: 148px;
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    background: var(--warm);
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.faq-strip__block:hover {
    background: var(--white);
    border-color: rgba(7, 27, 59, .08);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(7, 27, 59, .08);
}

.faq-strip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #071B3B;
    color: var(--brand-red);
    font-size: 1.125rem;
    font-weight: 800;
}

.faq-strip__block--planning .faq-strip__icon::before { content: '§'; }
.faq-strip__block--types .faq-strip__icon::before { content: '⌂'; }
.faq-strip__block--survey .faq-strip__icon::before { content: '✓'; }

.faq-strip__title {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.3;
}

.faq-strip__text {
    font-size: .9375rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-muted);
}

/* ── Main FAQ area ── */
.faq-main {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: var(--warm);
}

.faq-main__inner {
    max-width: 900px;
    margin-inline: auto;
}

/* Featured */
.faq-featured {
    margin-bottom: 2.5rem;
}

.faq-featured__label {
    margin: 0 0 1rem;
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-blue);
    text-align: center;
}

.faq-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.faq-featured__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    width: 100%;
    min-height: 148px;
    padding: 1.5rem 1.375rem;
    border: 1px solid rgba(7, 27, 59, .08);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(7, 27, 59, .06);
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.faq-featured__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(7, 27, 59, .1);
    border-color: rgba(7, 27, 59, .14);
}

.faq-featured__card-title {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.3;
}

.faq-featured__card-text {
    flex: 1;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.faq-featured__card-link {
    font-size: .8125rem;
    font-weight: 700;
    color: var(--brand-blue);
}

/* Filters */
.faq-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 2rem;
}

.faq-filters__pill {
    appearance: none;
    border: 1px solid rgba(7, 27, 59, .12);
    background: var(--white);
    color: var(--text);
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    padding: .625rem 1.125rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.faq-filters__pill:hover {
    border-color: rgba(7, 27, 59, .22);
    box-shadow: 0 4px 12px rgba(7, 27, 59, .06);
}

.faq-filters__pill.is-active {
    background: #071B3B;
    border-color: #071B3B;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(7, 27, 59, .18);
}

.faq-empty {
    text-align: center;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.faq-empty button {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--brand-blue);
    cursor: pointer;
    text-decoration: underline;
}

/* Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(7, 27, 59, .07);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(7, 27, 59, .06);
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.faq-item.is-hidden {
    display: none;
}

.faq-item:hover {
    box-shadow: 0 10px 32px rgba(7, 27, 59, .09);
}

.faq-item[open] {
    border-color: rgba(7, 27, 59, .22);
    background: linear-gradient(180deg, rgba(7, 27, 59, .03) 0%, var(--white) 100%);
    box-shadow: 0 14px 40px rgba(7, 27, 59, .1);
}

.faq-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.375rem 1.625rem;
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--heading);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color .25s ease;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] .faq-item__summary {
    color: #071B3B;
}

.faq-item__text {
    flex: 1;
    min-width: 0;
}

.faq-item__toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(7, 27, 59, .06);
    color: #071B3B;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .25s ease, color .25s ease;
}

.faq-item__toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

.faq-item[open] .faq-item__toggle {
    transform: rotate(180deg);
    background: #071B3B;
    color: var(--white);
}

.faq-item__answer {
    padding: 0 1.625rem 1.5rem;
    border-top: 1px solid rgba(7, 27, 59, .06);
    animation: faqAnswerIn .35s ease;
}

.faq-item__answer p {
    margin: 1.125rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    font-weight: 400;
    color: var(--text);
}

/* ── CTA ── */
.faq-cta {
    position: relative;
    isolation: isolate;
    padding: clamp(4rem, 7vw, 5.5rem) 0;
    background: #071B3B;
    color: var(--text-on-dark);
}

.faq-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
}

.faq-cta__title {
    margin: 0 0 1rem;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--heading-on-dark);
}

.faq-cta__lead {
    margin: 0 0 2rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(255, 255, 255, .82);
}

.faq-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ── Footer ── */
body:has(.faq-page) .site-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

body:has(.faq-page) .site-footer__main {
    padding: clamp(3rem, 5vw, 4rem) min(32px, 4vw) clamp(2.5rem, 4vw, 3.25rem);
}

body:has(.faq-page) .site-footer__logo img {
    height: 104px;
}

body:has(.faq-page) .site-footer__desc {
    font-size: .9375rem;
    line-height: 1.7;
    max-width: 24rem;
}

body:has(.faq-page) .site-footer__links a {
    transition: color .2s ease, padding-left .2s ease;
}

body:has(.faq-page) .site-footer__links a:hover {
    padding-left: .25rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .faq-strip__grid,
    .faq-featured__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .faq-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .375rem;
        margin-inline: -1rem;
        padding-inline: 1rem;
        scrollbar-width: none;
    }

    .faq-filters::-webkit-scrollbar {
        display: none;
    }

    .faq-filters__pill {
        flex-shrink: 0;
    }

    .faq-item__summary {
        font-size: 1.0625rem;
        padding: 1.25rem 1.25rem;
    }

    .faq-item__answer {
        padding-inline: 1.25rem;
    }

    .faq-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-cta__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-animate > *,
    .faq-item__answer {
        animation: none;
    }

    .faq-hero__photo,
    .faq-featured__card:hover,
    .faq-strip__block:hover {
        transform: none !important;
    }
}
