/* ============================================================
   FOOTER — Enhanced
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #0a1024 100%);
    color: rgba(255,255,255,.75);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    font-size: .9rem;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: footerGlow 8s linear infinite;
}
@keyframes footerGlow {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}
.site-footer::after {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,.18), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.site-footer .container { position: relative; z-index: 2; }

/* ---------- Brand column ---------- */
.footer-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}
.footer-brand:hover { color: #fff; }
.footer-brand img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}
.footer-brand .logo-mark {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(99,102,241,.35);
    flex-shrink: 0;
}
.footer-brand .brand-text {
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    color: rgba(255,255,255,.65);
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 340px;
}

/* ---------- Contact bits ---------- */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-bottom: 1.5rem;
}
.footer-contact a,
.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .88rem;
    transition: .2s;
}
.footer-contact a:hover {
    color: #a5b4fc;
    transform: translateX(3px);
}
.footer-contact .icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: rgba(99,102,241,.15);
    color: #a5b4fc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    transition: .25s;
}
.footer-contact a:hover .icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    transform: scale(1.05);
}

/* ---------- Social icons ---------- */
.footer-socials {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.footer-socials a {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: .25s;
}
.footer-socials a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(99,102,241,.4);
}

/* ---------- Column headings ---------- */
.footer-heading {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #fff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: .6rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 32px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ---------- Link lists ---------- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .88rem;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    position: relative;
    padding-left: 0;
}
.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: .25s;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 12px;
}
.footer-links a:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Newsletter ---------- */
.footer-newsletter {
    background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(168,85,247,.14));
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1rem;
    padding: 1.15rem;
    margin-top: 1.25rem;
    backdrop-filter: blur(10px);
}
.footer-newsletter .label {
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .35rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.footer-newsletter .desc {
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    margin-bottom: .85rem;
    line-height: 1.5;
}
.footer-newsletter form {
    display: flex;
    gap: .4rem;
    position: relative;
}
.footer-newsletter input {
    flex: 1;
    min-width: 0;
    padding: .65rem .9rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(0,0,0,.25);
    color: #fff;
    font-size: .85rem;
    outline: none;
    transition: .25s;
    font-family: inherit;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter input:focus {
    border-color: var(--primary);
    background: rgba(0,0,0,.4);
    box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.footer-newsletter button {
    padding: 0 1.1rem;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    transition: .25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    white-space: nowrap;
}
.footer-newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(99,102,241,.45);
}
.footer-newsletter .msg {
    margin-top: .55rem;
    font-size: .78rem;
    min-height: 1em;
    font-weight: 600;
}
.footer-newsletter .msg.success { color: #6ee7b7; }
.footer-newsletter .msg.error   { color: #fca5a5; }

/* ---------- Bottom bar ---------- */
.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(255,255,255,.55);
}
.footer-bottom a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: .2s;
}
.footer-bottom a:hover { color: #fff; }
.footer-bottom .legal-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.footer-bottom .heart {
    color: #f472b6;
    animation: heartbeat 1.4s ease-in-out infinite;
    display: inline-block;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.2); }
}
.footer-bottom .back-to-top {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: .25s;
    box-shadow: 0 8px 20px rgba(99,102,241,.3);
}
.footer-bottom .back-to-top:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(99,102,241,.5);
}

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    .site-footer { padding-top: 3rem; }
    .footer-brand { font-size: 1.3rem; }
    .footer-tagline { max-width: 100%; }
}
@media (max-width: 576px) {
    .site-footer { padding: 2.5rem 0 0; }
    .footer-heading { margin-top: .5rem; margin-bottom: 1rem; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom .legal-links {
        justify-content: center;
        gap: 1rem;
    }
}