/* ==========================================================================
   KODE UTAMA / DESKTOP (Kode Asli Anda yang Sudah Dioptimalkan Jarak Aman)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

.container-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nama-logo {
    font-family: audiowide, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 0px;
    color: black;
}

/* NAVBAR & LOGO UTAMA */
.logoNavbar {
    width: 130px !important; /* Memaksa logo menjadi kecil dan rapi di semua layar */
    height: auto !important;  /* Menjaga proporsi gambar agar tidak gepeng */
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    width: 55%;
    justify-content: space-between;
    font-family: 'Google Sans Flex', sans-serif;
    margin-top: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 -2px 0 0 transparent;
    font-weight: bold;
    font-family: sans-serif;
    display: flex;
}

nav ul li a:hover {
    color: #acacac;
    font-weight: bold;
}

/* hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    height: 20px;
    justify-content: space-between;
    position: relative;
    z-index: 99; /* Dinaikkan agar tidak tertutup konten */
}

.menu-toggle input {
    position: absolute;
    width: 40px;
    height: 28px;
    top: 0;
    left: 0;
    cursor: pointer;
    opacity: 0;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background-color: white;
}

/* hamburger menu animation */
.menu-toggle span:nth-child(2) {
    transform-origin: top left;
    transition: all 0.3s ease-in-out;
}

.menu-toggle input:checked~span:nth-child(2) {
    transform: rotate(45deg) translate(-1px, -1px);
    top: 12px;
}

.menu-toggle span:nth-child(3) {
    transition: all 0.3s;
}

.menu-toggle input:checked~span:nth-child(3) {
    transform: scale(0);
    opacity: 0;
}

.menu-toggle span:nth-child(4) {
    transform-origin: bottom left;
    transition: all 0.3s;
}

.menu-toggle input:checked~span:nth-child(4) {
    transform: rotate(-45deg) translate(-1px, 0);
    bottom: 12px;
}

