@charset "UTF-8";

/**
 * Footer redesign — wave subscribe + professional dark footer
 * Layout: Support pills | Information | Services | Stay connected
 *         Meta (social + payments) | Brandmark | Copyright
 * Refs: Star Tech–style support cards (no app links yet)
 * Preserves: #subscribeForm AJAX, [data-map-lazy] map inject, theme --primary
 */

:root {
    --nx-footer-bg: #141416;
    --nx-footer-bg-elevated: #1c1c1f;
    --nx-footer-bg-bar: #0e0e10;
    --nx-footer-text: rgba(255, 255, 255, 0.92);
    --nx-footer-muted: rgba(255, 255, 255, 0.58);
    --nx-footer-line: rgba(255, 255, 255, 0.12);
    --nx-footer-accent: var(--primary, #c82333);
    --nx-footer-accent-hover: var(--primary-hover, #a81d2a);
}

/* ============================================================
   STACK — subscribe overlaps footer via wave
   ============================================================ */

.nx-footer-stack {
    position: relative;
    margin-top: 2.5rem;
    isolation: isolate;
}

/* ============================================================
   SUBSCRIBE — overleaf / wave into footer
   ============================================================ */

.nx-subscribe-section--wave {
    position: relative;
    z-index: 1;
    /* Light overlap only — contact labels must stay fully visible */
    margin-bottom: -1.25rem;
    padding: 2.75rem 1rem 3.75rem;
    text-align: center;
    color: #fff;
    overflow: visible;
    background:
        radial-gradient(ellipse 85% 70% at 50% -10%, color-mix(in srgb, var(--nx-footer-accent) 42%, #2a2a2e) 0%, transparent 58%),
        linear-gradient(180deg, #1f1f23 0%, #17171a 55%, var(--nx-footer-bg-bar) 100%);
}

.nx-subscribe-container {
    position: relative;
    z-index: 3;
    max-width: 640px;
    margin: 0 auto;
}

.nx-subscribe-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
}

.nx-subscribe-note {
    margin: 0 auto 1.5rem;
    max-width: 28rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

/* Pill subscribe UI — beat Bootstrap / legacy form styles */
#subscribeForm.nx-subscribe-form,
.nx-subscribe-form {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

#subscribeForm .nx-subscribe-pill,
.nx-subscribe-pill {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100%;
    min-height: 52px;
    height: 52px;
    border-radius: 9999px !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

#subscribeForm .nx-subscribe-input,
.nx-subscribe-pill .nx-subscribe-input {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 1.25rem !important;
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
    color: #1d1d1f !important;
    -webkit-appearance: none;
    appearance: none;
}

#subscribeForm .nx-subscribe-input:focus,
.nx-subscribe-pill .nx-subscribe-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

#subscribeForm .nx-subscribe-input::placeholder,
.nx-subscribe-pill .nx-subscribe-input::placeholder {
    color: #9a9aa0;
    opacity: 1;
}

#subscribeForm .nx-subscribe-btn,
.nx-subscribe-pill .nx-subscribe-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    min-width: 7.75rem;
    min-height: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 1.5rem !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    color: #ffffff !important;
    cursor: pointer;
    background: var(--primary, #8bc34a) !important;
    box-shadow: none !important;
    transition: background 0.2s ease, filter 0.2s ease;
}

#subscribeForm .nx-subscribe-btn:hover,
.nx-subscribe-pill .nx-subscribe-btn:hover {
    background: var(--primary-hover, #7cb342) !important;
    filter: brightness(1.05);
    color: #fff !important;
}

#subscribeForm .nx-subscribe-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* Wave bridge — layered concave animation */
.nx-subscribe-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    line-height: 0;
}

.nx-subscribe-wave__svg {
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.nx-subscribe-wave__svg--a {
    z-index: 1;
}

.nx-subscribe-wave__svg--b {
    z-index: 2;
    opacity: 0.9;
    animation: nx-footer-wave-slide 10s ease-in-out infinite alternate;
}

.nx-subscribe-wave__path--glow {
    fill: color-mix(in srgb, var(--primary, #8bc34a) 22%, transparent);
    animation: nx-footer-wave-bob 6s ease-in-out infinite;
}

.nx-subscribe-wave__path--soft {
    fill: rgba(14, 14, 16, 0.55);
    animation: nx-footer-wave-bob 8s ease-in-out infinite reverse;
}

.nx-subscribe-wave__path--solid {
    fill: var(--nx-footer-bg-bar);
}

@keyframes nx-footer-wave-slide {
    0% { transform: translateX(-2%) scaleY(1); }
    50% { transform: translateX(1.5%) scaleY(1.04); }
    100% { transform: translateX(2.5%) scaleY(0.98); }
}

@keyframes nx-footer-wave-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (min-width: 768px) {
    .nx-footer-stack {
        margin-top: 3.5rem;
    }

    .nx-subscribe-section--wave {
        margin-bottom: -1.75rem;
        padding: 3.5rem 1.5rem 4.5rem;
    }

    .nx-subscribe-wave {
        height: 88px;
    }

    #subscribeForm .nx-subscribe-pill,
    .nx-subscribe-pill {
        min-height: 56px;
        height: 56px;
    }

    #subscribeForm .nx-subscribe-input,
    .nx-subscribe-pill .nx-subscribe-input,
    #subscribeForm .nx-subscribe-btn,
    .nx-subscribe-pill .nx-subscribe-btn {
        min-height: 56px !important;
        height: 56px !important;
    }
}


/* ============================================================
   DARK FOOTER — professional Star Tech–inspired layout
   Preserve: theme --primary, map lazy-load, subscribe, no app links
   ============================================================ */

.nx-footer--dark {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 1.75rem 0 1.25rem;
    background: var(--nx-footer-bg);
    color: var(--nx-footer-text);
    border-top: none;
    overflow: visible;
}

.nx-footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .nx-footer-content {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nx-footer-content {
        padding: 0 1.75rem;
    }

    .nx-footer--dark {
        padding-top: 2.25rem;
    }
}

/* ---- Main grid: Support | Information | Services | Stay connected ---- */
.nx-footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0.5rem 0 1.75rem;
}

@media (min-width: 768px) {
    .nx-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.75rem;
        padding-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .nx-footer-main {
        grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1fr) minmax(0, 1fr) minmax(240px, 1.1fr);
        gap: 2rem 2rem;
        align-items: start;
        padding-bottom: 2.25rem;
    }
}

.nx-footer-col {
    min-width: 0;
}

.nx-footer-heading {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

/* ---- Support pills ---- */
.nx-footer-support-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nx-footer-support-card,
a.nx-footer-support-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

a.nx-footer-support-card:hover {
    border-color: color-mix(in srgb, var(--primary, #8bc34a) 55%, transparent);
    background: color-mix(in srgb, var(--primary, #8bc34a) 8%, transparent);
    transform: translateY(-1px);
}

.nx-footer-support-card--static {
    cursor: default;
}

.nx-footer-support-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary, #8bc34a);
    overflow: hidden;
}

.nx-footer-support-card__icon svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px;
    max-height: 18px;
    display: block;
    flex-shrink: 0;
}

.nx-footer-support-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    padding-top: 0.1rem;
}

.nx-footer-support-card__label {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--nx-footer-muted);
}

.nx-footer-support-card__value {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary, #8bc34a);
    word-break: break-word;
}

/* ---- Link lists ---- */
.nx-footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.nx-footer-link-list a {
    display: inline-block;
    max-width: 100%;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--nx-footer-muted);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.nx-footer-link-list a:hover {
    color: #fff;
    transform: translateX(2px);
}

/* Multi-column services on wide screens when many policies */
@media (min-width: 1200px) {
    .nx-footer-col--services .nx-footer-link-list {
        column-count: 1;
    }
}

/* ---- Stay connected ---- */
.nx-footer-brand {
    margin-bottom: 1rem;
}

.nx-footer-brand__logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    text-decoration: none;
}

.nx-footer-brand__logo .nx-footer-brand__fallback {
    display: none;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1d1d1f;
}

.nx-footer-brand__logo.is-fallback {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.nx-footer-brand__logo.is-fallback .nx-footer-brand__fallback {
    display: inline;
    color: #fff;
}

.nx-footer-brand__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nx-footer-logo-img {
    display: block;
    max-width: 150px;
    width: auto;
    height: auto;
    max-height: 44px;
    object-fit: contain;
}

.nx-footer-connect-text {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--nx-footer-muted);
}

.nx-footer-connect-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.nx-footer-connect-accent {
    color: var(--primary, #8bc34a);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.nx-footer-connect-accent:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Map (lazy) ---- */
.nx-footer-map {
    margin-top: 1rem;
    width: 100%;
}

.nx-footer-map-embed--color,
.nx-footer-map-embed--clean {
    position: relative;
    min-height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--nx-footer-bg-elevated);
}

.nx-footer-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 160px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    background: var(--nx-footer-bg-elevated);
}

.nx-footer-map-placeholder-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary, #8bc34a);
    animation: nx-footer-map-pulse 1.2s ease-in-out infinite;
}

@keyframes nx-footer-map-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.nx-footer-map-embed--color iframe,
.nx-footer-map-embed--clean iframe {
    display: block;
    width: 100%;
    min-height: 160px;
    border: 0;
    filter: none !important;
}

@media (min-width: 1024px) {
    .nx-footer-map-embed--color,
    .nx-footer-map-embed--clean,
    .nx-footer-map-placeholder,
    .nx-footer-map-embed--color iframe,
    .nx-footer-map-embed--clean iframe {
        min-height: 180px;
    }
}

/* ---- Meta row: social + payments (app links reserved) ---- */
.nx-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--nx-footer-line);
    border-bottom: 1px solid var(--nx-footer-line);
}

@media (min-width: 768px) {
    .nx-footer-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.35rem 0;
    }
}

.nx-footer-meta__label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nx-footer-muted);
}

.nx-footer-meta__social,
.nx-footer-meta__payments {
    min-width: 0;
}

.nx-footer-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nx-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nx-footer-social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.nx-footer-social-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.nx-footer-payments--color {
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 100%;
}

.nx-footer-payment-img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    object-position: left center;
}

/* ---- Brandmark watermark ---- */
.nx-footer-brandmark {
    position: relative;
    isolation: isolate;
    margin: 0.35rem 0 0;
    padding: 1.35rem 0.25rem 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    text-align: center;
    pointer-events: none;
    user-select: none;
    container-type: inline-size;
    container-name: footer-brandmark;
}

.nx-footer-brandmark::before {
    content: '';
    display: block;
    width: min(6.5rem, 40%);
    height: 1px;
    margin: 0 auto 1rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--primary, #8bc34a) 50%, transparent) 50%,
        transparent 100%
    );
}

