/* css/faq.css */

.faq-section {
    /* background-color: #f7f7f7;
    padding: 6rem 0; */
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 5rem 4rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr 1.4fr;
        gap: 6rem;
    }
}

/* .faq-info {} */

.faq-title {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.faq-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 440px;
}

/* Accordion Layout */
.faq-accordion {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:first-child {
    border-top: none;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 0.5rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: padding-left 0.25s ease;
}

.faq-question {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    padding-right: 2rem;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
}

/* Plus (+) Icon styled premium */
.faq-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #111827;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s ease,
        color 0.3s ease;
}

.faq-icon-wrap svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.faq-item:hover {
    background-color: #fafafa;
}

.faq-trigger:hover .faq-question {
    color: #0058bc;
    /* Primary Accent Color */
}

.faq-trigger:hover .faq-icon-wrap {
    background-color: #e5e7eb;
}

/* Active / Open state styling */
.faq-item.is-open {
    background-color: #ffffff;
}

.faq-item.is-open .faq-question {
    color: #0058bc;
}

.faq-item.is-open .faq-icon-wrap {
    transform: rotate(45deg);
    background-color: #111827;
    color: #ffffff;
}

/* Panel transition */
.faq-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
}

.faq-answer {
    padding: 0 0.5rem 1.75rem 0.5rem;
    font-size: 0.975rem;
    line-height: 1.65;
    color: #4b5563;
}

@media (max-width: 991px) {
    .faq-section {
        padding: 0rem 0;
    }

    .faq-card {
        padding: 3.5rem 2.5rem;
    }

    .faq-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .faq-card {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }

    .faq-grid {
        gap: 2.5rem;
    }

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

    .faq-desc {
        font-size: 0.95rem;
    }

    .faq-question {
        font-size: 1rem;
        padding-right: 1.25rem;
    }

    .faq-icon-wrap {
        width: 32px;
        height: 32px;
    }

    .faq-icon-wrap svg {
        width: 12px;
        height: 12px;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}

/* Product‑Detail page FAQ padding override */
.product-detail-page .faq-section {
    padding: 0rem 0;
}