/* IDENTITAS */
.container-backgroundIdentitas {
    width: 100%;
    min-height: 80vh;
    background-image: url(../image/backgroundBYD.jpg);
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

.penutup-backgroundInformasi {
    width: 100%;
    min-height: auto;
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.container-identitas {
    width: 85%;
    max-width: 1200px;
    background-color: rgba(0, 0, 0, 0.5);
    min-height: 55vh;
    display: flex;
    padding: 20px;
    border-radius: 12px;
}

.kotak-foto-identitas {
    width: 480px;
    height: 480px;
    background-color: red;
    margin-left: 20px;
    margin-top: 25px;
    flex-shrink: 0;
}

.informasiIdentitas {
    width: 100%;
    min-height: 480px;
    margin-top: 25px;
    margin-left: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: white;
    padding: 20px;
}

.informasiIdentitas h3 {
    color: white;
    font-weight: bold;
}

/* card pelayanan */
.container-pilihanlayanan {
    width: 100%;
    min-height: 80vh;
    background-image: url(../image/testgambar1.jpg);
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

.penutup-backgroundLayanan {
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 25px 15px;
}

.informasi-pelayanan {
    width: 70%;
    min-height: 20vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.informasi-pelayanan h1 {
    font-weight: bold;
    color: white;
}

.informasi-pelayanan p {
    color: white;
    font-size: 20px;
}

.container-isiPelayanan {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.kotak-pelayanan {
    width: 250px;
    height: 250px;
    background: linear-gradient(145deg, #707070, #e9e8e8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    margin: 10px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.icon-responsive {
    width: 100px;
    height: 100px;
}

.kotak-pelayanan:hover {
    transform: translateY(-5px);
    box-shadow: 1px 1px 2px rgb(255, 255, 255), 0 0 25px rgb(213, 215, 230), 0 0 5px rgb(36, 36, 37);
}

.kotak-pelayanan a {
    text-decoration: none;
    color: rgb(34, 34, 34);
    text-align: center;
}

.kotak-pelayanan h5 {
    font-weight: bold;
    margin-top: 10px;
}

/* BEST SELLER */
.container-BestSaler {
    width: 100%;
    min-height: 80vh;
    background-image: url(../image/backgroundidentitas.jpg);
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

.penutup-backgroundBestSaler {
    width: 100%;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.container-isiBestSaler {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-BestSaler {
    width: 70%;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    color: white;
}

.header-BestSaler h5 {
    font-size: 20px;
}

.kotak-BestSaler {
    width: 85%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.produk-BestSaler {
    width: 800px;
    min-height: 450px;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    padding: 15px;
}

.foto-BestSaler {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.informasi-BestSaler {
    width: 100%;
    height: auto;
    color: white;
    margin-top: 10px;
}

.informasi-BestSaler h2, 
.informasi-BestSaler p, 
.informasi-BestSaler h4 {
    font-weight: bold;
    margin-left: 0px;
    margin-top: 5px;
}

/* MAP DEALER */
.container-mapDealer {
    width: 100%;
    min-height: 80vh;
    background-image: url(../image/fotodealer.jpg);
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

.penutup-backgroundMapDealer {
    width: 100%;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
}

.map-dealer {
    width: 40%;
    min-height: 50vh;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 20px;
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.map-dealer h1 {
    font-size: 30px;
    margin-bottom: 15px;
}

.map-dealer iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.informasi-mapDealer {
    width: 45%;
    height: auto;
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.link-map {
    width: 100%;
    min-height: 10vh;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    padding: 15px;
}

.link-map:hover {
    transform: translateY(-5px);
    box-shadow: 1px 1px 2px rgb(255, 255, 255), 0 0 25px rgb(213, 215, 230), 0 0 5px rgb(36, 36, 37);
}

/* FOOTER */
.containerSosmedFooter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 5px;
    text-decoration: none;
}

.containerSosmedFooter a {
    margin: 15px;
    color: #2e2e2e;
    transition: 0.3s;
}

.containerSosmedFooter a:hover {
    transform: translateY(-5px);
}

.penutupFooter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

/* HALAMAN PRICE LIST & DEALER */
.Container-headerProduklist {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    text-align: center;
}

.Container-headerProduklist h1 {
    margin-top: 20px;
    font-weight: bolder;
}

.baseproduk {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.container-dealer {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

.container-isiDealer {
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 600px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
}

.box-detailLokasi {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.box-lokasi {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.box-lokasi iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 8px;
}

/* HALAMAN KONTAK */
.container-headerKontak {
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    text-align: center;
}

.container-kontak {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

.container-isiKontak {
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 600px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
}

.isi-kontakFoto {
    width: 40%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.isi-kontakFoto img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.isi-kontakInformasi {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.informasi-wa {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.informasi-wa p {
    font-size: 20px;
    margin-left: 15px;
}

.wa-kontakResponsive {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* HALAMAN DETAIL PRODUK */
.container-rincianDetailProduk {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}

.header-rincianDetailProduk {
    width: 100%;
    height: auto;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.kotak-rincianDetailProduk {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: flex;
    justify-content: center;
}

.fotoUtama-rincianDetailProduk {
    width: 100%;
    height: auto;
    max-height: 550px;
}

.fotoUtama-rincianDetailProduk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.containerKeterangan-rincianDetailProduk {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: flex;
    flex-direction: column;
}

.headKeterangan-rincianDetailProduk {
    width: 100%;
    margin-top: 25px;
}

.isi-rincianDetailProduk {
    width: 100%;
    margin-top: 15px;
}

.isi-rincianDetailProduk p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.penawaran-rincianDetailProduk {
    width: 100%;
    margin-top: 25px;
}

.penawaran-rincianDetailProduk h5 {
    font-size: 1.5rem;
}

.penawaran-rincianDetailProduk ul {
    margin-left: 20px;
    margin-top: 10px;
}

.penawaran-rincianDetailProduk ul li {
    font-size: 1.2rem;
}


/* ==========================================================================
   BREAKPOINT: LAPTOP / TABLET HORIZONTAL (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    nav ul {
        width: 80%;
    }
    .container-identitas {
        width: 95%;
    }
    .kotak-foto-identitas {
        width: 350px;
        height: 350px;
    }
    .map-dealer, .informasi-mapDealer {
        width: 90%;
    }
    .box-detailLokasi, .box-lokasi,
    .isi-kontakFoto, .isi-kontakInformasi {
        width: 100%;
    }
    .isi-kontakFoto img {
        width: 80%;
    }
}


/* ==========================================================================
   BREAKPOINT: TABLET / SMARTPHONE LARGE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Aktifkan Hamburger Menu */
    .menu-toggle {
        display: flex;
        margin-top: 20px;
    }

    /* Navigasi Dropdown Vertikal */
    nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: rgba(0,0,0,0.95);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
        text-align: center;
        z-index: 98;
    }
    
    nav ul li {
        margin: 15px 0;
    }

    /* Balik susunan identitas menjadi vertikal atas-bawah */
    .container-identitas {
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .kotak-foto-identitas {
        width: 90%;
        max-width: 350px;
        height: 300px;
        margin-left: 0;
        margin-top: 15px;
    }

    .informasiIdentitas {
        margin-left: 0;
        min-height: auto;
        padding: 15px;
    }

    /* Pelayanan & Sizing */
    .informasi-pelayanan {
        width: 90%;
    }

    .kotak-BestSaler {
        width: 100%;
    }

    .produk-BestSaler {
        width: 95%;
        min-height: auto;
    }

    .foto-BestSaler {
        width: 100%;
        height: auto;
        max-height: 250px;
    }

    .map-dealer, .informasi-mapDealer {
        width: 95%;
        margin: 10px 0;
    }
}


/* ==========================================================================
   BREAKPOINT: HP / SMARTPHONE VERTICAL (max-width: 576px)
   ========================================================================== */
@media (max-width: 576px) {
    .nama-logo {
        font-size: 1.2rem;
    }

    .navbar-black {
        width: 100%;
        text-align: center;
        padding-top: 15px;
    }

    .navbar-black li {
        margin: 10px 0;
    }
    
    .informasi-pelayanan h1,
    .map-dealer h1,
    .Container-headerProduklist h1,
    .container-headerKontak h1,
    .header-rincianDetailProduk h1 {
        font-size: 1.6rem;
    }

    .informasi-pelayanan p,
    .informasi-wa p,
    .isi-rincianDetailProduk p,
    .penawaran-rincianDetailProduk ul li {
        font-size: 0.95rem;
    }

    .kotak-pelayanan {
        width: 100%;
        max-width: 240px;
        height: 240px;
        border-radius: 25px;
    }

    .box-detailLokasi, .isi-kontakInformasi {
        padding: 15px;
    }

    .isi-kontakFoto img {
        width: 100%;
        max-height: 350px;
    }

    .informasi-wa p {
        font-size: 0.9rem;
        word-break: break-word;
    }
}