/* --- 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;
}

@media (max-width: 991px) {
    .client-logos-grid {
        gap: 30px;
    }
    .client-logo-item img {
        max-height: 35px;
    }
}

@media (max-width: 768px) {
    .client-logos-section {
        padding: 40px 0;
    }
    .client-logos-grid {
        gap: 25px;
    }
    .client-logo-item img {
        max-height: 30px;
    }
}

/* 1. Top Footer (CTA Card Section) */
.footer-cta {
    padding: 60px 0 0;
    /* Only top padding to keep card centered */
    margin-bottom: -50px;
    /* Pull the next section up to create card effect */
    position: relative;
    z-index: 10;
}

.footer-cta-card {
    background: var(--footer-cta-bg, var(--primary-color));
    padding: 50px 60px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    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: 120px 0 60px;
    /* Extra top padding for the card overlap */
    background: rgba(0, 0, 0, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 50px;
}

.footer-col {
    text-align: left;
}

.footer-heading {
    font-size: var(--small-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--header-text-color, #ffffff);
    margin-bottom: 25px;
}

/* 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: 28px;
    font-weight: 800;
    color: var(--header-text-color, #ffffff);
    margin-bottom: 20px;
}

.footer-logo-text span {
    color: var(--primary-color);
}

.footer-about {
    line-height: 1.7;
    margin-bottom: 25px;
    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(--heading-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: 30px 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: #FFFFFF;
    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: #FFFFFF;
}

.floating-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: #FFFFFF;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .floating-wa-btn {
        bottom: 24px;
        right: 24px;
        width: 50px;
        height: 50px;
    }

    .floating-wa-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .floating-wa-btn {
        bottom: 20px;
        right: 20px;
    }
}