/* =========================
   1. DASAR WEBSITE
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #222;
}

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

.header-utama {
    width: 100%;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(16, 42, 67, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.identitas-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.identitas-brand img {
    width: 300px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.nama-brand p {
    color: white;
    font-size: 19px;
    font-weight: bold;
    margin: 0;
}

.nama-brand span {
    color: white;
    font-size: 13px;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;

    padding: 10px 14px;
    border-radius: 6px;

    transition: all 0.3s ease;
}

.navbar a:hover {
    color: white;
    background: #172b4d;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* NAVBAR SAAT DI-SCROLL */
header {
    transition: background 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

header.navbar-scroll {
    background: rgba(12, 25, 43, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

/* =========================
   3. HERO SLIDER
========================= */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 60px;
    overflow: hidden;
    background: #102a43;
}

.slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.aktif {
    opacity: 1;
}

.slide:nth-child(1) {
    background-image: url("gambar/slide1.webp");
}

.slide:nth-child(2) {
    background-image: url("gambar/slide2.webp");
}

.slide:nth-child(3) {
    background-image: url("gambar/slide3.webp");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    color: white;
    text-align: left;
    margin: 0 auto;
}

.hero-label {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    margin: 0 0 8px;
}

.judul-berganti {
    position: relative;
    min-height: 0;
    margin: 0 0 5px;
    padding: 0;
    line-height: 1.2;
}

.judul-berganti span {
    display: none;
}

.judul-berganti span.teks-aktif {
    display: block;
    animation: muncul 0.8s ease;
}

@keyframes muncul {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    color: white;
    font-size: 40px;
    margin: 0;
}

.hero p {
    color: white;
    font-size: 18px;
    margin: 0;
    line-height: 1.6;
}

.garis-merah {
    width: 120px;
    height: 3px;
    background: #D93636;
    margin: 5px 0 12px;
    border-radius: 3px;
}


/* =========================
   4. PRODUK
========================= */

.produk,
#produk {
    background: #fff;
    padding: 70px 6%;
    text-align: center;
}

#produk h2 {
    color: #172b4d;
    margin-top: 0;
}

.daftar-produk {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}


/* KARTU PRODUK */
.kartu {
    display: flex;
    flex-direction: column;
    width: 280px;
    min-width: 0;
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(16, 42, 67, 0.07);
    text-align: left;
    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

.kartu:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(16, 42, 67, 0.13);
}

.kartu h3 {
    color: #172b4d;
    min-height: 48px;
    margin: 12px 0 8px;
    font-size: 18px;
}

.kartu p {
    overflow-wrap: anywhere;
    line-height: 1.6;
    color: #666;
    font-size: 14px;
}

.gambar-produk {
    width: 100%;
    max-width: 240px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    border-radius: 8px;
}

.label-kategori {
    align-self: flex-start;
    background: #e8eef7;
    color: #172b4d !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px !important;
    font-weight: bold;
    margin: 0 0 8px;
}

.harga-produk {
    color: #172b4d !important;
    font-size: 17px !important;
    font-weight: bold;
    margin: 10px 0 5px;
}

.stok-produk {
    color: #777 !important;
    font-size: 12px !important;
    margin: 5px 0 15px;
}

/* TOMBOL DETAIL */
.tombol-detail {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 11px 16px;
    background: #172b4d;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.tombol-detail:hover {
    background: #D93636;
}



/* FORM PENCARIAN KATALOG */
#produk form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 550px;
    margin: 25px auto 40px;
}

#produk form input[type="text"] {
    flex: 1;
    min-width: 0;
    max-width: 420px;
    padding: 13px 16px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#produk form input[type="text"]:focus {
    border-color: #172b4d;
    box-shadow: 0 0 0 3px rgba(23, 43, 77, 0.1);
}

#produk form button {
    padding: 13px 24px;
    background: #172b4d;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#produk form button:hover {
    background: #D93636;
}



