/* ==========================================================================
   RESET & DASAR
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f4f6f9; /* Abu-abu netral yang sangat terang */
    color: #0b0e17; /* Hitam kebiruan pekat untuk teks */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   HEADER & NAVIGASI
   ========================================================================== */
header {
    background-color: #081e43; /* Navy gelap yang solid */
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Pengaturan Logo Navbar */
header .logo {
    display: flex;
    align-items: center;
}

header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

header .logo img {
    max-height: 45px; /* Mengatur tinggi logo agar proporsional di navbar */
    width: auto;      /* Menjaga rasio lebar gambar */
    display: block;
    object-fit: contain;
}

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

nav ul li a {
    color: #d5d9df;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #1460bd; /* Aksen biru terang */
}

/* Tombol CTA di Header */
.btn-beli {
    background-color: #1460bd;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #1460bd;
    transition: all 0.3s ease;
}

.btn-beli:hover {
    background-color: transparent;
    color: #1460bd;
}

/* ==========================================================================
   HERO / BANNER (BERANDA)
   ========================================================================== */
#hero, .page-header {
    /*1. Lapisan transparan*/
    background: linear-gradient(rgba(8, 30, 67, 0.75), rgba(11, 14, 23, 0.85 )),
    url('../images/banner/background.png');

    /*2. Pengaturan posisi dan ukuran foto*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /*3. Teks & Padding*/
    color: #ffffff;
    text-align: center;
    padding: 100px 5%;
    margin-bottom: 50px;
}


#hero h2, .page-header h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff;
}

#hero p, .page-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #d5d9df;
}

#hero ul {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#hero ul li {
    background-color: rgba(213, 217, 223, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #1460bd;
}

/* ==========================================================================
   BAGIAN UMUM (SECTIONS)
   ========================================================================== */
section {
    padding: 60px 5%;
}

section h2 {
    text-align: center;
    font-size: 32px;
    color: #081e43;
    margin-bottom: 10px;
}

section > p {
    text-align: center;
    color: #655d57;
    margin-bottom: 40px;
    font-size: 16px;
}

/* ==========================================================================
   FITUR / KENAPA MEMILIH KAMI
   ========================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #1460bd; /* Aksen garis biru */
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    color: #081e43;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-item p {
    color: #655d57;
    font-size: 15px;
}

/* ==========================================================================
   KATALOG & PRODUK KARTU
   ========================================================================== */
.catalog-category {
    margin-bottom: 50px;
}

.catalog-category h3 {
    font-size: 24px;
    color: #0b0e17;
    margin-bottom: 20px;
    border-bottom: 2px solid #d5d9df;
    padding-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #d5d9df;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(11, 14, 23, 0.1);
}

.product-card img {
    width: 100% !important;
    aspect-ratio: 16 / 10;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #d5d9df; /* Placeholder jika gambar belum ada */
}

.product-card h3 {
    color: #081e43;
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card p {
    color: #655d57;
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card .price {
    font-size: 16px;
    color: #0b0e17;
    margin-bottom: 20px;
}

.product-card .price strong {
    color: #1460bd;
    font-size: 20px;
}

.product-card button, .btn-order, .btn-cta {
    background-color: #1460bd;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
}

.product-card button:hover, .btn-order:hover, .btn-cta:hover {
    background-color: #081e43;
}

/* ==========================================================================
   STATISTIK (TENTANG KAMI)
   ========================================================================== */
#stats {
    background-color: #081e43;
    color: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 40px;
    color: #1460bd; /* Biru terang menonjol di latar navy */
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 16px;
    color: #d5d9df;
}

/* ==========================================================================
   VISI MISI & ABOUT DETAIL
   ========================================================================== */
.vm-container, .about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.vm-card {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.vm-card h2 {
    text-align: left;
    border-left: 4px solid #1460bd;
    padding-left: 15px;
    margin-bottom: 20px;
}

.vm-card ul {
    list-style: disc inside;
    color: #655d57;
}

.vm-card ul li {
    margin-bottom: 10px;
}

/* ==========================================================================
   ARTIKEL & GALERI
   ========================================================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #d5d9df;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #9d9ca1;
}

.article-content {
    padding: 25px;
}

.article-content .category {
    display: inline-block;
    background-color: rgba(20, 96, 189, 0.1);
    color: #1460bd;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-content h3 {
    font-size: 20px;
    color: #081e43;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content .date {
    font-size: 13px;
    color: #9d9ca1;
    margin-bottom: 15px;
}

.article-content p {
    color: #655d57;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-content .read-more {
    color: #1460bd;
    font-weight: bold;
}

.article-content .read-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
   TESTIMONI / CALL TO ACTION LAINNYA
   ========================================================================== */
#testimonials, #custom-order-cta, #service-area {
    background-color: #d5d9df; /* Abu-abu netral */
    text-align: center;
}

.testimonial-card {
    background-color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    font-style: italic;
    color: #0b0e17;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.testimonial-card strong {
    display: block;
    margin-top: 20px;
    color: #1460bd;
    font-style: normal;
}

.btn-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 18px;
}

