/* =========================================================
   FAQ PAGE
========================================================= */

:root {
    --faq-brown: #673629;
    --faq-dark: #2f221c;
    --faq-gold: #c6915e;
    --faq-cream: #f8f4ef;
    --faq-paper: #fffdf9;
    --faq-text: #5d4f46;
    --faq-muted: #8b786c;
    --faq-border: rgba(47, 34, 28, 0.1);
}

body {
    background: var(--faq-cream);
    color: var(--faq-dark);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
}


/* =========================================================
   HERO
========================================================= */

.faq-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 105px;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(198, 145, 94, 0.18),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #fffaf4 0%,
            #f8f1e9 50%,
            #f4e9de 100%
        );
    border-bottom: 1px solid var(--faq-border);
}

.faq-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: center;
}

.faq-hero h1 {
    max-width: 760px;
    margin: 14px auto 22px;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.faq-hero-text {
    max-width: 680px;
    margin: 0 auto;
    color: var(--faq-text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.faq-hero-decoration {
    position: absolute;
    border: 1px solid rgba(103, 54, 41, 0.09);
    border-radius: 50%;
    pointer-events: none;
}

.faq-hero-decoration--one {
    top: -190px;
    right: -120px;
    width: 470px;
    height: 470px;
}

.faq-hero-decoration--two {
    bottom: -290px;
    left: -170px;
    width: 580px;
    height: 580px;
}


/* =========================================================
   SEARCH
========================================================= */

.faq-search-wrapper {
    max-width: 710px;
    margin: 42px auto 0;
}

.faq-search {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: 0 62px 0 24px;
    border: 1px solid rgba(103, 54, 41, 0.14);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow:
        0 22px 55px rgba(47, 34, 28, 0.1),
        0 4px 12px rgba(47, 34, 28, 0.04);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.faq-search:focus-within {
    border-color: rgba(103, 54, 41, 0.45);
    box-shadow:
        0 26px 65px rgba(47, 34, 28, 0.13),
        0 0 0 4px rgba(198, 145, 94, 0.13);
    transform: translateY(-2px);
}

.faq-search > i {
    margin-right: 16px;
    color: var(--faq-brown);
    font-size: 1.05rem;
}

.faq-search input {
    width: 100%;
    min-width: 0;
    padding: 20px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--faq-dark);
    font: inherit;
    font-size: 1rem;
}

.faq-search input::placeholder {
    color: #9c8c81;
}

.faq-search-clear {
    position: absolute;
    top: 50%;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(103, 54, 41, 0.08);
    color: var(--faq-brown);
    cursor: pointer;
    transform: translateY(-50%);
}

.faq-search-clear:hover {
    background: var(--faq-brown);
    color: #ffffff;
}

.faq-search-status {
    min-height: 22px;
    margin-top: 13px;
    color: var(--faq-muted);
    font-size: 0.88rem;
    text-align: center;
}


/* =========================================================
   POPULAR QUESTIONS
========================================================= */

.faq-popular-section {
    padding: 90px 0;
    background: #fffdf9;
    border-bottom: 1px solid var(--faq-border);
}

.faq-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    align-items: end;
    gap: 50px;
    margin-bottom: 42px;
}

.faq-section-heading h2 {
    margin-top: 10px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.05;
}

.faq-section-heading > p {
    color: var(--faq-text);
    line-height: 1.8;
}

.faq-popular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.faq-popular-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--faq-border);
    border-radius: 22px;
    background: var(--faq-cream);
    color: var(--faq-dark);
    text-decoration: none;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.faq-popular-card::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -75px;
    width: 155px;
    height: 155px;
    border: 1px solid rgba(103, 54, 41, 0.09);
    border-radius: 50%;
}

.faq-popular-card:hover {
    border-color: rgba(103, 54, 41, 0.25);
    background: #fffaf5;
    box-shadow: 0 22px 50px rgba(47, 34, 28, 0.09);
    transform: translateY(-7px);
}

.faq-popular-number {
    color: var(--faq-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.faq-popular-card h3 {
    max-width: 280px;
    margin: 34px 0 28px;
    font-size: 1.35rem;
    line-height: 1.35;
}

.faq-popular-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: auto;
    border-radius: 50%;
    background: var(--faq-brown);
    color: #ffffff;
    transition: transform 0.25s ease;
}

.faq-popular-card:hover .faq-popular-arrow {
    transform: translateX(5px);
}


/* =========================================================
   MAIN FAQ SECTION
========================================================= */

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

.faq-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    margin-bottom: 70px;
}

