/* ==========================================================================
   FAQ Section — Remote Hive Astra Child Theme
   BEM Convention: rh-faq-[element]
   White theme — sea blue/green accents — Astra overrides
   ========================================================================== */

/* ── Section Container ── */
.rh-faq {
    position: relative;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.rh-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06) 50%, transparent);
}

.rh-faq-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ── Left Column: Header ── */
.rh-faq-header {
    position: relative;
}

.rh-faq-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4A90D9;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 50px;
    background: rgba(74, 144, 217, 0.05);
}

.rh-faq-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #111111;
    margin: 0 0 16px 0;
}

.rh-faq-description {
    font-size: 18px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    max-width: 400px;
}

/* Decorative rings */
.rh-faq-decoration {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 120px;
    height: 120px;
    display: none;
}

.rh-faq-decoration__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(74, 144, 217, 0.12);
}

.rh-faq-decoration__ring--1 {
    width: 120px;
    height: 120px;
    top: 0;
    left: 0;
    animation: rh-faq-pulse 4s ease-in-out infinite;
}

.rh-faq-decoration__ring--2 {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    animation: rh-faq-pulse 4s ease-in-out 0.5s infinite;
}

.rh-faq-decoration__ring--3 {
    width: 40px;
    height: 40px;
    top: 40px;
    left: 40px;
    animation: rh-faq-pulse 4s ease-in-out 1s infinite;
}

@keyframes rh-faq-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.05); }
}


/* ── Right Column: Accordion ── */
.rh-faq-accordion {
    display: flex;
    flex-direction: column;
}

/* ── Individual FAQ Item ── */
.rh-faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease;
}

.rh-faq-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}


/* ══════════════════════════════════════════════════════════════
   ASTRA OVERRIDE — Kill ALL yellow/pink hover + card effects
   Nuclear specificity to beat every Astra default
   ══════════════════════════════════════════════════════════════ */

