/* =========================================================
   FAQ PAGE
   Purple Leaf Creation
   ========================================================= */

:root {
    --faq-primary: #6b4f3a;
    --faq-primary-dark: #4f392a;
    --faq-secondary: #a67c52;
    --faq-bg: #faf8f5;
    --faq-white: #ffffff;
    --faq-text: #333333;
    --faq-muted: #777777;
    --faq-border: #e8e1da;
    --faq-light: #f4efe9;
    --faq-shadow: 0 10px 35px rgba(70, 50, 35, 0.08);
}

/* =========================
   PAGE
   ========================= */

.faq-page {
    background: var(--faq-bg);
    color: var(--faq-text);
    min-height: 100vh;
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
    box-sizing: border-box;
}

.faq-page a {
    text-decoration: none;
}

/* =========================
   HERO
   ========================= */

.faq-hero {
    min-height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    background: linear-gradient(rgba(53, 38, 27, 0.72), rgba(53, 38, 27, 0.72)),
        url("/images/faq-banner.jpg") center / cover no-repeat;
}

.faq-hero-content {
    max-width: 850px;
}

.faq-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 15px;
    padding: 7px 18px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;

    color: #fff;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.faq-hero h1 {
    margin: 0 0 15px;

    color: #fff;

    font-size: clamp(35px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.15;
}

.faq-hero p {
    max-width: 700px;

    margin: auto;

    color: rgba(255, 255, 255, 0.9);

    font-size: 17px;
    line-height: 1.8;
}

/* =========================
   BREADCRUMB
   ========================= */

.faq-breadcrumb {
    background: var(--faq-white);
    border-bottom: 1px solid var(--faq-border);
}

.faq-breadcrumb .container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.faq-breadcrumb a {
    color: var(--faq-primary);

    font-size: 14px;
    font-weight: 500;
}

.faq-breadcrumb span {
    color: var(--faq-muted);
    font-size: 14px;
}

.faq-breadcrumb span:first-of-type {
    margin: 0 9px;
}

/* =========================
   CONTENT
   ========================= */

.faq-content {
    padding: 75px 0 90px;
}

/* =========================
   INTRO
   ========================= */

.faq-intro {
    max-width: 700px;

    margin: 0 auto 35px;

    text-align: center;
}

.faq-section-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--faq-secondary);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.faq-intro h2 {
    margin: 0 0 12px;

    color: var(--faq-primary-dark);

    font-size: 36px;
    font-weight: 700;
}

.faq-intro p {
    margin: 0;

    color: var(--faq-muted);

    font-size: 16px;
    line-height: 1.8;
}

/* =========================
   SEARCH
   ========================= */

.faq-search-wrapper {
    max-width: 750px;

    margin: 0 auto 30px;
}

.faq-search {
    position: relative;

    display: flex;
    align-items: center;

    height: 58px;

    background: #fff;

    border: 1px solid var(--faq-border);
    border-radius: 12px;

    box-shadow: var(--faq-shadow);

    transition: 0.25s ease;
}

.faq-search:focus-within {
    border-color: var(--faq-primary);

    box-shadow: 0 0 0 3px rgba(107, 79, 58, 0.08), var(--faq-shadow);
}

.faq-search > i {
    margin-left: 20px;

    color: var(--faq-primary);

    font-size: 18px;
}

.faq-search input {
    flex: 1;

    width: 100%;
    height: 100%;

    padding: 0 15px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--faq-text);

    font-size: 15px;
}

.faq-search input::placeholder {
    color: #aaa;
}

.faq-search button {
    width: 45px;
    height: 45px;

    margin-right: 7px;

    border: 0;

    background: transparent;

    color: #999;

    border-radius: 50%;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: 0.2s ease;
}

.faq-search button.show {
    opacity: 1;
    visibility: visible;
}

.faq-search button:hover {
    background: var(--faq-light);
    color: var(--faq-primary);
}

.faq-search-result {
    min-height: 20px;

    margin: 10px 0 0;

    color: var(--faq-muted);

    font-size: 13px;

    text-align: center;
}

/* =========================
   CATEGORIES
   ========================= */

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 10px;

    margin-bottom: 40px;
}

.faq-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 10px 17px;

    background: var(--faq-white);

    border: 1px solid var(--faq-border);
    border-radius: 50px;

    color: #666;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.faq-category-btn:hover {
    border-color: var(--faq-primary);

    color: var(--faq-primary);

    transform: translateY(-1px);
}

.faq-category-btn.active {
    background: var(--faq-primary);

    border-color: var(--faq-primary);

    color: #fff;
}

.faq-category-btn i {
    font-size: 14px;
}

/* =========================
   FAQ LIST
   ========================= */

.faq-list {
    max-width: 900px;

    margin: auto;
}

.faq-item {
    margin-bottom: 13px;

    background: var(--faq-white);

    border: 1px solid var(--faq-border);
    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(70, 50, 35, 0.04);

    transition: 0.25s ease;
}

.faq-item:hover {
    border-color: #d9cdbf;
}

.faq-item.hidden {
    display: none;
}

/* =========================
   QUESTION
   ========================= */

.faq-question {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 21px 23px;

    background: transparent;

    border: 0;

    color: var(--faq-text);

    text-align: left;

    cursor: pointer;
}

.faq-question-text {
    display: flex;
    align-items: center;

    gap: 15px;

    font-size: 15px;
    font-weight: 650;

    line-height: 1.5;
}

.faq-number {
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--faq-light);

    border-radius: 50%;

    color: var(--faq-primary);

    font-size: 11px;
    font-weight: 700;
}

