/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
}

.navbar {
    background: #342e34; /* Abu-abu gelap industrial */
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo span {
    color: #bdc3c7; /* Warna beton */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    font-size: 17px;
    padding: 7px 15px;
    text-decoration: none;
    transition: .3s;
}

.nav-links li a:hover, .nav-links li a.active {
    color: #3498db;
}

/* Tombol CTA Desktop */
.cta-desktop {
    background: #7f8c8d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.cta-desktop:hover {
    background: #3498db;
}

.checkbtn {
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: none; /* Sembunyikan di desktop */
}

#check {
    display: none;
}

/* --- MODE IPAD / TABLET (Layar di bawah 1024px) --- */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 30px;
    }
    .nav-links li a {
        font-size: 16px;
        padding: 7px 10px;
    }
}

/* --- MODE HP (Layar di bawah 858px) --- */
@media (max-width: 858px) {
    .checkbtn {
        display: block;
    }

    .nav-links {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #2c3e50;
        top: 80px;
        left: -100%; /* Sembunyikan menu di kiri */
        text-align: center;
        transition: all .5s;
        flex-direction: column;
        padding-top: 50px;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links li a {
        font-size: 20px;
    }

    /* Munculkan menu saat checkbox dicentang */
    #check:checked ~ .nav-links {
        left: 0;
    }

    .cta-desktop {
        display: none; /* Sembunyikan tombol kotak di HP */
    }

    .cta-mobile {
        display: inline-block;
        color: #3498db !important;
        font-weight: bold;
    }
}

/* Hero Section Styling */
.hero {
    padding-top: 100px; /* Jarak agar tidak tertutup navbar fixed */
    min-height: 90vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 20px;
}

/* Pengaturan Teks */
.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #2c3e50;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-secondary {
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 13px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #2c3e50;
    color: white;
}

/* Pengaturan Foto */
.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 50%;
    border-radius: 15px;
}

.image-badge {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* --- RESPONSIVE MODE --- */

/* iPad Mode */
@media (max-width: 1024px) {
    .hero-container {
        gap: 30px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* HP Mode */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse; /* Foto di atas, teks di bawah di layar HP */
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    .hero-image img {
        box-shadow: 10px 10px 0px #bdc3c7;
    }
}

/* Container Dasar */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 125px 15px;
}

/* Header Section */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 50px;
}

/* Grid System */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Card Produk */
.product-card {
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-info p {
    color: #95a5a6;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.price {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.btn-detail {
    display: block;
    text-align: center;
    background: #f4f4f4;
    color: #2c3e50;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-detail:hover {
    background: #3498db;
    color: white;
}

/* --- RESPONSIF --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .product-grid {
        grid-template-columns: 1fr; /* 1 Kolom di HP */
    }
}

/* Styling Tombol WA Melayang */
.wa-float {
    position: fixed;
    bottom: 30px; /* Jarak dari bawah */
    right: 30px;  /* Jarak dari kanan */
    background-color: #25d366; /* Warna asli WhatsApp */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px; /* Membuat bentuk oval/kapsul */
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999; /* Agar selalu di atas elemen lain */
    transition: all 0.3s ease;
}

.wa-content {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara ikon dan teks */
}

.wa-icon {
    width: 30px;
    height: 30px;
}

.wa-text {
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 15px;
}

/* Efek Hover (Saat Kursor Diarahkan) */
.wa-float:hover {
    background-color: #128c7e; /* Warna hijau lebih gelap */
    transform: translateY(-5px); /* Sedikit melompat ke atas */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .wa-float {
        bottom: 20px;
        right: 20px;
        padding: 10px;
    }
    .wa-text {
        display: none; /* Di HP hanya tampil ikon saja agar tidak sempit */
    }
}

.contact-info {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    margin-top: 40px;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 5px solid #2c3e50; /* Aksen abu-abu tua industrial */
    transition: 0.3s;
}

.contact-item:hover {
    transform: translateY(-10px);
    border-bottom-color: #3498db; /* Berubah jadi biru saat dihover */
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 5px 0;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.map-section {
    padding: 40px 0 80px 0;
    background-color: #f9f9f9;
}

.map-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden; /* Agar sudut peta melengkung */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid white; /* Frame putih agar terlihat bersih */
}

/* Memastikan peta responsif di HP */
@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 300px; /* Lebih pendek di HP agar tidak makan tempat */
    }
}