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

.hp-faq-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 48px 80px;
}

/* ── Hero ── */
.hp-faq-page__hero {
    text-align: center;
    margin-bottom: 48px;
}

.hp-faq-page__hero-icon {
    margin-bottom: 16px;
}

.hp-faq-page__hero-icon .hp-ico {
    width: 36px;
    height: 36px;
}

.hp-faq-page__title {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 12px;
    line-height: 1.2;
}

.hp-faq-page__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-body);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Search ── */
.hp-faq-search {
    position: relative;
    margin-bottom: 32px;
}

.hp-faq-search__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    line-height: 0;
}

.hp-faq-search__icon .hp-ico {
    width: 20px !important;
    height: 20px !important;
}

.hp-faq-search__input,
.hp-faq-page .hp-faq-search__input,
.entry-content .hp-faq-search__input,
input.hp-faq-search__input {
    width: 100% !important;
    padding: 14px 14px 14px 44px !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-base) !important;
    line-height: 1.5 !important;
    color: var(--text-primary) !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--border-input) !important;
    border-radius: var(--radius-sm) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none !important;
}

.hp-faq-search__input::placeholder {
    color: var(--text-muted) !important;
}

.hp-faq-search__input:focus,
.hp-faq-page .hp-faq-search__input:focus,
input.hp-faq-search__input:focus {
    border-color: var(--sunset-mid) !important;
    box-shadow: 0 0 0 3px rgba(236, 169, 110, 0.12) !important;
}

/* ── Category Pills ── */
.hp-faq-page__filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.hp-faq-page__filters::-webkit-scrollbar {
    display: none;
}
.hp-faq-page__filters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hp-faq-page__pill {
    flex-shrink: 0;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--green-dark);
    background: transparent;
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hp-faq-page__pill:hover {
    border-color: var(--sunset-light);
}

.hp-faq-page__pill.is-active {
    background: var(--gradient-sunset);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(236, 169, 110, 0.3);
}

/* ── FAQ Groups ── */
.hp-faq-group {
    margin-bottom: 40px;
}

.hp-faq-group__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Sunset accent bar */
.hp-faq-group__title::before {
    content: '';
    display: block;
    width: 3px;
    height: 24px;
    background: var(--gradient-sunset);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── FAQ Items (Accordion) ── */
.hp-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

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

/* Question row */
.hp-faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--green-dark);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s ease;
    gap: 16px;
}

.hp-faq-item__q:hover {
    background: rgba(244, 192, 138, 0.06);
}

/* Toggle icon */
.hp-faq-item__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(244, 192, 138, 0.15), rgba(236, 169, 110, 0.08));
    font-size: 18px;
    font-weight: 300;
    color: var(--sunset-deep);
    transition: transform 0.35s ease, background 0.2s ease;
    line-height: 1;
}

.hp-faq-item.is-open .hp-faq-item__icon {
    transform: rotate(45deg);
    background: var(--gradient-sunset);
    color: #fff;
}

/* Answer panel */
.hp-faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.hp-faq-item.is-open .hp-faq-item__a {
    max-height: 500px;
}

.hp-faq-item__a p {
    padding: 0 24px 20px;
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-sub);
    color: var(--text-body);
    line-height: 1.7;
}

/* ── No Results ── */
.hp-faq-page__no-results {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.6;
}

.hp-faq-page__no-results a {
    color: var(--sunset-deep);
    text-decoration: underline;
    text-decoration-color: rgba(232, 152, 88, 0.3);
}

/* ── CTA Section ── */
.hp-faq-page__cta {
    text-align: center;
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-default);
}

.hp-faq-page__cta-title {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 8px;
}

.hp-faq-page__cta-sub {
    font-family: var(--font-body);
    font-size: var(--text-sub);
    color: var(--text-muted);
    margin: 0 0 24px;
}

/* ── Quote ── */
.hp-faq-page__quote {
    text-align: center;
    padding: var(--space-3xl) 40px;
    position: relative;
}

.hp-faq-page__quote::before {
    content: '\201C';
    font-family: var(--font-body);
    font-size: 120px;
    color: var(--sunset-light);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    pointer-events: none;
}

