/* * PT. Parlin Usaha Solution - Main Style
 * Version: 1.5
 */

/* --- 1. Root & Reset --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --dark: #0f172a;
    --dark-footer: #0a0f1d;
    --light: #f8fafc;
    --gray: #64748b;
    --whatsapp: #22c55e;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* --- 2. Header & Navbar Fix --- */
.navbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 5% !important;
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100% !important;
    transition: var(--transition);
}

.logo-wrapper {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.logo-main {
    display: block;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark);
    line-height: 1;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--gray);
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Navigasi Horizontal Desktop */
.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 0 !important;
}

.nav-link {
    text-decoration: none !important;
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Header Action Buttons */
.nav-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center;
}

.nav-cta, .whatsapp-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 10px 18px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    transition: var(--transition);
    border: none;
}

.nav-cta {
    background: var(--dark) !important;
    color: white !important;
}

.whatsapp-cta {
    background: var(--whatsapp) !important;
    color: white !important;
}

.nav-cta:hover, .whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- 3. Footer Styling (Profesional) --- */
.footer {
    background: var(--dark-footer);
    padding: 80px 0 20px;
    color: white;
}

.footer-link {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-light) !important;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    transform: rotate(360deg);
}

/* --- 4. Floating Elements --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 5px 20px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* --- 5. Mobile Responsiveness --- */
.mobile-toggle {
    display: none !important;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column !important;
        padding: 40px 20px;
        transition: 0.4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block !important;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }

    .nav-cta, .whatsapp-cta {
        width: 100%;
        justify-content: center;
    }
}
/* Container Utama */
.container-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

/* Memaksa Navigasi Sejajar Horizontal */
.nav-links-container {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-item {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-item.active, .nav-item:hover {
    color: #2563eb;
}

/* Grup Tombol Kanan */
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-portal, .btn-wa {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-portal { background: #0f172a; color: white; }
.btn-wa { background: #22c55e; color: white; }

.btn-portal:hover, .btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsivitas: Sembunyikan Menu di HP */
@media (max-width: 991px) {
    .nav-links-container, .nav-actions {
        display: none; /* Akan dimunculkan via JS toggle nanti */
    }
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
    }
}