/*
|--------------------------------------------------------------------------
| MKGO - FAQ Page
|--------------------------------------------------------------------------
|
| File:
| /assets/css/pages/faq.css
|
*/


/*
|--------------------------------------------------------------------------
| Main
|--------------------------------------------------------------------------
*/

.faq-main {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.faq-hero {
    position: relative;
    overflow: hidden;

    padding: 84px 0 76px;

    border-bottom: 1px solid #e2e8f0;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 100%
        );
}


.faq-hero::after {
    content: "";

    position: absolute;

    top: -180px;
    right: -150px;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(15, 23, 42, 0.055) 0%,
            rgba(15, 23, 42, 0) 70%
        );

    pointer-events: none;
}


.faq-hero .site-container {
    position: relative;
    z-index: 1;
}


.faq-hero .page-hero-content {
    max-width: 820px;
}


.faq-hero h1 {
    margin: 0;

    color: #0f172a;

    font-size: clamp(2.7rem, 6vw, 4.8rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.055em;
}


.faq-hero .page-hero-description {
    max-width: 650px;

    margin: 23px 0 0;

    color: #64748b;

    font-size: 1.05rem;
    line-height: 1.75;
}


.faq-hero .page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 30px;
}


/*
|--------------------------------------------------------------------------
| FAQ Tools
|--------------------------------------------------------------------------
*/

.faq-tools-section {
    position: relative;
    z-index: 5;

    padding: 30px 0;

    border-bottom: 1px solid #e2e8f0;

    background: #ffffff;
}


.faq-tools {
    display: grid;
    gap: 22px;
}


.faq-search {
    width: 100%;
    max-width: 760px;
}


.faq-search-label {
    display: block;

    margin-bottom: 8px;

    color: #334155;

    font-size: 0.82rem;
    font-weight: 750;
}


.faq-search-control {
    position: relative;

    display: flex;
    align-items: center;
}


.faq-search-icon {
    position: absolute;
    left: 17px;

    display: inline-flex;

    color: #94a3b8;

    pointer-events: none;
}


.faq-search-input {
    width: 100%;
    min-height: 54px;

    padding:
        0
        50px
        0
        50px;

    border: 1px solid #cbd5e1;
    border-radius: 14px;

    outline: none;

    background: #ffffff;
    color: #0f172a;

    font: inherit;
    font-size: 0.94rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.faq-search-input::placeholder {
    color: #94a3b8;
}


.faq-search-input:focus {
    border-color: #0f172a;

    box-shadow:
        0 0 0 3px
        rgba(15, 23, 42, 0.08);
}


.faq-search-clear {
    position: absolute;
    right: 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #64748b;

    cursor: pointer;

    font-size: 1.35rem;
    line-height: 1;
}


.faq-search-clear:hover {
    background: #f1f5f9;
    color: #0f172a;
}


.faq-search-clear:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}


.faq-search-status {
    min-height: 18px;

    margin: 8px 0 0;

    color: #64748b;

    font-size: 0.78rem;
}


/*
|--------------------------------------------------------------------------
| Categories
|--------------------------------------------------------------------------
*/

.faq-category-nav {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


.faq-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 15px;

    border: 1px solid #e2e8f0;
    border-radius: 999px;

    background: #ffffff;
    color: #475569;

    text-decoration: none;

    font-size: 0.79rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.faq-category-link:hover,
.faq-category-link.is-active {
    border-color: #0f172a;

    background: #0f172a;
    color: #ffffff;
}


.faq-category-link:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}


/*
|--------------------------------------------------------------------------
| Sections
|--------------------------------------------------------------------------
*/

.faq-main .content-section {
    padding: 76px 0;

    scroll-margin-top: 110px;
}


.faq-main .content-section-alt {
    background: #f8fafc;
}


.faq-main .section-heading {
    max-width: 720px;

    margin-bottom: 30px;
}


.faq-main .section-heading h2 {
    margin: 0;

    color: #0f172a;

    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}


/*
|--------------------------------------------------------------------------
| FAQ List
|--------------------------------------------------------------------------
*/

.faq-list {
    display: grid;
    gap: 11px;

    width: 100%;
    max-width: 900px;
}


/*
|--------------------------------------------------------------------------
| FAQ Item
|--------------------------------------------------------------------------
*/

