/* =========================================================
   CROWN THEORY
   FAQ Page Styles
   ========================================================= */


/* =========================================================
   1. FAQ HERO
   ========================================================= */

.faq-hero {
    padding: 72px 0 80px;

    background-color: #F7F4EB;

    border-bottom: 1px solid #DDD6C8;

    text-align: center;
}

.faq-hero-content {
    max-width: 780px;
}

.faq-hero h1 {
    margin-bottom: 20px;

    color: #3D2314;

    font-size: 56px;
    line-height: 1.1;
}

.faq-hero p {
    max-width: 620px;

    margin: 0 auto 32px;

    color: #6C625B;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   2. FAQ SEARCH
   ========================================================= */

.faq-search-form {
    max-width: 620px;

    margin: 0 auto;

    display: flex;

    gap: 10px;
}

.faq-search-form input {
    width: 100%;

    min-height: 52px;

    padding: 12px 18px;

    background-color: #FFFFFF;

    color: #3D2314;

    border: 1px solid #DDD6C8;
    border-radius: 28px;

    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
}

.faq-search-form input:hover {
    border-color: #6B7F63;
}

.faq-search-form input:focus {
    border-color: #6B7F63;

    outline: 3px solid rgba(217, 160, 91, 0.35);
    outline-offset: 2px;
}

.faq-search-form .button {
    flex-shrink: 0;
}


/* =========================================================
   3. FAQ CATEGORY SECTION
   ========================================================= */

.faq-category-section {
    padding: 48px 0;

    background-color: #E7ECE3;
}

.faq-category-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 16px;
}

