/* ═══════════════════════════════════════════════════════════════
   KWIKO GLOBAL FOOTER
   Version 18.0 - Marquee Edition
   ═══════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Departure Mono';
    src: url('https://kwiko.io/wp-content/themes/twentytwentyfive-child/assets/fonts/departure-mono/DepartureMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 0. CURTAIN CONTAINER */
.footer-window {
    width: 100%;
    min-height: 600px;
    /* Prevent layout shift before JS calc */
    position: relative;
    z-index: 10;
}

/* Local footer variables to ensure consistency */
.k-footer {
    --k-bg: #050505;
    --k-surface: #0a0a0a;
    --k-text: #ffffff;
    --k-orange: #F37021;
    --k-green: #22c55e;
    --k-grey-mid: #888888;
    --k-grey-dark: #333333;
    --k-border: rgba(255, 255, 255, 0.1);

    --font-display: 'Instrument Serif', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Departure Mono', 'Space Mono', monospace;

    background: var(--k-surface);
    border-top: 1px solid var(--k-border);
    position: relative;
    padding: 0 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* MARQUEE BANNER */
.footer-marquee {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--k-border);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-bottom: 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

.marquee-item {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--k-grey-mid);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 20px;
}

.marquee-item span {
    color: var(--k-orange);
    margin: 0 10px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* MAIN WRAPPER: Side-by-Side Layout */
.footer-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 40px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* CTA takes slightly more space, Links take less */
    gap: 80px;
    align-items: flex-start;
}

/* LEFT COL: CTA */
.footer-cta-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.banner-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    margin: 0;
    font-weight: 400;
}

.banner-headline span {
    display: block;
    color: var(--k-grey-mid);
    font-size: 0.8em;
    margin-bottom: 0.1em;
}

.banner-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-banner {
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-banner.primary {
    background: var(--k-orange);
    color: #fff;
}

.btn-banner.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.3);
}

.btn-banner.secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-banner.secondary:hover {
    border-color: #fff;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    /* Subtle hover fill */
}

/* RIGHT COL: LINKS */
.footer-links-row {
    display: flex;
    justify-content: flex-end;
    /* Align to right */
    gap: 80px;
    padding-top: 60px;
    /* Moved down further per request */
}

.fl-col h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--k-grey-mid);
    margin: 0 0 24px 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fl-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fl-col li {
    margin-bottom: 14px;
    /* More breathing room */
}

.fl-col a {
    color: var(--k-text);
    /* Use global valid var if possible, else fallback: #fff */
    /* If --k-text is not valid in footer context, use: */
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.fl-col a:hover {
    opacity: 1;
    color: var(--k-orange);
}

/* BOTTOM SECTION */
.footer-bottom-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle divider */
    margin-top: 40px;
    margin-bottom: 0;
    /* Flush with bottom or ticker */
}

.office-status {
    display: flex;
    gap: 40px;
}

.os-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.os-city {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.05em;
}

.os-title {
    color: var(--k-grey-mid);
    font-size: 0.7rem;
    opacity: 0.7;
}

.os-status-dot {
    width: 6px;
    height: 6px;
    background: var(--k-grey-dark);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.os-status-dot.online {
    background: var(--k-green);
    box-shadow: 0 0 8px var(--k-green);
}

.os-time {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--k-grey-mid);
}

/* Go Up Button - Glassmorphism */
.btn-go-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--k-grey-mid);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

.btn-go-top:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-go-top:focus-visible {
    border-color: var(--k-orange);
    box-shadow: 0 0 0 2px rgba(243, 112, 33, 0.3);
}

.btn-go-top svg {
    width: 20px;
    height: 20px;
}

/* Hacker Text Ticker Container */
.footer-ticker-container {
    text-align: right;
    line-height: 0.75;
    margin-bottom: -0.05em;
    /* Hug bottom */
    margin-top: 40px;
    /* Separation from status */
}

.hacker-text {
    font-family: 'Departure Mono', monospace;
    font-size: clamp(4rem, 14vw, 12rem);
    /* Massive */
    line-height: 0.75;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: -0.05em;
    cursor: default;
    transition: color 0.3s;
    display: block;
    text-align: right;
    /* Ensure alignment */
}

.hacker-text:hover {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
    .footer-content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-links-row {
        justify-content: flex-start;
        gap: 60px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .banner-headline {
        font-size: 3rem;
    }

    .footer-bottom-content {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 40px;
    }

    .hacker-text {
        font-size: 18vw;
        text-align: right;
    }

    .office-status {
        flex-wrap: wrap;
        gap: 24px;
    }
}