/*
 * Shredder2u — FAQ Page Styles
 * File: shr-faq-page.css
 * All rules scoped to .shr-faq-wrap — zero global side effects
 * V1.1
 */

.shr-faq-wrap * {
    box-sizing: border-box;
}

.shr-faq-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 48px 64px;
    font-family: inherit;
}

/* ── Hide default WP page title ── */
.faq .entry-title,
.page-id-1446 .entry-title {
    display: none !important;
}

/* ── Kill empty <p> gap WordPress injects ── */
.faq .entry-content>p:empty,
.page-id-1446 .entry-content>p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* ── Kill entry-content top padding ── */
.faq .entry-content,
.page-id-1446 .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =============================================================
   HERO — full-bleed, matches contact + about pages
   ============================================================= */

.shr-faq-hero {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 40px;

    background: linear-gradient(135deg, #111d2e 0%, #1a2e45 50%, #0f1923 100%);
    padding: 56px 8vw 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    overflow: hidden;
}

/* Dot-grid texture */
.shr-faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}

/* Red glow line at bottom */
.shr-faq-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, #e63946 35%, #e63946 65%, transparent 95%);
    z-index: 1;
}

.shr-faq-hero__text {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.shr-faq-hero__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #e63946;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shr-faq-hero__eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: #e63946;
    flex-shrink: 0;
}

.shr-faq-hero__title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
}

.shr-faq-hero__title .highlight {
    color: #e63946;
}

.shr-faq-hero__body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin: 0;
}

/* Right side — stat pills */
.shr-faq-hero__stats {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shr-faq-hero__stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    min-width: 220px;
}

.shr-faq-hero__stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.shr-faq-hero__stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shr-faq-hero__stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.shr-faq-hero__stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* Safety net — hide any <p> or <br> wpautop injects
   between flex/grid children inside the FAQ hero and tabs */
.shr-faq-hero>p,
.shr-faq-hero__stats>p,
.shr-faq-hero__stat>p,
.shr-faq-tabs>p,
.shr-faq-group>p,
.shr-faq-list>p,
.shr-faq-item>p,
.shr-faq-item__body>p,
.shr-faq-item__body-inner>p {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.shr-faq-hero br,
.shr-faq-hero__stats br,
.shr-faq-tabs br,
.shr-faq-group br,
.shr-faq-item__body br {
    display: none !important;
}

/* =============================================================
   CATEGORY FILTER TABS
   ============================================================= */

.shr-faq-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.shr-faq-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid #e8edf2;
    background: #fff;
    color: #6b7280;
    transition: all 0.18s ease;
    user-select: none;
}

.shr-faq-tab:hover {
    border-color: #e63946;
    color: #e63946;
}

.shr-faq-tab.active {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
}

.shr-faq-tab__icon {
    font-size: 15px;
}

.shr-faq-tab__count {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 1px 7px;
    color: inherit;
}

.shr-faq-tab.active .shr-faq-tab__count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.shr-faq-tab:not(.active) .shr-faq-tab__count {
    background: #f0f2f5;
    color: #6b7280;
}

/* =============================================================
   FAQ GROUPS & ACCORDION
   ============================================================= */

.shr-faq-group {
    margin-bottom: 36px;
}

/* hidden when filtered out */
.shr-faq-group.hidden {
    display: none;
}

.shr-faq-group__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8edf2;
    position: relative;
}

.shr-faq-group__header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #e63946;
}