.faq-category-card {
    min-height: 150px;

    padding: 22px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background-color: #F7F4EB;

    border: 1px solid #CAD4C5;
    border-radius: 14px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.faq-category-card:hover {
    transform: translateY(-4px);

    background-color: #FFFFFF;

    border-color: #6B7F63;
}

.faq-category-number {
    display: block;

    margin-bottom: 12px;

    color: #D9A05B;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.faq-category-card strong {
    margin-bottom: 5px;

    color: #3D2314;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 15px;
}

.faq-category-card > span:last-child {
    color: #6C625B;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   4. FAQ MAIN SECTION
   ========================================================= */

.faq-main-section {
    padding: 88px 0 96px;

    background-color: #FCFAF5;
}

.faq-layout {
    display: grid;

    grid-template-columns: 230px minmax(0, 1fr);

    gap: 64px;

    align-items: start;
}


/* =========================================================
   5. FAQ SIDEBAR
   ========================================================= */

.faq-sidebar {
    position: sticky;

    top: 100px;

    padding: 24px;

    background-color: #F7F4EB;

    border: 1px solid #DDD6C8;
    border-radius: 16px;
}

.faq-sidebar nav {
    margin-bottom: 28px;

    display: flex;

    flex-direction: column;
}

.faq-sidebar nav a {
    padding: 12px 0;

    color: #6C625B;

    border-bottom: 1px solid #DDD6C8;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.faq-sidebar nav a:last-child {
    border-bottom: none;
}

.faq-sidebar nav a:hover {
    color: #6B7F63;
}


/* =========================================================
   6. SIDEBAR HELP
   ========================================================= */

.faq-sidebar-help {
    padding-top: 22px;

    border-top: 1px solid #DDD6C8;
}

.faq-sidebar-help strong {
    display: block;

    margin-bottom: 8px;

    color: #3D2314;

    font-size: 14px;
}

.faq-sidebar-help p {
    margin-bottom: 16px;

    color: #6C625B;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   7. FAQ CONTENT
   ========================================================= */

.faq-content {
    min-width: 0;
}

.faq-group {
    margin-bottom: 80px;

    scroll-margin-top: 120px;
}

.faq-group:last-child {
    margin-bottom: 0;
}

.faq-group-header {
    max-width: 700px;

    margin-bottom: 28px;
}

.faq-group-header h2 {
    margin-bottom: 12px;

    color: #3D2314;

    font-size: 38px;
}

.faq-group-header p {
    color: #6C625B;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   8. FAQ ACCORDION
   ========================================================= */

.faq-accordion {
    border-top: 1px solid #DDD6C8;
}

.faq-item {
    border-bottom: 1px solid #DDD6C8;
}

.faq-item summary {
    position: relative;

    padding: 22px 50px 22px 4px;

    color: #3D2314;

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";

    position: absolute;

    top: 50%;
    right: 8px;

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: #E7ECE3;

    color: #3D2314;

    border-radius: 50%;

    font-size: 20px;

    transform: translateY(-50%);

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";

    background-color: #6B7F63;

    color: #FFFFFF;
}

.faq-item summary:hover {
    color: #6B7F63;
}

.faq-item summary:hover::after {
    background-color: #D9A05B;

    color: #3D2314;
}

.faq-item summary:focus-visible {
    outline: 3px solid #D9A05B;

    outline-offset: 3px;
}


/* =========================================================
   9. FAQ ANSWER
   ========================================================= */

.faq-answer {
    padding: 0 50px 24px 4px;
}

.faq-answer p {
    max-width: 760px;

    margin-bottom: 14px;

    color: #6C625B;

    font-size: 14px;
    line-height: 1.75;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer .text-link {
    margin-top: 6px;
}


/* =========================================================
   10. OPEN FAQ STATE
   ========================================================= */

.faq-item[open] {
    background-color: #F7F4EB;
}

.faq-item[open] summary {
    padding-left: 16px;
}

.faq-item[open] .faq-answer {
    padding-left: 16px;
}


/* =========================================================
   11. SUPPORT CTA
   ========================================================= */

.faq-support-section {
    padding: 80px 0;

    background-color: #E7ECE3;
}

.faq-support-grid {
    display: grid;

    grid-template-columns: 1fr 0.85fr;

    align-items: center;

    gap: 72px;
}

.faq-support-grid h2 {
    color: #3D2314;

    font-size: 44px;
}

.faq-support-content > p {
    margin-bottom: 26px;

    color: #5F665A;

    font-size: 16px;
    line-height: 1.7;
}

.faq-support-actions {
    display: flex;

    align-items: center;

    gap: 24px;
}


/* =========================================================
   12. TABLET
   ========================================================= */

@media screen and (max-width: 1100px) {

    .faq-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-layout {
        grid-template-columns: 210px minmax(0, 1fr);

        gap: 40px;
    }

}


/* =========================================================
   13. SMALL TABLET
   ========================================================= */

@media screen and (max-width: 850px) {

    .faq-layout {
        display: block;
    }

    .faq-sidebar {
        position: static;

        margin-bottom: 48px;
    }

    .faq-sidebar nav {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 0 20px;
    }

    .faq-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-support-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

}


/* =========================================================
   14. MOBILE
   ========================================================= */

@media screen and (max-width: 650px) {

    .faq-hero {
        padding: 48px 0 56px;
    }

    .faq-hero h1 {
        font-size: 39px;
    }

    .faq-hero p {
        font-size: 15px;
    }

    .faq-search-form {
        flex-direction: column;
    }

    .faq-search-form .button {
        width: 100%;
    }

    .faq-category-section {
        padding: 36px 0;
    }

    .faq-category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .faq-category-card {
        min-height: 130px;

        padding: 18px;
    }

    .faq-main-section {
        padding: 64px 0;
    }

    .faq-sidebar nav {
        grid-template-columns: 1fr;
    }

    .faq-group {
        margin-bottom: 64px;
    }

    .faq-group-header h2 {
        font-size: 32px;
    }

    .faq-item summary {
        padding-top: 20px;
        padding-bottom: 20px;

        font-size: 14px;
    }

    .faq-support-section {
        padding: 64px 0;
    }

    .faq-support-grid h2 {
        font-size: 35px;
    }

    .faq-support-actions {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   15. SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 420px) {

    .faq-hero h1 {
        font-size: 34px;
    }

    .faq-category-grid {
        grid-template-columns: 1fr;
    }

    .faq-category-card {
        min-height: auto;
    }

    .faq-sidebar {
        padding: 20px;
    }

    .faq-item summary {
        padding-right: 44px;
    }

    .faq-answer {
        padding-right: 12px;
    }

}