/* Full-width animated footer */
.site-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: clamp(1.25rem, 4vw, 3rem);
    padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* Animated background */
.footer-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(165deg, #0a0a0a 0%, #1a0b1b 45%, #0d1117 100%);
}

.footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: footerOrbFloat 12s ease-in-out infinite;
}

.footer-orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.35) 0%, transparent 70%);
    top: -120px;
    left: -80px;
}

.footer-orb-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(253, 181, 74, 0.2) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    animation-delay: -4s;
}

.footer-orb-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    top: 40%;
    left: 45%;
    animation-delay: -7s;
}

@keyframes footerOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Top tag bar — full width */
.footer-top-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    background: rgba(45, 17, 43, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.footer-tag {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s,
        color 0.25s,
        border-color 0.25s,
        box-shadow 0.25s;
}

.footer-tag:hover {
    color: #fff;
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.15);
}

/* Main footer */
.footer-main {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    width: 100%;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-logo-wrap:hover {
    transform: scale(1.03);
}

.footer-logo {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.footer-logo-img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
}

.footer-tagline {
    margin: 0 0 1.5rem;
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

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

.footer-col li {
    margin-bottom: 0.15rem;
}

.footer-col a {
    display: inline-block;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    position: relative;
    transition: color 0.2s;
}

.footer-col a span {
    position: relative;
    z-index: 1;
}

.footer-col a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.35rem;
    width: 0;
    height: 1px;
    background: var(--red, #ff3b30);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-col a:hover::before {
    width: 100%;
}

/* Social */
.footer-social {
    display: flex;
    gap: 0.65rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}

.footer-social-link:hover {
    color: #fff;
    background: rgba(255, 59, 48, 0.25);
    border-color: rgba(255, 59, 48, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 28px rgba(255, 59, 48, 0.2);
}

/* Newsletter CTA — full width card */
.footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}

.footer-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.footer-cta-text h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-cta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex: 1;
    min-width: min(100%, 320px);
    max-width: 440px;
}

.footer-cta-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.footer-cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.footer-cta-form input:focus {
    outline: none;
    border-color: rgba(255, 59, 48, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.footer-cta-form .btn {
    white-space: nowrap;
    padding: 0.85rem 1.5rem;
}

/* Bottom bar — full width */
.footer-bottom {
    position: relative;
    z-index: 1;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.5);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    width: 100%;
}

.footer-copy {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #fff;
}

/* Scroll reveal */
[data-footer-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-footer-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .footer-cta-form {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-tags {
        justify-content: flex-start;
    }

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

@media (prefers-reduced-motion: reduce) {
    .footer-orb,
    .footer-tag,
    .footer-cta,
    [data-footer-animate] {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    [data-footer-animate] {
        opacity: 1;
        transform: none;
    }
}