.faq-item {
    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 18px
        rgba(15, 23, 42, 0.025);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.faq-item:hover {
    border-color: #cbd5e1;
}


.faq-item[open] {
    border-color: #cbd5e1;

    box-shadow:
        0 10px 28px
        rgba(15, 23, 42, 0.055);
}


/*
|--------------------------------------------------------------------------
| Summary
|--------------------------------------------------------------------------
*/

.faq-item summary {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 64px;

    padding:
        18px
        58px
        18px
        21px;

    color: #0f172a;

    cursor: pointer;

    list-style: none;

    font-size: 0.95rem;
    font-weight: 760;
    line-height: 1.45;

    user-select: none;
}


.faq-item summary::-webkit-details-marker {
    display: none;
}


.faq-item summary::after {
    content: "+";

    position: absolute;

    top: 50%;
    right: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    transform: translateY(-50%);

    border-radius: 8px;

    background: #f1f5f9;
    color: #475569;

    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


.faq-item[open] summary::after {
    content: "−";

    background: #0f172a;
    color: #ffffff;
}


.faq-item summary:hover::after {
    background: #e2e8f0;
    color: #0f172a;
}


.faq-item[open] summary:hover::after {
    background: #0f172a;
    color: #ffffff;
}


.faq-item summary:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: -3px;
}


/*
|--------------------------------------------------------------------------
| Answer
|--------------------------------------------------------------------------
*/

.faq-answer {
    padding:
        0
        58px
        22px
        21px;

    color: #64748b;

    font-size: 0.9rem;
    line-height: 1.75;
}


.faq-answer p {
    max-width: 760px;

    margin: 0 0 14px;
}


.faq-answer p:last-child {
    margin-bottom: 0;
}


.faq-answer .site-text-link {
    display: inline-flex;

    margin-top: 4px;
}


/*
|--------------------------------------------------------------------------
| Search State
|--------------------------------------------------------------------------
*/

.faq-item.is-search-hidden,
.faq-section.is-search-hidden {
    display: none;
}


.faq-item.is-search-match {
    border-color: #94a3b8;
}


/*
|--------------------------------------------------------------------------
| No Results
|--------------------------------------------------------------------------
*/

.faq-no-results {
    padding: 60px 0;

    background: #f8fafc;
}


.faq-no-results-card {
    max-width: 620px;

    padding: 38px;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    background: #ffffff;

    text-align: center;

    margin: 0 auto;
}


.faq-no-results-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    border-radius: 14px;

    background: #0f172a;
    color: #ffffff;

    font-size: 1.2rem;
    font-weight: 800;
}


.faq-no-results-card h2 {
    margin: 0 0 10px;

    color: #0f172a;

    font-size: 1.45rem;
    font-weight: 800;
}


.faq-no-results-card p {
    margin: 0 0 22px;

    color: #64748b;

    line-height: 1.65;
}


/*
|--------------------------------------------------------------------------
| Final CTA
|--------------------------------------------------------------------------
*/

.faq-main .page-cta {
    padding: 72px 0;

    background: #0f172a;
    color: #ffffff;
}


.faq-main .page-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 45px;
}


.faq-main .page-cta .page-eyebrow {
    color: #94a3b8;
}


.faq-main .page-cta h2 {
    margin: 7px 0 10px;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}


.faq-main .page-cta p {
    max-width: 620px;
    margin: 0;

    color: #cbd5e1;

    line-height: 1.7;
}


.faq-main .page-cta-actions {
    display: flex;
    flex-wrap: wrap;

    flex: 0 0 auto;

    gap: 12px;
}


.faq-main
.page-cta
.site-primary-button {
    border-color: #ffffff;

    background: #ffffff;
    color: #0f172a;
}


.faq-main
.page-cta
.site-secondary-button {
    border-color: #475569;

    background: transparent;
    color: #ffffff;
}


.faq-main
.page-cta
.site-secondary-button:hover {
    border-color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 992px) {

    .faq-hero {
        padding: 66px 0 60px;
    }


    .faq-main .content-section {
        padding: 62px 0;
    }


    .faq-main .page-cta-inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 28px;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .faq-hero {
        padding: 50px 0 46px;
    }


    .faq-hero h1 {
        font-size:
            clamp(
                2.25rem,
                12vw,
                3.2rem
            );
    }


    .faq-hero .page-hero-description {
        margin-top: 18px;

        font-size: 0.94rem;
    }


    .faq-hero .page-hero-actions {
        align-items: stretch;
        flex-direction: column;

        margin-top: 24px;
    }


    .faq-hero
    .page-hero-actions
    .site-primary-button,

    .faq-hero
    .page-hero-actions
    .site-secondary-button {
        width: 100%;
    }


    .faq-tools-section {
        padding: 22px 0;
    }


    .faq-search-input {
        min-height: 50px;

        font-size: 0.88rem;
    }


    .faq-category-nav {
        flex-wrap: nowrap;

        width: 100%;

        padding-bottom: 5px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .faq-category-nav::-webkit-scrollbar {
        display: none;
    }


    .faq-category-link {
        flex: 0 0 auto;
    }


    .faq-main .content-section {
        padding: 50px 0;
    }


    .faq-main .section-heading {
        margin-bottom: 24px;
    }


    .faq-main .section-heading h2 {
        font-size: 1.75rem;
    }


    .faq-item summary {
        min-height: 60px;

        padding:
            17px
            52px
            17px
            17px;

        font-size: 0.9rem;
    }


    .faq-item summary::after {
        right: 15px;

        width: 27px;
        height: 27px;
    }


    .faq-answer {
        padding:
            0
            17px
            19px;

        font-size: 0.86rem;
    }


    .faq-no-results {
        padding: 40px 0;
    }


    .faq-no-results-card {
        padding: 30px 20px;
    }


    .faq-main .page-cta {
        padding: 54px 0;
    }


    .faq-main .page-cta-actions {
        align-items: stretch;
        flex-direction: column;

        width: 100%;
    }


    .faq-main
    .page-cta-actions
    .site-primary-button,

    .faq-main
    .page-cta-actions
    .site-secondary-button {
        width: 100%;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .faq-item summary::after,
    .faq-category-link,
    .faq-search-input {
        transition: none;
    }

}