/* ==========================================================================
   DESAIN FOOTER MODERN & RAPI
   ========================================================================== */
.main-footer {
    background-color: #0b0e17; /* Warna dasar gelap */
    color: #9d9ca1; /* Warna teks abu-abu yang nyaman di mata */
    padding: 80px 5% 20px; /* Jarak atas yang lebih lega */
    font-size: 15px;
    border-top: 4px solid #1460bd; /* Aksen garis biru di bagian atas footer */
}

.footer-container {
    display: grid;
    /* Memberikan porsi lebih besar pada kolom deskripsi (2fr) */
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Tipografi Judul Widget */
.widget-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* Kolom 1: Brand & Logo Footer */
.footer-logo-img {
    max-height: 40px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    object-fit: contain;
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 90%;
}

/* Ikon Media Sosial */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(213, 217, 223, 0.1);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #1460bd;
    transform: translateY(-3px); /* Efek melayang */
}

/* Kolom Menu Tautan */
.links-widget ul {
    list-style: none;
    padding: 0;
}

.links-widget ul li {
    margin-bottom: 15px;
}

.links-widget ul li a {
    color: #9d9ca1;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.links-widget ul li a:hover {
    color: #1460bd; /* Teks menjadi biru terang */
    padding-left: 8px; /* Teks bergeser sedikit ke kanan */
}

/* Kolom Kontak */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info li .icon {
    font-size: 18px;
    margin-top: 2px;
}

.contact-info li p {
    margin: 0;
    color: #d5d9df;
}

/* Bagian Bawah Footer (Copyright) */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Garis batas sangat tipis */
}

.footer-bottom p {
    color: #655d57;
    font-size: 14px;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE FOOTER & NAVIGASI
   ========================================================================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }

    nav ul {
        gap: 15px;
    }

    .main-footer {
        padding: 50px 5% 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Ukuran Logo pada Footer */
.footer-logo-img {
    max-height: 45px;    /* Atur tinggi maksimal logo */
    width: auto;         /* Menjaga bentuk logo tetap ideal */
    margin-bottom: 20px; /* Jarak antara logo dan teks deskripsi */
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   TOMBOL SEKUNDER (Untuk "Profil Lengkap Kami", dsb)
   ========================================================================== */

   #about {
    text-align: center;
   }

   /* Menambahkan jarak turun untuk tombol di bawah katalog produk */
    #best-products .btn-secondary,
    #best-products a {
    margin-top: 45px; /* Menambah spasi ke bawah agar tidak menempel dengan kartu */
    display: inline-block;
    }

    #best-products {
        text-align: center;
    }

   .btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #1460bd;
    border: 2px solid #1460bd;
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px auto 0 auto;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #1460bd;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(20, 96, 189, 0.2);
}

/* ==========================================================================
   STYLING POP-UP MODAL PROMO
   ========================================================================== */
.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #0b0e17;
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #1460bd;
}