/**
 * PT. OSCAR MITRA SUKSES SEJAHTERA TBK — FOOTER STYLE
 * File: assets/css/footer-oscar.css
 *
 * Token warna & font mengikuti header-oscar.css supaya konsisten:
 * aksen amber dari logo, font Plus Jakarta Sans.
 */

:root{
    --om-white:#ffffff;
    --om-cream:#FBF8F3;
    --om-charcoal:#26221C;
    --om-charcoal-soft:#5B5347;
    --om-amber:#C1793B;
    --om-amber-dark:#9C5F2A;
    --om-amber-tint:#FBEADB;
    --om-border:#EDE3D5;

    /* khusus footer (dark) */
    --om-footer-bg:#161310;
    --om-footer-heading:#FFFFFF;
    --om-footer-text:#E6E1D8;
    --om-footer-muted:#8C8577;
    --om-footer-border:rgba(255,255,255,0.09);
}

.om-footer{
    position:relative;
    background:var(--om-footer-bg);
    color:var(--om-footer-text);
    font-family:'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.om-footer-inner{
    max-width:1280px;
    margin:0 auto;
    padding:56px 32px 32px;
}

.om-footer-divider{
    border:none;
    border-top:1px solid var(--om-footer-border);
    margin:40px 0;
}

/* ---------- TOP: ADDRESS / LOGO / CONTACT ---------- */
.om-footer-top{
    display:grid;
    grid-template-columns:auto auto auto auto;
    align-items:center;
    gap:40px;
}
.om-footer-brand{ order:1; }
.om-footer-address{ order:2; }
.om-footer-contact{ order:3; }
.om-footer-email{ order:4; }

.om-footer-address p{
    margin:0 0 6px;
    font-size:12px;
    line-height:1.6;
    color:var(--om-footer-text);
}
.om-footer-address-label{
    margin-top:16px !important;
    color:var(--om-footer-muted) !important;
    font-weight:600;
}

.om-footer-brand{ display:flex; justify-content:flex-end; }
.om-footer-brand img{
    height:48px;
    width:auto;
    display:block;
}

.om-footer-contact{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
}
.om-footer-contact-item{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:var(--om-footer-text);
    text-decoration:none;
    font-size:14.5px;
    font-weight:600;
    transition:color .2s ease;
}
.om-footer-contact-item:hover{ color:var(--om-amber); }
.om-footer-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px; height:32px;
    border-radius:50%;
    background:var(--om-amber);
    color:var(--om-white);
    flex-shrink:0;
}

.om-footer-email{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:14px;
}
.om-footer-email-item{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:var(--om-footer-text);
    text-decoration:none;
    font-size:14.5px;
    font-weight:600;
    transition:color .2s ease;
}
.om-footer-email-item:hover{ color:var(--om-amber); }
.om-footer-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px; height:32px;
    border-radius:50%;
    background:var(--om-amber);
    color:var(--om-white);
    flex-shrink:0;
}

/* ---------- MAIN: TAGLINE + COLUMNS ---------- */
.om-footer-main{
    display:grid;
    grid-template-columns:1fr 1.4fr;
    gap:40px;
    align-items:start;
}

.om-footer-tagline h2{
    margin:0;
    color:var(--om-footer-heading);
    font-size:44px;
    font-weight:800;
    line-height:1.12;
    letter-spacing:-0.01em;
}

.om-footer-columns{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:24px;
}

.om-footer-col-trigger{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    background:none;
    border:none;
    padding:0 0 16px;
    cursor:default;
    font-family:inherit;
    text-align:left;
}
.om-footer-col-trigger h3{
    margin:0;
    color:var(--om-footer-muted);
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
}
.om-footer-col-trigger .om-caret{ display:none; color:var(--om-footer-muted); }

.om-footer-col-list{
    list-style:none;
    margin:0; padding:0;
    display:flex;
    flex-direction:column;
    gap:12px;
}
.om-footer-col-list a{
    color:var(--om-footer-text);
    text-decoration:none;
    font-size:14.5px;
    font-weight:600;
    position:relative;
    transition:color .2s ease;
}
.om-footer-col-list a:hover{ color:var(--om-amber); }

/* ---------- BOTTOM ---------- */
.om-footer-bottom p{
    margin:0;
    color:var(--om-footer-muted);
    font-size:13px;
}

/* ---------- BACK TO TOP ---------- */
.om-back-to-top{
    position:fixed;
    right:28px;
    bottom:28px;
    width:44px; height:44px;
    border-radius:50%;
    background:var(--om-amber);
    color:var(--om-white);
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 8px 20px -8px rgba(0,0,0,.5);
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:opacity .25s ease, transform .25s ease, background-color .2s ease, visibility .25s ease;
    z-index:500;
}
.om-back-to-top.is-visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
.om-back-to-top:hover{ background:var(--om-amber-dark); }

/* ---------- RESPONSIVE ---------- */

/* TABLET: 641px – 1099px
   Sesuai screenshot:
   - Alamat jadi baris sendiri, full width
   - Logo & kontak turun ke baris berikutnya, rata kiri, sejajar (bukan stack)
   - Kolom Navigasi / Bisnis Kami / Legal TETAP 3 kolom (belum jadi accordion) */
@media (max-width:1099px){

    .om-footer-top{
        display:flex;
        flex-wrap:wrap;
        gap:24px;
        align-items:flex-start;
    }

    /* Logo full width */
    .om-footer-brand{
        order:1;
        flex:0 0 100%;
        justify-content:flex-start;
    }

    .om-footer-brand img{
        height:56px;
    }

    /* Alamat full width */
    .om-footer-address{
        order:2;
        flex:0 0 100%;
    }

    /* Telepon kiri */
    .om-footer-contact{
        order:3;
        flex:0 0 auto;
        align-items:flex-start;
    }

    /* Email kanan */
    .om-footer-email{
        order:4;
        flex:0 0 auto;
        align-items:flex-start;
        margin-left:auto;
    }

}

/* MOBILE: <= 640px
   - Kontak ikut stack vertikal
   - Kolom nav berubah jadi accordion (biar tetap ringkas di layar sempit) */
@media (max-width: 640px){
    .om-footer-inner{
        padding:40px 20px 24px;
    }

    /* Sembunyikan logo di HP */
    .om-footer-brand{
        display:none;
    }

    .om-footer-contact{
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
    }

    .om-footer-email{
        align-items:flex-start;
    }

    .om-footer-tagline h2{
        font-size:28px;
    }

    .om-footer-columns{
        grid-template-columns:1fr;
        gap:0;
    }

    .om-footer-col{
        border-top:1px solid var(--om-footer-border);
    }

    .om-footer-col:first-child{
        border-top:none;
    }

    .om-footer-col-trigger{
        cursor:pointer;
        padding:16px 0;
    }

    .om-footer-col-trigger .om-caret{
        display:block;
        transition:transform .25s ease;
    }

    .om-footer-col.is-open .om-caret{
        transform:rotate(180deg);
    }

    .om-footer-col-list{
        max-height:0;
        overflow:hidden;
        gap:0;
        transition:max-height .3s ease;
    }

    .om-footer-col.is-open .om-footer-col-list{
        max-height:300px;
        padding-bottom:16px;
        gap:12px;
    }

    .om-back-to-top{
        right:16px;
        bottom:16px;
        width:40px;
        height:40px;
    }
}