/* --- Footer Base Styles --- */
.site-footer {
    background-color: var(--footer-bg-color, #0a0f1d);
    color: var(--footer-text-color, rgba(var(--heading-color-rgb), 0.7));
    padding: 0;
    font-family: var(--body-font);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 0. Client Logos Section */
.client-logos-section {
    padding: 50px 0;
    background: rgba(var(--heading-color-rgb), 0.02);
    border-bottom: 1px solid rgba(var(--heading-color-rgb), 0.05);
}

.client-logos-title {
    text-align: center;
    font-size: var(--small-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
    opacity: 0.5;
    margin-bottom: 30px;
}

.client-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.client-logo-item {
    flex: 0 0 auto;
}

.client-logo-item img {
    max-height: 45px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo-item a {
    display: block;
}

/* 1. Top Footer (CTA Card Section) */
.footer-cta {
    padding: 60px 0 0;
    margin-bottom: -40px;
    /* Pull the next section up to create card overlap effect */
    position: relative;
    z-index: 10;
}

.footer-cta-card {
    background: var(--footer-cta-bg, var(--primary-color));
    padding: 40px 48px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    color: var(--footer-cta-title-color, var(--heading-color));
}

.footer-cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--footer-cta-title-color, #ffffff);
}

.footer-cta-description {
    font-size: var(--body-size);
    color: var(--footer-cta-desc-color, rgba(var(--heading-color-rgb), 0.9));
}

.footer-btn {
    background-color: var(--footer-cta-btn-bg, #ffffff);
    color: var(--footer-cta-btn-text, var(--primary-color)) !important;
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: var(--secondary-size);
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.footer-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 2. Main Footer (Grid) */
.footer-main {
    padding: 100px 0 48px;
    /* Extra top padding for the card overlap (-40px margin + card height) */
    background: rgba(var(--overlay-bg-rgb), 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 44px;
}

.footer-col {
    text-align: left;
}

.footer-heading {
    font-size: var(--small-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--overlay-text-color, #ffffff);
    margin-bottom: 20px;
}

/* Navigasi Links */
.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-link {
    font-size: var(--secondary-size);
    transition: all 0.3s ease;
    color: var(--footer-text-color);
}

.footer-nav-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Brand Column */
.footer-logo-text {
    font-size: var(--h3-size);
    font-weight: 800;
    color: var(--overlay-text-color, #ffffff);
    margin-bottom: 14px;
}

.footer-col .custom-logo-link img {
    height: 48px;
    width: auto;
}

.footer-logo-text span {
    color: var(--primary-color);
}

.footer-about {
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: var(--secondary-size);
    color: var(--footer-text-color);
}

.footer-social-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-icon-sm {
    width: 32px;
    height: 32px;
    background: rgba(var(--heading-color-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.social-icon-sm svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.social-icon-sm:hover svg {
    stroke: var(--overlay-text-color);
    transform: scale(1.1);
}

/* Map Column */
.footer-map-container {
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

/* Contact Column */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--button-size);
    transition: all 0.3s ease;
    color: var(--footer-text-color);
}

.footer-contact-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer-contact-link:not(.no-hover):hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact-link.no-hover {
    cursor: default;
    align-items: flex-start;
}

/* 3. Bottom Footer */
.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(var(--heading-color-rgb), 0.05);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--small-size);
    opacity: 0.6;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

/* --- Floating WhatsApp Button --- */
.floating-wa-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--overlay-text-color);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-wa-btn svg {
    width: 26px;
    height: 26px;
    stroke: var(--overlay-text-color);
}

.floating-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: var(--overlay-text-color);
}

/* --- Mobile Responsive --- */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .client-logos-grid {
        gap: 24px;
    }

    .client-logo-item img {
        max-height: 32px;
    }

    .floating-wa-btn {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        bottom: 24px;
        right: 24px;
    }

    .floating-wa-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .client-logos-section {
        padding: 36px 0;
    }

    .client-logos-grid {
        gap: 20px;
    }

    .client-logo-item img {
        max-height: 28px;
    }

    .footer-cta {
        padding: 48px 0 0;
    }

    .footer-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        border-radius: 20px;
    }

    .footer-cta-title {
        font-size: clamp(22px, 5vw, 28px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-main {
        padding: 80px 0 36px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-nav-list {
        align-items: center;
    }

    .footer-social-inline {
        justify-content: center;
    }

    .footer-contact-list {
        align-items: center;
    }

    .footer-contact-link {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-cta {
        padding: 36px 0 0;
    }

    .footer-cta-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .footer-main {
        padding: 72px 0 28px;
    }

    .footer-grid {
        gap: 24px;
    }

    .footer-btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    .floating-wa-btn {
        bottom: 20px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .floating-wa-btn svg {
        width: 22px;
        height: 22px;
    }
}