/* ================================================================
   Global.Css
   Global rules: Astra mobile header nav, SVG icon fix, global FAQ. Every page.
   Source: additional-css-v3.5.css sections L53-64, § 0  ASTRA SVG ICON FIX, § 1  GLOBAL FAQ / HOMEPAGE FAQ WRAPPER
   This file is enqueued from astra_child_enqueue_styles() in
   functions.php. Keep it out of the Customizer - it is versioned in git.
   ================================================================ */

/* UCSS-defensive Astra mobile header */
.ast-header-break-point .ast-mobile-header-wrap .ast-mobile-header-content{background-color:var(--ast-global-color-4)}
body.ast-main-header-nav-open.ast-header-break-point #ast-desktop-header .ast-desktop-header-content,
body.ast-main-header-nav-open.ast-header-break-point .ast-mobile-header-wrap .ast-mobile-header-content{display:block !important}
.ast-main-header-nav-open .main-header-bar{padding-bottom:0}
.ast-header-break-point .ast-builder-menu-1{display:flex}
.ast-header-break-point .ast-builder-menu{width:100%}
.ast-header-break-point .main-header-menu .sub-menu{background-color:var(--ast-global-color-5);position:static;opacity:1;visibility:visible;border:0;width:auto}
.ast-header-break-point .main-header-menu .sub-menu .menu-item .menu-link{padding:0 20px}
.ast-header-break-point .main-header-bar-navigation .menu-item-has-children>.ast-menu-toggle{display:inline-block;position:absolute;font-size:inherit;top:0;right:20px;cursor:pointer;padding:0 .907em;font-weight:400;line-height:inherit}
.ast-header-break-point .main-header-bar-navigation .menu-item-has-children>.ast-menu-toggle>.ast-icon.icon-arrow{pointer-events:none}
.ast-header-break-point .ast-builder-menu-1 .menu-item.menu-item-has-children>.ast-menu-toggle{top:0}

/* ================================================================
   § 0  ASTRA SVG ICON FIX — MUST BE FIRST
   Astra injects: svg { max-width: 100%; height: auto; }
   This collapses custom SVG icons. Override globally scoped to
   wrapper classes only (safe — no global bleed).
================================================================ */

.bgw-si svg,
.bgw-psi svg,
.bg-faq-icon,
.bg-wrap .bg-faq-icon,
.bg-wrap .bg-faq-chevron,
.bg-article .bg-faq-icon,
.strata-post-wrap .strata-faq-icon,
.bgw-page .bga-icon,
.bgw-page .bgw-lang-btn svg {
    max-width: none !important;
    height: auto !important;
    flex-shrink: 0;
}



/* ================================================================
   § 1  GLOBAL FAQ / HOMEPAGE FAQ WRAPPER
   Only active on pages that have #bg-faq-container in HTML.
================================================================ */

/* FAQ TOGGLE (legacy — older posts using JS-based toggle) */
.faq-content,
.faq-answer {
    display: none !important;
}
.faq-content.active,
.faq-answer.active {
    display: block !important;
}

/* FAQ — Icon Sizing & Layout */
#bg-faq-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#bg-faq-container .bg-faq-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.025em;
}

#bg-faq-container .bg-faq-list {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#bg-faq-container .bg-faq-item {
    border-bottom: 1px solid #e2e8f0;
}

#bg-faq-container .bg-faq-item:last-child {
    border-bottom: none;
}

/* FAQ Question Row — flex layout keeps icon + text on same line */
#bg-faq-container .bg-faq-question {
    padding: 1.5rem;
    list-style: none;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    -webkit-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

#bg-faq-container .bg-faq-question::-webkit-details-marker,
#bg-faq-container .bg-faq-question::marker {
    display: none;
}

#bg-faq-container .bg-faq-question:hover {
    color: #1d4ed8;
    background-color: #f8fafc;
}

/* FAQ Icon — Astra SVG override (3-layer defence) */
#bg-faq-container .bg-faq-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    color: #64748b !important;
    -webkit-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-flex: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    max-width: none !important;
}

#bg-faq-container details[open] .bg-faq-icon {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
    color: #3b82f6 !important;
}

/* FAQ Answer */
#bg-faq-container .bg-faq-answer {
    padding: 0 1.5rem 1.75rem;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #64748b;
    -webkit-animation: bgFaqFadeIn 0.4s ease-in-out;
    -ms-animation: bgFaqFadeIn 0.4s ease-in-out;
    animation: bgFaqFadeIn 0.4s ease-in-out;
}

@keyframes bgFaqFadeIn {
    from { opacity: 0; -webkit-transform: translateY(-4px); -ms-transform: translateY(-4px); transform: translateY(-4px); }
    to { opacity: 1; -webkit-transform: translateY(0); -ms-transform: translateY(0); transform: translateY(0); }
}

/* FAQ Mobile */
@media (max-width: 640px) {
    #bg-faq-container .bg-faq-title { font-size: 1.75rem; }
    #bg-faq-container .bg-faq-question { padding: 1.25rem; font-size: 1rem; }
    #bg-faq-container .bg-faq-icon { width: 18px !important; height: 18px !important; }
}



/* Skip link accessibility styling (preserves gold brand theme focus) */
.skip-link {
    position: absolute;
    left: -9999em;
    z-index: 999999;
    padding: 8px 16px;
    background-color: #f5c842;
    color: #0f2940;
    text-decoration: none;
}
.skip-link:focus {
    left: auto;
    top: auto;
    width: auto;
    height: auto;
}

/* Contact page FAQ panel background styling */
.bg-faq-answer {
    background: #f8fafc;
    padding: 4px 20px 20px;
    font-size: 15px;
    line-height: 1.8;
}