/**
 * Faqs Section Block Styles
 *
 * Full-width white section with FAQ groups. Each group has a heading and a
 * list of expandable Q&A items as soft, rounded cards with subtle shadow and
 * a blue chevron toggle.
 *
 * @package ACF Child Theme
 */

:root {
    --color-primary: #3a9bf7;
    --color-grey: #f3f3f3;
    --color-text: #252525;
    --color-white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
}

/* Section wrapper - full-width white background
   ========================================================================== */
.faqs-section {
    width: 100%;
    margin: 0;
    padding: 80px 0;
    background-color: var(--color-white, #ffffff);
}

.faqs-section__container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0;
}

/* FAQ group
   ========================================================================== */
.faqs-section__group {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.faqs-section__group:last-child {
    margin-bottom: 0;
}

.faqs-section__group-title {
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text, #252525);
    margin: 0 0 24px 0;
}

/* FAQ list
   ========================================================================== */
.faqs-section__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faqs-section__item {
    background-color: var(--color-white, #ffffff);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faqs-section__item.is-open {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Question (toggle button)
   ========================================================================== */
.faqs-section__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 22px 28px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text, #252525);
    transition: color 0.3s ease;
}

.faqs-section__question:hover,
.faqs-section__question:focus-visible {
    color: var(--color-primary, #3a9bf7);
    outline: none;
}

.faqs-section__question-text {
    flex: 1 1 auto;
}

/* Chevron icon
   ========================================================================== */
.faqs-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    color: var(--color-primary, #3a9bf7);
    transition: transform 0.3s ease;
}

.faqs-section__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.faqs-section__item.is-open .faqs-section__icon {
    transform: rotate(90deg);
}

/* Answer panel
   ========================================================================== */
.faqs-section__answer {
    position: relative;
}

.faqs-section__answer[hidden] {
    display: none;
}

/* Inset separator line between question and answer (matches design) */
.faqs-section__answer::before {
    content: '';
    display: block;
    height: 2px;
    margin: 0 28px;
    background-color: var(--color-primary, #3a9bf7);
}

.faqs-section__answer-inner {
    padding: 18px 28px 26px;
    font-family: var(--font-primary), 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text, #252525);
}

.faqs-section__answer-inner p {
    margin: 0 0 12px 0;
}

.faqs-section__answer-inner p:last-child {
    margin-bottom: 0;
}

/* Responsive - Tablet
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .faqs-section {
        padding: 60px 0;
    }

    .faqs-section__group {
        max-width: 720px;
        margin-bottom: 48px;
    }

    .faqs-section__group-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .faqs-section__question {
        padding: 20px 24px;
        font-size: 18px;
    }

    .faqs-section__answer::before {
        margin: 0 24px;
    }

    .faqs-section__answer-inner {
        padding: 16px 24px 24px;
    }
}

/* Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .faqs-section {
        padding: 50px 0;
    }

    .faqs-section__group {
        max-width: none;
        margin-bottom: 40px;
    }

    .faqs-section__group-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .faqs-section__list {
        gap: 14px;
    }

    .faqs-section__question {
        padding: 18px 20px;
        font-size: 16px;
        gap: 14px;
    }

    .faqs-section__icon {
        width: 22px;
        height: 22px;
    }

    .faqs-section__answer::before {
        margin: 0 20px;
    }

    .faqs-section__answer-inner {
        padding: 14px 20px 22px;
        font-size: 15px;
    }
}
