/* Light footer, shared by every page through include/footer.php.
   Rules are scoped to footer.footer-light so they win over the older
   dark-footer rules in style.css / responsive.css regardless of load order. */

footer.footer__section.footer-light {
    --footer-ink: #341552;
    --footer-ink-soft: rgba(52, 21, 82, 0.72);
    --footer-link: #59258A;
    --footer-accent: #9948E8;
    --footer-line: #EBDDF9;
    --footer-tint: #F7EEFF;
    overflow: hidden;
    color: var(--footer-ink);
    background: #fff;
}

footer.footer-light .section-inner {
    position: relative;
    z-index: 0; /* style.css gives every .section-inner z-index 11, which hid the moon */
    color: var(--footer-ink);
    background:
        radial-gradient(900px 420px at 100% 0%, rgba(199, 127, 255, 0.16), transparent 70%),
        linear-gradient(180deg, #FFFFFF 0%, #FBF6FF 100%);
    border-top: 1px solid var(--footer-line);
    border-radius: 0;
    padding-top: 88px;
    padding-bottom: 40px;
}

/* Moon, orbit and star */
footer.footer-light .moon__img {
    z-index: 3;
    filter: drop-shadow(0 18px 30px rgba(84, 31, 135, 0.18));
}

footer.footer-light .footer-orbit {
    position: absolute;
    z-index: 1;
    top: -104px;
    right: -199px;
    width: 420px;
    height: 420px;
    pointer-events: none;
}

footer.footer-light .footer-orbit span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed #DDBBFB;
}

footer.footer-light .footer-orbit span + span {
    inset: 80px;
    border: 1px solid var(--footer-line);
    background: radial-gradient(circle, rgba(199, 127, 255, 0.14), transparent 70%);
}

footer.footer-light img.footer-img {
    z-index: 2;
    top: 28px;
}

/* Brand + call to action row */
footer.footer-light .footer-brand-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 48px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--footer-line);
}

footer.footer-light .footer-logo img {
    display: block;
    width: 190px;
    height: auto;
}

footer.footer-light .footer-brand p {
    max-width: 440px;
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 28px;
    color: var(--footer-ink-soft);
}

footer.footer-light .footer-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-right: clamp(0px, 6vw, 96px);
}

footer.footer-light .footer-cta-label {
    margin: 0 0 6px;
    font-family: var(--fw-500);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--footer-accent);
}

footer.footer-light .footer-cta-email {
    margin-bottom: 20px;
    font-family: var(--fw-600);
    font-size: 30px;
    line-height: 40px;
    color: var(--footer-ink);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    transition: background-size 0.3s ease, color 0.3s ease;
}

footer.footer-light .footer-cta-email:hover {
    color: var(--footer-accent);
    background-size: 100% 2px;
}

footer.footer-light .footer-cta .btn-purple,
footer.footer-light .footer-cta .btn-purple:hover,
footer.footer-light .footer-cta .btn-purple:focus,
footer.footer-light .footer-cta .btn-purple:active {
    background-color: var(--footer-accent) !important;
    color: #fff !important;
}

/* Link columns */
footer.footer-light .footer__col {
    position: relative;
    z-index: 2;
}

footer.footer-light .accordian_title h6 {
    margin-bottom: 20px;
    font-family: var(--fw-500);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--footer-accent);
}

footer.footer-light .accordian_content ul li {
    margin-bottom: 12px;
    color: var(--footer-ink-soft);
    font-size: 16px;
    line-height: 24px;
}

footer.footer-light .accordian_content ul li a {
    color: var(--footer-link);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: color 0.25s ease, background-size 0.25s ease;
}

footer.footer-light .accordian_content ul li a:hover,
footer.footer-light .accordian_content ul li a:focus-visible {
    color: var(--footer-accent) !important;
    background-size: 100% 1px;
}

footer.footer-light .location-link {
    flex-wrap: wrap;
    color: var(--footer-ink-soft);
    font-size: 16px;
}

footer.footer-light .location-link a {
    color: var(--footer-ink);
}

footer.footer-light .location-link a:hover {
    color: var(--footer-accent);
}

/* Bottom bar */
footer.footer-light .footer__copy {
    position: relative;
    z-index: 2;
    padding-top: 28px;
    border-top: 1px solid var(--footer-line);
}

footer.footer-light .footer__copy .copy {
    color: var(--footer-ink-soft);
}

footer.footer-light .footer__copy .copy a {
    color: var(--footer-link);
}

footer.footer-light .footer__copy .copy a:hover {
    color: var(--footer-accent);
}

footer.footer-light .footer__social__icons a {
    width: 48px;
    height: 48px;
    background: var(--footer-tint);
    border: 1px solid #E5CAFF;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

footer.footer-light .footer__social__icons a svg {
    width: 22px;
    height: 22px;
}

footer.footer-light .footer__social__icons a svg path {
    transition: fill 0.25s ease;
}

footer.footer-light .footer__social__icons a:hover,
footer.footer-light .footer__social__icons a:focus-visible {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    transform: translateY(-2px);
}

footer.footer-light .footer__social__icons a:hover svg path,
footer.footer-light .footer__social__icons a:focus-visible svg path {
    fill: #fff;
}

/* Mobile accordion arrow (the original asset is white) */
footer.footer-light .accordian_title:after {
    background-image: url(../images/icons/arrow-right-footer-dark.svg);
}

@media (max-width: 1199px) {
    footer.footer-light .footer-cta {
        margin-right: 72px;
    }
}

@media (max-width: 991px) {
    footer.footer-light .section-inner {
        padding-top: 56px;
        padding-bottom: 32px;
    }

    footer.footer-light .footer-brand-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding-bottom: 36px;
        margin-bottom: 24px;
    }

    footer.footer-light .footer-cta {
        align-items: flex-start;
        text-align: left;
        margin-right: 0;
    }

    footer.footer-light .footer-cta-email {
        font-size: 24px;
        line-height: 32px;
    }

    footer.footer-light .accordian_title {
        border-bottom-color: var(--footer-line);
    }

    footer.footer-light .accordian_title h6 {
        margin: 0;
        padding: 12px 0;
        line-height: 36px;
    }

    footer.footer-light .accordian_title:after {
        top: calc(50% - 6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    footer.footer-light .footer-cta-email,
    footer.footer-light .accordian_content ul li a,
    footer.footer-light .footer__social__icons a {
        transition: none;
    }
}
