/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { line-height: 1.6; color: #333; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
nav { background: #fff; padding: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; color: #1a4d2e; display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: #1a4d2e; }
.btn-contact { background: #1a4d2e; color: #fff !important; padding: 8px 20px; border-radius: 20px; }
.btn-contact:hover { background: #2d6a4f; }

/* ============ HERO SECTION ============ */
.hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

/* ====== INI KUNCINYA: HAPUS MARGIN AUTO ====== */
.hero .container.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;        /* Ubah dari 650px ke 100% agar mengikuti container */
    text-align: left;
    margin: 0;              /* HAPUS margin auto */
    padding: 0 40px;        /* Padding kiri-kanan konsisten */
}

/* Batasi lebar teks agar tidak terlalu panjang (opsional) */
.hero .container.hero-content h1,
.hero .container.hero-content p {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #e5e7eb;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero .btn-primary {
    background: #1a4d2e;
    color: #fff;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: 0.3s;
    border: 2px solid #1a4d2e;
}

.hero .btn-primary:hover {
    background: #2d6a4f;
    border-color: #2d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 77, 46, 0.4);
}

/* Section Umum */
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; color: #1a4d2e; margin-bottom: 50px; }

/* Produk Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }.product-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; 
    max-width: 1000px;
    margin: 0 auto;
}
.product-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; height: 400px; object-fit: cover; }
.product-info { padding: 20px; }
.product-info h3 { color: #1a4d2e; margin-bottom: 10px; }
.product-info p { font-size: 0.9rem; color: #666; }

/* Company Overview */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.overview-text h2 { color: #1a4d2e; margin-bottom: 10px; font-size: 2rem; }
.overview-text p { margin-bottom: 30px; color: #555; text-align: justify; }
.overview-img img { width: 100%; border-radius: 10px; }

/* ==========================================
   ALIGN OVERVIEW DENGAN VISI-MISI (HP & Tablet)
   ========================================== */
@media (max-width: 991px) {
    #about .overview-text {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Kalau HP kecil (≤ 480px), sedikit lebih kecil */
@media (max-width: 480px) {
    #about .overview-text {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    /* Judul lebih kecil biar tidak "terpotong" */
    .overview-text h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    /* Teks paragraf */
    .overview-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Visi Misi */
.visi-misi { background: #f9f9f9; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vm-card { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.vm-card h3 { color: #1a4d2e; margin-bottom: 10px; font-size: 1.5rem; border-bottom: 2px solid #1a4d2e; padding-bottom: 10px; display: inline-block; }
.vm-card ul { list-style: none; padding-left: 0; }
.vm-card ul li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.vm-card ul li::before { content: '✓'; color: #1a4d2e; position: absolute; left: 0; font-weight: bold; }


/* Footer */
footer { background: #1a4d2e; color: #fff; padding: 50px 0 20px; text-align: center; }
footer .container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo { font-size: 1.5rem; font-weight: bold; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #ccc; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; font-size: 0.8rem; color: #aaa; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: #1a4d2e; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: #fff; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .vm-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Tambahan untuk Footer Image */
.footer-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    object-fit: cover;
}

/* Perbaikan Hero agar gambar dari database tampil */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Modern SweetAlert2 Style */
.swal2-popup {
    border-radius: 15px !important;
    font-family: 'Segoe UI', sans-serif !important;
}
.swal2-title {
    color: #1a4d2e !important;
    font-weight: 700 !important;
}
.swal2-confirm {
    border-radius: 8px !important;
    padding: 10px 25px !important;
}
.swal2-cancel {
    border-radius: 8px !important;
    padding: 10px 25px !important;
}

/* Modern Toast Style */
.modern-toast {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Segoe UI', sans-serif !important;
    border-left: 5px solid #1a4d2e !important;
}

/* Progress bar warna hijau */
.swal2-timer-progress-bar {
    background: #1a4d2e !important;
}

/* Notifikasi Error */
.swal2-icon-error ~ .swal2-timer-progress-bar {
    background: #d33 !important;
}