/* =========================================================
   PREF OOTER — dipakai di seluruh halaman (lewat footer.php)
   Panel gelap ala DevOps/GitHub untuk menutup halaman sebelum
   strip copyright. Karena gelap, warna di sini ditulis eksplisit
   (bukan token terang), sama seperti hero foto di halaman Services.
========================================================= */

.prefooter {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background: #0d1117;
    border-top: 1px solid #21262d;

    color: #e6edf3;
}

/* Grid halus sebagai tekstur latar */
.prefooter::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    pointer-events: none;

    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);

    background-size: 56px 56px;

    -webkit-mask-image: radial-gradient(120% 90% at 15% 0%, #000 10%, transparent 68%);
    mask-image: radial-gradient(120% 90% at 15% 0%, #000 10%, transparent 68%);
}

.prefooter-inner {
    position: relative;
    z-index: 1;

    box-sizing: border-box;

    width: 100%;
    max-width: 1236px;
    margin: 0 auto;
    padding: 56px 28px 48px;
}

/* =========================
   BARIS CTA
========================= */

.prefooter-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: 36px;
    align-items: center;

    padding-bottom: 36px;

    border-bottom: 1px solid #21262d;
}

.prefooter-eyebrow {
    display: inline-block;

    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;

    color: #58a6ff;
}

.prefooter-title {
    margin: 14px 0 0;

    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;

    color: #ffffff;
    text-wrap: balance;
}

.prefooter-text {
    margin: 14px 0 0;
    max-width: 62ch;

    font-size: 1rem;
    line-height: 1.7;

    color: #9aa4af;
    text-wrap: pretty;
}

.prefooter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================
   TOMBOL
========================= */

.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    box-sizing: border-box;

    padding: 12px 18px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;

    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pf-btn i {
    font-size: 13px;
}

.pf-btn-primary {
    background: #2f81f7;
    color: #ffffff;
}

.pf-btn-primary:hover,
.pf-btn-primary:focus-visible {
    background: #1f6feb;
    color: #ffffff;
}

.pf-btn-ghost {
    border-color: #30363d;
    background: rgba(255, 255, 255, 0.03);
    color: #e6edf3;
}

.pf-btn-ghost:hover,
.pf-btn-ghost:focus-visible {
    border-color: #58a6ff;
    color: #ffffff;
}

.pf-btn-wa {
    background: #238636;
    color: #ffffff;
}

.pf-btn-wa:hover,
.pf-btn-wa:focus-visible {
    background: #2ea043;
    color: #ffffff;
}

/* =========================
   GRID KOLOM
========================= */

.prefooter-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 32px;

    padding-top: 36px;
}

/* Baris brand: logo di samping nama */
.pf-brand-row {
    display: flex;
    align-items: center;
    gap: 11px;
}

.pf-logo {
    display: inline-flex;
    flex: 0 0 auto;
}

.pf-logo img {
    display: block;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    /* Logo PNG transparan tetap terbaca di panel gelap */
    background: rgba(255, 255, 255, 0.06);
}

.pf-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;

    color: #ffffff;
}

.pf-brand-desc {
    margin: 10px 0 0;
    max-width: 36ch;

    font-size: 0.925rem;
    line-height: 1.7;

    color: #9aa4af;
}

/* =========================
   SOSIAL MEDIA
========================= */

.pf-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 18px 0 0;
    padding: 0;

    list-style: none;
}

.pf-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    width: 36px;
    height: 36px;

    border: 1px solid #21262d;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.03);

    font-size: 15px;
    line-height: 1;
    text-decoration: none;

    color: #c9d1d9;

    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pf-social-link:hover,
.pf-social-link:focus-visible {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.12);

    color: #ffffff;

    transform: translateY(-1px);
}

.pf-social-link:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}

.pf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 16px;
}

.pf-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 5px 11px;

    border: 1px solid #21262d;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.03);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;

    color: #9aa4af;
}

.pf-badge i {
    font-size: 10px;
    color: #3fb950;
}

/* Kolom tautan */

.prefooter-col h3 {
    margin: 0 0 14px;

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;

    color: #8b949e;
}

.prefooter-col ul {
    display: grid;
    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.prefooter-col a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;

    color: #c9d1d9;

    transition: color 0.2s ease;
}

.prefooter-col a:hover,
.prefooter-col a:focus-visible {
    color: #58a6ff;
    text-decoration: none;
}

.prefooter-col a:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 3px;
    border-radius: 4px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {

    .prefooter-cta {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .prefooter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;

        padding-top: 30px;
    }

}

@media (max-width: 640px) {

    .prefooter-inner {
        padding: 40px 16px 32px;
    }

    .prefooter-cta {
        padding-bottom: 28px;
    }

    .prefooter-title {
        font-size: 1.4rem;
    }

    .prefooter-text {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .prefooter-actions {
        width: 100%;
    }

    .pf-btn {
        flex: 1 1 100%;
    }

    /* Dua kolom tautan di ponsel supaya prefooter tidak terlalu panjang */
    .prefooter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    .prefooter-brand {
        grid-column: 1 / -1;
    }

    .prefooter-col a {
        font-size: 0.9rem;
    }

    .prefooter-col h3 {
        margin-bottom: 12px;
    }

}