/*C:\Users\irina\Documents\001Schwanden2027\schwanden2027\public\css\pages\faq.css*/

/*HERO*/
.faq-hero {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: 1.5rem;
}

.faq-hero .page-title {
    margin-bottom: 1rem;
}

/*SECTION*/
.faq-section {
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

/*LIST*/
.faq-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

/*ITEM*/
.faq-item {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/*QUESTION*/
.faq-question {
    width: 100%;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-darkblue);
    cursor: pointer;
}

/*ICON*/
.faq-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

/*ANSWER*/
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.2rem;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    margin: 0.8rem 0;
}

/*ACTIVE STATE*/
.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding: 0 1.2rem 1rem;
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

/*EMPTY*/
.empty-state {
    margin-top:1rem;
}
