/**
 * ShowcaseX Footer Widget — "Signal Footer"
 * Scoped under .sxf-root / .sxf-*. Brand colours come from the Customizer
 * variables (--sx-primary / --sx-secondary) and can be overridden per widget.
 */

.sxf-root {
    --sxf-navy: var(--sx-secondary, #0b1411);
    --sxf-green: var(--sx-primary, #00b860);
    --sxf-gold: var(--sx-gold, #e8b020);
    --sxf-red: var(--sx-accent, #f80000);

    --sxf-bg: color-mix(in srgb, var(--sxf-navy) 94%, #000);
    --sxf-text: rgba(255, 255, 255, .68);
    --sxf-head: #fff;
    --sxf-accent: var(--sxf-green);
    --sxf-band: linear-gradient(115deg, var(--sxf-green) 0%, color-mix(in srgb, var(--sxf-green) 74%, var(--sxf-gold)) 100%);
    --sxf-btn-bg: var(--sxf-navy);
    --sxf-btn-text: #fff;

    --sxf-max: 1320px;
    --sxf-radius: 40px;
    --sxf-pad-y: 72px;

    --sxf-ease: cubic-bezier(.22, 1, .36, 1);
    --sxf-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --sxf-font-head: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    background: var(--sxf-bg);
    color: var(--sxf-text);
    font-family: var(--sxf-font);
    font-size: 15px;
    line-height: 1.6;
    border-radius: var(--sxf-radius) var(--sxf-radius) 0 0;
    padding: var(--sxf-pad-y) 24px 0;
    -webkit-font-smoothing: antialiased;
}

.sxf-root *,
.sxf-root *::before,
.sxf-root *::after {
    box-sizing: border-box;
}

/* subtle blueprint grid + glow */
.sxf-root::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
    mask-image: linear-gradient(180deg, #000, transparent 75%);
}

.sxf-glow {
    position: absolute;
    z-index: -1;
    right: -140px;
    top: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--sxf-accent) 32%, transparent), transparent 68%);
    pointer-events: none;
}

.sxf-root :where(ul, li) {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sxf-root :where(h2, h3, p) {
    margin: 0;
}

.sxf-root a:is(:link, :visited, :hover, :focus, :active) {
    text-decoration: none;
    box-shadow: none;
    background: none;
}

.sxf-root :focus {
    outline: none;
}

.sxf-root :focus-visible {
    outline: 2px solid var(--sxf-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.sxf-wrap {
    max-width: var(--sxf-max);
    margin: 0 auto;
}

.sxf-ico {
    width: 20px;
    height: 20px;
    display: block;
}

.sxf-mark {
    color: var(--sxf-accent);
}

/* ───────────── CTA band ───────────── */
.sxf-band {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 44px;
    border-radius: 30px;
    background: var(--sxf-band);
    color: var(--sxf-navy);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
    margin-bottom: 64px;
}

.sxf-band::after {
    content: '';
    position: absolute;
    right: 28%;
    top: -50%;
    width: 2px;
    height: 200%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .16), transparent);
    transform: rotate(24deg);
    pointer-events: none;
}

.sxf-band-copy {
    max-width: 660px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sxf-eyebrow {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    background: var(--sxf-navy);
    color: var(--sxf-gold);
    font: 600 11.5px/1 var(--sxf-font);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sxf-eyebrow .sxf-ico {
    width: 14px;
    height: 14px;
    color: var(--sxf-gold);
}

.sxf-band-title {
    font: 700 clamp(26px, 3.2vw, 40px)/1.15 var(--sxf-font-head);
    color: var(--sxf-navy);
    letter-spacing: -.01em;
}

.sxf-band-text {
    color: color-mix(in srgb, var(--sxf-navy) 82%, transparent);
    max-width: 560px;
}

.sxf-root a.sxf-btn:is(:link, :visited, :hover, :focus, :active) {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 26px;
    border-radius: 999px;
    background: var(--sxf-btn-bg);
    color: var(--sxf-btn-text);
    font: 700 15px/1 var(--sxf-font-head);
    box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--sxf-btn-bg) 80%, transparent);
    transition: transform .35s var(--sxf-ease), box-shadow .35s;
}

.sxf-root a.sxf-btn:is(:hover, :focus-visible) {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -12px color-mix(in srgb, var(--sxf-btn-bg) 90%, transparent);
}

.sxf-btn-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sxf-btn-text);
    color: var(--sxf-btn-bg);
    transition: transform .35s var(--sxf-ease);
}

.sxf-btn:hover .sxf-btn-ico {
    transform: translateX(3px);
}

/* ───────────── Grid ───────────── */
.sxf-grid {
    display: grid;
    gap: 48px 40px;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    padding-bottom: 56px;
}

.sxf-root[data-cols="3"] .sxf-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
}