/* =========================
   7. KONTAK DAN FOOTER
========================= */

.footer-utama {
    background: #172b4d;
    color: #ffffff;
}

/* BAGIAN KONTAK */
.kontak {
    padding: 42px 6% 35px;
    background: #172b4d;
}

.footer-heading {
    max-width: 1100px;
    margin: 0 auto 28px;
}

.footer-heading h2 {
    font-size: 25px;
    margin: 0 0 6px;
}

.footer-heading p {
    color: #cbd5e1;
    font-size: 14px;
    margin: 0;
}

/* GRID KONTAK */
.kontak-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    max-width: 1100px;
    margin: 0 auto;
}

.kontak-container h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 18px;
}

/* ITEM KONTAK */
.item-kontak {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
}

.ikon-kontak {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: #ffffff;
}

.isi-kontak {
    flex: 1;
    min-width: 0;
}

.isi-kontak h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 5px;
}

.isi-kontak p {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

.isi-kontak p a {
    color: #cbd5e1;
    text-decoration: none;
}

.isi-kontak p a:hover {
    color: #ffffff;
}

/* LINK MAPS */
.link-maps {
    display: inline-block;
    margin-top: 8px;
    color: #ff7777;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.link-maps:hover {
    color: #ffffff;
}

/* BAGIAN BAWAH FOOTER */
.footer-bawah {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 6%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-bawah p {
    color: #aebed4;
    font-size: 11px;
    margin: 0;
}

.login-admin {
    color: #aebed4;
    font-size: 11px;
    text-decoration: none;
    transition: 0.3s ease;
}

.login-admin:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* TAMPILAN HP */
@media (max-width: 768px) {
    .kontak {
        padding: 35px 20px 25px;
    }

    .footer-heading {
        margin-bottom: 25px;
    }

    .footer-heading h2 {
        font-size: 22px;
    }

    .kontak-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .kontak-container h3 {
        margin-bottom: 15px;
    }

    .item-kontak {
        margin-bottom: 15px;
    }

    .footer-bawah {
        padding: 14px 20px;
    }
}

@media (max-width: 400px) {
    .footer-bawah {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}


/* =========================
   8. GELEMBUNG WHATSAPP
========================= */

.wa-bubble {
    position: fixed;
    right: 20px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 3px 10px #aaa;
    z-index: 1000;
}

.wa-bubble svg {
    width: 32px;
    height: 32px;
}

/* =========================
   9. TAMPILAN HP DAN LAPTOP KECIL
========================= */

@media (max-width: 900px) {

    .header-utama {
        padding: 8px 12px;
        gap: 8px;
    }

    .identitas-brand img {
        width: 180px;
        height: 50px;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        right: 12px;
        width: 220px;
        padding: 15px;
        background: #102A43;
        border-radius: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .navbar.aktif {
        display: flex;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .hero {
        padding: 140px 20px 50px;
        min-height: 500px;
    }

    .hero h2 {
        font-size: 26px;
    }

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

    .produk,
    #produk {
        padding: 20px 10px;
    }

    .daftar-produk {
        gap: 15px;
        padding: 0 5px;
    }

    .kartu {
        width: 100%;
        max-width: 350px;
    }

    .gambar-produk {
        max-width: 100%;
        height: auto;
    }

    #produk form input[type="text"] {
        max-width: 100%;
    }

    .wa-bubble {
        right: 15px;
        bottom: 20px;
        width: 55px;
        height: 55px;
    }
}


/* =========================
   10. TENTANG KAMI
========================= */

.tentang {
    background: #fff;
    padding: 70px 6%;
}

.tentang-container {
    max-width: 1150px;
    margin: 0 auto;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

.tentang-gambar {
    flex: 0 0 42%;
    max-width: 42%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
}

.tentang-gambar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tentang-isi {
    flex: 1;
    min-width: 0;
}

.tentang-isi .subjudul {
    display: block;
    color: #D93636;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.tentang-isi h2 {
    color: #102A43;
    font-size: 32px;
    line-height: 1.3;
    margin: 0 0 15px;
}

.tentang-isi .garis-merah {
    width: 65px;
    height: 4px;
    margin: 0 0 20px;
}

.tentang-isi p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 14px;
}

.tentang-bidang {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.tentang-bidang div {
    background: #F4F6F8;
    border-left: 3px solid #D93636;
    padding: 12px 14px;
}

.tentang-bidang h3 {
    color: #D93636;
    font-size: 22px;
    margin: 0 0 5px;
}

.tentang-bidang span {
    color: #102A43;
    font-size: 12px;
    font-weight: bold;
}

/* TAMPILAN HP */
@media (max-width: 900px) {
    .tentang-container {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }

    .tentang-gambar {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 260px;
    }

    .tentang-isi h2 {
        font-size: 27px;
    }
}

@media (max-width: 480px) {
    .tentang-bidang {
        grid-template-columns: 1fr;
    }

    .tentang-gambar {
        height: 220px;
    }

    .tentang-isi h2 {
        font-size: 24px;
    }
}




/* =========================
   CAROUSEL PRODUK UNGGULAN
========================= */

.carousel-produk {
    position: relative;
    width: 100%;
    max-width: 1250px;
    margin: 35px auto 20px;
    padding: 0;
    overflow: hidden;
}

.slider-produk {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 25px 0;
}

.slider-produk::-webkit-scrollbar {
    display: none;
}

.slide-produk {
    flex: 0 0 82%;
    scroll-snap-align: center;
    opacity: 0.45;
    transform: scale(0.88);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.slide-produk a {
    display: block;
    width: 100%;
}

.slide-produk img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* Tombol panah transparan */

.panah-carousel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 60px;
    border: none;
    background: transparent;
    color: #172b4d;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.8);
}

.panah-carousel.sebelumnya {
    left: 15px;
}

.panah-carousel.berikutnya {
    right: 15px;
}

/* Indikator slide */

.indikator-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 15px 0 30px;
}

.indikator-carousel button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .keunggulan-perusahaan {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        margin-top: 20px;
    }

    .item-keunggulan {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 0;
        gap: 5px;
    }

    .ikon-keunggulan {
        font-size: 28px;
        flex-shrink: 0;
    }

    .item-keunggulan h3 {
        font-size: 11px;
        text-align: left;
        margin: 0;
    }

    .pembatas-keunggulan {
        display: block;
        height: 45px;
        width: 2px;
        flex-shrink: 0;
    }
}

/* KEUNGGULAN PERUSAHAAN */

.keunggulan-perusahaan {
    display: grid !important;
    grid-template-columns: 1fr 2px 1fr 2px 1fr;
    align-items: center;
    width: 100%;
    max-width: 1150px;
    margin: 40px auto 20px;
    gap: 15px;
}

.keunggulan-perusahaan .item-keunggulan {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.keunggulan-perusahaan .ikon-keunggulan {
    font-size: 38px;
    color: #172b4d;
    flex-shrink: 0;
}

.keunggulan-perusahaan .item-keunggulan h3 {
    font-size: 20px;
    color: #172b4d;
    text-align: left;
    margin: 0;
}

.keunggulan-perusahaan .pembatas-keunggulan {
    width: 2px;
    height: 60px;
    background: #172b4d;
}

@media (max-width: 768px) {
    .keunggulan-perusahaan {
        gap: 5px;
    }

    .keunggulan-perusahaan .item-keunggulan {
        gap: 5px;
    }

    .keunggulan-perusahaan .ikon-keunggulan {
        font-size: 24px;
    }

    .keunggulan-perusahaan .item-keunggulan h3 {
        font-size: 11px;
    }

    .keunggulan-perusahaan .pembatas-keunggulan {
        height: 45px;
    }
}

/* KLIEN KAMI */
.klien {
    padding: 60px 6%;
    background: #fff;
    text-align: center;
}

.klien h2 {
    color: #172b4d;
    font-size: 30px;
    margin-bottom: 12px;
}

.deskripsi-klien {
    color: #666;
    font-size: 15px;
    margin-bottom: 40px;
}

.slider-klien {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1150px;
    margin: 0 auto;
}

.logo-klien {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-klien img {
    width: 100%;
    max-width: 140px;
    height: 75px;
    object-fit: contain;
}

/* TAMPILAN HP */
@media (max-width: 768px) {
    .klien {
        padding: 45px 20px;
    }

    .klien h2 {
        font-size: 23px;
    }

    .deskripsi-klien {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .slider-klien {
        justify-content: flex-start;
        gap: 30px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
    }

    .logo-klien {
        flex: 0 0 130px;
        scroll-snap-align: center;
    }
}

/* MEMPERBAIKI POSISI IKON LOKASI */
.item-kontak {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 15px;
}

.ikon-kontak {
    display: flex !important;
    flex: 0 0 42px !important;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
}

.isi-kontak {
    flex: 1;
    min-width: 0;
}

.deskripsi-sosial {
    color: #d5dbea;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.info-perusahaan {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.link-maps {
    margin-top: 5px;
}

.deskripsi-kontak {
    padding-bottom: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================
   BANNER KATALOG PRODUK
========================= */

.banner-katalog {
    width: 100%;
    min-height: 500px;

    background-image:
        linear-gradient(90deg,
            rgba(10, 25, 48, 0.85),
            rgba(10, 25, 48, 0.25)),
        url("gambar/banner-katalog.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}

.overlay-banner-katalog {
    width: 100%;
    min-height: 500px;

    display: flex;
    align-items: center;

    padding: 60px 8%;
}

.isi-banner-katalog {
    max-width: 700px;
    color: white;
}

.isi-banner-katalog span {
    display: inline-block;
    color: #ff7777;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.isi-banner-katalog h1 {
    font-size: 48px;
    margin: 0 0 15px;
    line-height: 1.2;
}

.isi-banner-katalog h1 strong {
    color: #ff7777;
}

.isi-banner-katalog p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {

    .banner-katalog,
    .overlay-banner-katalog {
        min-height: 320px;
    }

    .overlay-banner-katalog {
        padding: 50px 25px;
    }

    .isi-banner-katalog h1 {
        font-size: 34px;
    }

    .isi-banner-katalog span {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .isi-banner-katalog p {
        font-size: 15px;
    }
}

/* JUDUL KATALOG */
.judul-katalog {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.judul-katalog span {
    display: block;
    color: #D93636;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.judul-katalog h2 {
    color: #172b4d;
    font-size: 30px;
    margin: 0 0 12px;
}

.judul-katalog .garis-merah {
    margin: 0 auto 15px;
    width: 65px;
    height: 4px;
}

.judul-katalog p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .judul-katalog h2 {
        font-size: 24px;
    }

    .judul-katalog p {
        font-size: 13px;
    }
}

/* PESAN PRODUK TIDAK DITEMUKAN */
.produk-kosong {
    width: 100%;
    padding: 45px 20px;
    text-align: center;
    background: #f5f7fa;
    border-radius: 12px;
}

.produk-kosong h3 {
    color: #172b4d;
    font-size: 21px;
    margin: 0 0 10px;
}

.produk-kosong p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.produk-kosong a {
    display: inline-block;
    padding: 11px 20px;
    background: #172b4d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.produk-kosong a:hover {
    background: #D93636;
}

/* =========================
   DESKRIPSI KARTU PRODUK
   MAKSIMAL 2 BARIS
========================= */
.daftar-produk .kartu .deskripsi-produk {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
    margin: 5px 0 18px;
}