/*
 * Homepage FAQ — last section before footer.
 * Visual language aligned with tour FAQ + homepage section widths.
 */

.tourbin-front-page > .tourbin-home-faq {
    padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
    background: linear-gradient(to bottom, #fafafa 0%, #fff 100%);
}

.tourbin-home-faq__inner {
    width: min(100% - 2.5rem, 800px);
    margin-inline: auto;
}

.tourbin-home-faq__header {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    text-align: center;
}

.tourbin-home-faq__title {
    margin: 0;
    font-family: "Liana", "Liana-soft-FD", var(--tourbin-font, sans-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--tourbin-black, #131313);
}

.tourbin-home-faq__lead {
    margin: 0.75rem auto 0;
    max-width: 36rem;
    font-family: "Vazirmatn", var(--tourbin-font, sans-serif);
    font-size: 14px;
    line-height: 1.7;
    color: var(--tourbin-text-muted, #5c5c5c);
}

.tourbin-home-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tourbin-home-faq__item {
    border: 1px solid #f0f0f0;
    border-radius: var(--tourbin-card-radius, 18px);
    padding: 18px 20px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition:
        box-shadow var(--tourbin-duration, 200ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1)),
        border-color var(--tourbin-duration, 200ms)
            var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1));
}

.tourbin-home-faq__item[open],
.tourbin-home-faq__item:hover {
    box-shadow: var(--tourbin-shadow-card, 0 12px 30px rgba(15, 15, 15, 0.08));
    border-color: #e8e8e8;
}

.tourbin-home-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-family: "Vazirmatn", var(--tourbin-font, sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--tourbin-black, #131313);
    list-style: none;
}

.tourbin-home-faq__question::-webkit-details-marker {
    display: none;
}

.tourbin-home-faq__question::after {
    content: "";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tourbin-yellow, #fffbcf);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23131313' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform var(--tourbin-duration, 200ms)
        var(--tourbin-ease, cubic-bezier(0.2, 0, 0, 1));
}

.tourbin-home-faq__item[open] .tourbin-home-faq__question::after {
    transform: rotate(180deg);
}

.tourbin-home-faq__answer {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    font-family: "Vazirmatn", var(--tourbin-font, sans-serif);
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--tourbin-text-muted, #5c5c5c);
    white-space: pre-line;
}

@media (max-width: 639px) {
    .tourbin-front-page > .tourbin-home-faq {
        padding-block: 2rem 2.5rem;
    }

    .tourbin-home-faq__item {
        padding: 14px 16px;
    }

    .tourbin-home-faq__question {
        font-size: 0.9rem;
    }
}