.faq-icon {
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--faq-light);

    border-radius: 50%;

    color: var(--faq-primary);

    font-size: 18px;

    transition: 0.3s ease;
}

.faq-item.open .faq-icon {
    background: var(--faq-primary);

    color: #fff;

    transform: rotate(45deg);
}

/* =========================
   ANSWER
   ========================= */

.faq-answer {
    display: grid;

    grid-template-rows: 0fr;

    transition: grid-template-rows 0.35s ease;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    min-height: 0;

    overflow: hidden;

    padding: 0 23px 0 76px;

    color: #666;

    font-size: 14px;

    line-height: 1.8;
}

.faq-item.open .faq-answer-inner {
    padding-bottom: 23px;
}

.faq-answer-inner p {
    margin: 0 0 12px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner strong {
    color: var(--faq-primary-dark);
}

/* =========================
   FAQ CONTACT
   ========================= */

.faq-contact {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 15px;
}

.faq-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;

    background: var(--faq-light);

    border-radius: 7px;

    color: var(--faq-primary);

    font-size: 13px;
    font-weight: 600;
}

/* =========================
   NO RESULTS
   ========================= */

.faq-no-results {
    display: none;

    max-width: 500px;

    margin: 30px auto;

    padding: 40px 20px;

    text-align: center;
}

.faq-no-results.show {
    display: block;
}

.faq-no-results-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: auto;

    background: var(--faq-light);

    border-radius: 50%;

    color: var(--faq-primary);

    font-size: 24px;
}

.faq-no-results h3 {
    margin: 18px 0 7px;

    color: var(--faq-primary-dark);

    font-size: 21px;
}

.faq-no-results p {
    margin-bottom: 20px;

    color: var(--faq-muted);

    font-size: 14px;
}

.faq-reset-btn {
    padding: 10px 20px;

    border: 0;
    border-radius: 7px;

    background: var(--faq-primary);
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.faq-reset-btn:hover {
    background: var(--faq-primary-dark);
}

/* =========================
   CONTACT CTA
   ========================= */

.faq-contact-section {
    max-width: 900px;

    margin: 70px auto 0;

    padding: 35px;

    background: var(--faq-primary);

    border-radius: 16px;

    box-shadow: var(--faq-shadow);
}

.faq-contact-content {
    display: flex;
    align-items: center;

    gap: 22px;
}

.faq-contact-icon {
    flex: 0 0 auto;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    color: #fff;

    font-size: 25px;
}

.faq-contact-content > div:nth-child(2) {
    flex: 1;
}

.faq-contact-content span {
    color: rgba(255, 255, 255, 0.65);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.faq-contact-content h2 {
    margin: 4px 0 5px;

    color: #fff;

    font-size: 25px;
    font-weight: 700;
}

.faq-contact-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.8);

    font-size: 13px;
    line-height: 1.6;
}

.faq-contact-buttons {
    display: flex;

    gap: 9px;
}

.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 11px 17px;

    background: #fff;

    border: 1px solid #fff;
    border-radius: 7px;

    color: var(--faq-primary) !important;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    transition: 0.25s ease;
}

.faq-contact-btn:hover {
    transform: translateY(-2px);
}

.faq-contact-btn.outline {
    background: transparent;

    color: #fff !important;
}

.faq-contact-btn.outline:hover {
    background: #fff;

    color: var(--faq-primary) !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991px) {
    .faq-content {
        padding: 60px 0 70px;
    }

    .faq-contact-content {
        flex-wrap: wrap;
    }

    .faq-contact-buttons {
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    .faq-hero {
        min-height: 270px;

        padding: 60px 20px;
    }

    .faq-hero h1 {
        font-size: 36px;
    }

    .faq-hero p {
        font-size: 15px;
    }

    .faq-content {
        padding: 45px 0 60px;
    }

    .faq-intro h2 {
        font-size: 30px;
    }

    .faq-intro p {
        font-size: 14px;
    }

    .faq-categories {
        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 8px;

        scrollbar-width: none;
    }

    .faq-categories::-webkit-scrollbar {
        display: none;
    }

    .faq-category-btn {
        flex: 0 0 auto;
    }

    .faq-question {
        padding: 17px;
    }

    .faq-question-text {
        gap: 10px;

        font-size: 14px;
    }

    .faq-number {
        width: 32px;
        height: 32px;

        font-size: 10px;
    }

    .faq-icon {
        width: 31px;
        height: 31px;

        font-size: 16px;
    }

    .faq-answer-inner {
        padding: 0 17px 0 59px;

        font-size: 13px;
    }

    .faq-item.open .faq-answer-inner {
        padding-bottom: 18px;
    }

    .faq-contact-section {
        margin-top: 50px;

        padding: 25px 20px;
    }

    .faq-contact-content {
        align-items: flex-start;
    }

    .faq-contact-icon {
        width: 48px;
        height: 48px;

        font-size: 20px;
    }

    .faq-contact-content h2 {
        font-size: 21px;
    }

    .faq-contact-content p {
        font-size: 12px;
    }

    .faq-contact-buttons {
        flex-direction: column;
    }

    .faq-contact-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 30px;
    }

    .faq-hero p {
        font-size: 14px;
    }

    .faq-search {
        height: 53px;
    }

    .faq-question-text {
        font-size: 13px;
    }

    .faq-number {
        display: none;
    }

    .faq-answer-inner {
        padding-left: 17px;
    }

    .faq-contact-section {
        border-radius: 12px;
    }
}
