/*==================================================*
 * MH ONLINE
 * Modern Company Profile
 *==================================================*/

/*================ RESET ================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#111;
    color:#fff;
    line-height:1.6;
    font-size:15px;
    transition:.3s;
}

.container{
    width:92%;
    max-width:1200px;
    margin:auto;
}


/*================ HEADER ================*/

header{
    background:#181818;
    border-bottom:2px solid #00D84A;
    position:sticky;
    top:0;
    z-index:999;
    transition:.3s;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#fff;
    font-size:18px;
    font-weight:600;
}

.logo img{
    width:38px;
    height:38px;
    border-radius:50%;
    object-fit:contain;
}

nav{
    display:flex;
    align-items:center;
    gap:12px;
}

nav ul{
    display:flex;
    list-style:none;
    gap:4px;
}

nav a{
    text-decoration:none;
    color:#fff;
    padding:8px 14px;
    border-radius:8px;
    font-weight:500;
    font-size:14px;
    transition:.3s;
}

nav a:hover,
nav a.active{
    background:#00D84A;
    color:#111;
}


/*================ HERO ================*/

.hero{
    padding:56px 0;
    text-align:center;
}

.hero h1{
    font-size:clamp(24px,4vw,38px);
    margin-bottom:16px;
    line-height:1.3;
}

.hero p{
    color:#bdbdbd;
    font-size:15px;
    max-width:680px;
    margin:0 auto 24px;
}

.buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}


/*================ BUTTON ================*/

.btn,
.btn-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:11px 22px;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.25s;
    margin:5px;
}

.btn{
    background:#00D84A;
    color:#111;
}

.btn:hover{
    transform:translateY(-3px);
}

.btn-outline{
    background:transparent;
    border:2px solid #00D84A;
    color:#00D84A;
}

.btn-outline:hover{
    background:#00D84A;
    color:#111;
}


/*================ SERVICES / CARDS ================*/

.services{
    padding:50px 0;
}

.cards{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:18px;
}

.cards .card{
    width:200px;
    min-height:140px;
    background:#1d1d1d;
    border:1px solid #2d2d2d;
    border-radius:14px;
    padding:22px 16px;
    text-align:center;
    text-decoration:none;
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    transition:.3s;
}

.cards .card:hover{
    transform:translateY(-6px);
    border-color:#00D84A;
    box-shadow:0 12px 30px rgba(0,216,74,.18);
}

.cards .card i{
    font-size:32px;
    color:#00D84A;
    margin-bottom:12px;
}

.cards .card h3{
    font-size:17px;
    margin-bottom:8px;
    line-height:1.35;
}

.cards .card p{
    color:#cfcfcf;
    font-size:13.5px;
}


/*================ FOOTER ================*/

footer{
    background:#181818;
    color:#aaa;
    text-align:center;
    padding:20px;
    font-size:13.5px;
    border-top:1px solid #333;
    transition:.3s;
}


/*================ WHATSAPP ================*/

.wa-button{
    position:fixed;
    right:18px;
    bottom:18px;
    width:52px;
    height:52px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:26px;
    text-decoration:none;
    box-shadow:0 5px 15px rgba(0,0,0,.35);
    z-index:999;
}


/*================ THEME BUTTON ================*/

.theme-toggle{
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:#00D84A;
    color:#111;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    transition:.3s;
    flex-shrink:0;
}

.theme-toggle i{
    font-size:18px;
}

.theme-toggle:hover{
    transform:rotate(180deg);
}


/*==================================================*
 * LIGHT MODE
 *==================================================*/

body.light{
    background:#EEF2F6;
    color:#1F2937;
}

body.light header{
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(12px);
    border-bottom:1px solid #D7DCE3;
}

body.light .hero{
    background:linear-gradient(
        180deg,
        #F5F7FA 0%,
        #EEF2F6 100%
    );
}

body.light h1,
body.light h2,
body.light h3,
body.light h4{
    color:#111827;
}

body.light p,
body.light li{
    color:#374151;
}

