/**
 * Aradel — Why Invest Points Module
 * File: /wp-content/mu-plugins/aradel-why-invest.css
 * Scoped entirely to .ar-wip — zero bleed into other modules.
 *
 * v1.3 — FAQ-style accordion behaviour with original Why Invest title styling
 */

.ar-wip {
    width: 100%;
    padding-top: 0;
    padding-bottom: 120px;
    background: #fff;
    --ar-wip-motion-duration: 350ms;
    --ar-wip-motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
    animation: ar-wip-fade-up 0.6s ease both;
}

.ar-wip__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 112px;
    padding-right: 112px;
    box-sizing: border-box;
}

.ar-wip__list {
    margin: 0;
    padding: 0;
}

.ar-wip__item {
    border-top: 1px solid #A1A0A0;
}

.ar-wip__item:first-child {
    border-top: none;
}

.ar-wip__trigger {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 28px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.ar-wip__trigger:focus-visible {
    outline: 2px solid #C1000F;
    outline-offset: 4px;
    border-radius: 2px;
}

.ar-wip__title {
    font-family: "Nunito Sans", system-ui, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 48px;
    letter-spacing: 0.01px;
    color: #000;
    transition: color 0.2s ease;
}

.ar-wip__item.is-open .ar-wip__title {
    color: #C1000F;
}

.ar-wip__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 8px;
    color: #A1A0A0;
    transition: color 0.2s ease;
    position: relative;
}

.ar-wip__item.is-open .ar-wip__icon {
    color: #C1000F;
}

.ar-wip__icon-chevron {
    position: absolute;
    transition: opacity 0.2s ease, transform 0.25s ease;
    opacity: 1;
    transform: rotate(0deg);
}

.ar-wip__item.is-open .ar-wip__icon-chevron {
    opacity: 0;
    transform: rotate(90deg);
}

.ar-wip__icon-minus {
    position: absolute;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.ar-wip__item.is-open .ar-wip__icon-minus {
    opacity: 1;
}

.ar-wip__panel {
    overflow: hidden;
    height: 0;
    transition: height var(--ar-wip-motion-duration) var(--ar-wip-motion-ease);
}

.ar-wip__panel[hidden] {
    display: block !important;
    visibility: hidden;
    height: 0 !important;
    pointer-events: none;
}

.ar-wip__panel:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
}

.ar-wip__body {
    padding: 0 56px 28px 0;
}

.ar-wip__body p {
    margin: 0 0 12px;
    font-family: "Nunito Sans", system-ui, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
    color: #000;
}

.ar-wip__body p:last-child {
    margin-bottom: 0;
}

.ar-wip__body a {
    color: #C1000F;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ar-wip__body a:hover {
    color: #01303A;
}

.ar-wip__body strong {
    font-weight: 700;
}

@keyframes ar-wip-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media ( max-width: 1024px ) {
    .ar-wip {
        padding-bottom: 80px;
    }

    .ar-wip__inner {
        padding-left: 64px;
        padding-right: 64px;
    }

    .ar-wip__title {
        font-size: 26px;
        line-height: 40px;
    }
}

@media ( max-width: 640px ) {
    .ar-wip {
        padding-bottom: 56px;
    }

    .ar-wip__inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .ar-wip__trigger {
        padding: 20px 0;
        gap: 16px;
    }

    .ar-wip__title {
        font-size: 20px;
        line-height: 32px;
    }

    .ar-wip__icon {
        margin-top: 2px;
    }

    .ar-wip__body {
        padding: 0 0 20px;
    }

    .ar-wip__body p {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ar-wip {
        animation: none;
    }

    .ar-wip__panel,
    .ar-wip__icon-chevron,
    .ar-wip__icon-minus,
    .ar-wip__title,
    .ar-wip__icon {
        transition: none;
    }
}
