
/* ==========================================================
   HLxHub — Premium FAQ Section
   File: assets/css/single-mobile/faq.css
   ========================================================== */


/* ==============================
   1. ROOT
================================ */

.hlx-faq {
    --faq-primary: #2563eb;
    --faq-secondary: #0ea5e9;
    --faq-text: #172033;
    --faq-muted: #64748b;
    --faq-border: #e2e8f0;
    --faq-card: #ffffff;

    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 48px auto;
    padding: 60px 24px;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--faq-text);
    font-family: inherit;
    background:
        radial-gradient(
            circle at 5% 5%,
            rgba(59, 130, 246, .12),
            transparent 34%
        ),
        radial-gradient(
            circle at 95% 95%,
            rgba(14, 165, 233, .10),
            transparent 34%
        ),
        linear-gradient(145deg, #f8fbff, #f1f6ff);
    border: 1px solid rgba(219, 231, 248, .9);
    border-radius: 28px;
}

.hlx-faq *,
.hlx-faq *::before,
.hlx-faq *::after {
    box-sizing: border-box;
}


/* ==============================
   2. CONTAINER
================================ */

.hlx-faq__container {
    position: relative;
    z-index: 1;
    width: min(100%, 940px);
    margin-inline: auto;
}


/* ==============================
   3. HEADER
================================ */

.hlx-faq__header {
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
}

.hlx-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 7px 17px;
    color: #1d4ed8;
    background: rgba(59, 130, 246, .09);
    border: 1px solid rgba(59, 130, 246, .20);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.hlx-faq__title {
    margin: 0;
    color: #101828;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

.hlx-faq__description {
    max-width: 580px;
    margin: 14px auto 0;
    color: var(--faq-muted);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 400;
}


/* ==============================
   4. FAQ LIST
================================ */

.hlx-faq__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}


/* ==============================
   5. FAQ CARD
================================ */

.hlx-faq__item {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--faq-border);
    border-radius: 17px;
    box-shadow:
        0 4px 14px rgba(15, 23, 42, .035),
        0 1px 3px rgba(15, 23, 42, .025);
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease,
        transform .3s ease;
}

.hlx-faq__item:hover {
    border-color: rgba(37, 99, 235, .4);
    box-shadow:
        0 10px 28px rgba(37, 99, 235, .09),
        0 2px 6px rgba(15, 23, 42, .035);
    transform: translateY(-2px);
}

.hlx-faq__item[open] {
    background: #ffffff;
    border-color: rgba(37, 99, 235, .42);
    box-shadow:
        0 12px 32px rgba(37, 99, 235, .09),
        0 2px 8px rgba(15, 23, 42, .035);
    transform: none;
}


/* ==============================
   6. QUESTION
================================ */

.hlx-faq__question {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 76px;
    padding: 18px 22px;
    color: var(--faq-text);
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.hlx-faq__question::-webkit-details-marker {
    display: none;
}

.hlx-faq__question::marker {
    content: "";
}

.hlx-faq__question:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .65);
    outline-offset: -4px;
    border-radius: 14px;
}


/* ==============================
   7. NUMBER
================================ */

.hlx-faq__number {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}

.hlx-faq__item[open] .hlx-faq__number {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #2563eb,
        #0ea5e9
    );
    border-color: transparent;
}


/* ==============================
   8. QUESTION TEXT
================================ */

.hlx-faq__question-text {
    flex: 1 1 auto;
    min-width: 0;
    color: #1e293b;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.55;
    transition: color .25s ease;
}

.hlx-faq__item[open] .hlx-faq__question-text {
    color: #1d4ed8;
}


/* ==============================
   9. PLUS / MINUS ICON
================================ */

.hlx-faq__icon {
    position: relative;
    display: flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    color: #475569;
    background: #f1f5f9;
    border-radius: 50%;
    transition:
        color .3s ease,
        background .3s ease,
        transform .3s ease;
}

.hlx-faq__icon::before,
.hlx-faq__icon::after {
    position: absolute;
    content: "";
    width: 12px;
    height: 2px;
    background: currentColor;
    border-radius: 5px;
    transition:
        transform .3s ease,
        opacity .3s ease;
}

.hlx-faq__icon::after {
    transform: rotate(90deg);
}

.hlx-faq__item[open] .hlx-faq__icon {
    color: #ffffff;
    background: #2563eb;
    transform: rotate(180deg);
}

