/* =========================================================
   FOOTER - Premium Burgundy Edition
   - Tiga kolom utama: Maps+Alamat | Media Sosial | Statistik+Kontak
   - Latar gradien burgundy (senada hero section)
   - Ornamen tenun emas di kiri-kanan
   - Garis pemisah emas + baris copyright elegan
   ========================================================= */

.footer-shell {
    --color-footer-base: #5b0305;
    --color-footer-deep: #360404;
    --color-footergold: #cf9a3a;
    --color-footergold-soft: #e7c47a;
    --color-footer-cream: #f8e8b8;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding: 56px 0 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(207, 154, 58, 0.18), transparent 60%),
        linear-gradient(180deg, #6d0509 0%, var(--color-footer-base) 38%, var(--color-footer-deep) 100%);
    color: #f6f1e6;
    overflow: hidden;
    isolation: isolate;
}

.footer-shell--compact {
    min-height: 0;
    padding-top: 0;
    background: linear-gradient(180deg, #6d0509 0%, #430305 100%);
}

.footer-shell--compact::before,
.footer-shell--compact::after {
    display: none;
}

.footer-shell--compact .footer-bottom {
    margin-top: 0;
    padding: 20px 24px 22px;
}

/* Ornamen tenun emas - kiri dan kanan (CSS murni, gambar tenun sederhana) */
.footer-shell::before,
.footer-shell::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 96px;
    height: 320px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    background-image:
        linear-gradient(135deg,
            transparent 0 12%,
            rgba(207, 154, 58, 0.55) 12% 14%,
            transparent 14% 26%,
            rgba(231, 196, 122, 0.4) 26% 28%,
            transparent 28% 40%,
            rgba(207, 154, 58, 0.55) 40% 42%,
            transparent 42% 54%,
            rgba(231, 196, 122, 0.4) 54% 56%,
            transparent 56% 68%,
            rgba(207, 154, 58, 0.55) 68% 70%,
            transparent 70% 82%,
            rgba(231, 196, 122, 0.4) 82% 84%,
            transparent 84% 100%);
    background-size: 100% 100%;
    filter: blur(0.4px);
}

.footer-shell::before {
    left: 12px;
}

.footer-shell::after {
    right: 12px;
    transform: translateY(-50%) scaleX(-1);
}

/* Garis pemisah emas halus di atas footer */
.footer-shell>.footer-divider-top {
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(231, 196, 122, 0.55), transparent);
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: clamp(44px, 4.5vw, 84px);
    width: min(100% - 128px, 1600px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 0 48px;
}

.footer-col h2.footer-heading {
    font-size: clamp(22px, 1.55vw, 30px);
    margin: 0 0 24px;
    color: var(--color-footergold-soft);
    letter-spacing: 0.02em;
    font-weight: 800;
    line-height: 1.25;
}

/* --- Kolom kiri: Maps + alamat --- */
.footer-maps {
    border: 1px solid rgba(231, 196, 122, 0.35);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: #1c0203;
}

.footer-maps iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(0.85) brightness(0.95);
}

.footer-address {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(248, 232, 184, 0.85);
    line-height: 1.55;
}