body.light .logo{
    color:#111827;
}

body.light nav a{
    color:#374151;
}

body.light nav a:hover,
body.light nav a.active{
    color:#fff;
}

body.light .cards .card{
    background:#FAFBFC;
    border:1px solid #D8DEE6;
    color:#1F2937;
    box-shadow:0 8px 25px rgba(0,0,0,.05);
}

body.light .cards .card p{
    color:#4B5563;
}

body.light .cards .card:hover{
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

body.light footer{
    background:#E8EDF3;
    color:#4B5563;
    border-top:1px solid #D8DEE6;
}

body.light .btn{
    color:#fff;
}

body.light .btn-outline{
    color:#00A63E;
    border-color:#00A63E;
}

body.light .btn-outline:hover{
    color:#fff;
    background:#00A63E;
}


/*================ MAP ================*/

.contact-map iframe{
    width:100%;
    height:240px;
    border:0;
    border-radius:14px;
}


/*================ MOBILE MENU ================*/

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:inherit;
    font-size:24px;
    cursor:pointer;
}


/*================ CONTENT IMAGE ================*/

.produk-img,
.content-image{
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:12px;
}

.produk-img{
    cursor:pointer;
    transition:.3s;
}

.produk-img:hover{
    transform:scale(1.02);
}


/*================ CONTENT CARD ================*/

.content-card{
    justify-content:flex-start !important;
    align-items:stretch !important;
    text-align:left !important;
}

.cards .content-card{
    width:270px;
    padding:20px 18px;
}

.content-card > h3{
    text-align:left;
    font-size:16px;
    line-height:1.35;
}


/*================ PRODUCT / CONTENT INFO ================*/

.kategori{
    color:#00D84A !important;
    font-weight:600;
    font-size:12px;
    margin:6px 0;
}

.harga{
    font-size:16px;
    font-weight:700;
    margin-bottom:8px;
}

.content-date{
    color:#999 !important;
    font-size:12px;
    margin:4px 0 8px;
}

.excerpt,
.article-body{
    color:#cfcfcf;
    font-size:13.5px;
    line-height:1.6;
}


/*==================================================*
 * DETAIL BUTTON
 *
 * "Lihat Selengkapnya" / "Sembunyikan"
 * Transparan + garis luar tebal
 *==================================================*/

.btn-detail{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:100%;
    padding:8px 12px;
    margin-top:8px;
    background:transparent;
    color:#00D84A;
    border:2px solid #00D84A;
    border-radius:8px;
    cursor:pointer;
    font:inherit;
    font-size:12.5px;
    font-weight:600;
    letter-spacing:.2px;
    transition:.25s;
}

.btn-detail i{
    font-size:.85em;
    transition:transform .25s;
}

.btn-detail:hover{
    background:#00D84A;
    color:#111;
}

.btn-detail:hover i{
    transform:translateY(2px);
}

/* Tombol "Sembunyikan" dibuat netral agar
   tidak bersaing secara visual dengan
   tombol utama "Lihat Selengkapnya" */

.btn-close-detail{
    color:#aaa;
    border-color:#4a4a4a;
}

.btn-close-detail:hover{
    background:#333;
    color:#fff;
    border-color:#4a4a4a;
}

.btn-close-detail:hover i{
    transform:translateY(-2px);
}


/*==================================================*
 * DETAIL CONTENT
 *
 * Digunakan oleh:
 * Produk
 * Artikel
 * Layanan
 * Pelanggan
 * Portofolio
 *==================================================*/

.detail{
    display:none;
    width:100%;
    max-height:none;
    height:auto;
    overflow:visible;
    opacity:1;
    margin-top:12px;
}

.card.active .detail{
    display:block;
    width:100%;
    max-height:none;
    height:auto;
    overflow:visible;
    opacity:1;
}

