/* ============================================================
   UB Footer — Creative CSS (no Tailwind utilities)
   ============================================================ */

:root {
    --ub-footer-bg:        #0f0f14;
    --ub-footer-border:    rgba(255, 255, 255, 0.07);
    --ub-footer-accent:    #e8540a;
    --ub-footer-accent2:   #ff7a3d;
    --ub-footer-text:      #c4bdd0;
    --ub-footer-text-soft: #d6d0e0;
    --ub-footer-white:     #f5eff2;
}

/* ============================================================
   Footer Shell
   ============================================================ */

.ub-footer {
    background-color: var(--ub-footer-bg);
    border-top: 1px solid var(--ub-footer-border);
}

/* ============================================================
   Marquee Section — Inline Icon + Label (No Cards)
   ============================================================ */

.ub-footer__marquee-container {
    position: relative;
    overflow: hidden;
    background: #ffff;
    padding: 2.5rem 0;
}

.ub-footer__marquee-wrap {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right,
        transparent 0%,
        #000 15%,
        #000 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        #000 10%,
        #000 90%,
        transparent 100%
    );
}

.ub-footer__marquee-wrap--ltr {
    margin-bottom: 2.5rem;
}

.ub-footer__marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
}

/* Left to Right Animation */
.ub-footer__marquee-track--ltr {
    animation: ub-marquee-ltr 50s linear infinite;
}

.ub-footer__marquee-track--ltr:hover {
    animation-play-state: paused;
}

@keyframes ub-marquee-ltr {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.333%); }
}

/* Right to Left Animation */
.ub-footer__marquee-track--rtl {
    animation: ub-marquee-rtl 55s linear infinite;
}

.ub-footer__marquee-track--rtl:hover {
    animation-play-state: paused;
}

@keyframes ub-marquee-rtl {
    from { transform: translateX(-33.333%); }
    to   { transform: translateX(0); }
}

/* ============================================================
   Marquee Item — Inline Row (Icon Left, Label Right)
   ============================================================ */

.ub-footer__marquee-card {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: default;
    white-space: nowrap;
}

.ub-footer__marquee-icon-wrap {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ub-footer__marquee-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
}

.ub-footer__marquee-icon-placeholder {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
    opacity: 0.25;
    flex-shrink: 0;
}

/* ============================================================
   Label Typography
   ============================================================ */

.ub-footer__marquee-label {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .ub-footer__marquee-container {
        padding: 2rem 0;
    }

    .ub-footer__marquee-track {
        gap: 2.5rem;
    }

    .ub-footer__marquee-icon-wrap {
        width: 1.25rem;
        height: 1.25rem;
    }

    .ub-footer__marquee-label {
        font-size: 0.875rem;
    }

    .ub-footer__marquee-track--ltr {
        animation-duration: 40s;
    }

    .ub-footer__marquee-track--rtl {
        animation-duration: 45s;
    }
}

@media (max-width: 480px) {
    .ub-footer__marquee-container {
        padding: 1.5rem 0;
    }

    .ub-footer__marquee-wrap--ltr {
        margin-bottom: 1.25rem;
    }

    .ub-footer__marquee-track {
        gap: 2rem;
    }
}

/* ============================================================
   Inner Container
   ============================================================ */

.ub-footer__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .ub-footer__inner { padding: 0 2rem; }
}

/* ============================================================
   Top: Brand + Nav
   ============================================================ */

.ub-footer__top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--ub-footer-border);
}

@media (min-width: 768px) {
    .ub-footer__top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

/* ── Brand ──────────────────────────────────────────────────── */

.ub-footer__brand-link {
    display: inline-block;
    margin-bottom: 0.85rem;
}

.ub-footer__logo {
    height: 2.4rem;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.ub-footer__logo:hover { opacity: 1; }

.ub-footer__tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ub-footer-text);
    max-width: 22rem;
    margin: 0;
}

/* ── Nav links ──────────────────────────────────────────────── */

.ub-footer__nav {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.ub-footer__nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 10rem;
}

@media (max-width: 480px) {
    .ub-footer__nav {
        gap: 1.5rem;
    }
    .ub-footer__nav-col {
        min-width: auto;
        flex: 1 1 8rem;
    }
}

.ub-footer__nav-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ub-footer-accent);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.ub-footer__nav a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ub-footer-white);
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.ub-footer__nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0.5rem;
    right: 0.5rem;
    height: 1px;
    background: var(--ub-footer-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.ub-footer__nav a:hover {
    color: var(--ub-footer-white);
    background: rgba(255,255,255,0.05);
}

.ub-footer__nav a:hover::after {
    transform: scaleX(1);
}

/* ============================================================
   Bottom Bar
   ============================================================ */

.ub-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0 1.75rem;
}

@media (min-width: 640px) {
    .ub-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.ub-footer__copy {
    font-size: 0.88rem;
    color: var(--ub-footer-text);
    margin: 0;
}

.ub-footer__built-with {
    font-size: 0.86rem;
    color: var(--ub-footer-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ub-footer__built-with::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ub-footer-accent), var(--ub-footer-accent2));
}