.shr-faq-group__icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: linear-gradient(135deg, #fff0f1, #ffe0e2);
    border: 1px solid rgba(230, 57, 70, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.shr-faq-group__title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #111d2e !important;
    margin: 0 !important;
}

.shr-faq-group__count {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e63946;
    background: #fff0f1;
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 20px;
    padding: 3px 10px;
}

/* ── Accordion items ── */
.shr-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shr-faq-item {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shr-faq-item.open {
    border-color: #e63946;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.1);
}

.shr-faq-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.shr-faq-item__trigger:hover {
    background: #fafafa;
}

.shr-faq-item.open .shr-faq-item__trigger {
    background: #fff8f8;
}

.shr-faq-item__question {
    font-size: 0.97rem;
    font-weight: 700;
    color: #111d2e;
    line-height: 1.4;
    flex: 1;
}

.shr-faq-item.open .shr-faq-item__question {
    color: #e63946;
}

/* ── Custom chevron icon ── */
.shr-faq-item__chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f2f5;
    border: 1px solid #e8edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.3s, border-color 0.2s;
}

.shr-faq-item__chevron svg {
    width: 14px;
    height: 14px;
    stroke: #6b7280;
    transition: stroke 0.2s, transform 0.3s;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shr-faq-item.open .shr-faq-item__chevron {
    background: #e63946;
    border-color: #e63946;
    transform: rotate(0deg);
}

.shr-faq-item.open .shr-faq-item__chevron svg {
    stroke: #fff;
    transform: rotate(180deg);
}

/* ── Answer panel ── */
.shr-faq-item__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.shr-faq-item.open .shr-faq-item__body {
    grid-template-rows: 1fr;
}

.shr-faq-item__body-inner {
    overflow: hidden;
}

.shr-faq-item__answer {
    padding: 0 24px 22px;
    font-size: 0.93rem;
    color: #4b5563;
    line-height: 1.8;
    border-top: 1px solid #f0f2f5;
    padding-top: 16px;
}

.shr-faq-item__answer p {
    margin: 0 0 10px;
}

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

.shr-faq-item__answer ol,
.shr-faq-item__answer ul {
    padding-left: 20px;
    margin: 8px 0;
}

.shr-faq-item__answer li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.shr-faq-item__answer strong {
    color: #111d2e;
    font-weight: 700;
}

/* ── Answer footer — still need help? ── */
.shr-faq-item__footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e8edf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.shr-faq-item__helpful {
    font-size: 0.8rem;
    color: #9ca3af;
}

.shr-faq-item__contact-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e63946;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.shr-faq-item__contact-link:hover {
    text-decoration: underline;
}

/* Kill WordPress wpautop empty <p> injections inside FAQ */
.shr-faq-wrap p:empty,
.shr-faq-item__body p:empty,
.shr-faq-item__body-inner p:empty,
.shr-faq-item__trigger p:empty,
.shr-faq-tabs p:empty,
.shr-faq-group p:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =============================================================
   CTA BAND
   ============================================================= */

.shr-faq-cta {
    background: linear-gradient(135deg, #e63946 30%, #c1121f 100%);
    border-radius: 10px;
    padding: 44px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 48px;
}

body.faq .shr-faq-cta__text h3 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 8px !important;
}

body.faq .shr-faq-cta__text p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.shr-faq-cta__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.shr-faq-btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
}

.shr-faq-btn--white {
    background: #fff;
    color: #e63946 !important;
    border: 2px solid #fff;
}

.shr-faq-btn--white:hover {
    background: transparent;
    color: #fff !important;
}

.shr-faq-btn--outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.shr-faq-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 768px) {
    .shr-faq-hero {
        flex-direction: column;
        padding: 44px 6vw 40px;
    }

    .shr-faq-hero__stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .shr-faq-hero__stat {
        min-width: 0;
        flex: 1 1 160px;
    }

    .shr-faq-hero__title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .shr-faq-wrap {
        padding: 0 16px 40px;
    }

    .shr-faq-item__trigger {
        padding: 16px 18px;
    }

    .shr-faq-item__answer {
        padding: 0 18px 18px;
        padding-top: 14px;
    }

    .shr-faq-item__question {
        font-size: 0.92rem;
    }

    .shr-faq-cta {
        padding: 32px 22px;
        flex-direction: column;
    }

    .shr-faq-cta__btns {
        width: 100%;
    }

    .shr-faq-btn {
        width: 100%;
        text-align: center;
    }

    .shr-faq-hero__stats {
        display: none;
    }
}