/* =========================================================
   FOOTER BASE & VARIABLES
========================================================= */
:root {
    --pf-bg-top: #0f172a;
    --pf-bg-bottom: #020617;
    --pf-text-main: #94a3b8;
    --pf-text-light: #cbd5e1;
    --pf-heading: #ffffff;
    --pf-brand: #FF6600;
    --pf-brand-hover: #e65c00;
    --pf-border: rgba(255, 255, 255, 0.06);
    --pf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pengunci scroll saat modal kalkulator dibuka */
html.pm-calculator-open,
body.pm-calculator-open {
    overflow: hidden !important;
}

.prima-footer { 
    background: linear-gradient(180deg, var(--pf-bg-top) 0%, var(--pf-bg-bottom) 100%); 
    color: var(--pf-text-main); 
    padding-top: 5rem; 
    font-family: var(--font-base, system-ui, -apple-system, sans-serif); 
    position: relative; 
    overflow: hidden; 
    border-top: 1px solid var(--pf-border);
    line-height: 1.6;
}

.prima-footer *, 
.prima-footer *::before, 
.prima-footer *::after { 
    box-sizing: border-box; 
}

.pf-container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 24px; 
    position: relative; 
    z-index: 1; 
}

/* =========================================================
   RESPONSIVE GRID SYSTEM (Simetris & Presisi)
========================================================= */
.pf-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
}

@media (min-width: 640px) {
    /* Tablet: 2 Kolom Seimbang */
    .pf-grid { 
        grid-template-columns: repeat(2, 1fr); 
        column-gap: 3rem;
        row-gap: 3.5rem;
    }
}

@media (min-width: 1024px) {
    /* Desktop: 4 Kolom Simetris (Kolom Tepi lebih lebar untuk konten panjang) */
    .pf-grid { 
        grid-template-columns: 1.4fr 1fr 1fr 1.3fr; 
        gap: 3rem; 
    }
}

/* =========================================================
   WIDGETS & TYPOGRAPHY
========================================================= */

.pf-widget {
    display: flex;
    flex-direction: column;
}

.pf-brand {
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--pf-transition);
}

.pf-brand:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.pf-desc {
    color: var(--pf-text-light);
    font-size: 0.95rem;
    margin: 0 0 2rem 0;
    text-align: justify;
    line-height: 1.7;
}

.pf-title {
    color: var(--pf-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
}

/* =========================================================
   GARIS ORANGE DI BAWAH JUDUL
   Tetap menggunakan ::before agar tidak bentrok dengan
   ::after yang digunakan accordion/panah
========================================================= */

.pf-title {
    /* Reset default button */
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    
    /* Pertahankan tampilan judul lama */
    width: 100%;
    position: relative;
    display: block;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.pf-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: var(--pf-brand);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.pf-widget:hover .pf-title::before {
    width: 60px;
}


/* =========================================================
   MENU LIST
   Menggunakan inline SVG dari HTML
========================================================= */

.pf-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pf-menu li {
    margin-bottom: 0.85rem;
}

.pf-menu a {
    text-decoration: none;
    color: var(--pf-text-light);
    transition: var(--pf-transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.pf-menu a svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .pf-menu a:hover {
        color: var(--pf-brand);
        transform: translateX(6px);
    }

    .pf-menu a:hover svg {
        transform: translateX(3px) scale(1.15);
    }
}


/* =========================================================
   ACCESSIBILITY FOCUS STATES
========================================================= */

.pf-menu a:focus-visible,
.pf-title:focus-visible {
    outline: 2px solid var(--pf-brand);
    outline-offset: 4px;
    border-radius: 4px;
}

/* =========================================================
   SOCIAL MEDIA ICONS (Presisi & Kebal Bentrokan CSS Tema)
========================================================= */
.pf-socials {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-top: 1.25rem !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.pf-social-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--pf-brand) !important;
    background: transparent !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    transition: var(--pf-transition) !important;
    flex-shrink: 0 !important;
}

/* Kunci ukuran SVG di dalam tombol sosial */
.pf-social-icon svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    fill: currentColor !important;
    stroke: none !important;
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
    transition: var(--pf-transition) !important;
}

@media (hover: hover) {
    .pf-social-icon:hover {
        background: var(--pf-brand) !important;
        color: #ffffff !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 15px rgba(255, 102, 0, 0.4) !important;
    }
}

/* =========================================================
   CONTACT ICONS & INFORMATION
========================================================= */
.pf-contact { 
    display: flex; 
    gap: 16px; 
    margin-bottom: 1.5rem; 
    align-items: flex-start; 
}

.pf-contact .pf-icon-box {
    width: 38px; 
    height: 38px; 
    flex: 0 0 38px;
    border: 1.5px solid var(--pf-brand); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: transparent; 
    color: var(--pf-brand); 
    transition: var(--pf-transition);
}

.pf-contact .pf-icon-box svg { 
    width: 18px; 
    height: 18px; 
    fill: currentColor; 
    transition: var(--pf-transition); 
}

.pf-contact:hover .pf-icon-box { 
    background: var(--pf-brand); 
    color: #ffffff; 
}

.pf-contact-info,
.pf-contact > div:not(.pf-icon-box) { 
    display: flex; 
    flex-direction: column; 
    padding-top: 2px; 
}

.pf-c-label { 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--pf-text-main); 
    letter-spacing: 0.5px; 
    margin-bottom: 4px; 
}