.hlx-faq__item[open] .hlx-faq__icon::after {
    transform: rotate(0deg);
    opacity: 0;
}


/* ==============================
   10. ANSWER
================================ */

.hlx-faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}

.hlx-faq__item[open] .hlx-faq__answer {
    grid-template-rows: 1fr;
}

.hlx-faq__answer-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 24px 0 76px;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
    opacity: 0;
    transition:
        opacity .25s ease,
        padding .3s ease;
}

.hlx-faq__item[open] .hlx-faq__answer-inner {
    padding-top: 0;
    padding-bottom: 24px;
    opacity: 1;
}

.hlx-faq__answer-inner p {
    margin: 0 0 12px;
}

.hlx-faq__answer-inner p:last-child {
    margin-bottom: 0;
}

.hlx-faq__answer-inner strong {
    color: #334155;
    font-weight: 700;
}

.hlx-faq__answer-inner a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hlx-faq__answer-inner ul,
.hlx-faq__answer-inner ol {
    margin: 10px 0;
    padding-left: 22px;
}

.hlx-faq__answer-inner li {
    margin-bottom: 6px;
}


/* ==============================
   11. FOOTER
================================ */

.hlx-faq__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 28px;
    padding: 17px 20px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 14px;
}

.hlx-faq__footer-icon {
    display: flex;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
}

.hlx-faq__footer p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}


/* ==============================
   12. TABLET
================================ */

@media (max-width: 768px) {

    .hlx-faq {
        margin: 36px auto;
        padding: 44px 20px;
        border-radius: 23px;
    }

    .hlx-faq__header {
        margin-bottom: 30px;
    }

    .hlx-faq__title {
        font-size: clamp(26px, 5vw, 35px);
    }

    .hlx-faq__description {
        font-size: 14px;
    }

    .hlx-faq__list {
        gap: 12px;
    }

    .hlx-faq__question {
        min-height: 70px;
        padding: 16px 18px;
        gap: 13px;
    }

    .hlx-faq__question-text {
        font-size: 14.5px;
    }

    .hlx-faq__answer-inner {
        padding-right: 20px;
        padding-left: 69px;
        font-size: 13.5px;
    }

    .hlx-faq__item[open] .hlx-faq__answer-inner {
        padding-bottom: 20px;
    }
}


/* ==============================
   13. MOBILE
================================ */

@media (max-width: 480px) {

    .hlx-faq {
        margin: 28px auto;
        padding: 34px 14px;
        border-radius: 19px;
    }

    .hlx-faq__header {
        margin-bottom: 24px;
    }

    .hlx-faq__eyebrow {
        margin-bottom: 11px;
        padding: 5px 12px;
        font-size: 10px;
    }

    .hlx-faq__title {
        font-size: 26px;
        letter-spacing: -.6px;
        line-height: 1.25;
    }

    .hlx-faq__description {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.7;
    }

    .hlx-faq__list {
        gap: 10px;
    }

    .hlx-faq__item {
        border-radius: 13px;
    }

    .hlx-faq__question {
        min-height: 63px;
        gap: 10px;
        padding: 13px 12px;
    }

    .hlx-faq__number {
        flex-basis: 31px;
        width: 31px;
        height: 31px;
        border-radius: 9px;
        font-size: 10px;
    }

    .hlx-faq__question-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .hlx-faq__icon {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
    }

    .hlx-faq__icon::before,
    .hlx-faq__icon::after {
        width: 10px;
    }

    .hlx-faq__answer-inner {
        padding-right: 14px;
        padding-left: 53px;
        font-size: 12.5px;
        line-height: 1.75;
    }

    .hlx-faq__item[open] .hlx-faq__answer-inner {
        padding-bottom: 17px;
    }

    .hlx-faq__footer {
        gap: 8px;
        margin-top: 20px;
        padding: 13px 10px;
    }

    .hlx-faq__footer p {
        font-size: 11.5px;
    }
}


/* ==============================
   14. SMALL MOBILE
================================ */

@media (max-width: 360px) {

    .hlx-faq {
        padding: 28px 10px;
    }

    .hlx-faq__question {
        gap: 8px;
        padding: 12px 9px;
    }

    .hlx-faq__question-text {
        font-size: 12px;
    }

    .hlx-faq__answer-inner {
        padding-left: 48px;
        font-size: 12px;
    }
}


/* ==============================
   15. REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {

    .hlx-faq *,
    .hlx-faq *::before,
    .hlx-faq *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
