:root {
    --nw-cta-purple: #8f008f;
    --nw-cta-purple-hover: #720072;
    --nw-cta-arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 18.5 18.5 5.5M10 5.5h8.5V14' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --nw-cta-arrow-black: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 18.5 18.5 5.5M10 5.5h8.5V14' fill='none' stroke='%23171719' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* One compact, high-contrast arrow treatment for all prominent CTA boxes. */
:is(
    .nw-shell-footer__cta > span,
    .nw-contact-widget__badge-icon,
    .nw-contact-widget__submit > span,
    .nw-contact-widget__page-link > span,
    .nw-homy-button-arrow,
    .nw-house-sequence .sequence-closing-cta-icon,
    .svc-cta__content > a > b
) {
    color: transparent !important;
    background-color: var(--nw-cta-purple) !important;
    background-image: var(--nw-cta-arrow-white) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px 24px !important;
    border-radius: 6px !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.nw-shell-footer__cta > span {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
}

.nw-shell-footer__cta > span::before {
    content: none !important;
}

.nw-contact-widget__badge-icon {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
}

.nw-contact-widget__badge:hover .nw-contact-widget__badge-icon,
.nw-contact-widget__badge:focus-visible .nw-contact-widget__badge-icon,
.nw-contact-widget__submit:hover > span,
.nw-contact-widget__submit:focus-visible > span,
.nw-contact-widget__page-link:hover > span,
.nw-contact-widget__page-link:focus-visible > span,
.svc-cta__content > a:hover > b,
.svc-cta__content > a:focus-visible > b {
    background-color: var(--nw-cta-purple-hover) !important;
}

.nw-contact-widget__submit > span {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    background-size: 21px 21px !important;
}

/* The form submit CTA deliberately uses a white icon box with a black arrow. */
.nw-contact-widget__submit > span,
.nw-contact-widget__submit:hover > span,
.nw-contact-widget__submit:focus-visible > span {
    background-color: #fff !important;
    background-image: var(--nw-cta-arrow-black) !important;
}

.nw-contact-widget__page-link > span {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    background-size: 19px 19px !important;
}

.nw-contact-widget__page-link:hover > span,
.nw-contact-widget__page-link:focus-visible > span {
    transform: translate(2px, -2px) !important;
}

.nw-homy-button-arrow {
    background-size: 20px 20px !important;
}

.nw-house-sequence .sequence-closing-cta-arrow {
    display: none !important;
}

/* CSS-generated arrows used by the utility pages and native content blocks. */
:is(
    .home-process-cta,
    .utility-button,
    .altura-project-cta-heading > a,
    form button[type="submit"]:not(.nw-contact-widget__submit),
    .arrow-link
)::after {
    content: "" !important;
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    margin: 0 !important;
    color: transparent !important;
    background-color: var(--nw-cta-purple) !important;
    background-image: var(--nw-cta-arrow-white) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px 24px !important;
    border-radius: 6px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transition: background-color 180ms ease, transform 180ms ease !important;
}

:is(
    .home-process-cta,
    .utility-button,
    .altura-project-cta-heading > a,
    form button[type="submit"]:not(.nw-contact-widget__submit),
    .arrow-link
):is(:hover, :focus-visible)::after {
    background-color: var(--nw-cta-purple-hover) !important;
    transform: translate(2px, -2px) !important;
}

/* The contact widget has its own nested arrow box; prevent a duplicate. */
.nw-contact-widget__submit::after {
    content: none !important;
    display: none !important;
}

/* Framer CTA icons: retain their native box, replace only the thin symbol. */
:is(
    a[data-framer-name="Main"],
    a[data-framer-name="Large"],
    a[data-framer-name="Showreel"],
    a[data-framer-name="Mobile"]
) > svg.framer-mf77w0 {
    color: transparent !important;
    background-color: var(--nw-cta-purple) !important;
    background-image: var(--nw-cta-arrow-white) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px 24px !important;
    border-radius: 6px !important;
}

:is(
    a[data-framer-name="Main"],
    a[data-framer-name="Large"],
    a[data-framer-name="Showreel"],
    a[data-framer-name="Mobile"]
) > svg.framer-mf77w0 > * {
    opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    :is(
        .nw-shell-footer__cta > span,
        .nw-contact-widget__badge-icon,
        .nw-contact-widget__submit > span,
        .nw-contact-widget__page-link > span,
        .nw-homy-button-arrow,
        .nw-house-sequence .sequence-closing-cta-icon,
        .svc-cta__content > a > b
    ) {
        transition: none !important;
    }
}