.pf-c-text, 
.pf-c-text a { 
    font-size: 0.95rem; 
    color: #ffffff; 
    line-height: 1.5; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.2s ease; 
}

.pf-c-text a:hover { 
    color: var(--pf-brand); 
}

/* =========================================================
   BOTTOM FOOTER
========================================================= */
.pf-bottom { 
    border-top: 1px solid var(--pf-border); 
    margin-top: 3.5rem; 
    padding: 1.75rem 0 110px 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1.25rem; 
    text-align: center; 
    font-size: 0.875rem; 
    color: var(--pf-text-main); 
}

.pf-bottom p { 
    margin: 0; 
}

.pf-bottom a { 
    color: inherit; 
    text-decoration: none; 
    transition: color 0.2s ease; 
}

.pf-bottom a:hover { 
    color: var(--pf-brand); 
}

@media (min-width: 768px) { 
    .pf-bottom { 
        padding-bottom: 2rem; 
    } 
}

@media (min-width: 1024px) { 
    .pf-bottom { 
        flex-direction: row; 
        justify-content: space-between; 
        text-align: left; 
    } 
}

/* =========================================================
   SCROLL TO TOP BUTTON
========================================================= */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 99980;
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 102, 0, 0.4);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--pf-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--pf-brand);
    color: #ffffff;
    border-color: var(--pf-brand);
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .scroll-top {
        bottom: 95px;
        right: 30px;
    }
}

/* =========================================================
   MOBILE ACCORDION (Max 639px)
========================================================= */
@media (max-width: 639px) {
    .pf-widget .pf-title { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        width: 100%; 
        margin: 0; 
        padding: 16px 0; 
        border-bottom: 1px solid var(--pf-border); 
        cursor: pointer; 
        user-select: none;
    }

    .pf-widget .pf-title::after { 
        content: ''; 
        position: relative; 
        width: 10px; 
        height: 10px; 
        border-right: 2px solid var(--pf-brand); 
        border-bottom: 2px solid var(--pf-brand); 
        transform: rotate(45deg); 
        background: none; 
        top: -2px; 
        right: 4px; 
        transition: transform 0.3s ease;
    }

    .pf-widget.active .pf-title { 
        color: var(--pf-brand); 
        border-bottom-color: transparent; 
    }

    .pf-widget.active .pf-title::after { 
        transform: rotate(-135deg); 
        top: 2px; 
    }

    .pf-content-wrap { 
        display: grid; 
        grid-template-rows: 0fr; 
        transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    }

    .pf-content { 
        overflow: hidden; 
    }

    .pf-widget.active .pf-content-wrap { 
        grid-template-rows: 1fr; 
    }

    .pf-widget.active .pf-content { 
        padding-top: 10px; 
        padding-bottom: 24px; 
        border-bottom: 1px solid var(--pf-border); 
    }
}

