/* ==========================================================================
   1. GLOBAL STYLES
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

body {
    padding-top: 85px; /* Memberi ruang agar konten tidak tertutup fixed header */
}

main {
    flex: 1 0 auto; /* Memastikan konten utama mengisi sisa layar */
}

/* ==========================================================================
   2. HEADER & LOGO
   ========================================================================== */
/* ==========================================================================
   2. HEADER & LOGO (VERTIKAL KONSENTRIS & SUPER RAPAT)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, #0a0f14 0%, #162129 100%);
    padding: 6px 0 4px 0; /* Padding atas-bawah dibuat sangat tipis */
    border-bottom: 1px solid rgba(187, 149, 63, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    flex-direction: column; /* Tetap mempertahankan susunan vertikal ke bawah */
    align-items: center;    /* Semua konten rata tengah secara horizontal */
    justify-content: center;
    gap: 2px;               /* Jarak (gap) antar elemen diturunkan drastis */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo a {
    display: flex;
    flex-direction: column; /* Membuat gambar logo dan tulisan bertumpuk vertikal */
    align-items: center;
    gap: 2px;               /* Jarak gambar ke tulisan di bawahnya dibuat sangat mepet */
    text-decoration: none;
}

.logo img { 
    display: block; 
    max-height: 32px;       /* Ukuran gambar logo diperkecil agar hemat ruang vertikal */
    width: auto; 
}

.logo a span {
    font-size: 13px;        /* Ukuran teks INDO NATURA EXPORTER dikecilkan */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to bottom, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;         /* Tinggi baris minimum agar tidak memakan space */
}

/* ==========================================================================
   3. NAVIGATION (BARIS MENU DI BAWAH TULISAN)
   ========================================================================== */
.nav-container {
    display: flex;
    justify-content: center;
    margin-top: 2px;        /* Jarak tipis antara blok logo dengan baris menu */
}

.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center; 
    gap: 15px;              /* Jarak horizontal antar menu dirapatkan */
    margin: 0; 
    padding: 0;
}

.nav-links li a { 
    color: #a7b6c2 !important;
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.78rem;     /* Ukuran teks menu sedikit diperkecil */
    letter-spacing: 0.5px;
    transition: color 0.3s ease; 
}

.nav-links li a:hover { 
    color: #bf953f !important; 
}

.btn-inquiry {
    background-color: #C19A6B !important; 
    padding: 3px 10px !important; /* Padding tombol di-press seminimal mungkin */
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    color: #ffffff !important;
}

/* ==========================================================================
   BODY PADDING ADJUSTMENT
   ========================================================================== */
body {
    /* Karena header vertikal ini sudah dirapatkan, tinggi totalnya kini sekitar 85px */
    padding-top: 85px; 
}


/* ==========================================================================
   4. FOOTER (SANGAT PADAT & ELEGAN)
   ========================================================================== */
.main-footer {
    flex-shrink: 0;
    background: linear-gradient(180deg, #0a0f14 0%, #162129 100%);
    color: #a7b6c2;
    padding: 15px 10px;
    text-align: center;
    border-top: 1px solid rgba(187, 149, 63, 0.2);
}

.footer-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 4px; 
    max-width: 800px;
    margin: 0 auto;
}

.main-footer p {
    margin: 0 !important; 
    padding: 0;
    line-height: 1.3; 
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1px; 
    font-size: 0.8rem;
}

.footer-contact h4 { 
    color: #ffffff;
    font-size: 0.9rem; 
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.footer-links { 
    display: flex; 
    gap: 15px; 
    font-size: 0.8rem; 
    margin: 4px 0; 
}

.footer-links a { 
    color: #bf953f !important; 
    text-decoration: none; 
    font-weight: 500;
}

.footer-copyright { 
    font-size: 0.65rem; 
    opacity: 0.5; 
    text-transform: uppercase;
    margin: 0;
}

/* ==========================================================================
   5. RESPONSIVE MOBILE OPTIMIZATION (MAX-WIDTH: 576px)
   ========================================================================== */
@media (max-width: 576px) {
    body {
        padding-top: 110px; /* Jarak lebih besar karena menu menumpuk ke bawah */
    }

    .main-header {
        padding: 10px 0;
    }

    .main-header .container {
        flex-direction: column;
        gap: 12px;
        padding: 5px 15px;
    }

    .logo a span { 
        font-size: 14px; /* Lebih kecil sedikit di screen mobile */
    }

    .nav-links {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li a {
        font-size: 0.8rem;
        padding: 4px 6px;
    }

    .btn-inquiry {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    .main-footer {
        padding: 15px 10px;
    }

    .footer-container {
        gap: 6px;
    }

    .footer-links {
        gap: 10px;
        font-size: 0.75rem;
    }
}