.faq-category-button {
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid rgba(103, 54, 41, 0.14);
    border-radius: 999px;
    background: transparent;
    color: var(--faq-text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;
}

.faq-category-button:hover {
    border-color: var(--faq-brown);
    color: var(--faq-brown);
    transform: translateY(-2px);
}

.faq-category-button.is-active {
    border-color: var(--faq-brown);
    background: var(--faq-brown);
    color: #ffffff;
}

.faq-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 70px;
}


/* =========================================================
   FAQ SIDEBAR
========================================================= */

.faq-sidebar {
    position: sticky;
    top: 120px;
}

.faq-sidebar-card {
    padding: 30px;
    border: 1px solid rgba(103, 54, 41, 0.11);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            #fffaf4,
            #f4e9df
        );
}

.faq-sidebar-label {
    margin-bottom: 18px;
    color: var(--faq-brown);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.faq-sidebar-card h2 {
    margin-bottom: 16px;
    font-size: 1.7rem;
    line-height: 1.2;
}

.faq-sidebar-card > p:not(.faq-sidebar-label) {
    color: var(--faq-text);
    font-size: 0.92rem;
    line-height: 1.8;
}

.faq-sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--faq-brown);
    font-weight: 700;
    text-decoration: none;
}

.faq-sidebar-link i {
    transition: transform 0.2s ease;
}

.faq-sidebar-link:hover i {
    transform: translateX(5px);
}


/* =========================================================
   FAQ GROUPS
========================================================= */

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

.faq-group {
    margin-bottom: 80px;
    scroll-margin-top: 130px;
}

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

.faq-group-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.faq-group-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(198, 145, 94, 0.16);
    color: var(--faq-brown);
    font-size: 1.1rem;
}

.faq-group-kicker {
    margin-bottom: 5px;
    color: var(--faq-gold);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.faq-group-heading h2 {
    font-size: 2rem;
    line-height: 1.1;
}


/* =========================================================
   ACCORDION
========================================================= */

.faq-accordion {
    border-top: 1px solid var(--faq-border);
}

.faq-item {
    border-bottom: 1px solid var(--faq-border);
    scroll-margin-top: 125px;
}

.faq-item[hidden],
.faq-group[hidden] {
    display: none;
}

.faq-question-heading {
    margin: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    padding: 25px 3px;
    border: 0;
    background: transparent;
    color: var(--faq-dark);
    font: inherit;
    font-size: 1.03rem;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.22s ease,
        padding-left 0.22s ease;
}

.faq-question:hover {
    padding-left: 8px;
    color: var(--faq-brown);
}

.faq-question:focus-visible {
    outline: 3px solid rgba(198, 145, 94, 0.42);
    outline-offset: 4px;
    border-radius: 8px;
}

.faq-question-icon {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(103, 54, 41, 0.17);
    border-radius: 50%;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.faq-question-icon::before,
.faq-question-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--faq-brown);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.faq-question-icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.faq-question[aria-expanded="true"] {
    color: var(--faq-brown);
}

.faq-question[aria-expanded="true"] .faq-question-icon {
    border-color: var(--faq-brown);
    background: var(--faq-brown);
    transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] .faq-question-icon::before,
.faq-question[aria-expanded="true"] .faq-question-icon::after {
    background: #ffffff;
}

.faq-question[aria-expanded="true"] .faq-question-icon::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    opacity: 0;
    transition:
        grid-template-rows 0.35s ease,
        opacity 0.25s ease,
        visibility 0.35s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-item.is-open .faq-answer-inner {
    padding: 0 58px 26px 3px;
}

.faq-answer p,
.faq-answer li {
    color: var(--faq-text);
    line-height: 1.85;
}

.faq-answer p {
    margin-bottom: 15px;
}

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

.faq-answer ul,
.faq-answer ol {
    margin: 14px 0 18px 22px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: var(--faq-brown);
    font-weight: 700;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}


/* =========================================================
   SEARCH HIGHLIGHT
========================================================= */

.faq-search-highlight {
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(198, 145, 94, 0.34);
    color: inherit;
}


/* =========================================================
   NO RESULTS
========================================================= */

.faq-no-results {
    padding: 65px 35px;
    border: 1px solid var(--faq-border);
    border-radius: 24px;
    background: var(--faq-paper);
    text-align: center;
}

.faq-no-results-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: rgba(198, 145, 94, 0.16);
    color: var(--faq-brown);
    font-size: 1.45rem;
}

.faq-no-results h2 {
    margin-bottom: 13px;
    font-size: 2rem;
}

.faq-no-results p {
    max-width: 500px;
    margin: 0 auto 26px;
    color: var(--faq-text);
    line-height: 1.8;
}


/* =========================================================
   HELP CTA
========================================================= */

.faq-help-section {
    padding: 0 0 110px;
}