/* =========================================================
   MOBILE DOCK (Navigasi Bawah HP)
========================================================= */
.pf-dock { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    z-index: 99990; 
    height: 72px; 
    padding-bottom: env(safe-area-inset-bottom); 
    background: rgba(2, 6, 23, 0.95); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 102, 0, 0.3); 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5); 
}

@media (min-width: 768px) { 
    .pf-dock { 
        display: none; 
    } 
}

.pf-dock-btn { 
    background: none; 
    border: none; 
    padding: 0; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: var(--pf-text-light); 
    font-size: 10px; 
    font-weight: 600; 
    gap: 6px; 
    height: 100%; 
    text-decoration: none; 
    transition: color 0.2s ease;
}

.pf-dock-btn svg { 
    width: 22px; 
    height: 22px; 
    stroke-width: 2.2; 
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}

.pf-dock-btn:active, 
.pf-dock-btn:hover { 
    color: var(--pf-brand); 
}

.pf-dock-btn:active svg { 
    transform: scale(0.85); 
}

.pf-dock-center { 
    position: relative; 
    height: 100%; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: flex-end;
    padding-bottom: 8px;
}

/* Floating WA Button di Center Dock */
.pf-wa-float { 
    position: absolute; 
    top: -28px; 
    width: 60px; 
    height: 60px; 
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%); 
    border-radius: 50%; 
    border: 4px solid #020617; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #ffffff; 
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); 
    animation: pfPulse 2.5s infinite; 
    z-index: 10; 
    transition: transform 0.3s ease;
}

.pf-wa-float:active { 
    transform: scale(0.9); 
}

.pf-wa-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--pf-text-light);
    line-height: 1;
}

@keyframes pfPulse { 
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); } 
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } 
}

/* =========================================================
   DESKTOP FLOATING BUTTONS
========================================================= */
.pf-desktop-floats { 
    display: none; 
}

@media (min-width: 768px) { 
    .pf-desktop-floats { 
        display: block; 
    }
    
    .pf-float-calc { 
        position: fixed; 
        bottom: 30px; 
        left: 30px; 
        z-index: 99990; 
        background: rgba(11, 31, 58, 0.95); 
        backdrop-filter: blur(8px);
        color: #ffffff; 
        min-height: 54px; 
        padding: 6px 20px 6px 6px; 
        border-radius: 999px; 
        display: inline-flex; 
        align-items: center; 
        justify-content: center; 
        gap: 14px; 
        font-size: 14px; 
        font-weight: 700; 
        text-transform: uppercase; 
        border: 1px solid rgba(255, 255, 255, 0.1); 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
        cursor: pointer; 
        transition: var(--pf-transition); 
    }

    .pf-float-calc .icon { 
        width: 42px; 
        height: 42px; 
        flex: 0 0 42px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        background: linear-gradient(135deg, var(--pf-brand) 0%, var(--pf-brand-hover) 100%); 
        border-radius: 50%; 
        box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4); 
        transition: var(--pf-transition); 
    }

    .pf-float-calc:hover { 
        background: #102a4d; 
        transform: translateY(-4px); 
        border-color: rgba(255, 102, 0, 0.3); 
    }

    .pf-float-calc:hover .icon { 
        transform: rotate(10deg) scale(1.05); 
    }

    .pf-float-wa-desk { 
        position: fixed; 
        bottom: 30px; 
        right: 30px; 
        z-index: 99990; 
        background: linear-gradient(135deg, #25D366 0%, #1da851 100%); 
        color: #ffffff; 
        padding: 12px 24px 12px 20px; 
        border-radius: 50px; 
        display: flex; 
        align-items: center; 
        gap: 12px; 
        font-weight: 700; 
        font-size: 15px; 
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); 
        text-decoration: none; 
        border: 2px solid transparent; 
        transition: var(--pf-transition); 
    }

    .pf-float-wa-desk:hover { 
        transform: translateY(-4px); 
        box-shadow: 0 15px 35px rgba(37, 211, 102, 0.45); 
        border-color: #ffffff; 
    }

    .pf-float-wa-desk svg { 
        width: 24px; 
        height: 24px; 
        fill: currentColor; 
    }
}