.hp-faq-page__quote-text {
    font-family: var(--font-body);
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 400;
    font-style: italic;
    color: var(--green-dark);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.hp-faq-page__quote-author {
    display: block;
    font-style: normal;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Astra Overrides ── */
.page-template-page-faq .entry-content,
.page-template-page-faq .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.page-template-page-faq #primary {
    padding: 0 !important;
    margin: 0 !important;
}

/* Kill Astra blue on ALL interactive elements */
.hp-faq-page button,
.hp-faq-page button:hover,
.hp-faq-page button:focus,
.hp-faq-page button:active,
.hp-faq-page button:visited {
    color: inherit !important;
    outline: none !important;
    box-shadow: none;
}

.hp-faq-page a,
.hp-faq-page a:hover,
.hp-faq-page a:focus,
.hp-faq-page a:active,
.hp-faq-page a:visited,
.entry-content .hp-faq-page a,
.entry-content .hp-faq-page a:hover,
.entry-content .hp-faq-page a:focus,
.ast-single-post .hp-faq-page a,
.ast-single-post .hp-faq-page a:hover {
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Pills — default */
.hp-faq-page .hp-faq-page__pill,
.hp-faq-page .hp-faq-page__pill:hover,
.hp-faq-page .hp-faq-page__pill:focus,
.hp-faq-page .hp-faq-page__pill:active,
.entry-content .hp-faq-page__pill,
.entry-content .hp-faq-page__pill:hover,
button.hp-faq-page__pill,
button.hp-faq-page__pill:hover,
button.hp-faq-page__pill:focus {
    color: var(--green-dark) !important;
    background: transparent !important;
    border-color: var(--border-default) !important;
}

button.hp-faq-page__pill:hover,
.hp-faq-page .hp-faq-page__pill:hover {
    border-color: var(--sunset-light) !important;
}

/* Pills — active */
.hp-faq-page .hp-faq-page__pill.is-active,
.hp-faq-page .hp-faq-page__pill.is-active:hover,
.hp-faq-page .hp-faq-page__pill.is-active:focus,
.entry-content .hp-faq-page__pill.is-active,
button.hp-faq-page__pill.is-active,
button.hp-faq-page__pill.is-active:hover,
button.hp-faq-page__pill.is-active:focus {
    color: #fff !important;
    background: var(--gradient-sunset) !important;
    border-color: transparent !important;
    box-shadow: 0 2px 12px rgba(236, 169, 110, 0.3) !important;
}

/* Accordion question button */
.hp-faq-page .hp-faq-item__q,
.hp-faq-page .hp-faq-item__q:hover,
.hp-faq-page .hp-faq-item__q:focus,
.hp-faq-page .hp-faq-item__q:active,
.entry-content .hp-faq-item__q,
.entry-content .hp-faq-item__q:hover,
button.hp-faq-item__q,
button.hp-faq-item__q:hover,
button.hp-faq-item__q:focus {
    color: var(--green-dark) !important;
    outline: none !important;
    background: transparent !important;
}

button.hp-faq-item__q:hover,
.hp-faq-page .hp-faq-item__q:hover {
    background: rgba(244, 192, 138, 0.06) !important;
}

/* Toggle icon */
.hp-faq-page .hp-faq-item__icon {
    color: var(--sunset-deep) !important;
}

.hp-faq-page .hp-faq-item.is-open .hp-faq-item__icon {
    color: #fff !important;
}

/* No results link */
.hp-faq-page .hp-faq-page__no-results a,
.hp-faq-page .hp-faq-page__no-results a:hover,
.entry-content .hp-faq-page__no-results a {
    color: var(--sunset-deep) !important;
    text-decoration: underline !important;
}

/* CTA button */
.hp-faq-page .hp-faq-page__cta-btn,
.hp-faq-page .hp-faq-page__cta-btn:hover,
.hp-faq-page .hp-faq-page__cta-btn:visited,
.hp-faq-page .hp-faq-page__cta-btn:focus,
.entry-content .hp-faq-page__cta-btn,
a.hp-faq-page__cta-btn,
a.hp-faq-page__cta-btn:hover,
a.hp-faq-page__cta-btn:visited {
    color: #fff !important;
}

/* ── Responsive: Tablet (max-width: 900px) ── */
@media (max-width: 900px) {
    .hp-faq-page {
        padding: 48px 32px 60px;
    }

    .hp-faq-page__filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 4px;
    }
}

/* ── Responsive: Mobile (max-width: 480px) ── */
@media (max-width: 480px) {
    .hp-faq-page {
        padding: 36px 20px 48px;
    }

    .hp-faq-item__q {
        padding: 16px 18px;
        font-size: var(--text-sub);
    }

    .hp-faq-item__a p {
        padding: 0 18px 16px;
    }

    .hp-faq-group__title {
        font-size: var(--text-base);
    }

    .hp-faq-page__quote {
        padding: var(--space-2xl) 20px;
    }

    .hp-faq-page__quote-text {
        font-size: 18px;
    }
}
