/* Hallmark · 3Sixty Ace · Renev motion and surface polish */
/* Critique: carry the live texture, sweep, and lift into the PHP components. */
:root {
    --ace-renev-texture: url("/assets/mirror/3sixtyace.com/wp-content/uploads/2025/04/h4.testimonial-bg.ace.webp");
    --ace-renev-cursor-edge: #f25213;
    --ace-renev-cursor-core: #f2713e;
    --ace-renev-paper-wash: #faf8f4f2;
    --ace-renev-night-wash: #15151742;
    --ace-renev-sheen: #ffffff54;
    --ace-renev-button-fill: #ffb045;
    --ace-renev-ease: cubic-bezier(.22,.61,.36,1);
}

:is(.premium-contact, .ace-engagement) {
    background-image: linear-gradient(var(--ace-renev-night-wash), var(--ace-renev-night-wash)), var(--ace-renev-texture);
    background-size: cover;
    background-position: center;
}
.premium-section:is(.ace-approach, .premium-service-detail) {
    background-image: linear-gradient(var(--ace-renev-paper-wash), var(--ace-renev-paper-wash)), var(--ace-renev-texture);
    background-size: cover;
    background-position: center;
}
#blog {
    background-image: var(--ace-renev-texture);
    background-color: var(--ace-bg);
    background-position: top center;
    background-size: cover;
}
#blog .ace-latest-articles { background: transparent; }

@media (min-width:992px) {
    .inner-section-area.live-breadcrumb { padding-block: 130px 30px; }
}

:is(.ace-work-media, .ace-team-portrait, .about-photo-panel, .premium-contact-photo, .ace-svc-photo-frame) {
    position: relative;
    isolation: isolate;
    overflow: clip;
}
:is(.ace-work-media, .ace-team-portrait, .about-photo-panel, .premium-contact-photo, .ace-svc-photo-frame)::before {
    position: absolute;
    content: "";
    inset: -30% -55%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 42%, var(--ace-renev-sheen) 50%, transparent 58%);
    transform: translateX(-70%);
    transition: transform .6s linear;
}
:is(.ace-work-card, .ace-team-member):is(:hover, :focus-within) :is(.ace-work-media, .ace-team-portrait)::before,
:is(.about-photo-panel, .premium-contact-photo, .ace-svc-photo-frame):hover::before {
    transform: translateX(70%);
}

body :is(a, button).ace-action,
body :is(.vl-btn1, .vl-btn3, .cta-btn1),
.solutions .solution-card .sc-foot,
.ace-svc-main-cta,
.ace-services .ace-svc-end a {
    position: relative;
    isolation: isolate;
    overflow: clip;
    transition: transform .4s var(--ace-renev-ease), color .4s var(--ace-renev-ease);
}
body :is(a, button).ace-action::before,
body :is(.vl-btn1, .vl-btn3, .cta-btn1)::after,
.ace-services .ace-svc-end a::before,
.ace-svc-main-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    width: auto;
    height: auto;
    border-radius: inherit;
    background: var(--ace-renev-button-fill);
    opacity: 0;
    transform: scaleX(.05);
    transition: transform .4s var(--ace-renev-ease), opacity .4s var(--ace-renev-ease);
    pointer-events: none;
}
body :is(a, button).ace-action:is(:hover, :focus-visible)::before,
body :is(.vl-btn1, .vl-btn3, .cta-btn1):is(:hover, :focus-visible)::after,
.ace-services .ace-svc-end a:is(:hover, :focus-visible)::before,
.ace-svc-main-cta:is(:hover, :focus-visible)::before {
    transform: scaleX(1);
    opacity: 1;
}
body :is(a, button).ace-action:hover,
body :is(.vl-btn1, .vl-btn3, .cta-btn1):hover,
.solutions .solution-card .sc-foot:hover,
.ace-svc-main-cta:hover,
.ace-services .ace-svc-end a:hover { transform: translateY(-5px); }
.ace-svc-main-cta:is(:hover, :focus-visible) { color: var(--ace-bg); }
body :is(.ace-action, .vl-btn1, .vl-btn3, .cta-btn1):active,
.solutions .solution-card .sc-foot:active,
.ace-svc-main-cta:active,
.ace-services .ace-svc-end a:active { transform: none; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html[data-ace-pointer] :is(.procus-cursor, .procus-cursor2) {
        display: block !important;
        position: fixed;
        inset: 0 auto auto 0;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: none;
    }
    html[data-ace-pointer] .procus-cursor { border-color: var(--ace-renev-cursor-edge); }
    html[data-ace-pointer] .procus-cursor2 { background: var(--ace-renev-cursor-core); }
}

@media (prefers-reduced-motion: reduce) {
    body :is(.ace-action, .vl-btn1, .vl-btn3, .cta-btn1),
    .solutions .solution-card .sc-foot,
    .ace-svc-main-cta,
    .ace-services .ace-svc-end a,
    body :is(.ace-action, .vl-btn1, .vl-btn3, .cta-btn1)::before,
    body :is(.ace-action, .vl-btn1, .vl-btn3, .cta-btn1)::after,
    .ace-svc-main-cta::before,
    .ace-services .ace-svc-end a::before {
        transition: none !important;
        transform: none !important;
    }
    :is(.ace-work-media, .ace-team-portrait, .about-photo-panel, .premium-contact-photo, .ace-svc-photo-frame)::before {
        display: none;
    }
}


/* Restore the hero's original motion on the two background decorations. */
@media (prefers-reduced-motion: no-preference) {
    .hero4-section-area .elements27 {
        animation: animation-1 3s ease infinite alternate;
    }

    .hero4-section-area .elements28 {
        animation: animation-3 1.3s ease infinite alternate;
    }
}