.footer-address strong {
    display: block;
    color: #fff5d2;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

/* --- Kolom tengah: Ikon sosial --- */
.footer-socials {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 390px;
    margin-top: 4px;
    margin-inline: auto;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 56px;
    height: 56px;
    min-width: 56px;
    width: 56px;
    padding: 0 17px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 8px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-social::after {
    content: attr(title);
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 13px;
    font-weight: 800;
    transform: translateX(-6px);
    transition: max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-social:hover,
.footer-social:focus-visible {
    width: 126px;
    background: var(--color-footergold);
    color: #2a0303;
    border-color: var(--color-footergold-soft);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 12px 24px rgba(207, 154, 58, 0.28);
}

.footer-social:hover::after,
.footer-social:focus-visible::after {
    max-width: 78px;
    opacity: 1;
    transform: translateX(0);
}

.footer-social:focus-visible,
.footer-email:focus-visible,
.footer-bottom-links a:focus-visible {
    outline: 3px solid #ffd106;
    outline-offset: 4px;
}

/* --- Kolom kanan: Statistik + email --- */
.footer-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(231, 196, 122, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-stat .stat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(207, 154, 58, 0.18);
    color: var(--color-footergold-soft);
    font-size: 16px;
}

.footer-stat .stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.footer-stat .stat-text small {
    font-size: 11px;
    color: rgba(248, 232, 184, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-stat .stat-text strong {
    font-size: 18px;
    color: #fff5d2;
    font-weight: 800;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-footergold-soft);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(207, 154, 58, 0.35);
    word-break: break-all;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-email:hover,
.footer-email:focus-visible {
    background: rgba(207, 154, 58, 0.18);
    color: #ffffff;
}

.footer-email i {
    font-size: 16px;
}

/* --- Copyright bar --- */
.footer-bottom {
    position: relative;
    margin-top: auto;
    padding: 18px 24px 22px;
    text-align: center;
    font-size: 13px;
    color: rgba(248, 232, 184, 0.78);
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(86%, 880px);
    transform: translateX(-50%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(231, 196, 122, 0.6), transparent);
}

.footer-bottom-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 14px;
    color: var(--color-footergold);
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus-visible {
    color: #fff5d2;
}

.footer-bottom-links .sep {
    color: rgba(207, 154, 58, 0.45);
}

/* --- Floating WhatsApp glow --- */
.whatsapp-float {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    right: max(20px, env(safe-area-inset-right)) !important;
    bottom: max(20px, env(safe-area-inset-bottom)) !important;
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    background: #25d366 !important;
    color: #fff !important;
    line-height: 1 !important;
    text-decoration: none !important;
    z-index: 9999;
    animation: whatsappGlow 2.4s ease-in-out infinite;
}

.whatsapp-float .whatsapp-ico {
    width: 34px;
    height: 34px;
    fill: #fff !important;
}

.whatsapp-float .whatsapp-label {
    display: none !important;
}

.whatsapp-float:focus-visible {
    outline: 4px solid #ffd23c;
    outline-offset: 4px;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(37, 211, 102, 0.45);
    background: #1FB857;
}

@keyframes whatsappGlow {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(37, 211, 102, 0.45),
            0 14px 28px rgba(37, 211, 102, 0.28);
    }

    50% {
        box-shadow:
            0 0 0 14px rgba(37, 211, 102, 0),
            0 18px 36px rgba(37, 211, 102, 0.42);
    }
}

@media (min-width: 992px) {
    .footer-shell {
        min-height: clamp(620px, 44vw, 860px);
        padding-top: clamp(68px, 4.8vw, 92px);
    }

    .footer-grid {
        padding-bottom: clamp(58px, 4.5vw, 92px);
    }

    .footer-maps {
        border-radius: 12px;
    }

    .footer-address {
        margin-top: 22px;
        font-size: 16px;
        text-align: center;
    }

    .footer-socials {
        max-width: 440px;
        gap: 18px;
    }

    .footer-social {
        width: 66px;
        min-width: 66px;
        height: 66px;
        min-height: 66px;
        font-size: 25px;
    }

    .footer-stat {
        padding: 17px 18px;
        border-radius: 16px;
    }

    .footer-shell.footer-shell--compact {
        min-height: 0;
        padding-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }

    .footer-social,
    .footer-social::after,
    .footer-email,
    .footer-bottom-links a {
        transition: none;
    }

    .footer-social:hover,
    .footer-social:focus-visible {
        transform: none;
    }
}

/* --- Responsif --- */
@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-col.footer-col--stats {
        grid-column: 1 / -1;
    }

    .footer-shell::before,
    .footer-shell::after {
        width: 56px;
        height: 220px;
        opacity: 0.35;
    }
}

@media (max-width: 575.98px) {
    .whatsapp-float {
        width: 56px !important;
        height: 56px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    .whatsapp-float .whatsapp-label {
        display: none !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        width: min(100% - 32px, 520px);
        padding: 0 0 36px;
        gap: 28px;
    }

    .footer-shell {
        padding-top: 40px;
    }

    .footer-shell.footer-shell--compact {
        min-height: 0;
        padding-top: 0;
    }

    .footer-shell::before,
    .footer-shell::after {
        width: 38px;
        height: 160px;
        opacity: 0.25;
    }

    .footer-social {
        height: 50px;
        width: 50px;
        font-size: 19px;
    }
}
