/* ============================================== */
/* PREMIUM FOOTER - REBUILT FROM SCRATCH */
/* ============================================== */

/* --- Terrain Wave Divider --- */
.footer-wave-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    background: transparent;
    margin-top: -1px;
}

.footer-wave-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Footer Root --- */
#site-footer {
    background: #0b1120;
    color: #c8d6e5;
    padding: 0;
    font-family: var(--font-family-body, 'Inter', sans-serif);
    position: relative;
    overflow: hidden;
}

/* Subtle topographic background pattern */
#site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 600px 300px at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 250px at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Main Content Area --- */
.ft-main {
    position: relative;
    z-index: 1;
    padding: 64px 0 48px;
}

.ft-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    max-width: var(--container-width, 1224px);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Brand Column --- */
.ft-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: opacity 0.2s;
}

.ft-brand-link:hover {
    opacity: 0.85;
}

.ft-brand-link img {
    height: 38px;
    width: 100%;
}

.ft-brand-name {
    font-family: var(--font-family-headings, 'Bebas Neue', sans-serif);
    font-size: 24px;
    color: #fff;
    letter-spacing: 1.5px;
}

.ft-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #7c8db5;
    margin-bottom: 24px;
    max-width: 320px;
}

/* Social Icons */
.ft-socials {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.ft-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #7c8db5;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-social-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

/* Email CTA */
.ft-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #60a5fa;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.25s;
    position: relative;
}

.ft-email::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 26px;
    width: 0;
    height: 1px;
    background: #60a5fa;
    transition: width 0.3s;
}

.ft-email:hover {
    color: #93c5fd;
}

.ft-email:hover::after {
    width: calc(100% - 26px);
}

/* --- Column Titles --- */
.ft-title {
    font-family: var(--font-family-body, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4b6a9b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}

.ft-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

/* --- Link Lists --- */
.ft-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ft-links a {
    font-size: 14px;
    color: #8b9dc3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    transition: all 0.25s;
    position: relative;
}

.ft-links a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s;
    flex-shrink: 0;
}

.ft-links a:hover {
    color: #e2e8f0;
    transform: translateX(4px);
}

.ft-links a:hover::before {
    width: 12px;
}

/* --- Language Selector --- */
.ft-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.ft-lang-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #7c8db5;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
}

.ft-lang-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    transform: translateY(-2px);
}

.ft-lang-pill.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12));
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

/* --- Contact CTA Button --- */
.ft-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 16px;
}

.ft-cta-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.15));
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

/* --- Divider --- */
.ft-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.15) 20%,
            rgba(16, 185, 129, 0.12) 50%,
            rgba(59, 130, 246, 0.15) 80%,
            transparent 100%);
    max-width: var(--container-width, 1224px);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Bottom Bar --- */
.ft-bottom {
    position: relative;
    z-index: 1;
    padding: 24px 0;
}

.ft-bottom-inner {
    max-width: var(--container-width, 1224px);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ft-copyright {
    font-size: 13px;
    color: #3d5278;
}

.ft-bottom-nav {
    display: flex;
    gap: 24px;
}

.ft-bottom-nav a {
    font-size: 13px;
    color: #3d5278;
    text-decoration: none;
    transition: color 0.25s;
}

.ft-bottom-nav a:hover {
    color: #8b9dc3;
}

/* --- Back to Top --- */
.ft-back-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    text-decoration: none;
}

.ft-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ft-back-top:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.18);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .ft-desc {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .ft-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ft-main {
        padding: 48px 0 36px;
    }

    .ft-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ft-lang-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-wave-divider {
        height: 50px;
    }
}

/* --- Animations --- */
@keyframes ft-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ft-animate {
    opacity: 0;
    animation: ft-fade-up 0.6s ease forwards;
}

.ft-animate-d1 {
    animation-delay: 0.1s;
}

.ft-animate-d2 {
    animation-delay: 0.2s;
}

.ft-animate-d3 {
    animation-delay: 0.3s;
}

.ft-animate-d4 {
    animation-delay: 0.4s;
}