/* Home: FAQ (home.php .faq-section--dark-redesign).
   Full-width split: dark sticky heading panel on the left (42%), cream answer list on the right
   with numbered hairline rows (CSS counter). Accordion + "Load More" JS unchanged (custom.js).
   home-faq.js adds .fq-anim / .fq-in for the reveal. Text unchanged. */

section.faq-section.faq-section--dark-redesign {
    --fq-g: max(24px, calc((100vw - 1320px) / 2 + 24px));
    position: relative;
    padding: 0 !important;
    overflow: visible;
    background: linear-gradient(90deg, #111114 0 42%, #f5f3ef 42% 100%) !important;
}

section.faq-section--dark-redesign > .container {
    display: grid !important;
    grid-template-columns: 42% 58%;
    align-items: start;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

section.faq-section--dark-redesign > .container > .row {
    margin: 0 !important;
    --bs-gutter-x: 0;
}

/* ---------- left: sticky heading ---------- */
section.faq-section--dark-redesign .section-head-bg {
    position: sticky;
    top: 110px;
    display: block !important;
    margin: 0 !important;
    padding: 120px 72px 120px var(--fq-g) !important;
    text-align: left !important;
    background: none !important;
}

section.faq-section--dark-redesign .section-head-bg > [class*="col-"] {
    width: 100% !important;
    max-width: 520px !important;
    padding: 0 !important;
}

section.faq-section--dark-redesign .section-head-bg::before {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-bottom: 28px;
    border-radius: 3px;
    background: #ff9f0a;
}

section.faq-section--dark-redesign .section-head-bg .h2 {
    margin: 0 0 22px !important;
    color: #fff !important;
    font-size: 56px !important;
    line-height: 1.05 !important;
    letter-spacing: -.03em;
    text-align: left !important;
}

section.faq-section--dark-redesign .section-head-bg .body-2 {
    max-width: 440px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, .68) !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
    text-align: left !important;
}

/* big faded question mark */
section.faq-section--dark-redesign .section-head-bg::after {
    content: "?";
    display: block;
    margin-top: 48px;
    color: rgba(255, 159, 10, .14);
    font-family: var(--bold);
    font-size: 220px;
    line-height: .8;
    pointer-events: none;
}

/* ---------- right: answer list ---------- */
section.faq-section--dark-redesign > .container > .row:last-child {
    display: block !important;
    padding: 120px var(--fq-g) 120px 72px !important;
}

section.faq-section--dark-redesign > .container > .row:last-child > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

section.faq-section--dark-redesign .faq-accordion {
    counter-reset: fq;
    gap: 0 !important;
    border-top: 1px solid #111;
}

section.faq-section--dark-redesign .faq-item {
    counter-increment: fq;
    position: relative;
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr);
    margin: 0 !important;
    padding: 28px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #ddd8ce !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    transition: background .3s ease !important;
}

