
/* ========================================
   FAQ SECTION
======================================== */

.faq-section {
    padding: 90px 0;
    background: var(--cream);
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Heading */

.faq-heading {
    text-align: center;
    margin-bottom: 40px;
}

.faq-subtitle {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.faq-heading h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.faq-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

/* FAQ List */

.faq-list {
    width: 100%;
}

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

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

/* FAQ Question */

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border: none;
    background: transparent;

    color: var(--ink);
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;

    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--brand);
}

.faq-question:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}

/* FAQ Icon */

.faq-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--white);

    color: var(--brand);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

/* FAQ Answer */

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-answer-content {
    min-height: 0;
    overflow: hidden;

    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

.faq-answer-content p {
    margin: 0 0 18px;
}

.faq-answer-content p:last-child {
    margin-bottom: 22px;
}

.faq-answer-content ul,
.faq-answer-content ol {
    padding-left: 0;
}

.faq-answer-content ul li{ 
    list-style: none;
}

/* Active FAQ */

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-icon {
    background: var(--brand);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    color: var(--brand);
    padding: 0;
}

/* Responsive */

@media (max-width: 767px) {

    .faq-section {
        padding: 60px 0;
    }

    .faq-heading {
        margin-bottom: 30px;
    }

    .faq-heading h2 {
        font-size: 28px;
    }

    .faq-heading p {
        font-size: 14px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 21px;
    }

    .faq-answer-content {
        font-size: 14px;
    }

}