.faq-help-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
    min-height: 440px;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(198, 145, 94, 0.23),
            transparent 28%
        ),
        var(--faq-brown);
    color: #ffffff;
    box-shadow: 0 28px 70px rgba(47, 34, 28, 0.18);
}

.faq-help-content {
    position: relative;
    z-index: 2;
    align-self: center;
    max-width: 680px;
    padding: 65px;
}

.faq-help-content .eyebrow {
    color: #e6be91;
}

.faq-help-content h2 {
    margin: 13px 0 18px;
    color: #ffffff;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
}

.faq-help-content > p:not(.eyebrow) {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.85;
}

.faq-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.button--light {
    padding: 10px 3em;
    border-color: #ffffff;
    background: #ffffff;
    color: var(--faq-brown);
    border-radius: 9px;
}

.button--light:hover {
    border-color: #f3e1cc;
    background: #f3e1cc;
    color: var(--faq-brown);
}

.button--outline-light {
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: transparent;
    color: #ffffff;
    padding: 10px 3em;
    border-radius: 9px;
}

.button--outline-light:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.faq-help-artwork {
    position: relative;
    min-height: 440px;
}

.faq-help-artwork-box,
.faq-help-artwork-card,
.faq-help-artwork-tag {
    position: absolute;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 48px rgba(34, 20, 15, 0.18);
}

.faq-help-artwork-box {
    right: 45px;
    bottom: 54px;
    width: 250px;
    height: 190px;
    border-radius: 18px;
    background: #c99a69;
    transform: rotate(-6deg);
}

.faq-help-artwork-box::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 28px;
    width: 95px;
    height: 2px;
    background: rgba(103, 54, 41, 0.6);
}

.faq-help-artwork-card {
    top: 58px;
    right: 90px;
    width: 180px;
    height: 112px;
    border-radius: 12px;
    background: #f6eee5;
    transform: rotate(8deg);
}

.faq-help-artwork-tag {
    top: 163px;
    right: 28px;
    width: 76px;
    height: 120px;
    border-radius: 8px;
    background: #2f221c;
    transform: rotate(12deg);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .faq-sidebar {
        position: relative;
        top: auto;
    }

    .faq-sidebar-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 35px;
    }

    .faq-sidebar-card .faq-sidebar-label,
    .faq-sidebar-card h2,
    .faq-sidebar-card > p {
        grid-column: 1;
    }

    .faq-sidebar-link {
        grid-column: 2;
        grid-row: 1 / span 3;
        margin-top: 0;
        white-space: nowrap;
    }

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

    .faq-help-artwork {
        display: none;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

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

    .faq-popular-card {
        min-height: 190px;
    }

    .faq-section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .faq-hero {
        padding: 75px 0 70px;
    }

    .faq-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .faq-hero-text {
        font-size: 0.98rem;
    }

    .faq-search-wrapper {
        margin-top: 32px;
    }

    .faq-search {
        min-height: 60px;
        padding-left: 19px;
        border-radius: 16px;
    }

    .faq-search input {
        font-size: 0.94rem;
    }

    .faq-popular-section,
    .faq-main-section {
        padding: 65px 0;
    }

    .faq-popular-card {
        min-height: 180px;
        padding: 25px;
    }

    .faq-category-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 9px;
        margin-right: calc(var(--container-padding, 20px) * -1);
        margin-bottom: 50px;
        padding-right: 20px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .faq-category-filters::-webkit-scrollbar {
        display: none;
    }

    .faq-category-button {
        flex: 0 0 auto;
    }

    .faq-sidebar-card {
        display: block;
    }

    .faq-sidebar-link {
        display: inline-flex;
        margin-top: 22px;
    }

    .faq-group {
        margin-bottom: 60px;
        scroll-margin-top: 95px;
    }

    .faq-group-heading h2 {
        font-size: 1.7rem;
    }

    .faq-question {
        gap: 16px;
        padding: 22px 2px;
        font-size: 0.96rem;
    }

    .faq-item.is-open .faq-answer-inner {
        padding: 0 2px 23px;
    }

    .faq-help-section {
        padding-bottom: 70px;
    }

    .faq-help-card {
        min-height: auto;
        border-radius: 24px;
    }

    .faq-help-content {
        padding: 45px 25px;
    }

    .faq-help-actions {
        flex-direction: column;
    }

    .faq-help-actions .button {
        justify-content: center;
        width: 100%;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .faq-search,
    .faq-search-clear,
    .faq-popular-card,
    .faq-popular-arrow,
    .faq-category-button,
    .faq-sidebar-link i,
    .faq-question,
    .faq-question-icon,
    .faq-question-icon::before,
    .faq-question-icon::after,
    .faq-answer {
        transition: none;
    }

}