section.faq-section--dark-redesign .faq-item::before {
    content: counter(fq, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 3px;
    color: #a39d92;
    font-family: var(--bold);
    font-size: 15px;
    letter-spacing: .04em;
    transition: color .3s ease;
}

/* orange bar grows on the open item */
section.faq-section--dark-redesign .faq-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 2px;
    background: #ff9f0a;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

section.faq-section--dark-redesign .faq-item.active::after {
    transform: scaleX(1);
}

section.faq-section--dark-redesign .faq-item.is-hidden {
    display: none !important;
}

section.faq-section--dark-redesign .faq-header,
section.faq-section--dark-redesign .faq-body {
    grid-column: 2;
}

section.faq-section--dark-redesign .faq-header {
    align-items: flex-start !important;
    gap: 24px !important;
}

section.faq-section--dark-redesign .faq-header h3 {
    color: #111 !important;
    font-size: 21px !important;
    line-height: 1.4 !important;
    transition: color .3s ease;
}

section.faq-section--dark-redesign .faq-item:hover .faq-header h3,
section.faq-section--dark-redesign .faq-item.active .faq-header h3,
section.faq-section--dark-redesign .faq-item.active::before {
    color: #ff9f0a !important;
}

section.faq-section--dark-redesign .faq-item:hover::before {
    color: #111;
}

/* toggle: round outline, turns solid orange and rotates when open */
section.faq-section--dark-redesign .faq-toggle {
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    border: 1px solid #cfc9bd !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: background .3s ease, border-color .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

section.faq-section--dark-redesign .faq-toggle i {
    color: #111 !important;
    font-size: 20px !important;
}

section.faq-section--dark-redesign .faq-item:hover .faq-toggle {
    border-color: #111 !important;
}

section.faq-section--dark-redesign .faq-item.active .faq-toggle {
    background: #ff9f0a !important;
    border-color: #ff9f0a !important;
    transform: rotate(180deg);
}

section.faq-section--dark-redesign .faq-item.active .faq-toggle i {
    color: #111 !important;
}

section.faq-section--dark-redesign .faq-body p {
    max-width: 720px;
    margin-top: 14px !important;
    color: #4a4a50 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* load more */
section.faq-section--dark-redesign .faq-load-more-wrap {
    margin-top: 40px !important;
    text-align: left !important;
}

section.faq-section--dark-redesign .faq-load-more {
    display: inline-flex !important;
    align-items: center;
    height: auto !important;
    padding: 16px 30px !important;
    border: 1px solid #111 !important;
    border-radius: 999px !important;
    background: #111 !important;
    color: #fff !important;
    font-family: var(--medium);
    font-size: 16px !important;
    box-shadow: none !important;
    transition: background .3s ease, color .3s ease, border-color .3s ease !important;
}

section.faq-section--dark-redesign .faq-load-more:hover {
    background: #ff9f0a !important;
    border-color: #ff9f0a !important;
    color: #111 !important;
}

/* ---------- reveal ---------- */
section.faq-section--dark-redesign.fq-anim .section-head-bg > *,
section.faq-section--dark-redesign.fq-anim .faq-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1) !important;
}

section.faq-section--dark-redesign.fq-anim .section-head-bg::before {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .8s cubic-bezier(.65, 0, .35, 1);
}

section.faq-section--dark-redesign.fq-anim.fq-in .section-head-bg > *,
section.faq-section--dark-redesign.fq-anim.fq-in .faq-item,
section.faq-section--dark-redesign.fq-anim.fq-in .section-head-bg::before {
    opacity: 1;
    transform: none;
}

section.faq-section--dark-redesign.fq-anim.fq-in .faq-item:nth-child(1) { transition-delay: .15s !important; }
section.faq-section--dark-redesign.fq-anim.fq-in .faq-item:nth-child(2) { transition-delay: .22s !important; }
section.faq-section--dark-redesign.fq-anim.fq-in .faq-item:nth-child(3) { transition-delay: .29s !important; }
section.faq-section--dark-redesign.fq-anim.fq-in .faq-item:nth-child(4) { transition-delay: .36s !important; }
section.faq-section--dark-redesign.fq-anim.fq-in .faq-item:nth-child(5) { transition-delay: .43s !important; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    section.faq-section--dark-redesign .section-head-bg {
        padding: 96px 48px 96px 24px !important;
    }

    section.faq-section--dark-redesign > .container > .row:last-child {
        padding: 96px 24px 96px 48px !important;
    }

    section.faq-section--dark-redesign .section-head-bg .h2 {
        font-size: 44px !important;
    }

    section.faq-section--dark-redesign .section-head-bg::after {
        font-size: 160px;
    }
}

@media (max-width: 991px) {
    section.faq-section.faq-section--dark-redesign {
        background: #f5f3ef !important;
    }

    section.faq-section--dark-redesign > .container {
        grid-template-columns: 1fr;
    }

    section.faq-section--dark-redesign .section-head-bg {
        position: static;
        padding: 72px 20px 64px !important;
        background: #111114 !important;
    }

    section.faq-section--dark-redesign .section-head-bg > [class*="col-"] {
        max-width: 640px !important;
    }

    section.faq-section--dark-redesign .section-head-bg::after {
        display: none;
    }

    section.faq-section--dark-redesign .section-head-bg .h2 {
        font-size: 36px !important;
    }

    section.faq-section--dark-redesign > .container > .row:last-child {
        padding: 48px 20px 72px !important;
    }
}

@media (max-width: 575px) {
    section.faq-section--dark-redesign .section-head-bg {
        padding: 56px 16px 48px !important;
    }

    section.faq-section--dark-redesign .section-head-bg .h2 {
        font-size: 30px !important;
    }

    section.faq-section--dark-redesign .section-head-bg .body-2 {
        font-size: 15px !important;
    }

    section.faq-section--dark-redesign > .container > .row:last-child {
        padding: 36px 16px 56px !important;
    }

    section.faq-section--dark-redesign .faq-item {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 22px 0 !important;
    }

    section.faq-section--dark-redesign .faq-header {
        gap: 14px !important;
    }

    section.faq-section--dark-redesign .faq-header h3 {
        font-size: 17px !important;
    }

    section.faq-section--dark-redesign .faq-toggle {
        flex-basis: 38px;
        width: 38px !important;
        height: 38px !important;
    }

    section.faq-section--dark-redesign .faq-body p {
        font-size: 15px !important;
    }

    section.faq-section--dark-redesign .faq-load-more {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    section.faq-section--dark-redesign .faq-item,
    section.faq-section--dark-redesign .faq-item::after,
    section.faq-section--dark-redesign .faq-toggle {
        transition: none !important;
    }
}
