/* PT. ANDALAN ENERGI SEJAHTERA 
    Custom Stylesheet - 2026
*/

:root {
    --primary-blue: #002147;  /* Warna Biru dari Logo */
    --accent-gold: #B58D3D;   /* Warna Emas dari Logo */
    --white: #ffffff;
    --light-grey: #f8f9fa;
    --dark-text: #1a1a1a;
    --body-text: #4a4a4a;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--body-text);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVIGATION --- */
nav {
    background: var(--white);
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-nav img {
    height: 65px; /* Sesuaikan ukuran logo agar proporsional */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-gold);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 33, 71, 0.75), rgba(0, 33, 71, 0.6)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-brand {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--accent-gold);
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
}

/* --- SECTIONS --- */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-grey);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
    position: relative;
}

.text-center {
    text-align: center;
}

/* --- ABOUT GRID --- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-box h2 {
    margin-bottom: 20px;
}

.text-box p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.img-box img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- TABLE --- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--white);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.spec-table th {
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.spec-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:nth-child(even) {
    background: #fdfdfd;
}

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-gold);
}

.contact-card h4 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.contact-card p {
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1); /* Membuat logo jadi putih di footer jika perlu */
}

footer p {
    opacity: 0.8;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}


/* --- SOURCING & SALES ADDON --- */

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

/* Sales Grid */
.sales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.sales-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.sales-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.sales-card .icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.sales-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* Update Navigasi agar tidak tumpang tindih */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px; /* Jarak antar menu lebih manusiawi */
}

.nav-links li a {
    font-size: 0.85rem; /* Ukuran font diperkecil sedikit agar muat */
    white-space: nowrap; /* Teks tidak turun ke bawah */
}

.lang-switcher {
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #ddd;
}

.lang-switcher a {
    text-decoration: none;
    color: #ccc;
}

.lang-switcher a.active {
    color: var(--primary-blue);
}

/* Tambahan agar logo tidak menempel ke pinggir */
.container-nav {
    padding: 0 40px;
}

.nav-links li {
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* --- FIX NAV FILTER & CHECKBOX --- */

/* 1. Sembunyikan checkbox di semua tampilan */
.menu-toggle {
    display: none !important;
    visibility: hidden;
}

/* 2. Pastikan Hamburger hanya muncul di mobile */
.hamburger {
    display: none; /* Sembunyi di Desktop */
}

/* 3. Rapikan Lang Switcher di Mobile (dalam menu) */
.mobile-lang {
    display: none; /* Sembunyi di Desktop */
    text-align: center;
    width: 100%;
}

.mobile-lang a {
    display: inline !important; /* Agar ID | EN berjejer ke samping */
    padding: 0 10px !important;
}

.mobile-lang span {
    color: #ddd;
}

/* --- RESPONSIVE UPDATE --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Muncul di Mobile */
    }

    .lang-switcher {
        display: none; /* Sembunyikan switcher desktop */
    }

    .mobile-lang {
        display: block; /* Munculkan switcher di dalam menu mobile */
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
    
    /* Agar menu mobile tidak terlalu lebar dan lebih elegan */
    .nav-links {
        width: 80% !important;
        padding: 50px 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
}

/* --- DESKTOP FIX --- */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        flex-direction: row !important;
        right: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

/* --- RESPONSIVE MOBILE FIX --- */
@media (max-width: 768px) {
    nav { height: 70px; }
    .container-nav { padding: 0 20px; }
    .logo-nav img { height: 45px; }

    /* Sembunyikan Lang Switcher Desktop */
    .lang-switcher { display: none; }

    /* Style Hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-blue);
        transition: 0.3s;
    }

    /* Logic Menu Toggle (Checkbox) */
    .menu-toggle { display: none; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyi di kanan */
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 1000;
    }

    /* Munculkan menu saat checkbox dicentang */
    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    /* Animasi Hamburger jadi 'X' saat diklik */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .nav-links li a {
        font-size: 1.1rem;
        display: block;
    }

    .mobile-lang {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        font-weight: bold;
    }

    /* Fix elemen lain agar tidak berantakan */
    .hero h1 { font-size: 1.8rem; padding: 0 10px; }
    .hero p { font-size: 1rem; padding: 0 20px; }
    .grid, .contact-grid, .sales-grid { grid-template-columns: 1fr; gap: 30px; }
    .section { padding: 50px 0; }
    .spec-table { display: block; overflow-x: auto; }
}