/* =============================================
   FAQ SECTION
   ============================================= */
.faq__section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 clamp(20px, 6%, 80px);
}

.faq__header {
    text-align: center;
    margin-bottom: 50px;
}

.faq__header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.faq__header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
    /* gradient text uses clip — need a different approach for the line */
    -webkit-text-fill-color: initial;
    background-clip: initial;
    -webkit-background-clip: initial;
}

.faq__desc {
    color: var(--servicesDescription);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
}

.faq__accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.faq__item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3),
                0 0 20px var(--card-glow);
    transform: translateY(-2px);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: color 0.3s ease;
    gap: 16px;
}

.faq__question:hover {
    color: var(--secondary);
}

.faq__icon {
    color: var(--svg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq__item--active .faq__icon {
    transform: rotate(180deg);
    color: var(--secondary);
}

.faq__item--active {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(20, 20, 30, 0.65);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__answer-content {
    padding: 0 28px 22px;
}

.faq__answer p {
    color: var(--portfolioCardDescription);
    font-size: 14.5px;
    line-height: 1.7;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
    .faq__section {
        margin: 60px auto 30px;
        padding: 0 clamp(20px, 6%, 60px);
    }

    .faq__header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .faq__header h1 {
        font-size: 30px;
    }

    .faq__question {
        padding: 18px 22px;
        font-size: 15px;
    }

    .faq__answer-content {
        padding: 0 22px 18px;
    }
}