.nx-footer-brandmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 58%;
    z-index: 0;
    width: min(34rem, 90%);
    height: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        color-mix(in srgb, var(--primary, #8bc34a) 12%, transparent) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.nx-footer-brandmark span {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: clamp(0.9rem, 0.3rem + 3.8cqi, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: balance;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.055);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .nx-footer-brandmark span {
        color: transparent;
        background-image: linear-gradient(
            165deg,
            color-mix(in srgb, var(--primary, #8bc34a) 32%, rgba(255, 255, 255, 0.18)) 0%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(255, 255, 255, 0.04) 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
    }
}

@supports not (font-size: 1cqi) {
    .nx-footer-brandmark span {
        font-size: clamp(0.9rem, 3.2vw, 3.25rem);
    }
}

@media (min-width: 768px) {
    .nx-footer-brandmark {
        padding: 1.6rem 0.5rem 0.85rem;
    }

    .nx-footer-brandmark span {
        font-size: clamp(1.15rem, 0.45rem + 3.4cqi, 3.85rem);
    }
}

/* ---- Copyright ---- */
.nx-footer-copyright {
    padding: 1rem 0 0.15rem;
}

.nx-footer-copyright-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

.nx-footer-copyright-copy {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--nx-footer-muted);
}

.nx-footer-copyright-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
}

.nx-footer-copyright-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--nx-footer-muted);
    text-decoration: none;
}

