/*
Theme Name: ExpedisiTruck
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Tema premium untuk jasa expedisi truk
Version: 3.0
License: GPL v2 or later
Text Domain: expedisi-truck
*/

:root {
    --primary: #f39c12;
    --primary-dark: #e67e22;
    --secondary: #0b1a2e;
    --dark: #0a0f1c;
    --glass-bg: rgba(0, 0, 0, 0.6); /* lebih solid, teks mudah dibaca */
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0;
    background: url('bg/bg.png') center/cover fixed no-repeat;
    position: relative;
}

/* Overlay - hanya 1 lapis, tidak ada background di body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container - hanya untuk lebar */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-menu a {
    color: #fff;
    font-weight: 500;
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-menu a:hover::after,
.main-menu .current-menu-item a::after {
    width: 100%;
}

@media (max-width: 768px) {
    .main-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 15px;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .main-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Menu toggle - hanya muncul di mobile */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

/* Hamburger icon CSS murni - tampil */
.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    margin: 10px auto;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary); /* warna oranye tema */
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

/* Animasi saat active */
.menu-toggle.active .hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active .hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Sembunyikan icon Font Awesome di dalam menu-toggle */
.menu-toggle i {
    display: none !important; /* paksa sembunyi */
}

/* Tampilkan menu-toggle hanya di mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle i {
        display: none !important; /* pastikan tetap tersembunyi */
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-widget i {
    color: var(--primary);
    width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ===== TOMBOL ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243,156,18,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
}

.floating-containers {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.container-box {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 15px 25px;
    color: #fff;
    font-weight: 600;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ===== ROUTE CARDS ===== */
.route-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.route-card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.route-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.route-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ===== GALLERY LIST ===== */
.gallery-list,
.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
}

.gallery-list-item,
.info-list-item {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.gallery-list-item:hover,
.info-list-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.gallery-list-row,
.info-list-content {
    display: flex;
    gap: 25px;
    align-items: center;
}

.gallery-list-image,
.info-thumbnail {
    flex: 0 0 200px;
    height: 130px;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-list-image img,
.info-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-list-text,
.info-text {
    flex: 1;
}

.gallery-list-text h3,
.info-text h2 {
    margin-bottom: 8px;
}

.gallery-list-text h3 a,
.info-text h2 a {
    color: var(--primary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    margin-top: 10px;
    font-weight: 500;
}

.read-more:hover {
    gap: 10px;
    color: #fff;
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
}

.pagination .current {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .gallery-list-row,
    .info-list-content {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-list-image,
    .info-thumbnail {
        width: 100%;
        height: 180px;
    }
}

/* ===== CTA MITRA ===== */
.cta-mitra .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;              /* jarak icon & teks */
    padding: 12px 20px;    /* ukuran background tombol */
    font-size: 16px;
    line-height: 1.2;
    border-radius: 8px;
}

.cta-mitra .btn i {
    font-size: 18px;
}

.section-title {
    font-size: 1.4rem;   /* default lebih kecil */
    font-weight: 600;
}

.benefit-section .section-title {
    font-size: 1.2rem;   /* khusus judul benefit */
}

/* === GLOBAL GLASS CONTAINER === */
.glass-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Judul */
.section-title {
    font-weight: 600;
    margin-bottom: 20px;
}

/* Benefit grid */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.benefit-icon {
    font-size: 32px;
    color: #3498db;
    margin-bottom: 10px;
}

/* Terms */
.terms-box,
.penalty-box,
.rights-box {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.terms-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

/* CTA */
.cta-mitra {
    text-align: center;
}

.cta-mitra .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
}

.cta-mitra-text {
    margin-top: 10px;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-box {
        padding: 20px;
    }
}

/* === FORCE FONT COLOR HITAM === */
.glass-box,
.glass-box h1,
.glass-box h2,
.glass-box h3,
.glass-box h4,
.glass-box h5,
.glass-box h6,
.glass-box p,
.glass-box li,
.glass-box span {
    color: #000 !important;
}
/* === RUTE === */
.glass-box {
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 40px;
}