.detail p{
    display:block;
    width:100%;
    max-height:none;
    height:auto;
    overflow:visible;
    white-space:normal;
    text-overflow:clip;

    /* Mencegah teks dipotong */
    display:block !important;
    -webkit-line-clamp:unset !important;
    -webkit-box-orient:unset !important;
    line-clamp:unset !important;

    color:#cfcfcf;
    font-size:13.5px;
    line-height:1.65;
    margin:0 0 8px 0;
}


/*================ AKSI ================*
 * "Lihat Foto" / "Order via WhatsApp"
 * Transparan + garis luar tebal
 *================================*/

.aksi{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-top:14px;
    flex-wrap:wrap;
    width:100%;
}

.btn-foto,
.btn-wa{
    flex:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:110px;
    padding:8px 10px;
    background:transparent;
    border-radius:8px;
    text-align:center;
    text-decoration:none;
    font-size:12.5px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.btn-foto{
    border:2px solid #666;
    color:#ccc;
}

.btn-foto:hover{
    background:#666;
    color:#fff;
    transform:translateY(-2px);
}

.btn-wa{
    border:2px solid #00D84A;
    color:#00D84A;
}

.btn-wa:hover{
    background:#00D84A;
    color:#111;
    transform:translateY(-2px);
}

.btn-foto i,
.btn-wa i{
    font-size:13px;
}


/*================ PAGE HERO ================*/

.page-hero{
    padding:40px 0 28px;
}


/*==================================================*
 * PENCARIAN (PUBLIK)
 *==================================================*/

.site-search{
    padding:0 0 30px;
}

.site-search-box{
    display:flex;
    align-items:center;
    gap:10px;
    max-width:640px;
    margin:0 auto;
    background:#1d1d1d;
    border:1px solid #2d2d2d;
    border-radius:10px;
    padding:6px 6px 6px 16px;
}

.site-search-box i{
    color:#777;
    font-size:14px;
    flex-shrink:0;
}

.site-search-box input[type="text"]{
    flex:1;
    min-width:0;
    background:transparent;
    border:none;
    outline:none;
    color:#fff;
    font:inherit;
    font-size:14px;
    padding:10px 0;
}

.site-search-box input[type="text"]::placeholder{
    color:#777;
}

.site-search-box button{
    flex-shrink:0;
    background:transparent;
    border:2px solid #00D84A;
    color:#00D84A;
    border-radius:8px;
    padding:9px 18px;
    font:inherit;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.site-search-box button:hover{
    background:#00D84A;
    color:#111;
}

.site-search-reset{
    flex-shrink:0;
    color:#999;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    padding:9px 4px;
    transition:.25s;
}

.site-search-reset:hover{
    color:#fff;
}

.site-search-info{
    max-width:640px;
    margin:12px auto 0;
    text-align:center;
    color:#999;
    font-size:13px;
}

body.light .site-search-box{
    background:#FAFBFC;
    border-color:#D8DEE6;
}

body.light .site-search-box i{
    color:#9CA3AF;
}

body.light .site-search-box input[type="text"]{
    color:#1F2937;
}

body.light .site-search-box input[type="text"]::placeholder{
    color:#9CA3AF;
}

body.light .site-search-box button{
    border-color:#00A63E;
    color:#00A63E;
}

body.light .site-search-box button:hover{
    background:#00A63E;
    color:#fff;
}

body.light .site-search-reset{
    color:#6B7280;
}

body.light .site-search-reset:hover{
    color:#1F2937;
}

body.light .site-search-info{
    color:#6B7280;
}

@media(max-width:480px){

    .site-search-box{
        flex-wrap:wrap;
        padding:12px;
    }

    .site-search-box input[type="text"]{
        flex-basis:100%;
        order:1;
        padding:6px 0 10px;
    }

    .site-search-box i{
        order:0;
    }

    .site-search-box button{
        order:2;
        flex:1;
    }

    .site-search-reset{
        order:3;
        text-align:center;
    }

}


/*==================================================*
 * LIGHT MODE - CONTENT
 *==================================================*/

body.light .excerpt,
body.light .article-body,
body.light .detail p{
    color:#4B5563;
}

body.light .btn-detail{
    background:transparent;
    color:#00A63E;
    border-color:#00A63E;
}

body.light .btn-detail:hover{
    background:#00A63E;
    color:#fff;
}

body.light .btn-close-detail{
    color:#6B7280;
    border-color:#C6CDD6;
}

body.light .btn-close-detail:hover{
    background:#E5E7EB;
    color:#1F2937;
}

body.light .btn-foto{
    border-color:#9CA3AF;
    color:#4B5563;
}

body.light .btn-foto:hover{
    background:#9CA3AF;
    color:#fff;
}

body.light .btn-wa{
    border-color:#00A63E;
    color:#00A63E;
}

body.light .btn-wa:hover{
    background:#00A63E;
    color:#fff;
}


/*==================================================*
 * DETAIL PELANGGAN
 *==================================================*/

/* Saat detail dibuka, ringkasan disembunyikan */
.card.active .content-preview{
    display:none !important;
}


/*==================================================*
 * GOOGLE MAPS PELANGGAN
 *==================================================*/

.pelanggan-card .aksi{
    justify-content:center;
}

.pelanggan-card .btn-wa{
    min-width:160px;
}

.pelanggan-map-action{
    text-align:center;
    margin-top:12px;
}

.btn-map{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:170px;
    padding:8px 16px;
    background:transparent;
    border:2px solid #00D84A;
    color:#00D84A;
    font-size:12.5px;
    font-weight:600;
    text-decoration:none;
    border-radius:8px;
    transition:.25s;
}

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

.btn-map:hover{
    background:#00D84A;
    color:#111;
    transform:translateY(-2px);
}

.btn-map:visited{
    color:inherit;
}

body.light .btn-map{
    border-color:#00A63E;
    color:#00A63E;
}

body.light .btn-map:hover{
    background:#00A63E;
    color:#fff;
}


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

/* ---------- TABLET ---------- */

@media(max-width:992px){

    .hero{
        padding:44px 0;
    }

    .services{
        padding:42px 0;
    }

    .cards .card{
        width:calc(50% - 9px);
    }

    .cards .content-card{
        width:calc(50% - 9px);
    }

}


/* ---------- HP / MOBILE ---------- */

@media(max-width:768px){

    .menu-toggle{
        display:block;
    }

    .navbar{
        position:relative;
    }

    nav ul{
        display:none;
        position:absolute;
        top:64px;
        left:0;
        width:100%;
        background:#181818;
        flex-direction:column;
        border-top:2px solid #00D84A;
        padding:8px 0;
        gap:0;
    }

    body.light nav ul{
        background:#FAFBFC;
    }

    nav ul.show{
        display:flex;
    }

    nav ul li{
        width:100%;
    }

    nav ul li a{
        display:block;
        text-align:center;
        padding:13px;
        font-size:14px;
        border-radius:0;
    }

    .cards .card{
        width:100%;
        max-width:320px;
    }

    .cards .content-card{
        width:100%;
        max-width:320px;
    }

    .theme-toggle{
        margin-left:0;
    }

    .produk-img,
    .content-image{
        height:170px;
    }

    .aksi{
        flex-direction:column;
        align-items:stretch;
    }

    .btn-foto,
    .btn-wa{
        width:100%;
        max-width:none;
    }

    .btn-map{
        width:100%;
        max-width:none;
    }

}


/* ---------- HP KECIL ---------- */

@media(max-width:480px){

    .hero{
        padding:32px 0;
    }

    .hero h1{
        font-size:22px;
    }

    .hero p{
        font-size:13.5px;
    }

    .btn,
    .btn-outline{
        width:100%;
        margin:5px 0;
    }

    .page-hero{
        padding:28px 0 20px;
    }

    .services{
        padding:32px 0;
    }

    .cards{
        gap:14px;
    }

    .cards .card,
    .cards .content-card{
        max-width:100%;
    }

    .produk-img,
    .content-image{
        height:150px;
    }

    .logo span{
        font-size:16px;
    }

    .logo img{
        width:32px;
        height:32px;
    }

}