/* ── Kill card/background/shadow on FAQ items (THE FIX) ── */
.rh-faq .rh-faq-item,
.rh-faq .rh-faq-item:hover,
.rh-faq .rh-faq-item:focus,
.rh-faq .rh-faq-item:focus-within,
.rh-faq .rh-faq-item--active,
.rh-faq .rh-faq-item--active:hover,
body .rh-faq .rh-faq-item,
body .rh-faq .rh-faq-item:hover,
body .rh-faq .rh-faq-item--active,
body .rh-faq .rh-faq-item--active:hover,
body .rh-faq div.rh-faq-item,
body .rh-faq div.rh-faq-item--active {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* ── Kill card on panels and answers ── */
.rh-faq .rh-faq-item__panel,
.rh-faq .rh-faq-item--active .rh-faq-item__panel,
.rh-faq .rh-faq-item__answer,
.rh-faq .rh-faq-item--active .rh-faq-item__answer,
body .rh-faq .rh-faq-item__panel,
body .rh-faq .rh-faq-item__answer {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
}

/* ── Kill card on accordion wrapper ── */
.rh-faq .rh-faq-accordion,
body .rh-faq .rh-faq-accordion {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ── Kill ALL button hover effects ── */
.rh-faq .rh-faq-item__trigger,
.rh-faq .rh-faq-item__trigger:hover,
.rh-faq .rh-faq-item__trigger:focus,
.rh-faq .rh-faq-item__trigger:active,
.rh-faq .rh-faq-item__trigger:visited,
.rh-faq .rh-faq-item--active .rh-faq-item__trigger,
.rh-faq .rh-faq-item--active .rh-faq-item__trigger:hover,
.rh-faq .rh-faq-item--active .rh-faq-item__trigger:focus,
.rh-faq .rh-faq-item--active .rh-faq-item__trigger:active,
.rh-faq button.rh-faq-item__trigger,
.rh-faq button.rh-faq-item__trigger:hover,
.rh-faq button.rh-faq-item__trigger:focus,
.rh-faq button.rh-faq-item__trigger:active,
section.rh-faq button,
section.rh-faq button:hover,
section.rh-faq button:focus,
section.rh-faq button:active,
body .rh-faq button,
body .rh-faq button:hover,
body .rh-faq button:focus,
body .rh-faq button:active,
body section.rh-faq button,
body section.rh-faq button:hover {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    text-decoration: none !important;
}

/* ── Kill Astra .ast-button / .wp-element-button leaks ── */
.rh-faq .rh-faq-item__trigger.ast-button,
.rh-faq .rh-faq-item__trigger.wp-element-button,
.rh-faq .ast-button,
.rh-faq .wp-element-button,
body .rh-faq .ast-button,
body .rh-faq .wp-element-button {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}


/* ── Trigger / Question Button ── */
.rh-faq-item__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 24px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.rh-faq-item__trigger:focus-visible {
    outline: 2px solid #4A90D9 !important;
    outline-offset: 4px;
    border-radius: 4px !important;
}


/* ── Question Text ── */
.rh-faq .rh-faq-item__question,
.rh-faq .rh-faq-item .rh-faq-item__question,
.rh-faq .rh-faq-item__trigger .rh-faq-item__question,
.rh-faq .rh-faq-item__trigger:hover .rh-faq-item__question,
body .rh-faq h3.rh-faq-item__question,
body .rh-faq .rh-faq-item__trigger h3,
body .rh-faq .rh-faq-item__trigger:hover h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937 !important;
    margin: 0;
    transition: color 0.3s ease;
    background: transparent !important;
}

/* Active state — sea green text only, nothing else */
.rh-faq .rh-faq-item--active .rh-faq-item__question,
.rh-faq .rh-faq-item--active .rh-faq-item__trigger .rh-faq-item__question,
.rh-faq .rh-faq-item--active .rh-faq-item__trigger:hover .rh-faq-item__question,
body .rh-faq .rh-faq-item--active h3,
body .rh-faq .rh-faq-item--active .rh-faq-item__trigger h3 {
    color: #3CB8A0 !important;
}


/* ── Icon ── */
.rh-faq .rh-faq-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.rh-faq .rh-faq-item__trigger:hover .rh-faq-item__icon {
    background: rgba(74, 144, 217, 0.06) !important;
    border-color: rgba(74, 144, 217, 0.2) !important;
    color: #4A90D9;
}

.rh-faq .rh-faq-item--active .rh-faq-item__icon {
    background: rgba(60, 184, 160, 0.08) !important;
    border-color: rgba(60, 184, 160, 0.25) !important;
    color: #3CB8A0;
}

.rh-faq-item__icon-plus,
.rh-faq-item__icon-minus {
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.rh-faq-item__icon-minus {
    display: none;
}

.rh-faq-item--active .rh-faq-item__icon-plus {
    display: none;
}

.rh-faq-item--active .rh-faq-item__icon-minus {
    display: block;
}


/* ── Answer Panel ── */
.rh-faq-item__panel {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.rh-faq-item__panel[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.rh-faq-item--active .rh-faq-item__panel {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
}

.rh-faq-item__answer {
    padding: 0 0 24px 0;
}

.rh-faq-item__answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
    max-width: 620px;
}


/* ── Scroll Reveal Animation ── */
.rh-faq-header,
.rh-faq-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rh-faq-header.rh-faq--visible,
.rh-faq-item.rh-faq--visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   RESPONSIVE — Laptop (1024px – 1279px)
   ========================================================================== */
@media (min-width: 1024px) {
    .rh-faq-container {
        grid-template-columns: 2fr 3fr;
        gap: 60px;
        align-items: start;
    }

    .rh-faq-header {
        position: sticky;
        top: 120px;
    }

    .rh-faq-decoration {
        display: block;
    }

    .rh-faq-heading {
        font-size: 42px;
    }
}

@media (min-width: 1280px) {
    .rh-faq {
        padding: 120px 0;
    }

    .rh-faq-container {
        padding: 0 40px;
    }

    .rh-faq-heading {
        font-size: 48px;
    }
}


/* ==========================================================================
   RESPONSIVE — Tablet (768px – 1023px)
   ========================================================================== */
@media (max-width: 1023px) {
    .rh-faq {
        padding: 80px 0;
    }

    .rh-faq-heading {
        font-size: 36px;
    }

    .rh-faq-description {
        font-size: 16px;
        max-width: 100%;
    }

    .rh-faq .rh-faq-item__question {
        font-size: 17px;
    }
}


/* ==========================================================================
   RESPONSIVE — Mobile Large (480px – 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .rh-faq {
        padding: 64px 0;
    }

    .rh-faq-container {
        gap: 32px;
        padding: 0 20px;
    }

    .rh-faq-heading {
        font-size: 30px;
    }

    .rh-faq-label {
        font-size: 12px;
    }

    .rh-faq-item__trigger {
        padding: 20px 0;
        gap: 16px;
    }

    .rh-faq .rh-faq-item__question {
        font-size: 16px;
    }

    .rh-faq .rh-faq-item__icon {
        width: 32px;
        height: 32px;
    }

    .rh-faq-item__icon svg {
        width: 16px;
        height: 16px;
    }

    .rh-faq-item__answer p {
        font-size: 15px;
    }
}


/* ==========================================================================
   RESPONSIVE — Mobile Small (below 480px)
   ========================================================================== */
@media (max-width: 479px) {
    .rh-faq {
        padding: 48px 0;
    }

    .rh-faq-container {
        padding: 0 16px;
    }

    .rh-faq-heading {
        font-size: 26px;
    }

    .rh-faq-item__trigger {
        padding: 18px 0;
    }

    .rh-faq .rh-faq-item__question {
        font-size: 15px;
    }

    .rh-faq-item__answer {
        padding-bottom: 18px;
    }
}