.sxf-root[data-cols="2"] .sxf-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.sxf-col {
    min-width: 0;
}

.sxf-root .sxf-h {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 14px;
    color: var(--sxf-head);
    font: 600 14px/1.2 var(--sxf-font-head);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sxf-root .sxf-h::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: var(--sxf-gold);
}

/* brand */
.sxf-root a.sxf-logo:is(:link, :visited, :hover, :focus, :active) {
    display: inline-flex;
    align-items: center;
    color: var(--sxf-head);
}

.sxf-logo-img {
    display: block;
    width: auto;
    max-width: 190px;
    height: auto;
    max-height: 56px;
}

.sxf-logo-text {
    font: 800 30px/1 var(--sxf-font-head);
    letter-spacing: .02em;
}

.sxf-about {
    margin: 18px 0 24px;
    max-width: 380px;
}

.sxf-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sxf-root a.sxf-social:is(:link, :visited, :hover, :focus, :active) {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sxf-head);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .3s var(--sxf-ease), background .25s, color .25s, border-color .25s;
}

.sxf-root a.sxf-social:is(:hover, :focus-visible) {
    transform: translateY(-4px) rotate(-4deg);
    background: var(--sxf-gold);
    border-color: var(--sxf-gold);
    color: var(--sxf-navy);
}

/* link lists (works for wp_nav_menu <ul> and fallbacks) */
.sxf-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sxf-root .sxf-menu a:is(:link, :visited, :hover, :focus, :active) {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
    color: var(--sxf-text);
    transition: color .25s, transform .3s var(--sxf-ease);
}

.sxf-root .sxf-menu a::before {
    content: '';
    width: 0;
    height: 2px;
    margin-right: 0;
    border-radius: 2px;
    background: var(--sxf-accent);
    transition: width .3s var(--sxf-ease), margin .3s var(--sxf-ease);
}

.sxf-root .sxf-menu a:is(:hover, :focus-visible) {
    color: var(--sxf-head);
}

.sxf-root .sxf-menu a:is(:hover, :focus-visible)::before {
    width: 14px;
    margin-right: 8px;
}

.sxf-root .sxf-menu .current-menu-item>a {
    color: var(--sxf-accent);
}

/* contact */
.sxf-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sxf-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sxf-chip {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    color: var(--sxf-accent);
    background: color-mix(in srgb, var(--sxf-accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--sxf-accent) 22%, transparent);
}

.sxf-contact-val {
    padding-top: 8px;
    color: var(--sxf-text);
    word-break: break-word;
}

.sxf-root a.sxf-contact-val:is(:link, :visited, :hover, :focus, :active) {
    color: var(--sxf-text);
    transition: color .25s;
}

.sxf-root a.sxf-contact-val:is(:hover, :focus-visible) {
    color: var(--sxf-head);
}

/* ───────────── Bottom bar ───────────── */
.sxf-bottom {
    padding-right: 68px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding-top: 22px;
    padding-bottom: 26px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13.5px;
}

.sxf-dev strong,
.sxf-root .sxf-dev a:is(:link, :visited, :hover, :focus, :active) {
    color: var(--sxf-head);
    font-weight: 600;
}

.sxf-root .sxf-dev a:is(:hover, :focus-visible) {
    color: var(--sxf-accent);
}

.sxf-legal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.sxf-root .sxf-legal-list a:is(:link, :visited, :hover, :focus, :active) {
    color: var(--sxf-text);
    transition: color .25s;
}

