/* --- 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;
}
/* 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 with background image */
.footer-cta-card--has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.footer-cta-card--has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--overlay-bg-rgb), 0.75);
    border-radius: 8px;
    pointer-events: none;
}

.footer-cta-card--has-bg > * {
    position: relative;
    z-index: 1;
}

.footer-cta-card--has-bg .footer-cta-title {
    color: var(--overlay-text-color);
}

.footer-cta-card--has-bg .footer-cta-description {
    color: var(--overlay-text-color);
    opacity: 0.9;
}

.footer-cta-card--has-bg .footer-btn {
    background: var(--cta-text-color);
    color: var(--cta-bg-color) !important;
}

.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;
    color: var(--footer-text-color);
    background: rgba(var(--heading-color-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: var(--button-size);
    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. Client Logos */
.footer-clients {
    padding: 24px 0;
    border-top: 1px solid rgba(var(--heading-color-rgb), 0.05);
}
.footer-clients__title {
    text-align: center;
    font-size: var(--xs-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--footer-text-color);
    opacity: 0.6;
    margin: 0 0 16px;
}
.footer-clients__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.footer-clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-clients__item img {
    max-height: 44px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
@media (max-width: 480px) {
    .footer-clients__grid {
        gap: 8px;
    }
    .footer-clients__item img {
        max-height: 36px;
    }
}
/* 4. 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);
    color: var(--footer-text-color);
    opacity: 0.6;
}
.footer-legal-links {
    display: flex;
    gap: 20px;
}
.footer-legal-links a:hover {
    text-decoration: underline;
}
/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    color: var(--heading-color);
    border: 1px solid rgba(var(--heading-color-rgb), 0.12);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 9997;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--primary-color);
    color: var(--cta-text-color);
    border-color: var(--primary-color);
}
.scroll-to-top svg {
    width: 20px;
    height: 20px;
}
/* --- Floating WhatsApp Button --- */
.floating-wa-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    background: var(--wa-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--overlay-text-color);
    box-shadow: 0 4px 15px rgba(var(--wa-color-rgb), 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(var(--wa-color-rgb), 0.5);
    color: var(--overlay-text-color);
}
/* --- Mobile Responsive --- */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .floating-wa-btn {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        bottom: 24px;
        right: 24px;
    }
    .floating-wa-btn svg {
        width: 24px;
        height: 24px;
    }
    .scroll-to-top {
        bottom: 88px;
        right: 24px;
    }
}
@media (max-width: 768px) {
    .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;
    }
    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
@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;
    }
    .scroll-to-top {
        bottom: 72px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
}