.nx-footer-copyright-link:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .nx-footer-copyright-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .nx-footer-copyright-nav {
        justify-content: flex-end;
    }
}

/* Mobile bottom nav clearance */
@media (max-width: 767.98px) {
    .nx-footer--dark {
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
        overflow: visible;
    }

    .nx-subscribe-section--wave {
        margin-bottom: -0.75rem;
        padding-bottom: 3.25rem;
    }

    .nx-subscribe-wave {
        height: 52px;
    }

    .nx-footer-support-card,
    a.nx-footer-support-card {
        border-radius: 14px;
        padding: 0.8rem 0.9rem;
    }

    #subscribeForm .nx-subscribe-pill,
    .nx-subscribe-pill {
        flex-direction: row !important;
        height: 48px;
        min-height: 48px;
        border-radius: 9999px !important;
    }

    #subscribeForm .nx-subscribe-input,
    .nx-subscribe-pill .nx-subscribe-input,
    #subscribeForm .nx-subscribe-btn,
    .nx-subscribe-pill .nx-subscribe-btn {
        min-height: 48px !important;
        height: 48px !important;
    }

    #subscribeForm .nx-subscribe-btn,
    .nx-subscribe-pill .nx-subscribe-btn {
        min-width: 6.5rem;
        padding: 0 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* ============================================================
   A11Y / MOTION
   ============================================================ */

.nx-footer-link-list a:focus-visible,
.nx-footer-social-link:focus-visible,
.nx-footer-support-card:focus-visible,
.nx-subscribe-btn:focus-visible,
.nx-subscribe-input:focus-visible,
.nx-footer-copyright-link:focus-visible,
.nx-footer-connect-accent:focus-visible {
    outline: 2px solid var(--nx-footer-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .nx-subscribe-wave__svg--b,
    .nx-subscribe-wave__path--glow,
    .nx-subscribe-wave__path--soft,
    .nx-footer-map-placeholder-dot {
        animation: none !important;
    }

    .nx-footer-link-list a,
    .nx-footer-social-link,
    .nx-footer-support-card,
    .nx-subscribe-btn {
        transition: none;
    }

    .nx-footer-brandmark span {
        filter: none;
    }
}