.sxf-root .sxf-legal-list a:is(:hover, :focus-visible) {
    color: var(--sxf-gold);
}

/* ───────────── Back to top ───────────── */
.sxf-root .sxf-top,
.sxf-root .sxf-top:is(:hover, :focus, :active) {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--sxf-head);
    background: var(--sxf-navy);
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.9);
    transition: opacity .3s, transform .4s var(--sxf-ease), visibility .3s, color .25s;
}

.sxf-root .sxf-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.sxf-root .sxf-top:is(:hover, :focus-visible) {
    color: var(--sxf-accent);
    transform: translateY(-3px);
}

.sxf-ring {
    position: absolute;
    inset: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    transform: rotate(-90deg);
}

.sxf-ring circle {
    fill: none;
    stroke-width: 2.5;
}

.sxf-ring-bg {
    stroke: rgba(255, 255, 255, .14);
}

.sxf-ring-fg {
    stroke: var(--sxf-accent);
    stroke-linecap: round;
    stroke-dasharray: 131.95;
    stroke-dashoffset: 131.95;
}

/* ───────────── Reveal (only when JS is ready) ───────────── */
.sxf-root.is-ready [data-sxf-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s, transform .8s var(--sxf-ease);
}

.sxf-root.is-ready [data-sxf-reveal].is-in {
    opacity: 1;
    transform: none;
}

.sxf-root.is-ready .sxf-grid>[data-sxf-reveal]:nth-child(2) {
    transition-delay: .06s;
}

.sxf-root.is-ready .sxf-grid>[data-sxf-reveal]:nth-child(3) {
    transition-delay: .12s;
}

.sxf-root.is-ready .sxf-grid>[data-sxf-reveal]:nth-child(4) {
    transition-delay: .18s;
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1024px) {

    .sxf-root .sxf-grid,
    .sxf-root[data-cols="3"] .sxf-grid,
    .sxf-root[data-cols="2"] .sxf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sxf-brand,
    .sxf-contact {
        grid-column: 1 / -1;
    }

    .sxf-contact-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 28px;
    }

    .sxf-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px 30px;
    }
}

@media (max-width: 640px) {
    .sxf-root {
        --sxf-radius: 28px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .sxf-root .sxf-grid,
    .sxf-root[data-cols="3"] .sxf-grid,
    .sxf-root[data-cols="2"] .sxf-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sxf-band {
        padding: 28px 22px;
        border-radius: 24px;
        margin-bottom: 44px;
    }

    .sxf-root a.sxf-btn:is(:link, :visited, :hover, :focus, :active) {
        align-self: stretch;
        justify-content: space-between;
    }

    .sxf-contact-list {
        display: flex;
    }

    .sxf-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .sxf-root .sxf-top,
    .sxf-root .sxf-top:is(:hover, :focus, :active) {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sxf-root * {
        transition: none !important;
        animation: none !important;
    }

    .sxf-root.is-ready [data-sxf-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Elementor editor: always visible, no fixed button overlap */
.elementor-editor-active .sxf-root.is-ready [data-sxf-reveal] {
    opacity: 1;
    transform: none;
}

.elementor-editor-active .sxf-root .sxf-top {
    position: absolute;
}

/* ───────────── Brand palette pass ───────────── */
.sxf-band .sxf-mark {
    display: inline-block;
    padding: 0 .28em;
    margin: 0 .04em;
    border-radius: .28em;
    background: var(--sxf-navy);
    color: var(--sxf-gold);
}

/* thin tri-colour brand arc along the top edge */
.sxf-root::after {
    content: '';
    position: absolute;
    left: 14%;
    right: 14%;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--sxf-green) 30%, var(--sxf-gold) 62%, var(--sxf-red) 84%, transparent);
    pointer-events: none;
}

.sxf-logo.has-plate .sxf-logo-img {
    background: #fff;
    padding: 6px 14px;
    border-radius: 14px;
    box-sizing: content-box;
}

.sxf-root .sxf-contact-list .sxf-chip {
    color: var(--sxf-gold);
    background: color-mix(in srgb, var(--sxf-gold) 12%, transparent);
    border-color: color-mix(in srgb, var(--sxf-gold) 26%, transparent);
}
