/* ==========================================================
   FRONTEND FOOTER - DARK COMPACT PROFESSIONAL
   ========================================================== */

.front-footer {
    position: relative;
    overflow: hidden;
    padding: 46px 0 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at 8% 6%,
            color-mix(in srgb, var(--theme-accent) 16%, transparent),
            transparent 32%),
        radial-gradient(circle at 94% 100%,
            color-mix(in srgb, var(--theme-primary) 24%, transparent),
            transparent 38%),
        linear-gradient(135deg,
            color-mix(in srgb, var(--theme-primary) 94%, #000000),
            color-mix(in srgb, var(--theme-secondary) 90%, #000000));
    border-top: 1px solid color-mix(in srgb, var(--theme-primary) 40%, transparent);
}

.front-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .065;
    background-image:
        linear-gradient(30deg, rgba(255, 255, 255, .18) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .18) 87.5%),
        linear-gradient(150deg, rgba(255, 255, 255, .12) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .12) 87.5%);
    background-size: 42px 72px;
    pointer-events: none;
}

.front-footer::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-accent) 14%, transparent);
    pointer-events: none;
}

.front-footer .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================
   FOOTER PANEL
   ========================================================== */

.footer-top {
    position: relative;
    padding: 28px 26px 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%,
            color-mix(in srgb, var(--theme-accent) 12%, transparent),
            transparent 34%),
        linear-gradient(145deg,
            rgba(255, 255, 255, .065),
            rgba(255, 255, 255, .032));
    border: 1px solid rgba(255, 255, 255, .095);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .09);
    backdrop-filter: blur(16px);
}

.footer-brand {
    max-width: 620px;
    margin: 0 auto 22px;
    text-align: center;
}

.footer-logo {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--theme-primary);
    background: #ffffff;
    font-size: 1.55rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

.footer-brand h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(1.08rem, 2.4vw, 1.42rem);
    font-weight: 950;
    line-height: 1.32;
}

.footer-description {
    max-width: 560px;
    margin: auto;
    color: rgba(255, 255, 255, .78);
    font-size: .82rem;
    line-height: 1.6;
}

/* ==========================================================
   FOOTER GRID
   ========================================================== */

.footer-grid {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .9fr .9fr 1.3fr;
    gap: 14px;
}

.footer-column {
    position: relative;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .065);
    border: 1px solid rgba(255, 255, 255, .10);
}

.footer-column h5 {
    margin: 0 0 10px;
    color: var(--theme-accent);
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
    font-weight: 760;
    line-height: 1.35;
    text-decoration: none;
    transition: .2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-contact div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
    line-height: 1.45;
}

.footer-contact i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--theme-accent);
    font-size: .92rem;
}

/* ==========================================================
   FOOTER BOTTOM
   ========================================================== */

.footer-social {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .13);
    transition: .2s ease;
}

.footer-social a:hover {
    color: var(--theme-text);
    background: var(--theme-accent);
    transform: translateY(-4px) scale(1.06);
}

.footer-quote {
    position: relative;
    z-index: 2;
    max-width: 690px;
    margin: 18px auto 0;
    padding: 10px 16px;
    border-radius: 999px;
    text-align: center;
    color: #ffffff;
    background: rgba(255, 255, 255, .052);
    border: 1px solid rgba(255, 255, 255, .10);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.45;
}

.footer-quote i {
    margin-right: 6px;
    color: var(--theme-accent);
}

.footer-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 18px auto 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    text-align: center;
    color: rgba(255, 255, 255, .68);
    font-size: .74rem;
}

/* ==========================================================
   FLOATING ACTIONS - SCROLL TOP / AI CHAT
   ========================================================== */

.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 1200;
    display: grid;
    gap: 12px;
}

.floating-btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--theme-button-text);
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    box-shadow: 0 16px 35px rgba(15, 23, 42, .18);
    transition: .25s ease;
}

.floating-btn:hover {
    transform: translateY(-4px);
}

.ai-chat {
    background: linear-gradient(135deg, var(--theme-accent), var(--theme-primary));
}

.scroll-top {
    opacity: 0;
    visibility: hidden;
}

.scroll-top.is-show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
    .front-footer {
        padding: 42px 0 20px;
    }

    .footer-top {
        padding: 24px 16px 20px;
        border-radius: 22px;
    }

    .footer-brand {
        margin-bottom: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .footer-column {
        padding: 15px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-contact div {
        justify-content: center;
        text-align: center;
    }

    .footer-quote {
        border-radius: 18px;
    }
}

@media (max-width: 640px) {
    .floating-actions {
        right: 14px;
        bottom: 16px;
        gap: 10px;
    }

    .floating-btn {
        width: 44px;
        height: 44px;
    }
}
